/* =========================================================
   Ibitirama Cimentos — site
   Grafite industrial · cinza mineral · papel kraft como destaque
   ========================================================= */

:root {
  /* cor */
  --ground: #0e0f11;
  --ground-2: #16181b;
  --ground-3: #1f2226;
  --ground-4: #2a2d32;
  --ink: #f3f2ef;
  --ink-soft: #b4b6b3;
  --mineral: #8f928f;
  --paper: #e3e3e0;      /* cinza cimento claro */
  --paper-2: #d4d4d0;
  --paper-3: #c3c3be;
  --ink-dark: #131416;
  --ink-dark-soft: #4a4c4f;
  --accent: #e9913f;       /* kraft dos sacos */
  --accent-hi: #f3a35a;
  --on-accent: #17120c;

  /* tipo */
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --step-display: clamp(3.1rem, 8.6vw, 8.6rem);
  --step-h2: clamp(2.3rem, 5.4vw, 5rem);
  --step-h3: clamp(1.25rem, 1.7vw, 1.6rem);
  --step-body: 1.0625rem;
  --step-small: 0.875rem;

  /* espaço */
  --margin: clamp(16px, 3vw, 40px);
  --section: clamp(96px, 13vw, 200px);
  --max: 1440px;

  /* movimento */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms;
  --t-hover: 200ms;
  --t-ui: 260ms;
  --t-reveal: 850ms;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-body);
  line-height: 1.55;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
svg { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

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

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

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--margin);
}

.skip {
  position: absolute;
  left: var(--margin);
  top: -60px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  text-decoration: none;
}
.skip:focus { top: 12px; }

/* títulos */
h1, h2, .display {
  font-weight: 820;
  font-variation-settings: "wdth" 112;
  text-transform: uppercase;
  letter-spacing: -0.025em;
  line-height: 0.9;
}
h2 { font-size: var(--step-h2); }
h3 {
  font-size: var(--step-h3);
  font-weight: 700;
  font-variation-settings: "wdth" 106;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

/* ---------- botões e links ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 54px;
  padding: 0 26px;
  border: 0;
  border-radius: 0;
  font-weight: 700;
  font-size: 1rem;
  font-variation-settings: "wdth" 108;
  letter-spacing: 0.005em;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease, color var(--t-hover) ease;
}
.btn:active { transform: scale(0.97); }
.btn svg { transition: transform var(--t-ui) var(--ease-out); }
/* brilho que atravessa o botão no hover */
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.28) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 700ms var(--ease-out);
}
@media (hover: hover) {
  .btn:hover::after { transform: translateX(120%); }
  .btn:hover svg { transform: translateX(3px); }
  .btn--quiet:hover svg { transform: translateY(3px); }
}

.btn--accent { background: var(--accent); color: var(--on-accent); }
.btn--accent:hover { background: var(--accent-hi); }
.btn--quiet { background: var(--ground-4); color: var(--ink); }
.btn--quiet:hover { background: #363a40; }
.btn--dark { background: var(--ink-dark); color: var(--ink); }
.btn--dark:hover { background: #2b2d31; }
.btn--wide { width: 100%; }

.link {
  font-weight: 650;
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.25em;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
  transition: text-decoration-color var(--t-hover) ease, color var(--t-hover) ease;
}
.link:hover { text-decoration-color: currentColor; }

/* =========================================================
   CABEÇALHO
   ========================================================= */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  transition: background-color 400ms ease, transform 400ms var(--ease-out);
}
.site-header.is-solid { background: rgba(14, 15, 17, 0.96); }
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
  font-variation-settings: "wdth" 112;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-size: 1.05rem;
  white-space: nowrap;
}
@media (max-width: 420px) { .brand { font-size: 0.9rem; gap: 10px; } .brand img { height: 32px; } }
.brand img { width: auto; height: 38px; transition: transform 600ms var(--ease-out); }
.brand:hover img { transform: rotate(-8deg) scale(1.05); }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  position: relative;
  text-decoration: none;
  font-weight: 560;
  color: var(--ink-soft);
  transition: color var(--t-hover) ease;
}
.nav a:not(.nav__phone)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 380ms var(--ease-out);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  background: var(--ground-4);
  color: var(--ink) !important;
  font-variant-numeric: tabular-nums;
  transition: background-color var(--t-hover) ease;
}
.nav__phone:hover { background: var(--accent); color: var(--on-accent) !important; }

