/* Aços Metrópole
   Paleta da marca: laranja (logo), branco e cinza grafite (logo), com brilho de forja.
   Tipos: Big Shoulders (títulos) e Schibsted Grotesk (texto), ambos SIL OFL, servidos daqui. */
@font-face {
  font-family: "Big Shoulders"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(../fonts/big-shoulders-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Big Shoulders"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(../fonts/big-shoulders-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url(../fonts/schibsted-grotesk-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url(../fonts/schibsted-grotesk-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --paper: #ECEDED;      /* cinza-claro, fundo das seções claras */
  --sheet: #F8F8F7;      /* branco de folha */
  --ink: #1D1E21;        /* grafite */
  --steel: #5C5F65;      /* texto secundário */
  --rule: #CDCFD1;
  --signal: #F5732A;     /* laranja de forja, da logo */
  --signal-hover: #FF8442;
  --signal-press: #E0601A;
  --glow: #FFB37A;       /* laranja claro, metal aquecido */
  --heat: linear-gradient(90deg, rgba(90,26,10,0) 0%, #8A2A0C 14%, #E0601A 32%, #FFB37A 46%, #FFF3E6 50%, #FFB37A 54%, #E0601A 68%, #8A2A0C 86%, rgba(90,26,10,0) 100%); /* aço aquecendo */
  --forge: #1F2023;      /* grafite, seções escuras */
  --forge-2: #2A2B2F;
  --night: #111113;
  --on-forge: #F2F2F0;
  --on-forge-muted: #A3A6AB;

  --wrap: 1320px;
  --gutter: clamp(16px, 3.2vw, 40px);
  --header-h: 72px;
  --radius: 3px;

  --f: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --f-d: "Big Shoulders", "Arial Narrow", Impact, sans-serif;
  --ease-out: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 720; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2.5px solid var(--signal); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--signal); color: var(--ink); }

.sr, .defs { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 14px; text-decoration: none; }
.skip:focus { top: 12px; }

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

/* ---------- Tipografia ---------- */
h2 {
  font-family: var(--f-d);
  font-size: clamp(2.6rem, 4.9vw, 4.8rem);
  line-height: .92;
  letter-spacing: -0.005em;
  font-weight: 800;
  text-wrap: balance;
}
h3 { font-size: 1.18rem; line-height: 1.25; letter-spacing: -0.01em; font-weight: 680; }
.lede { font-size: clamp(1.05rem, 1.25vw, 1.18rem); color: var(--steel); max-width: 34em; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 46px; padding: 0 20px;
  border: 1.5px solid transparent; border-radius: var(--radius);
  font-weight: 650; font-size: 1rem; letter-spacing: 0;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .16s var(--ease-out), background-color .16s, border-color .16s, color .16s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); transition-duration: .05s; }
.btn-lg { min-height: 54px; padding: 0 26px; font-size: 1.05rem; }
.btn-primary { background: var(--signal); color: var(--ink); }
.btn-primary:hover { background: var(--signal-hover); }
.btn-primary:active { background: var(--signal-press); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: #2A2B2F; }

.link-btn {
  padding: 0; border: 0; background: none; cursor: pointer;
  font-weight: 650; font-size: .95rem; color: var(--ink);
  background-image: linear-gradient(var(--signal), var(--signal));
  background-size: 100% 2px; background-position: 0 100%; background-repeat: no-repeat;
  padding-bottom: 3px;
  transition: background-size .2s var(--ease-out);
}
.link-btn:hover { background-size: 100% 100%; }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--header-h);
  color: var(--ink);
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(1.2) blur(12px);
  -webkit-backdrop-filter: saturate(1.2) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, background-color .35s, color .35s;
}
.site-header.is-scrolled { border-bottom-color: var(--rule); }
.site-header.on-hero { background: transparent; color: var(--on-forge); border-bottom-color: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.header-row { height: 100%; display: flex; align-items: center; gap: 32px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand img { width: 34px; height: auto; }
.brand-name { font-family: var(--f-d); font-weight: 800; font-size: 1.5rem; letter-spacing: .01em; line-height: 1; }
.nav { display: flex; gap: 28px; }
.nav a {
  text-decoration: none; font-weight: 560; font-size: .98rem; padding: 6px 0;
  background-image: linear-gradient(currentColor, currentColor); background-size: 0 1.5px; background-position: 0 100%; background-repeat: no-repeat;
  transition: background-size .2s var(--ease-out);
}
.nav a:hover { background-size: 100% 1.5px; }
.header-cta { min-height: 42px; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; padding: 0; }
.menu-toggle .bars, .menu-toggle .bars::before, .menu-toggle .bars::after {
  display: block; width: 22px; height: 2px; background: currentColor; margin: auto; position: relative; transition: transform .2s;
}
.menu-toggle .bars::before, .menu-toggle .bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle .bars::before { top: -7px; }
.menu-toggle .bars::after { top: 7px; }
.menu-toggle[aria-expanded="true"] .bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }

.norms {
  display: flex; align-items: baseline; gap: 12px 28px; flex-wrap: wrap;
  padding-top: 24px; padding-bottom: 26px;
  border-top: 1px solid var(--rule);
}
.norms p { color: var(--steel); font-size: .95rem; }
.norms ul { display: flex; flex-wrap: wrap; gap: 8px 34px; list-style: none; margin: 0; padding: 0; }
.norms li { font-family: var(--f-d); font-weight: 700; font-size: 1.45rem; letter-spacing: .02em; line-height: 1.1; }

/* ---------- Seções ---------- */
.section { padding-block: clamp(72px, 10vw, 128px); }
.section-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px 56px; align-items: end; margin-bottom: 48px; }
.section-head p { color: var(--steel); max-width: 36em; }