.menu-btn {
  display: none;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 4px;
  background: none;
  border: 0;
  cursor: pointer;
  font-weight: 650;
}
.menu-btn__bars,
.menu-btn__bars::before {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  transition: transform var(--t-ui) var(--ease-out);
}
.menu-btn__bars { position: relative; transform: translateY(-4px); }
.menu-btn__bars::before { content: ""; position: absolute; top: 8px; }
.menu-btn[aria-expanded="true"] .menu-btn__bars { transform: translateY(0) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__bars::before { transform: translateY(-8px) rotate(-90deg); }

@media (max-width: 900px) {
  .menu-btn { display: inline-flex; }
  .nav {
    position: fixed;
    inset: 76px 0 auto;
    height: calc(100svh - 76px);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 24px var(--margin) 40px;
    background: var(--ground);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity var(--t-ui) var(--ease-out), transform var(--t-ui) var(--ease-out), visibility 0s linear var(--t-ui);
  }
  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity var(--t-ui) var(--ease-out), transform var(--t-ui) var(--ease-out);
  }
  .nav a {
    padding: 14px 0;
    font-size: 2rem;
    font-weight: 800;
    font-variation-settings: "wdth" 112;
    text-transform: uppercase;
    color: var(--ink);
  }
  .nav a::after { display: none; }
  .nav__phone { margin-top: auto; justify-content: center; font-size: 1.1rem !important; padding: 18px !important; }
  .site-header.menu-open { background: var(--ground); }
}

/* =========================================================
   BANNER
   ========================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--ground);
  isolation: isolate;
}

/* foto do depósito como atmosfera, bem escura */
.hero__bg {
  position: absolute;
  inset: -6%;
  z-index: -3;
  will-change: transform;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
  filter: grayscale(0.55) contrast(1.1) brightness(0.7);
}
.hero__bg::after {
  /* vinheta: segura o texto e escurece as bordas */
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 68% 50%, transparent 0%, rgba(14, 15, 17, 0.55) 60%, var(--ground) 100%),
    linear-gradient(90deg, var(--ground) 0%, rgba(14, 15, 17, 0.7) 38%, transparent 70%);
}

/* luz de recorte atrás do produto */
.hero__light {
  position: absolute;
  z-index: -2;
  top: 4%;
  right: -4%;
  width: min(1100px, 80vw);
  aspect-ratio: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 236, 214, 0.17) 0%, rgba(233, 145, 63, 0.08) 28%, transparent 62%);
  will-change: transform, opacity;
}

.hero__dust {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero__grid {
  position: relative;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  grid-template-rows: 1fr auto 1fr;
  grid-template-areas:
    ". stage"
    "title stage"
    "copy stage";
  column-gap: 2vw;
  padding-top: 96px;
}

.hero__title {
  grid-area: title;
  position: relative;
  z-index: 4;
  font-size: clamp(2.8rem, 6.4vw, 6.7rem);
  line-height: 0.84;
  letter-spacing: -0.035em;
  font-variation-settings: "wdth" 108;
}
.hero__title .line { display: block; overflow: hidden; padding: 0 0.12em 0.04em 0; margin-right: -0.12em; }
.hero__title .line > span { display: block; }
.hero__title .line + .line > span { color: var(--mineral); }

.hero__copy {
  grid-area: copy;
  position: relative;
  z-index: 4;
  max-width: 560px;
  padding-top: clamp(20px, 2.4vw, 32px);
}
.hero__lead {
  font-size: var(--step-h3);
  font-weight: 650;
  font-variation-settings: "wdth" 104;
  line-height: 1.25;
}
.hero__sub {
  margin-top: 14px;
  color: var(--ink-soft);
  max-width: 46ch;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* ---- palco do produto ---- */
.hero__stage {
  grid-area: stage;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2.4vh, 26px);
  touch-action: pan-y;          /* rolagem vertical continua; o gesto horizontal troca o cimento */
  user-select: none;
  perspective: 1600px;
  perspective-origin: 50% 40%;
  min-height: 0;
}
.rig {
  position: relative;
  height: min(62svh, 720px);
  aspect-ratio: 664 / 1100;
  transform-style: preserve-3d;
  will-change: transform;
}

/* sacos de fundo, desfocados: profundidade de campo */
.rig__back {
  position: absolute;
  bottom: 6%;
  width: 72%;
  pointer-events: none;
  will-change: transform;
}
.rig__back img { width: 100%; height: auto; filter: blur(5px) brightness(0.32) saturate(0.7); }
.rig__back--l img, .rig__back--r img { max-height: 62svh; object-fit: contain; object-position: bottom; }
.rig__back--l { left: -52%; transform: translateZ(-260px) rotateY(18deg); }
.rig__back--r { right: -56%; bottom: 10%; width: 66%; transform: translateZ(-380px) rotateY(-16deg); }

/* sombra de contato no chão */
.rig__floor {
  position: absolute;
  left: 50%;
  bottom: -2.5%;
  width: 115%;
  height: 9%;
  translate: -50% 0;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.45) 55%, transparent);
  filter: blur(6px);
  animation: floor 7s ease-in-out infinite;
}

.bag {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  animation: float 7s ease-in-out infinite;
}
.bag__enter { position: absolute; inset: 0; transform-style: preserve-3d; }
.bag__turn { position: absolute; inset: 0; transform-style: preserve-3d; will-change: transform; }
@media (hover: hover) and (pointer: fine) {
  .rig { cursor: grab; }
  .hero__stage.is-dragging .rig { cursor: grabbing; }
}
.bag__img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: 50% 100%;
  user-select: none;
  -webkit-user-drag: none;
}
/* sombra projetada: a própria silhueta, escurecida e difusa */
.bag__shadow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: 50% 100%;
  filter: brightness(0) blur(26px);
  opacity: 0.7;
  transform: translate3d(var(--sx, 18px), 34px, -40px) scale(0.97);
  will-change: transform;
}
/* luz especular que acompanha o mouse, recortada pela silhueta do saco */
.bag__light {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  /* a máscara segue o mesmo encaixe da imagem (contain, alinhada embaixo); o JS troca a imagem */
  -webkit-mask: url("../img/saco-csn-cp2e32.webp") 50% 100% / contain no-repeat;
  mask: url("../img/saco-csn-cp2e32.webp") 50% 100% / contain no-repeat;
  mix-blend-mode: soft-light;
}
/* faixa de luz que atravessa a embalagem quando um cimento chega */
.bag__sweep {
  position: absolute;
  inset: -10% -60%;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.95) 50%, transparent 62%);
  transform: translateX(-120%);
  pointer-events: none;
}
.bag__light::before {
  /* volume: laterais mais escuras, como uma embalagem cheia */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.55) 0%, transparent 22%, transparent 66%, rgba(0, 0, 0, 0.6) 100%),
              linear-gradient(180deg, rgba(255, 255, 255, 0.25) 0%, transparent 18%, transparent 82%, rgba(0, 0, 0, 0.5) 100%);
}
.bag__light span {
  position: absolute;
  left: -50%;
  top: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.25) 16%, transparent 34%);
  transform: translate3d(var(--lx, -10%), var(--ly, -14%), 0);
  will-change: transform;
}

/* ---- seletor de cimentos do banner ---- */
.picker {
  position: relative;
  z-index: 4;
  width: min(100%, 470px);
}
.picker[hidden] { display: none; }
.picker__row { display: flex; align-items: center; gap: 14px; }
.picker__btn {
  flex: none;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 0;
  background: var(--ground-4);
  color: var(--ink);
  cursor: pointer;
  transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.picker__btn svg { width: 20px; height: 20px; transition: transform var(--t-ui) var(--ease-out); }
.picker__btn:hover { background: var(--accent); color: var(--on-accent); }
.picker__btn:hover svg { transform: translateX(var(--nudge, 3px)); }
.picker__btn[data-dir="-1"] { --nudge: -3px; }
.picker__btn:active { transform: scale(0.92); }
.picker__info { flex: 1; min-width: 0; text-align: center; }
.picker__name {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 1.05rem;
  font-weight: 800;
  font-variation-settings: "wdth" 110;
  text-transform: uppercase;
  letter-spacing: -0.005em;
}
.picker__meta { display: block; margin-top: 2px; color: var(--ink-soft); font-size: var(--step-small); }
.picker__bar { display: flex; gap: 6px; margin-top: 14px; }
.picker__bar button {
  position: relative;
  flex: 1;
  height: 22px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.picker__bar button::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 4px;
  translate: 0 -50%;
  background: var(--ground-4);
  transition: background-color var(--t-hover) ease, height var(--t-hover) ease;
}
.picker__bar button:hover::before { background: var(--mineral); height: 6px; }
.picker__bar button[aria-current="true"]::before { background: var(--accent); height: 6px; }
.picker__hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: var(--step-small);
  transition: opacity 600ms ease;
}
.picker__hint svg { width: 18px; height: 18px; }
.picker.is-used .picker__hint { opacity: 0; }