/* ---------- Desenho técnico ---------- */
.drawing { width: 100%; height: auto; overflow: visible; }
.hatch-line { stroke: #6E7176; stroke-width: .8; }
.drawing .m { fill: url(#hatch); stroke: var(--ink); stroke-width: 1.3; stroke-linejoin: round; }
.drawing .m-b { fill: url(#hatch-b); }
.drawing .hole { fill: var(--sheet); stroke: var(--ink); stroke-width: 1.3; }
.drawing .w { fill: var(--ink); }
.drawing .ln { fill: none; stroke: var(--ink); stroke-width: 1.3; }
.drawing .weld { fill: var(--ink); }
.drawing .ph { fill: none; stroke: #8E9196; stroke-width: 1; stroke-dasharray: 7 3; }
.drawing .cl { fill: none; stroke: var(--signal); stroke-width: 1.1; stroke-dasharray: 16 3 2 3; }

/* ---------- Flanges: folha de desenho ---------- */
.flanges { background: var(--paper); }
.sheet {
  position: relative; background: var(--sheet);
  border: 1.5px solid var(--ink);
  box-shadow: inset 0 0 0 7px var(--sheet), inset 0 0 0 8px var(--ink);
  padding: 8px;
}
.sheet-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.part {
  padding: 28px 32px 32px; display: flex; flex-direction: column; gap: 10px;
  border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}
.part:nth-child(3n) { border-right: 0; }
.part:nth-last-child(-n+3) { border-bottom: 0; }
.part .drawing { max-width: 300px; margin: 0 auto 10px; transition: transform .35s var(--ease-out); }
.part:hover .drawing { transform: scale(1.03); }
.part h3 span { display: block; font-weight: 500; font-size: .92rem; color: var(--steel); letter-spacing: 0; margin-top: 2px; font-variation-settings: "wdth" 100; }
.part p { color: var(--steel); font-size: .98rem; flex: 1; }
.part .link-btn { align-self: flex-start; margin-top: 6px; }

.title-block {
  margin: 8px 0 0 auto; border-collapse: collapse; font-size: .92rem; min-width: min(100%, 420px);
  border: 1.5px solid var(--ink);
}
.title-block th, .title-block td { border: 1px solid var(--ink); padding: 8px 14px; text-align: left; vertical-align: top; }
.title-block th { font-weight: 560; color: var(--steel); width: 1%; white-space: nowrap; }
.title-block td { font-weight: 650; font-feature-settings: "tnum"; }

/* ---------- Fotos (entram quando o arquivo existe) ---------- */
.photo { position: relative; overflow: hidden; background: #D3D4D5; }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-out); }
.part.has-photo { padding-top: 8px; }
.part.has-photo .photo { aspect-ratio: 4 / 3; margin: 0 -24px 6px; }
.part.has-photo:hover .photo img { transform: scale(1.025); }
.part.has-photo .drawing { /* o corte técnico vira um detalhe no canto da foto */
  position: absolute; top: 18px; right: 18px; width: 92px; margin: 0;
  background: var(--sheet); border: 1px solid var(--ink); padding: 4px;
}
.part.has-photo:hover .drawing { transform: none; }
.part { position: relative; }
.fitting-panel.has-photo { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; align-items: center; }
.fitting-panel.has-photo .photo { aspect-ratio: 4 / 5; border-radius: var(--radius); }

/* ---------- Aplicações ---------- */
.uses { background: var(--paper); }
.uses-grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px;
  grid-template-areas:
    "a a a a a c c c c c c c"
    "a a a a a c c c c c c c"
    "a a a a a b b b d d d d";
}
.uses .photo { border-radius: var(--radius); }
.uses .photo:hover img { transform: scale(1.025); }
.uses-a { grid-area: a; min-height: 640px; }
.uses-copy { grid-area: c; padding: 8px 0 32px clamp(0px, 3vw, 40px); align-self: start; }
.uses-copy > p { color: var(--steel); margin-top: 20px; max-width: 34em; }
.uses-b { grid-area: b; height: 340px; }
.uses-d { grid-area: d; height: 340px; }
.sectors { list-style: none; margin: 32px 0 0; padding: 0; columns: 2; column-gap: 32px; }
.sectors li { break-inside: avoid; padding: 11px 0; border-top: 1px solid var(--rule); font-weight: 600; }
.uses-d img { object-position: 50% 35%; }

/* ---------- Faixa de foto ---------- */
.band { position: relative; min-height: min(78vh, 720px); display: flex; align-items: center; color: #fff; overflow: hidden; background: var(--forge); }
.band::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,20,22,.86) 0%, rgba(20,20,22,.62) 42%, rgba(20,20,22,.05) 75%); z-index: 1; }
.band-inner { position: relative; z-index: 2; padding-block: 96px; }
.band h2 { max-width: 12em; }
.band p { max-width: 30em; margin: 20px 0 32px; color: #D9DCDF; font-size: 1.1rem; }

/* ---------- Conexões ---------- */
.fittings { background: var(--sheet); border-block: 1px solid var(--rule); }
.fittings-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px 72px; align-items: center; }
.fittings-copy > p { color: var(--steel); margin-top: 20px; max-width: 34em; }
.fitting-list { margin-top: 36px; border-top: 1px solid var(--rule); }
.fitting-list button {
  display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 4px 16px; width: 100%;
  text-align: left; background: none; border: 0; border-bottom: 1px solid var(--rule);
  padding: 15px 0 15px 20px; cursor: pointer; position: relative;
  transition: padding-left .2s var(--ease-out);
}
.fitting-list button::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 8px; height: 8px; margin-top: -4px;
  border: 1.5px solid var(--steel); border-radius: 50%; transition: background-color .15s, border-color .15s;
}
.fitting-list button:hover { padding-left: 26px; }
.fitting-list button[aria-selected="true"]::before { background: var(--signal); border-color: var(--signal); }
.fitting-list strong { font-weight: 650; font-size: 1.05rem; }
.fitting-list span { color: var(--steel); font-size: .92rem; text-align: right; }
.fitting-view { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.fitting-panel { width: 100%; max-width: 620px; }
.fitting-panel:not([hidden]) .drawing { animation: draw-in .45s var(--ease-out); }
@keyframes draw-in { from { opacity: 0; transform: scale(.97); } }

/* ---------- Materiais ---------- */
.materials { background: var(--forge); color: var(--on-forge); }
.materials .section-head p { color: var(--on-forge-muted); }
.mat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid #34353A; }
.mat { padding: 40px 36px 8px 0; display: flex; flex-direction: column; gap: 20px; }
.mat + .mat { padding-left: 36px; border-left: 1px solid #34353A; }
.mat h3 { font-family: var(--f-d); font-size: 2.2rem; font-weight: 800; line-height: .95; }
.mat dl { margin: 0; display: grid; gap: 12px; }
.mat dt { color: var(--on-forge-muted); font-size: .88rem; }
.mat dd { margin: 0; font-weight: 600; }
.mat > p { color: var(--on-forge-muted); font-size: .98rem; }

.disc { width: 132px; aspect-ratio: 1; border-radius: 50%; position: relative; box-shadow: 0 14px 30px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.16), inset 0 0 0 1px rgba(255,255,255,.1); }
.disc::after { /* furo central */
  content: ""; position: absolute; inset: 34%; border-radius: 50%;
  background: var(--forge); box-shadow: inset 0 3px 6px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.12);
}
/* marcas de torneamento + reflexo cônico */
.disc-carbono {
  background:
    repeating-radial-gradient(circle at 50% 50%, rgba(255,255,255,.035) 0 1px, rgba(0,0,0,.05) 1px 2px),
    conic-gradient(from calc(210deg + var(--a, 0deg)), #141517, #5d6268, #1b1c1e, #0e0f10, #6a6f75, #202224, #141517);
}
.disc-inox {
  background:
    repeating-radial-gradient(circle at 50% 50%, rgba(255,255,255,.12) 0 1px, rgba(0,0,0,.04) 1px 2px),
    conic-gradient(from calc(200deg + var(--a, 0deg)), #b9bec3, #f3f5f6, #9da3a9, #e1e4e7, #8f959b, #d5d9dc, #b9bec3);
}
.disc-aluminio {
  background:
    repeating-radial-gradient(circle at 50% 50%, rgba(255,255,255,.06) 0 1px, rgba(0,0,0,.03) 1px 2px),
    conic-gradient(from calc(230deg + var(--a, 0deg)), #c9cac9, #e3e3e1, #b8b9b8, #d9dad8, #aeafae, #cfd0ce, #c9cac9);
}
.mat:hover .disc { transform: scale(1.03); }
.disc { transition: transform .35s var(--ease-out); }

/* ---------- Dimensões ---------- */
.dims-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px 64px; align-items: start; }
.table-scroll { overflow-x: auto; border-top: 1.5px solid var(--ink); }
.dims-table { width: 100%; border-collapse: collapse; font-feature-settings: "tnum"; font-size: .98rem; }
.dims-table th { text-align: right; font-weight: 560; color: var(--steel); font-size: .86rem; padding: 12px 10px; border-bottom: 1px solid var(--ink); white-space: nowrap; }
.dims-table td { text-align: right; padding: 0 10px; height: 40px; border-bottom: 1px solid var(--rule); white-space: nowrap; }
.dims-table th:first-child, .dims-table td:first-child { text-align: left; padding-left: 12px; }
.dims-table tbody tr { cursor: pointer; transition: background-color .12s; }
.dims-table tbody tr:hover { background: rgba(28,29,32,.05); }
.dims-table tbody tr.is-active { background: var(--ink); color: var(--paper); }
.dims-table tbody tr.is-active td { border-bottom-color: var(--ink); }
.nps-btn { border: 0; background: none; padding: 0; font-weight: 700; cursor: pointer; min-width: 3em; text-align: left; font-feature-settings: "tnum"; }
.dims-figure { margin: 0; position: sticky; top: calc(var(--header-h) + 24px); display: flex; flex-direction: column; align-items: center; gap: 20px; }
.front { max-width: 420px; }
.front .od { fill: var(--sheet); stroke: var(--ink); stroke-width: 1.4; }
.front .rf { fill: none; stroke: var(--ink); stroke-width: 1; }
.front .bc { fill: none; stroke: var(--signal); stroke-width: 1; stroke-dasharray: 10 3 2 3; }
.front .bore { fill: var(--paper); stroke: var(--ink); stroke-width: 1.4; }
.front .bh { fill: var(--paper); stroke: var(--ink); stroke-width: 1.2; }
.front .dim { stroke: var(--ink); stroke-width: .9; fill: none; }
.front .ext { stroke: var(--steel); stroke-width: .7; }
.front .arrow { fill: var(--ink); }
.front text { font-family: var(--f); font-size: 11px; font-weight: 650; fill: var(--ink); font-feature-settings: "tnum"; }
.front .lbl-bg { fill: var(--paper); }
.note { margin-top: 24px; color: var(--steel); font-size: .92rem; }

/* ---------- Cotação ---------- */
.quote { background: var(--sheet); border-top: 1px solid var(--rule); }
.quote-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px 72px; align-items: start; }
.quote-copy > p { color: var(--steel); margin-top: 20px; max-width: 30em; }
.contact-list { margin: 40px 0 0; display: grid; gap: 18px; }
.contact-list dt { color: var(--steel); font-size: .88rem; }
.contact-list dd { margin: 2px 0 0; font-weight: 650; font-size: 1.08rem; }
.contact-list a { text-decoration: none; background-image: linear-gradient(var(--signal), var(--signal)); background-size: 100% 2px; background-position: 0 100%; background-repeat: no-repeat; }

.quote-form { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: clamp(20px, 3vw, 36px); }
.builder { border: 0; padding: 0; margin: 0; min-width: 0; }
.builder legend { font-weight: 700; font-size: 1.15rem; padding: 0; margin-bottom: 16px; font-variation-settings: "wdth" 106; }
.builder-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; align-items: end; }
.f-prod, .f-mat { grid-column: span 3; }
.f-class, .f-add { grid-column: span 2; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span { font-size: .86rem; color: var(--steel); font-weight: 520; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; background: var(--sheet);
  border: 1px solid #AEB0B4; border-radius: var(--radius); font-size: 1rem;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 92px; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 34px; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%; background-size: 5px 5px; background-repeat: no-repeat; text-overflow: ellipsis; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(245,115,42,.45); }
.field input[aria-invalid="true"] { border-color: #B3261E; }
.f-add { min-height: 46px; }

.items-wrap { margin-top: 24px; border-top: 1px solid var(--rule); }
.items { list-style: none; margin: 0; padding: 0; counter-reset: item; }
.items li {
  counter-increment: item; display: grid; grid-template-columns: 2.2em 1fr auto; gap: 12px; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--rule); animation: item-in .3s var(--ease-out);
}
@keyframes item-in { from { opacity: 0; transform: translateY(-4px); } }
.items li::before { content: counter(item) "."; color: var(--steel); font-feature-settings: "tnum"; }
.items .qty { font-weight: 700; font-feature-settings: "tnum"; }
.items .remove { border: 0; background: none; color: var(--steel); cursor: pointer; padding: 6px 8px; font-size: .9rem; text-decoration: underline; text-underline-offset: 3px; }
.items .remove:hover { color: var(--ink); }
.items-empty { padding: 16px 0; color: var(--steel); font-size: .95rem; border-bottom: 1px solid var(--rule); }
.items-empty[hidden] { display: none; }

.contact-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; margin-top: 28px; }
.f-wide { grid-column: 1 / -1; }
.form-status { min-height: 1.5em; margin-top: 16px; font-weight: 600; font-size: .95rem; }
.form-status.is-error { color: #B3261E; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* ---------- Rodapé ---------- */
.site-footer { background: var(--forge); color: var(--on-forge); padding-top: 72px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 56px; }
.footer-brand img { width: 240px; height: auto; margin-bottom: 18px; }
.footer-brand p { color: var(--on-forge-muted); max-width: 24em; }
.footer-h { font-size: .88rem; font-weight: 520; color: var(--on-forge-muted); margin-bottom: 12px; font-variation-settings: "wdth" 100; letter-spacing: 0; }
.site-footer p { line-height: 1.9; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-base { display: flex; justify-content: space-between; gap: 16px; padding-block: 22px; border-top: 1px solid #34353A; color: var(--on-forge-muted); font-size: .9rem; }


/* ================= Movimento ================= */
.scroll-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--signal); transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; }
.site-header { transition: border-color .2s, transform .45s var(--ease-out); }
.site-header.is-hidden { transform: translateY(-100%); }

/* palavras dos títulos saem de dentro de uma máscara */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.w > span { display: inline-block; will-change: transform; }

/* esteira de normas */
.has-motion .norms { flex-wrap: nowrap; }
.has-motion .norms p { flex: none; }
.norms-mask { flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.has-motion .norms-track { display: flex; flex: none; width: max-content; will-change: transform; }
.has-motion .norms-track ul { flex-wrap: nowrap; padding-right: 30px; }
.has-motion .norms li { white-space: nowrap; }

/* desenhos: o traçado usa stroke-dash; a hachura entra depois */
.has-motion .drawing .m, .has-motion .drawing .hole { fill-opacity: 1; }

/* ---------- Montagem (cena presa enquanto o scroll avança) ---------- */
.assembly {
  position: relative; height: auto;
  background: radial-gradient(ellipse 70% 60% at 66% 50%, #3A3B3F 0%, #232427 45%, #151517 100%);
  color: var(--on-forge);
}
.assembly-sticky { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; }
.assembly-canvas { position: absolute; top: 0; bottom: 0; left: 32%; right: 0; width: 68%; height: 100%; }
.assembly-grid { position: relative; height: 100%; display: flex; align-items: center; pointer-events: none; }
.assembly-copy { max-width: 430px; pointer-events: auto; }
.assembly-copy h2 { margin-bottom: 36px; }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { position: relative; padding: 14px 0 14px 46px; border-top: 1px solid #38393D; opacity: .42; transition: opacity .4s var(--ease-out); }
.steps li::before {
  content: attr(data-n); position: absolute; left: 0; top: 13px; width: 28px; height: 28px; border-radius: 50%;
  border: 1.5px solid #6E7176; display: grid; place-items: center; font-size: .85rem; font-weight: 700; font-feature-settings: "tnum";
  transition: background-color .3s, border-color .3s, color .3s;
}
.steps li.is-done::before { background: #38393D; border-color: #38393D; }
.steps li.is-active { opacity: 1; }
.steps li.is-active::before { background: var(--signal); border-color: var(--signal); color: var(--ink); }
.steps h3 { font-size: 1.12rem; margin-top: 3px; }
.steps p { color: var(--on-forge-muted); font-size: .97rem; display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease-out), margin .5s var(--ease-out); margin-top: 0; }
.steps p > span { min-height: 0; overflow: hidden; }
.steps li.is-active p { grid-template-rows: 1fr; margin-top: 8px; }
.assembly-foot { display: flex; align-items: center; gap: 20px; margin-top: 28px; }
.assembly-bar { flex: 1; height: 2px; background: #38393D; position: relative; overflow: hidden; }
.assembly-bar > span { position: absolute; inset: 0; background: var(--signal); transform: scaleX(0); transform-origin: 0 50%; }
.assembly .link-btn { color: var(--on-forge); white-space: nowrap; }
.assembly .link-btn:hover { color: var(--ink); }

/* ---------- Rodapé: nome grande ---------- */
.site-footer { overflow: hidden; }
.footer-mark {
  padding-inline: var(--gutter); max-width: var(--wrap); margin: 8px auto -0.1em;
  font-family: var(--f-d); text-transform: uppercase;
  font-size: min(11vw, 10.4rem); line-height: .8; font-weight: 900; letter-spacing: 0;
  color: #2B2C30; white-space: nowrap; user-select: none;
}

@media (max-width: 900px) {
  .assembly-canvas { left: 0; width: 100%; height: 52%; bottom: auto; }
  .assembly-grid { align-items: flex-end; padding-bottom: 28px; }
  .assembly-copy { max-width: none; }
  .assembly-copy h2 { margin-bottom: 16px; font-size: 1.7rem; }
  .steps li { padding-block: 10px; }
  .steps li:not(.is-active) { display: none; }
  .steps li.is-active { border-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .assembly { height: auto; }
  .assembly-sticky { position: relative; height: auto; padding-block: 72px; }
  .assembly-canvas { position: relative; left: 0; width: 100%; height: 60vh; }
  .steps li { opacity: 1; display: block !important; }
  .steps p { grid-template-rows: 1fr; margin-top: 8px; }
}

/* ---------- Responsivo ---------- */
@media (max-width: 960px) {
  :root { --header-h: 64px; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--rule); padding: 8px var(--gutter) 20px;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .18s, transform .18s, visibility .18s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 14px 0; font-size: 1.1rem; border-bottom: 1px solid var(--rule); background: none; }
  .menu-toggle { display: block; }
  .header-row { gap: 12px; }
  .header-cta { min-height: 40px; padding: 0 14px; font-size: .92rem; }
  .section-head, .fittings-grid, .dims-grid, .quote-grid { grid-template-columns: 1fr; }
  .section-head { margin-bottom: 36px; }
  .sheet-grid { grid-template-columns: 1fr 1fr; }
  .part:nth-child(3n) { border-right: 1px solid var(--rule); }
  .part:nth-child(2n) { border-right: 0; }
  .part:nth-last-child(-n+3) { border-bottom: 1px solid var(--rule); }
  .part:nth-last-child(-n+2) { border-bottom: 0; }
  .mat-grid { grid-template-columns: 1fr; }
  .mat, .mat + .mat { padding: 32px 0; border-left: 0; }
  .mat + .mat { border-top: 1px solid #34353A; }
  .mat { display: grid; grid-template-columns: 100px 1fr; gap: 14px 24px; align-items: start; }
  .mat .disc { width: 100px; grid-row: span 3; }
  .dims-figure { position: static; order: -1; }
  .front { max-width: 340px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .uses-grid { grid-template-columns: 1fr 1fr; grid-template-areas: "c c" "a a" "b d"; }
  .uses-a { min-height: 0; aspect-ratio: 4 / 3; }
  .uses-a img { object-position: 50% 60%; }
  .uses-copy { padding: 0 0 16px; }
  .band::before { background: linear-gradient(0deg, rgba(20,20,22,.9) 0%, rgba(20,20,22,.55) 60%, rgba(20,20,22,.2) 100%); }
  .band { align-items: flex-end; }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .header-cta { display: none; }
  .brand-name { font-size: 1.1rem; }
  .sheet-grid { grid-template-columns: 1fr; }
  .part, .part:nth-child(n) { border-right: 0; border-bottom: 1px solid var(--rule); padding: 24px 16px; }
  .part:last-child { border-bottom: 0; }
  .part .drawing { max-width: 220px; }
  .title-block { width: 100%; }
  h2 { font-variation-settings: "wdth" 104; }
  .uses-b, .uses-d { height: auto; aspect-ratio: 3 / 4; }
  .builder-row { grid-template-columns: 1fr 1fr; }
  .f-prod, .f-mat, .f-class, .f-add { grid-column: 1 / -1; }
  .contact-fields { grid-template-columns: 1fr; }
  .fitting-list span { text-align: left; grid-column: 1; }
  .fitting-list button { grid-template-columns: 1fr; }
  .mat { grid-template-columns: 72px 1fr; }
  .mat .disc { width: 72px; }
  .footer-grid { grid-template-columns: 1fr; }
  .sectors { columns: 1; }
  .form-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* Lenis (rolagem suave): o CSS recomendado pela biblioteca */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
html.is-scroll-locked { overflow: hidden; }

/* ================= Profundidade, 3D e conversão ================= */
:root {
  --sh-1: 0 1px 1px rgba(20,20,22,.05), 0 2px 4px rgba(20,20,22,.06);
  --sh-2: 0 1px 2px rgba(20,20,22,.05), 0 6px 14px rgba(20,20,22,.07), 0 22px 44px -14px rgba(20,20,22,.16);
  --sh-3: 0 2px 4px rgba(20,20,22,.05), 0 14px 28px rgba(20,20,22,.08), 0 50px 90px -30px rgba(20,20,22,.32);
  --wa-green: #25D366;
}

/* botões com relevo: luz por cima, sombra por baixo, afundam no clique */
.btn .i { width: 1.25em; height: 1.25em; flex: none; margin-left: -2px; }
.btn-primary {
  background: linear-gradient(180deg, #FF8A47 0%, #F5732A 55%, #EC6720 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), inset 0 -2px 0 rgba(150,50,0,.22), 0 1px 2px rgba(120,40,0,.25), 0 10px 22px -8px rgba(245,115,42,.65);
}
.btn-primary:hover { background: linear-gradient(180deg, #FF9558 0%, #FF7F38 55%, #F26E26 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.5), inset 0 -2px 0 rgba(150,50,0,.22), 0 2px 4px rgba(120,40,0,.25), 0 16px 30px -10px rgba(245,115,42,.75); }
.btn-primary:active { background: linear-gradient(180deg, #E9661F, #F07028); box-shadow: inset 0 2px 4px rgba(120,40,0,.35), 0 1px 1px rgba(120,40,0,.2); }
.btn-ghost { background: rgba(255,255,255,.35); box-shadow: var(--sh-1); }
.btn-dark { background: linear-gradient(180deg, #303135, #1D1E21); box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 8px 18px -8px rgba(20,20,22,.6); }
.site-header.is-scrolled { box-shadow: 0 8px 24px -16px rgba(20,20,22,.35); }
.sheet { box-shadow: inset 0 0 0 7px var(--sheet), inset 0 0 0 8px var(--ink), var(--sh-3); }
.quote-form { box-shadow: var(--sh-3); background: linear-gradient(180deg, #F3F3F2, #E7E8E8); }
.field input, .field select, .field textarea { box-shadow: inset 0 1px 2px rgba(20,20,22,.07); }
.dims-figure .front { filter: drop-shadow(0 18px 24px rgba(20,20,22,.14)); }
.table-scroll { box-shadow: var(--sh-2); background: var(--sheet); border-radius: 0 0 var(--radius) var(--radius); }

/* inclinação 3D com reflexo */
.is-tilt { transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transform-style: preserve-3d; will-change: transform; }
.is-tilt::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,.22), rgba(255,255,255,0) 60%);
  mix-blend-mode: soft-light;
}
.is-tilt.is-hover::after { opacity: 1; }

/* luz que segue o cursor nas seções escuras */
.has-spot { position: relative; }
.has-spot::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(180px circle at var(--mx, -999px) var(--my, -999px), rgba(255,240,218,.08), rgba(255,240,218,0) 100%),
    radial-gradient(620px circle at var(--mx, -999px) var(--my, -999px), rgba(255,150,80,.09), rgba(255,150,80,.025) 45%, rgba(255,150,80,0) 70%);
}
.has-spot > * { position: relative; z-index: 1; }
.assembly.has-spot > .assembly-sticky { position: relative; }

/* ---------- Conexões em 3D ---------- */
.fitting-stage { position: relative; width: 100%; max-width: 640px; aspect-ratio: 1 / .9; }
.fitting-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .8s; cursor: grab; touch-action: pan-y; }
.fitting-stage.is-ready canvas { opacity: 1; }
.fitting-stage.is-ready .fitting-panels {
  position: absolute; left: 0; bottom: 0; width: 168px; padding: 8px; z-index: 2;
  background: rgba(251,251,250,.86); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--ink); box-shadow: var(--sh-2);
}
.fitting-stage.is-ready .fitting-panel.has-photo { display: block; }
.fitting-stage.is-ready .fitting-panel .photo { display: none; }
.fitting-stage:not(.is-ready) .fitting-panels { position: absolute; inset: 0; display: grid; place-items: center; }
.fitting-stage.is-fallback canvas { display: none; }
.fittings { background: radial-gradient(ellipse 50% 60% at 72% 50%, #FFFFFF 0%, var(--sheet) 70%); }

/* ---------- Setores ---------- */
.sectors-sec { background: var(--sheet); border-top: 1px solid var(--rule); overflow: hidden; }
.ticker { display: grid; gap: 4px; margin: 8px 0 clamp(56px, 8vw, 96px); }
.ticker-track { display: flex; width: max-content; will-change: transform; }
.ticker-row { list-style: none; margin: 0; padding: 0; display: flex; flex: none; white-space: nowrap; }
.ticker:not(:has(.ticker-track)) .ticker-row { overflow: hidden; }
.ticker-row li {
  display: inline-flex; align-items: center; gap: .45em; padding-right: .45em;
  font-family: var(--f-d); text-transform: uppercase;
  font-size: clamp(3rem, 9vw, 8.6rem); line-height: 1; font-weight: 800; letter-spacing: 0;
}
.ticker-row.is-outline li { color: transparent; -webkit-text-stroke: 1.4px var(--ink); }
.ticker-row .sep { width: .5em; height: .5em; color: var(--signal); flex: none; animation: sep-spin 9s linear infinite; }
.ticker-row.is-outline .sep { color: var(--steel); animation-direction: reverse; }
@keyframes sep-spin { to { transform: rotate(360deg); } }

.gallery { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; align-items: start; }
.gallery .photo { margin: 0; border-radius: 12px; box-shadow: var(--sh-3); translate: 0 var(--py, 0px); }
.gallery .photo img { width: 100%; height: 100%; object-fit: cover; }
.g-a { grid-column: 1 / span 5; aspect-ratio: 4 / 5; }
.g-b { grid-column: 6 / span 3; aspect-ratio: 3 / 4; margin-top: 120px !important; }
.g-c { grid-column: 9 / span 4; aspect-ratio: 4 / 5; margin-top: 40px !important; }
.g-c img { object-position: 50% 30%; }

/* ---------- Materiais: cartões com profundidade ---------- */
.materials { overflow: hidden; transform-origin: 50% 0; }
.mat { border-radius: 12px; position: relative; }
.has-motion .mat { padding: 36px 30px 30px !important; background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.01)); border: 1px solid #323337 !important; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.has-motion .mat-grid { gap: 18px; border-top: 0; }
.mat .disc { transform: translateZ(40px); }
.band { transform-origin: 50% 0; }

/* ---------- WhatsApp flutuante ---------- */
.wa { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
  opacity: 0; transform: translateY(24px) scale(.9); transition: opacity .5s var(--ease-out), transform .6s cubic-bezier(.2,1.4,.4,1); pointer-events: none; }
.wa.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.wa-fab {
  display: flex; align-items: center; gap: 12px; padding: 8px 20px 8px 8px; border: 0; border-radius: 999px; cursor: pointer;
  background: linear-gradient(180deg, #2E2F33, #1A1B1E); color: #fff; text-align: left;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 2px 4px rgba(0,0,0,.2), 0 18px 40px -12px rgba(20,20,22,.6);
  transition: padding .45s var(--ease-out), gap .45s var(--ease-out), transform .2s var(--ease-out);
}
.wa-fab:hover { transform: translateY(-2px); }
.wa-fab:active { transform: translateY(1px) scale(.98); }
.wa-icon { position: relative; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: radial-gradient(circle at 35% 30%, #4BE383, var(--wa-green) 55%, #1DA851); box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 4px 10px rgba(37,211,102,.45); }
.wa-icon svg { width: 26px; height: 26px; color: #fff; }
.wa-icon::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa-green); animation: wa-ping 3.2s cubic-bezier(.2,.6,.3,1) infinite 2s; }
@keyframes wa-ping { 0% { transform: scale(1); opacity: .8; } 60%, 100% { transform: scale(1.7); opacity: 0; } }
.wa-label { display: flex; flex-direction: column; line-height: 1.2; max-width: 220px; overflow: hidden; white-space: nowrap; transition: max-width .45s var(--ease-out), opacity .3s; }
.wa-label strong { font-size: .98rem; font-weight: 700; }
.wa-label span { font-size: .8rem; color: #B5B7BB; }
.wa.is-scrolling:not(.is-open) .wa-fab { padding-right: 8px; gap: 0; }
.wa.is-scrolling:not(.is-open) .wa-label { max-width: 0; opacity: 0; }
.wa-panel {
  width: min(340px, calc(100vw - 32px)); border-radius: 16px; overflow: hidden; background: #F8F8F7;
  box-shadow: 0 2px 6px rgba(0,0,0,.12), 0 30px 70px -20px rgba(20,20,22,.55); transform-origin: 100% 100%;
  animation: wa-open .4s cubic-bezier(.2,1.2,.4,1);
}
@keyframes wa-open { from { opacity: 0; transform: translateY(12px) scale(.94); } }
.wa-head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; background: var(--forge); color: #fff; }
.wa-head img { width: 30px; height: auto; background: #fff; border-radius: 50%; padding: 5px; box-sizing: content-box; }
.wa-head div { flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
.wa-head strong { font-size: .98rem; }
.wa-head span { font-size: .78rem; color: #B5B7BB; display: flex; align-items: center; gap: 6px; }
.wa-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--wa-green); box-shadow: 0 0 0 3px rgba(37,211,102,.25); }
.wa-close { border: 0; background: rgba(255,255,255,.08); color: #fff; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 1.3rem; line-height: 1; }
.wa-close:hover { background: rgba(255,255,255,.18); }
.wa-bubble { margin: 16px 16px 12px; padding: 12px 14px; background: #fff; border-radius: 4px 14px 14px 14px; font-size: .93rem; box-shadow: var(--sh-1); }
.wa-options { display: grid; gap: 8px; padding: 4px 16px 16px; }
.wa-options a {
  display: flex; justify-content: space-between; align-items: center; padding: 11px 14px; border-radius: 10px; text-decoration: none; font-weight: 600; font-size: .93rem;
  background: #fff; border: 1px solid #DCDDDF; transition: border-color .15s, transform .15s, box-shadow .15s;
}
.wa-options a::after { content: ""; width: 8px; height: 8px; border-top: 2px solid var(--signal); border-right: 2px solid var(--signal); transform: rotate(45deg); }
.wa-options a:hover { border-color: var(--wa-green); transform: translateX(2px); box-shadow: var(--sh-1); }

@media (max-width: 960px) {
  .gallery { grid-template-columns: 1fr 1fr; gap: 12px; }
  .gallery .photo { translate: none; }
  .g-a { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
  .g-b, .g-c { grid-column: auto; margin-top: 0 !important; aspect-ratio: 3 / 4; }
  .fitting-stage { margin-inline: auto; }
}
@media (max-width: 600px) {
  .wa-label { display: none; }
  .wa-fab { padding: 6px; }
  .wa-icon { width: 54px; height: 54px; }
  .fitting-stage.is-ready .fitting-panels { width: 116px; }
  .quote { padding-bottom: 110px; }
}
@media (prefers-reduced-motion: reduce) {
  .wa { transition: none; }
  .wa-icon::after, .ticker-row .sep { animation: none; }
}

/* celular: o modelo 3D das conexões fica acima da lista, para a troca acontecer à vista */
@media (max-width: 960px) {
  .fittings-copy { display: contents; }
  .fittings-copy h2 { order: 1; }
  .fittings-copy > p { order: 2; margin-top: -28px; }
  .fitting-view { order: 3; }
  .fitting-list { order: 4; margin-top: 0; }
  .fittings-grid { row-gap: 40px; }
}

/* ================= Abertura em cena ================= */
.hero { position: relative; height: 100vh; height: 100svh; background: var(--paper); color: var(--on-forge); }
.hero.is-dolly { height: 220vh; }
.hero-sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; isolation: isolate;
  --lx: 50%; --ly: 42%; --p: 0;
}
.hero-sticky::after { /* vinheta de lente */
  content: ""; position: absolute; inset: 0; z-index: 5; pointer-events: none;
  background: radial-gradient(ellipse 80% 72% at 50% 46%, transparent 52%, rgba(6,6,8,.62) 100%);
  opacity: clamp(0, calc(1 - var(--p) * 1.6), 1);
}

/* fundo: grafite com o brilho da forja vindo de baixo */
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 58% 50% at 50% 44%, #3A3B40 0%, #242528 42%, rgba(30,31,34,0) 78%),
    linear-gradient(180deg, #19191C 0%, #111113 60%, #120E10 100%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 62% 34% at 50% 106%, rgba(245,115,42,.5), rgba(245,115,42,.12) 48%, rgba(245,115,42,0) 72%),
    radial-gradient(ellipse 30% 16% at 50% 102%, rgba(255,186,110,.35), rgba(255,186,110,0) 70%);
  animation: forge 6s ease-in-out infinite alternate;
}
@keyframes forge { 0% { opacity: .62; } 35% { opacity: .9; } 55% { opacity: .74; } 100% { opacity: 1; } }

/* marcações puncionadas, só aparecem onde a luz bate */
.hero-stamp {
  position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none;
  display: flex; flex-direction: column; justify-content: space-around; padding-block: 2vh;
  font-family: var(--f-d); font-weight: 700; font-size: clamp(.95rem, 1.35vw, 1.3rem); letter-spacing: .16em;
  white-space: pre; color: rgba(190,192,196,.4);
  text-shadow: 0 1px 0 rgba(0,0,0,.85), 0 -1px 0 rgba(240,240,240,.12);
  -webkit-mask-image: radial-gradient(circle 21vmax at var(--lx) var(--ly), #000 0%, rgba(0,0,0,.4) 38%, transparent 70%);
  mask-image: radial-gradient(circle 21vmax at var(--lx) var(--ly), #000 0%, rgba(0,0,0,.4) 38%, transparent 70%);
}
.hero-stamp p { margin-left: var(--o, 0); }

/* o cone de luz da lanterna */
.hero-lamp {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; mix-blend-mode: screen;
  background:
    radial-gradient(circle 9vmax at var(--lx) var(--ly), rgba(255,240,218,.14), rgba(255,240,218,0) 100%),
    radial-gradient(circle 36vmax at var(--lx) var(--ly), rgba(255,150,80,.12), rgba(255,150,80,.03) 45%, rgba(255,150,80,0) 70%);
}

.hero-frame {
  position: relative; height: 100%;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: calc(var(--header-h) + 1.5vh) var(--gutter) clamp(16px, 3vh, 30px);
}
.hero-title { position: relative; z-index: 2; flex: 1; min-height: 0; width: 100%; display: flex; flex-direction: column; align-items: center; font-weight: inherit; }
.t-kicker {
  font-size: clamp(.95rem, 1.1vw, 1.06rem); font-weight: 520; color: var(--on-forge-muted);
  opacity: clamp(0, calc(1 - var(--p) * 7), 1);
}
.t-row { position: relative; flex: 1; min-height: 0; width: 100%; display: grid; place-items: center; }
.t-layer { grid-area: 1 / 1; width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) var(--disc, 30vw) minmax(0, 1fr); align-items: center; }
.t-word {
  display: block; overflow: hidden; white-space: nowrap;
  font-family: var(--f-d); font-weight: 900; text-transform: uppercase;
  font-size: clamp(4.2rem, 12.6vw, 15rem); line-height: .8; letter-spacing: .005em;
  padding-block: .08em .2em; margin-block: -.08em -.2em; /* espaço para a cedilha */
  color: #7C7F85;
}
.t-word .ch { display: inline-block; }
.t-l { justify-self: end; transform-origin: 100% 50%; transform: translateX(calc(var(--p) * -60vw)) scale(calc(1 + var(--p) * 1.1)); }
.t-r { justify-self: start; transform-origin: 0% 50%; transform: translateX(calc(var(--p) * 60vw)) scale(calc(1 + var(--p) * 1.1)); }
.t-lit { pointer-events: none;
  -webkit-mask-image: radial-gradient(circle 12vmax at var(--tlx, -999px) var(--tly, -999px), #000 0%, rgba(0,0,0,.5) 36%, transparent 70%);
  mask-image: radial-gradient(circle 12vmax at var(--tlx, -999px) var(--tly, -999px), #000 0%, rgba(0,0,0,.5) 36%, transparent 70%);
}
/* rastro de calor: por onde a luz passou, o aço fica em brasa e esfria (máscara montada no hero.js) */
.t-heat { pointer-events: none; -webkit-mask-image: linear-gradient(transparent, transparent); mask-image: linear-gradient(transparent, transparent); }
.t-heat .t-word { color: #FF6A1F; text-shadow: 0 0 .25em rgba(255,106,31,.7), 0 0 .8em rgba(245,80,20,.35); }
.t-lit .t-word { color: #FFF3E6; text-shadow: 0 0 .35em rgba(255,176,96,.38); }

.hero-ui {
  position: relative; z-index: 6; display: flex; flex-direction: column; align-items: center; gap: 22px; margin-top: 6px;
  opacity: clamp(0, calc(1 - var(--p) * 7), 1); transform: translateY(calc(var(--p) * -80px));
  pointer-events: none;
}
.hero-ui > * { pointer-events: auto; }
.hero .lede { color: #C6C8CB; max-width: 40em; text-wrap: balance; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.btn-glass {
  color: var(--on-forge); background: rgba(242,242,240,.06); border-color: rgba(242,242,240,.3);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.btn-glass:hover { background: rgba(242,242,240,.14); border-color: rgba(242,242,240,.65); }

/* painel de controle nos cantos, como num visor */
.hero-hud {
  position: relative; z-index: 6; width: 100%; max-width: 1640px;
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: end; gap: 16px;
  margin-top: clamp(14px, 3vh, 34px); text-align: left;
  opacity: clamp(0, calc(1 - var(--p) * 7), 1);
}
.hud-r { justify-self: end; }
.hero .switch { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; }
.hero .switch-label { color: var(--on-forge-muted); font-size: .8rem; margin-right: 10px; }
.hero .switch button {
  border: 0; background: transparent; box-shadow: none; color: #9EA1A6; margin: 0;
  padding: 7px 12px; border-radius: 999px; font-size: .9rem; font-weight: 560; cursor: pointer;
  display: inline-flex; align-items: center; transition: color .2s, background-color .2s;
}
.hero .switch button:hover { color: var(--on-forge); background: rgba(242,242,240,.08); }
.hero .switch button[aria-pressed="true"] { color: var(--ink); background: var(--on-forge); box-shadow: none; }
.hero .spec { margin-top: 10px; padding-left: 12px; color: var(--glow); font-size: .85rem; font-weight: 520; }
.sw { width: 10px; height: 10px; border-radius: 50%; margin-right: 7px; flex: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,.28); }
.sw-carbono { background: radial-gradient(circle at 35% 30%, #727a83, #191b1e 70%); }
.sw-bicromatizado { background: radial-gradient(circle at 35% 30%, #f3e88c, #b39a2c 55%, #6e5c14); }
.sw-inox { background: radial-gradient(circle at 35% 30%, #ffffff, #c4cad0 50%, #7d858c); }
.sw-aluminio { background: radial-gradient(circle at 35% 30%, #f6f4f0, #cfcdc7 55%, #96948f); }

.scroll-cue { justify-self: center; display: flex; flex-direction: column-reverse; align-items: center; gap: 10px; color: var(--on-forge-muted); font-size: .82rem; text-decoration: none; }
.scroll-cue:hover { color: var(--on-forge); }
.cue-line { width: 1px; height: 46px; background: rgba(242,242,240,.18); position: relative; overflow: hidden; }
.cue-line::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--glow); animation: cue 2.4s cubic-bezier(.6,0,.3,1) infinite; }
@keyframes cue { to { top: 100%; } }

/* palco 3D: a peça fica entre as palavras; o "portal" é a próxima seção vista pelo furo */
.hero .stage { position: absolute; inset: 0; z-index: 4; pointer-events: none; aspect-ratio: auto; min-height: 0; }
.hero .stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.4s ease; pointer-events: auto; cursor: grab; touch-action: pan-y; }
.hero .stage canvas:active { cursor: grabbing; }
.hero .stage.is-ready canvas { opacity: 1; }
.hero-portal { position: absolute; inset: 0; background: var(--paper); clip-path: circle(0px at 50% 50%); opacity: 0; will-change: clip-path; }
.hero .stage-fallback { display: none; position: absolute; left: var(--fx, 50%); top: var(--fy, 46%); width: var(--fd, 34vh); transform: translate(-50%, -50%); }
.hero .stage.is-fallback .stage-fallback { display: block; }
.hero .stage.is-fallback canvas { display: none; }
.hero .stage-fallback .m, .hero .stage-fallback .hole { stroke: var(--on-forge); }
.hero .stage-fallback .hole { fill: var(--forge); }

.hero-dust { position: absolute; inset: 0; z-index: 5; width: 100%; height: 100%; pointer-events: none; }
.hero-grain {
  position: absolute; inset: -60%; z-index: 8; pointer-events: none; opacity: calc(.07 - var(--p) * .2); mix-blend-mode: overlay;
  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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1.4 -.2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 17% { transform: translate(-4%, 3%); } 33% { transform: translate(3%, -5%); }
  50% { transform: translate(-6%, -2%); } 67% { transform: translate(5%, 4%); } 83% { transform: translate(-2%, 6%); } 100% { transform: translate(0, 0); }
}

/* entrada de cinema: tarjas que se abrem a partir de uma fenda com as cores de revenimento */
.curtain { position: absolute; left: 0; right: 0; height: 50.5%; z-index: 9; background: #05080C; pointer-events: none; }
.curtain-t { top: 0; transform: translateY(-100%); }
.curtain-b { bottom: 0; transform: translateY(100%); }
.intro .curtain { transform: none; }
.hero-slit {
  position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; z-index: 10; pointer-events: none;
  background: var(--heat); opacity: 0; transform: scaleX(0);
  box-shadow: 0 0 22px 2px rgba(255,150,80,.55);
}
.site-header { transition: border-color .2s, background-color .35s, color .35s, transform .45s var(--ease-out), opacity .9s ease; }
.intro .site-header, .intro .wa { opacity: 0 !important; pointer-events: none; }
.hero-active .wa { opacity: 0; transform: translateY(24px) scale(.9); pointer-events: none; }

/* cabeçalho sobre a cena */
.site-header.on-hero { background: transparent; color: var(--on-forge); border-bottom-color: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.scroll-progress { background: var(--heat); }

/* ---------- Garantias (o outro lado do furo) ---------- */
.proofbar { background: var(--paper); padding-top: clamp(36px, 5vw, 64px); }
.proofbar .proof { list-style: none; margin: 0 0 clamp(44px, 6vw, 76px); padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.proofbar .proof li, .proofbar .proof li:first-child { display: flex; flex-direction: column; gap: 8px; padding: 2px 0 2px 22px; border-left: 2px solid var(--ink); white-space: normal; }
.proofbar .proof strong { font-family: var(--f-d); font-size: clamp(2.3rem, 3.8vw, 3.6rem); line-height: .9; font-weight: 800; }
.proofbar .proof span { color: var(--steel); font-size: 1rem; }

@media (max-width: 960px) {
  .nav { color: var(--ink); }
}
@media (max-width: 700px) {
  .hero-frame { padding-top: calc(var(--header-h) + 4px); }
  .t-kicker { max-width: 22em; font-size: .9rem; }
  .t-layer { grid-template-columns: 1fr; grid-template-rows: auto var(--disc, 56vw) auto; justify-items: center; }
  .t-l, .t-r { justify-self: center; }
  .t-l { transform-origin: 50% 100%; transform: translateY(calc(var(--p) * -45vh)) scale(calc(1 + var(--p) * .9)); }
  .t-r { transform-origin: 50% 0%; transform: translateY(calc(var(--p) * 45vh)) scale(calc(1 + var(--p) * .9)); }
  .t-word { font-size: clamp(3.4rem, 24vw, 7rem); }
  .hero .lede { font-size: .97rem; }
  .hero-ui { gap: 16px; }
  .hero .actions { width: 100%; }
  .hero .actions .btn { flex: 1 1 auto; }
  .hero .actions .btn-glass { display: none; }
  .hero-hud { display: flex; gap: 6px; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; margin-top: 14px; }
  .hero-hud::-webkit-scrollbar { display: none; }
  .hud-l, .hud-r { flex: none; }
  .hero .switch { flex-wrap: nowrap; }
  .hero .switch-label, .hero .spec, .scroll-cue { display: none; }
  .hero .switch button { padding: 7px 10px; font-size: .86rem; }
  .hud-r { border-left: 1px solid rgba(242,242,240,.16); padding-left: 6px; }
  .proofbar .proof { grid-template-columns: 1fr; gap: 22px; }
}
@media (max-width: 1180px) and (min-width: 701px) {
  .hero-hud { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .scroll-cue { display: none; }
  .hero .spec { display: none; }
}
@media (max-height: 740px) and (min-width: 701px) {
  .hero .lede { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-bg::after, .hero-grain, .cue-line::after { animation: none; }
}

/* ================= Rodada 4: superfícies vivas, linha, conferência, faixa ================= */

/* grão de filme no site inteiro: nenhum fundo fica chapado */
body::after {
  content: ""; position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .09; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='.33 .33 .33 0 0 .33 .33 .33 0 0 .33 .33 .33 0 0 0 0 0 0 1'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.1s steps(6) infinite;
}

/* superfícies: grade de desenho técnico que a luz (cursor) revela, e uma luz de oficina que anda sozinha */
@property --dx { syntax: "<percentage>"; inherits: false; initial-value: 22%; }
@property --dy { syntax: "<percentage>"; inherits: false; initial-value: 30%; }
@property --ex { syntax: "<percentage>"; inherits: false; initial-value: 75%; }
@property --ey { syntax: "<percentage>"; inherits: false; initial-value: 20%; }
[data-surface] { position: relative; isolation: isolate; }
[data-surface]::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  --gc: rgba(29,30,33,.085); --gc2: rgba(29,30,33,.045);
  background-image:
    linear-gradient(var(--gc) 1px, transparent 1px), linear-gradient(90deg, var(--gc) 1px, transparent 1px),
    linear-gradient(var(--gc2) 1px, transparent 1px), linear-gradient(90deg, var(--gc2) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(circle 320px at var(--mx, -999px) var(--my, -999px), #000, transparent 72%), radial-gradient(ellipse 42% 50% at var(--dx) var(--dy), rgba(0,0,0,.6), transparent 72%);
  mask-image: radial-gradient(circle 320px at var(--mx, -999px) var(--my, -999px), #000, transparent 72%), radial-gradient(ellipse 42% 50% at var(--dx) var(--dy), rgba(0,0,0,.6), transparent 72%);
  animation: drift-grid 30s ease-in-out infinite alternate;
}
[data-surface="dark"]::after { --gc: rgba(255,255,255,.07); --gc2: rgba(255,255,255,.035); }
[data-surface="light"]::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(circle 260px at var(--mx, -999px) var(--my, -999px), rgba(255,255,255,.75), rgba(255,255,255,0) 70%),
    radial-gradient(ellipse 38% 46% at var(--ex) var(--ey), rgba(245,115,42,.09), rgba(245,115,42,0) 70%);
  animation: drift-light 38s ease-in-out infinite alternate;
}
@keyframes drift-grid { 0% { --dx: 16%; --dy: 22%; } 50% { --dx: 72%; --dy: 58%; } 100% { --dx: 34%; --dy: 88%; } }
@keyframes drift-light { 0% { --ex: 82%; --ey: 14%; } 50% { --ex: 24%; --ey: 52%; } 100% { --ex: 66%; --ey: 92%; } }
/* seções escuras: brasa respirando no pé */
.materials, .site-footer { background-image: radial-gradient(ellipse 60% 40% at 50% 110%, rgba(245,115,42,.16), rgba(245,115,42,0) 70%); }

/* ---------- Linha: a frase em cena ---------- */
.linha { position: relative; height: auto; background: var(--forge); color: var(--on-forge); }
.linha.has-spot > .linha-sticky { position: relative; }
.linha-sticky {
  position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: clamp(18px, 4vh, 48px);
  padding: calc(var(--header-h) + 2vh) var(--gutter) 6vh; text-align: center;
}
.linha-sticky::before { /* brilho do fluxo no chão da cena */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 70% 30% at 50% 58%, rgba(245,115,42,calc(.04 + var(--run, 1) * .12)), rgba(245,115,42,0) 70%);
}
.linha-a { font-size: clamp(2.6rem, 6.4vw, 6.6rem); line-height: .88; font-weight: 800; max-width: 14em; text-wrap: balance; }
.linha-b { font-family: var(--f-d); font-weight: 600; font-size: clamp(1.45rem, 2.6vw, 2.5rem); line-height: 1.06; max-width: 25em; text-wrap: balance; color: var(--on-forge); }
.lw { display: inline-block; }
.linha-stage { position: relative; width: 100vw; flex: none; }
.linha-pipe { width: 100%; height: clamp(150px, 30vh, 300px); overflow: visible; }
.linha-pipe .w { fill: url(#wall-hatch); stroke: #9EA1A6; stroke-width: 1.2; }
.linha-pipe .hole { fill: #141416; stroke: #8E9196; stroke-width: 1; }
.linha-pipe .stud { fill: #A9ACB1; }
.linha-pipe .nut { fill: #5C5F65; stroke: #B5B7BB; stroke-width: 1.2; }
.linha-pipe .gasket { fill: var(--signal); }
.flow-dash { fill: none; stroke: var(--signal); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 22 30; }
.flow-glow { fill: none; stroke: rgba(245,115,42,.6); stroke-width: 30; }
.ghost { fill: rgba(245,115,42,.05); stroke: var(--signal); stroke-width: 1.6; stroke-dasharray: 9 7; opacity: 0; }
.linha.is-stopped .ghost { animation: ghost 1.1s ease-in-out infinite alternate; }
@keyframes ghost { from { opacity: .25; } to { opacity: 1; } }
.linha-status {
  position: absolute; left: 50%; bottom: -30px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 9px; white-space: nowrap;
  font-size: .86rem; font-weight: 560; color: var(--on-forge-muted);
}
.linha-status i { width: 9px; height: 9px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 4px rgba(245,115,42,.2), 0 0 14px rgba(245,115,42,.8); }
.linha.is-stopped .linha-status { color: #FF8A7A; }
.linha.is-stopped .linha-status i { background: #F0443A; box-shadow: 0 0 0 4px rgba(240,68,58,.2); animation: blink .9s steps(2, jump-none) infinite; }
@keyframes blink { 50% { opacity: .2; } }

/* ---------- Conferência de saída ---------- */
.laudo-sec { background: var(--paper); }
.laudo-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px 88px; align-items: start; }
.laudo-copy { position: sticky; top: calc(var(--header-h) + 48px); }
.laudo-copy p { color: var(--steel); margin-top: 22px; max-width: 30em; }
.laudo {
  position: relative; background: #FFFFFF; border-radius: 4px; padding: clamp(22px, 3.2vw, 44px);
  rotate: -1.1deg;
  box-shadow: 0 1px 2px rgba(20,20,22,.08), 0 22px 44px -18px rgba(20,20,22,.3), 0 70px 100px -60px rgba(20,20,22,.4);
}
.laudo::before { /* furos de arquivo na margem */
  content: ""; position: absolute; left: 12px; top: 18%; bottom: 18%; width: 10px; pointer-events: none;
  background: radial-gradient(circle 5px at 50% 5px, var(--paper) 98%, transparent) 0 0 / 10px 33.3% repeat-y;
  box-shadow: none;
}
.laudo-head { display: flex; align-items: center; gap: 14px; padding-bottom: 18px; border-bottom: 2px solid var(--ink); }
.laudo-head img { width: 30px; height: auto; }
.laudo-head strong { display: block; font-family: var(--f-d); font-size: clamp(1.6rem, 2.2vw, 2.1rem); line-height: .95; font-weight: 800; }
.laudo-head div span { color: var(--steel); font-size: .85rem; }
.laudo-ref { margin-left: auto; border: 1px solid var(--rule); border-radius: 999px; padding: 4px 12px; font-size: .8rem; color: var(--steel); white-space: nowrap; }
.laudo-list { list-style: none; margin: 0; padding: 0; }
.laudo-list li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 18px; padding: 22px 0; border-bottom: 1px dashed var(--rule); }
.laudo-list h3 { font-size: 1.16rem; }
.laudo-list p { color: var(--steel); margin-top: 4px; font-size: .98rem; max-width: 36em; }
.chk { width: 32px; height: 32px; fill: none; stroke-linecap: round; stroke-linejoin: round; margin-top: -2px; }
.chk rect { stroke: var(--ink); stroke-width: 2; }
.chk path { stroke: var(--signal); stroke-width: 3.6; stroke-dasharray: 30; stroke-dashoffset: 0; }
.laudo-foot { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 6px 14px; padding-top: 22px; color: var(--steel); font-size: .85rem; }
.sign { width: 170px; height: 46px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 700; stroke-dashoffset: 0; }
.laudo-who { border-top: 1px solid var(--rule); padding-top: 4px; }
.stamp {
  position: absolute; right: 6%; bottom: 9%; rotate: -12deg; pointer-events: none;
  font-family: var(--f-d); font-weight: 800; text-transform: uppercase; letter-spacing: .08em;
  font-size: clamp(1.7rem, 3vw, 2.7rem); line-height: 1; color: var(--signal);
  border: 4px solid currentColor; border-radius: 10px; padding: 8px 20px 6px;
  box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 5px currentColor;
  mix-blend-mode: multiply; opacity: .9;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -4 3.2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -4 3.2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Faixa: a foto ganha faíscas de verdade ---------- */
.band-media { position: absolute; inset: 0; overflow: hidden; transform-origin: 50% 40%; }
.band-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transform: scaleX(-1); animation: band-breathe 16s ease-in-out infinite alternate; }
@keyframes band-breathe { from { transform: scaleX(-1) scale(1); } to { transform: scaleX(-1) scale(1.07) translate(1.5%, -1%); } }
.band-flicker { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen; opacity: .6;
  background: radial-gradient(ellipse 42% 52% at 62% 12%, rgba(255,150,60,.45), rgba(255,150,60,0) 70%); }
.band-sparks { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* ---------- Capa: troca automática ---------- */
.auto-btn {
  display: inline-flex; align-items: center; gap: 8px; margin: 10px 0 0 10px; padding: 4px 8px 4px 2px;
  border: 0; background: none; color: var(--on-forge-muted); font-size: .8rem; cursor: pointer; border-radius: 999px;
}
.auto-btn:hover { color: var(--on-forge); }
.auto-ring { width: 18px; height: 18px; rotate: -90deg; fill: none; stroke-width: 2; }
.auto-ring circle:first-child { stroke: rgba(242,242,240,.18); }
.auto-prog { stroke: var(--signal); stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--auto, 0) * 100); }
.is-paused .auto-prog { stroke: var(--on-forge-muted); }

@media (max-width: 960px) {
  .laudo-grid { grid-template-columns: 1fr; }
  .laudo-copy { position: static; }
}
@media (max-width: 700px) {
  .linha-pipe { height: clamp(130px, 24vh, 200px); }
  .laudo { rotate: 0deg; }
  .laudo-ref { display: none; }
  .stamp { right: 4%; bottom: 6%; }
  .auto-btn { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  body::after, [data-surface]::after, [data-surface]::before, .band-media img { animation: none; }
  .linha { height: auto; }
  .linha-sticky { position: relative; height: auto; padding-block: 96px; }
  .linha.is-stopped .ghost, .linha.is-stopped .linha-status i { animation: none; }
}

/* ---------- Capa: "AÇOS METR◎POLE", o flange é o Ó ---------- */
.t-l, .t-r { display: flex; flex-direction: column; align-items: flex-start; }
.t-brand {
  font-family: var(--f-d); font-weight: 800; text-transform: uppercase; color: #E9E9E7;
  font-size: clamp(1.5rem, 3vw, 3.2rem); line-height: 1; letter-spacing: .32em;
  padding-left: .06em; margin-bottom: .06em;
}
.t-brand.is-ghost { visibility: hidden; }
.t-heat .t-brand { color: #FF6A1F; text-shadow: 0 0 .3em rgba(255,106,31,.7); }
.t-lit .t-brand { color: #FFF3E6; }
.hero .t-acute { /* acento agudo do Ó, em laranja, nasce atrás da borda da peça */
  position: absolute; left: var(--fx, 50%); top: calc(var(--fy, 45%) - var(--fd, 300px) * .62);
  width: calc(var(--fd, 300px) * .07); height: calc(var(--fd, 300px) * .16);
  background: var(--signal); transform: translateX(-10%) skewX(-34deg);
  box-shadow: 0 0 26px rgba(245,115,42,.55);
  opacity: clamp(0, calc(1 - var(--hp, 0) * 8), 1);
}
@media (max-width: 700px) {
  .t-brand { font-size: clamp(1.3rem, 7vw, 2rem); }
  .t-brand.is-ghost { display: none; }
  .hero .t-acute { display: none; } /* empilhado, o acento cruzaria o METR */
}

/* ---------- Montagem: dica enquanto espera a próxima rolada ---------- */
.assembly-hint {
  display: flex; align-items: center; gap: 10px; margin: 18px 0 0; font-size: .9rem; color: var(--glow);
  opacity: 0; transform: translateY(6px); transition: opacity .4s var(--ease-out), transform .4s var(--ease-out);
}
.assembly-hint i { /* roda do mouse com o ponto descendo */
  position: relative; width: 16px; height: 24px; border: 1.5px solid currentColor; border-radius: 9px; flex: none;
}
.assembly-hint i::after {
  content: ""; position: absolute; left: 50%; top: 5px; width: 3px; height: 5px; margin-left: -1.5px; border-radius: 2px;
  background: currentColor; animation: hint-wheel 1.4s cubic-bezier(.5,0,.5,1) infinite;
}
@keyframes hint-wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(8px); opacity: 0; } 100% { opacity: 0; } }
.assembly.is-waiting .assembly-hint { opacity: 1; transform: none; transition-delay: .5s; }
@media (max-width: 900px) {
  .assembly-hint { margin-top: 10px; font-size: .85rem; }
}