@keyframes float {
  0%, 100% { transform: translate3d(0, 0, 0) rotateZ(-0.6deg) rotateY(-3deg); }
  50% { transform: translate3d(0, -2.2%, 30px) rotateZ(0.5deg) rotateY(3deg); }
}
@keyframes floor {
  0%, 100% { transform: scaleX(1); opacity: 1; }
  50% { transform: scaleX(0.86); opacity: 0.7; }
}

.hero__facts {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: 8px clamp(28px, 5vw, 80px);
  padding-top: 24px;
  padding-bottom: 28px;
  color: var(--ink-soft);
  font-size: var(--step-small);
}
.hero__facts strong {
  display: block;
  color: var(--ink);
  font-size: 1.35rem;
  font-weight: 800;
  font-variation-settings: "wdth" 112;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

/* ---- entrada cinematográfica (só com JS e sem redução de movimento) ---- */
@media (prefers-reduced-motion: no-preference) {
  .js .hero__title .line > span { transform: translateY(108%); }
  .js [data-intro],
  .js .hero__bg,
  .js .hero__light,
  .js .bag__enter,
  .js .rig__back,
  .js .rig__floor { opacity: 0; }

  .js.hero-ready .hero__bg { animation: bg-in 2.4s var(--ease-soft) both; }
  .js.hero-ready .hero__light { animation: fade-in 1.6s ease 0.35s both; }
  .js.hero-ready .bag__enter { animation: bag-in 1.9s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both; }
  .js.hero-ready .rig__floor { animation: floor-in 1.6s var(--ease-out) 0.55s both, floor 7s ease-in-out 2.2s infinite; }
  .js.hero-ready .rig__back--l { animation: back-in-l 1.8s var(--ease-out) 0.7s both; }
  .js.hero-ready .rig__back--r { animation: back-in-r 1.8s var(--ease-out) 0.85s both; }
  .js.hero-ready .hero__title .line > span { animation: line-up 1.1s var(--ease-out) both; }
  .js.hero-ready .hero__title .line:nth-child(1) > span { animation-delay: 0.55s; }
  .js.hero-ready .hero__title .line:nth-child(2) > span { animation-delay: 0.68s; }
  .js.hero-ready .site-header[data-intro] { animation: drop-in 0.9s var(--ease-out) 0.3s both; }
  .js.hero-ready .hero__lead[data-intro] { animation: rise 0.9s var(--ease-out) 0.95s both; }
  .js.hero-ready .hero__sub[data-intro] { animation: rise 0.9s var(--ease-out) 1.03s both; }
  .js.hero-ready .hero__actions[data-intro] { animation: rise 0.9s var(--ease-out) 1.12s both; }
  .js.hero-ready .hero__facts[data-intro] { animation: rise 0.9s var(--ease-out) 1.3s both; }
  .js.hero-ready .picker[data-intro] { animation: rise 0.9s var(--ease-out) 1.45s both; }
}

@keyframes bg-in {
  from { opacity: 0; transform: scale(1.14); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
/* o saco vem do fundo da tela em direção ao visitante, passa um pouco e assenta */
@keyframes bag-in {
  0% { opacity: 0; transform: translate3d(-4%, 10%, -1100px) rotateY(-38deg) rotateX(10deg) rotateZ(-4deg); filter: blur(16px) brightness(0.3); }
  45% { opacity: 1; filter: blur(0) brightness(0.95); }
  72% { transform: translate3d(0, -1%, 90px) rotateY(5deg) rotateX(-1deg) rotateZ(0.6deg); filter: blur(0) brightness(1.04); }
  100% { opacity: 1; transform: translate3d(0, 0, 0) rotateY(0) rotateX(0) rotateZ(0); filter: none; }
}
@keyframes floor-in {
  from { opacity: 0; transform: scaleX(0.3); }
  to { opacity: 1; transform: scaleX(1); }
}
@keyframes back-in-l {
  from { opacity: 0; transform: translate3d(30%, 0, -600px) rotateY(30deg); }
  to { opacity: 1; transform: translateZ(-260px) rotateY(18deg); }
}
@keyframes back-in-r {
  from { opacity: 0; transform: translate3d(-30%, 0, -700px) rotateY(-30deg); }
  to { opacity: 1; transform: translateZ(-380px) rotateY(-16deg); }
}
@keyframes line-up { from { transform: translateY(108%); } to { transform: translateY(0); } }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes drop-in { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: none; } }

/* ---- banner: tablet e celular ---- */
@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    grid-template-areas: "title" "stage" "copy";
    padding-top: 100px;
  }
  .hero__title { text-align: left; }
  .hero__stage { margin-top: -2vh; padding-block: 3vh 1vh; }
  .rig { height: min(50svh, 520px); }
  .rig__back--l img, .rig__back--r img { max-height: 50svh; }
  .rig__back--l { left: -46%; }
  .rig__back--r { right: -48%; }
  .hero__copy { padding-top: 12px; }
  .hero__facts { grid-template-columns: repeat(3, 1fr); gap: 8px 16px; }
  .hero__facts strong { font-size: 1.1rem; }
  .hero__light { right: auto; left: 50%; translate: -50% 0; top: 14%; width: 140vw; }
  .hero__bg::after {
    background: radial-gradient(ellipse 90% 60% at 50% 45%, transparent 0%, rgba(14, 15, 17, 0.6) 60%, var(--ground) 100%);
  }
}
@media (max-width: 520px) {
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__facts { font-size: 0.8125rem; }
  .hero__facts strong { font-size: 1rem; }
  .rig { height: min(46svh, 440px); }
  .rig__back--l img, .rig__back--r img { max-height: 46svh; }
  .picker__btn { width: 46px; height: 46px; }
  .picker__name { font-size: 0.95rem; }
}

/* =========================================================
   REVELAÇÃO AO ROLAR
   ========================================================= */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 800ms var(--ease-out), transform 1000ms var(--ease-out);
    transition-delay: var(--d, 0ms);
  }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
}

/* =========================================================
   PRODUTOS — campo claro de cimento
   ========================================================= */
.products {
  position: relative;
  background: var(--paper);
  color: var(--ink-dark);
  padding-top: var(--section);
  padding-bottom: var(--section);
}
.products__head {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: end;
  gap: 24px 6vw;
  margin-bottom: clamp(48px, 7vw, 110px);
}
.products__head p { max-width: 38ch; font-size: var(--step-h3); line-height: 1.35; color: var(--ink-dark); }

.products__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 6vw;
  align-items: start;
}

/* palco fixo: o saco ativo, grande */
.pstage {
  position: sticky;
  top: 12svh;
  height: 76svh;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1400px;
  overflow: hidden;
  background: var(--paper-2);
  container-type: inline-size;
}
.pstage__brand {
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  translate: 0 -50%;
  text-align: center;
  /* o nome da marca ocupa a largura do palco, qualquer que seja o tamanho */
  font-size: min(11rem, calc(112cqi / var(--chars, 3)));
  font-weight: 900;
  font-variation-settings: "wdth" 125;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--paper-3);
  white-space: nowrap;
  transition: opacity 500ms ease, transform 900ms var(--ease-out);
}
.pstage__brand.is-swapping { opacity: 0; transform: translateY(14px); }
.pstage__rig {
  position: relative;
  height: 74%;
  aspect-ratio: 0.62;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 700ms var(--ease-out);
}
.pstage__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 28px 28px rgba(19, 20, 22, 0.28)) drop-shadow(0 6px 6px rgba(19, 20, 22, 0.18));
  opacity: 0;
  transform: translate3d(14%, 0, -160px) rotateY(-32deg);
  transition: opacity 600ms ease, transform 900ms var(--ease-out);
}
.pstage__img.is-on { opacity: 1; transform: none; }
.pstage__img.is-off { opacity: 0; transform: translate3d(-14%, 0, -160px) rotateY(28deg); transition-duration: 450ms, 650ms; }
.pstage__floor {
  position: absolute;
  bottom: 11%;
  left: 50%;
  width: 46%;
  height: 4%;
  translate: -50% 0;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(19, 20, 22, 0.42), transparent);
  filter: blur(4px);
}

.plist { display: flex; flex-direction: column; }
.product {
  padding-block: clamp(36px, 6vh, 64px);
  transition: opacity 500ms ease;
}
.product + .product { margin-top: 6px; }
.product__thumb { display: none; }
.product h3 {
  font-size: clamp(1.6rem, 2.6vw, 2.5rem);
  font-weight: 820;
  font-variation-settings: "wdth" 112;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 0.98;
}
.product__meta {
  margin-top: 10px;
  color: var(--ink-dark-soft);
  font-weight: 600;
}
.product__body > p:not(.product__meta):not(.product__min) { margin-top: 18px; max-width: 46ch; }
.product__min {
  display: inline-flex;
  margin-top: 18px;
  padding: 10px 14px;
  background: var(--paper-2);
  font-weight: 650;
  font-size: 0.9375rem;
}
.product__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  margin-top: 24px;
}

@media (min-width: 901px) {
  .js .plist.has-active .product:not(.is-active) { opacity: 0.38; }
  .js .plist.has-active .product:not(.is-active):hover,
  .js .plist.has-active .product:not(.is-active):focus-within { opacity: 0.8; }
}

@media (max-width: 900px) {
  .products__head { grid-template-columns: 1fr; }
  .products__body { grid-template-columns: 1fr; }
  .pstage { display: none; }
  .product {
    display: grid;
    grid-template-columns: 30% 1fr;
    column-gap: 18px;
    align-items: start;
    padding-block: 32px;
  }
  /* miniatura à esquerda do texto; selo e botões ocupam a largura toda */
  .product__body { display: contents; }
  .product__thumb { grid-column: 1; grid-row: 1 / 4; }
  .product h3, .product__meta, .product__body > p:not(.product__meta):not(.product__min) { grid-column: 2; }
  .product__min, .product__actions { grid-column: 1 / -1; }
  .product__min { justify-self: start; }
  .product + .product { margin-top: 0; border-top: 0; }
  .product:nth-child(even) { background: var(--paper-2); margin-inline: calc(var(--margin) * -1); padding-inline: var(--margin); }
  .product:nth-child(even) .product__min { background: var(--paper-3); }
  .product__thumb {
    display: block;
    width: 100%;
    height: auto;
    max-height: 230px;
    object-fit: contain;
    object-position: top center;
    filter: drop-shadow(0 14px 14px rgba(19, 20, 22, 0.25));
  }
  .product h3 { font-size: 1.2rem; }
  .product__body > p:not(.product__meta):not(.product__min) { margin-top: 12px; }
  .product__actions .btn { flex: 1 1 100%; }
}

/* =========================================================
   QUEM SOMOS — painel embutido, foto vista pela marca
   ========================================================= */
.about { padding: clamp(10px, 1.6vw, 20px); background: var(--ground); }
.about__panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 4vw;
  min-height: 100svh;
  padding: clamp(56px, 7vw, 110px) clamp(24px, 5vw, 80px) 0;
  background: var(--ground-2);
  overflow: hidden;
}
.about__left { display: flex; flex-direction: column; }
.about__statement {
  margin-top: 28px;
  max-width: 22ch;
  font-size: clamp(1.4rem, 2.4vw, 2.25rem);
  font-weight: 600;
  font-variation-settings: "wdth" 104;
  line-height: 1.2;
  color: var(--ink-soft);
}
/* a foto do depósito vista através do símbolo da Ibitirama */
.about__mark {
  position: relative;
  margin-top: auto;
  margin-bottom: -4%;
  width: min(40vw, 620px);
  aspect-ratio: 202 / 196;
  -webkit-mask: url("../img/marca-mascara.png") left bottom / contain no-repeat;
  mask: url("../img/marca-mascara.png") left bottom / contain no-repeat;
}
.about__mark img {
  position: absolute;
  inset: -12% 0;
  width: 100%;
  height: 124%;
  object-fit: cover;
  object-position: 60% 50%;
  will-change: transform;
}
.about__right {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding-top: clamp(8px, 2vw, 24px);
  padding-bottom: clamp(56px, 7vw, 110px);
  max-width: 520px;
}
.about__right p { color: var(--ink); }
.about__right strong { font-weight: 750; }
.about__brands {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin-top: 18px;
  font-size: clamp(2rem, 3.6vw, 3.4rem);
  font-weight: 900;
  font-variation-settings: "wdth" 125;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--mineral);
}
.about__brands li { transition: color var(--t-hover) ease, transform 400ms var(--ease-out); }
.about__brands li:hover { color: var(--accent); transform: translateY(-3px); }

@media (max-width: 900px) {
  .about__panel { grid-template-columns: 1fr; min-height: 0; padding-top: 56px; }
  .about__left { display: contents; }
  .about__left h2 { order: 1; }
  .about__statement { order: 2; }
  .about__right { order: 3; padding-bottom: 32px; }
  .about__mark { order: 4; width: 86vw; margin: 8px auto -10%; }
}

/* =========================================================
   NÚMEROS — figura sobre a borda da foto
   ========================================================= */
.proof { background: var(--ground); padding-bottom: var(--section); }
.proof__frame {
  position: relative;
  height: 90svh;
  min-height: 560px;
  overflow: hidden;
  isolation: isolate;
}
.proof__media { position: absolute; inset: 0; z-index: -2; }
.proof__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(var(--ps, 1.15));
  will-change: transform;
}
.proof__frame::after {
  /* escurecimento neutro só na faixa inferior, para a leitura */
  content: "";
  position: absolute;
  inset: 45% 0 0;
  z-index: -1;
  background: linear-gradient(180deg, transparent, rgba(10, 11, 12, 0.82));
}
.proof__frame::before {
  content: "";
  position: absolute;
  inset: 0 0 70%;
  z-index: -1;
  background: linear-gradient(0deg, transparent, rgba(10, 11, 12, 0.55));
}
.proof__title {
  position: absolute;
  top: clamp(24px, 4vw, 48px);
  left: var(--margin);
  max-width: 14ch;
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  line-height: 1;
}
.proof__figure {
  position: absolute;
  left: var(--margin);
  bottom: 0;
  font-size: clamp(5.5rem, 17vw, 17.5rem);
  font-weight: 900;
  font-variation-settings: "wdth" 118;
  letter-spacing: -0.05em;
  line-height: 0.74;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  translate: 0 0.02em;
}
.proof__unit { font-size: 0.42em; letter-spacing: -0.03em; }
.proof__caption {
  position: absolute;
  right: var(--margin);
  bottom: clamp(24px, 3vw, 40px);
  max-width: 26ch;
  text-align: right;
  font-size: 1.125rem;
  font-weight: 560;
}
.proof__more {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding-top: clamp(48px, 5vw, 72px);
}
.proof__more strong {
  display: block;
  font-size: clamp(2rem, 3.2vw, 2.9rem);
  font-weight: 850;
  font-variation-settings: "wdth" 115;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 1;
}
.proof__more span { display: block; margin-top: 10px; color: var(--ink-soft); }

@media (max-width: 760px) {
  .proof__frame { height: 80svh; min-height: 480px; }
  .proof__caption { left: var(--margin); right: auto; bottom: calc(23vw + 24px); text-align: left; font-size: 1rem; }
  .proof__figure { font-size: 25vw; white-space: nowrap; }
  .proof__more { grid-template-columns: 1fr; gap: 28px; }
}

/* =========================================================
   CONTATO + MONTADOR DE PEDIDO
   ========================================================= */
.contact { background: var(--ground-2); padding-block: var(--section); }
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 6vw;
  align-items: start;
}
.contact__info h2 { margin-bottom: clamp(36px, 4vw, 56px); }
.place { padding-block: 26px; }
.place + .place { margin-top: 4px; }
.place h3 { margin-bottom: 12px; }
.place p { color: var(--ink); font-size: 1.125rem; line-height: 1.5; }
.place .link { display: inline-block; margin-top: 12px; color: var(--accent); }
.quick { margin-top: 28px; padding: 28px; background: var(--ground-3); }
.quick h3 { margin-bottom: 14px; }
.quick p { display: flex; align-items: center; gap: 12px; font-size: 1.125rem; font-variant-numeric: tabular-nums; }
.quick p + p { margin-top: 10px; }
.quick a { text-decoration: none; }
.quick a:hover { color: var(--accent); }
.quick svg { color: var(--mineral); }

.order {
  position: sticky;
  top: 100px;
  display: grid;
  grid-template-columns: 38% minmax(0, 1fr);
  background: var(--paper);
  color: var(--ink-dark);
  overflow: hidden;
}
.order__visual {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: var(--paper-2);
  padding: 28px 12px 0;
  perspective: 900px;
}
.order__bag {
  width: 100%;
  max-height: 440px;
  object-fit: contain;
  object-position: bottom;
  margin-bottom: -8%;
  filter: drop-shadow(0 22px 22px rgba(19, 20, 22, 0.3));
  transform-origin: 50% 100%;
  transition: transform 500ms var(--ease-out), opacity 300ms ease;
}
.order__bag.is-swapping { opacity: 0; transform: translateY(24px) rotateY(-24deg); }
.order__fields { padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 20px; }
.order__fields h3 { font-size: clamp(1.4rem, 2vw, 1.8rem); font-weight: 820; font-variation-settings: "wdth" 112; text-transform: uppercase; line-height: 1; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field > span,
.field > label { font-weight: 650; font-size: 0.9375rem; }
.field select,
.field > input,
.stepper input {
  width: 100%;
  min-width: 0;
  min-height: 52px;
  border: 0;
  border-radius: 0;
  background: #fff;
  color: var(--ink-dark);
  padding: 0 14px;
  font-weight: 600;
  outline-offset: 0;
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23131416' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  padding-right: 44px;
  cursor: pointer;
}
.field > input { font-size: 1.125rem; letter-spacing: 0.02em; font-variant-numeric: tabular-nums; }
.field > input::placeholder { color: #9a9b98; }
.field > input[aria-invalid="true"] { box-shadow: inset 0 0 0 2px #b4321f; }
.field__info { min-height: 1.3em; font-size: 0.875rem; font-weight: 600; color: var(--ink-dark-soft); }
.field__info.is-ok { color: #2f6b34; }
.field__info.is-error { color: #b4321f; }
.stepper { display: grid; grid-template-columns: 52px 1fr 52px; }
.stepper button {
  min-height: 52px;
  border: 0;
  background: var(--ink-dark);
  color: var(--ink);
  font-size: 1.4rem;
  cursor: pointer;
  transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.stepper button:hover { background: #2b2d31; }
.stepper button:active { transform: scale(0.94); }
.stepper input { text-align: center; font-size: 1.25rem; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.order__total { display: block; }
.order__total strong {
  display: block;
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-weight: 900;
  font-variation-settings: "wdth" 118;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.order__total span { display: block; margin-top: 6px; color: var(--ink-dark-soft); font-weight: 600; }
.order__total.bump strong { animation: bump 380ms var(--ease-out); }
@keyframes bump { 0% { transform: translateY(6px); opacity: 0.4; } 100% { transform: none; opacity: 1; } }
.order__note { font-size: 0.9375rem; color: var(--ink-dark-soft); }

@media (max-width: 900px) {
  .contact__grid { grid-template-columns: 1fr; gap: 56px; }
  .order { position: relative; top: 0; grid-template-columns: minmax(0, 1fr); }
  .order__visual { height: 240px; padding-top: 24px; overflow: hidden; }
  .order__bag { height: 118%; width: auto; max-height: none; margin-bottom: -18%; }
}

/* =========================================================
   RODAPÉ
   ========================================================= */
.footer { background: var(--ground); padding-top: clamp(72px, 8vw, 120px); overflow: hidden; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.footer__brand img { width: 200px; height: auto; }
.footer__nav { display: flex; flex-direction: column; gap: 10px; }
.footer__nav a {
  font-size: 1.35rem;
  font-weight: 800;
  font-variation-settings: "wdth" 112;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 300ms var(--ease-out), color var(--t-hover) ease;
}
.footer__nav:hover a { color: var(--mineral); }
.footer__nav a:hover { color: var(--ink); transform: translateX(10px); }
.footer__col h4 { font-size: 1rem; font-weight: 750; margin-bottom: 12px; }
.footer__col p { color: var(--ink-soft); }
.footer__col p + p { margin-top: 6px; }
.footer__col a { text-decoration: none; transition: color var(--t-hover) ease; }
.footer__col a:hover { color: var(--accent); }
.footer__word {
  margin-top: clamp(56px, 7vw, 100px);
  font-size: 16.2vw;
  font-weight: 900;
  font-variation-settings: "wdth" 112;
  text-transform: uppercase;
  letter-spacing: -0.05em;
  line-height: 0.72;
  text-align: center;
  white-space: nowrap;
  color: var(--ground-3);
  user-select: none;
  translate: 0 0.08em;
}
.footer__legal {
  position: relative;
  padding-block: 22px;
  background: var(--ground);
  color: var(--mineral);
  font-size: var(--step-small);
}
@media (max-width: 900px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__brand img { width: 160px; }
}
@media (max-width: 480px) {
  .footer__grid { grid-template-columns: 1fr; }
}

/* =========================================================
   BOTÃO FLUTUANTE DO WHATSAPP
   ========================================================= */
.fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.8);
  transition: opacity 300ms ease, transform 400ms var(--ease-out), visibility 0s linear 400ms, background-color var(--t-hover) ease;
}
.fab svg { width: 28px; height: 28px; }
.fab.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 300ms ease, transform 400ms var(--ease-out), background-color var(--t-hover) ease;
}
.fab:hover { background: var(--accent-hi); }
.fab:active { transform: scale(0.92); }

/* =========================================================
   MOVIMENTO REDUZIDO
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .bag, .rig__floor { animation: none !important; }
  .hero__dust { display: none; }
}
