/* autonoME — estilos do site (v2)
   Decisões: design-system/autonome/pages/home.md. Movimento base: motion.css (premium-motion). */

:root {
  /* Cor */
  --bg: #E7E6E3;
  --bg-deep: #D9D8D4;
  --ink: #0D0D0F;
  --ink-2: #18181B;
  --text: #1C1C1F;
  --muted: #55554F;
  --gold: #D8AC2B;
  --gold-hi: #F2D06B;
  --gold-lo: #B0841A;
  --gold-ink: #7A5A06;
  --on-dark: #F3F2EF;
  --muted-dark: #A3A29C;
  --line: rgba(13, 13, 15, .12);
  --line-dark: rgba(243, 242, 239, .12);

  /* Tipografia */
  --display: 'Syne', 'Arial Black', system-ui, sans-serif;
  --sans: 'Geist', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --t-hero: clamp(2.6rem, 1rem + 4.6vw, 5.1rem);
  --t-title: clamp(2.1rem, 1.1rem + 3.2vw, 4.4rem);
  --t-lead: clamp(1.0625rem, .98rem + .35vw, 1.3125rem);

  /* Espaço e forma */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 24px;
  --space-lg: 32px;
  --space-xl: 48px;
  --space-2xl: 64px;
  --space-3xl: 96px;
  --container: 1240px;
  --gutter: clamp(20px, 5vw, 56px);
  --section: clamp(96px, 12vw, 176px);
  --radius: clamp(24px, 3vw, 40px);
  --header-h: 84px;

  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);

  --spotlight-color: rgba(216, 172, 43, .16);
  --spotlight-size: 380px;
  --grain: 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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .09 0 0 0 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --grain-light: 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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 .06 0 0 0 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
  scroll-padding-top: calc(96px + var(--safe-top));
  background: var(--bg);
}
body {
  margin: 0;
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
  overflow-x: hidden; /* Safari < 16 */
  overflow-x: clip;
}
p { text-wrap: pretty; }
a, button, [role="slider"] { touch-action: manipulation; }
.menu-open body,
.intro-playing body { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--gold); color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.panel--dark :focus-visible,
.site-footer :focus-visible { outline-color: var(--gold); }
[hidden] { display: none !important; }
img { height: auto; }

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-left: max(var(--gutter), var(--safe-left));
  padding-right: max(var(--gutter), var(--safe-right));
}
.skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 200;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--on-dark);
  font-weight: 600;
}
.skip-link:focus { top: 16px; }

/* Fundo esfumaçado: manchas suaves que acompanham cursor e rolagem (script.js) */
.smoke {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: var(--bg) var(--grain);
}
.smoke span {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
}
.smoke span:nth-child(1) {
  top: -30vh;
  left: -20vw;
  width: 90vw;
  height: 90vw;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .85), rgba(255, 255, 255, 0));
  transform: translate3d(calc(var(--mx, 0) * 30px), calc(var(--sy, 0) * -60px), 0);
}
.smoke span:nth-child(2) {
  right: -30vw;
  bottom: -40vh;
  width: 100vw;
  height: 100vw;
  background: radial-gradient(closest-side, rgba(150, 148, 142, .32), rgba(150, 148, 142, 0));
  transform: translate3d(calc(var(--mx, 0) * -40px), calc(var(--sy, 0) * 80px), 0);
}
.smoke span:nth-child(3) {
  top: 30vh;
  right: 0;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(closest-side, rgba(216, 172, 43, .1), rgba(216, 172, 43, 0));
  transform: translate3d(calc(var(--mx, 0) * 60px), calc(var(--my, 0) * 40px + var(--sy, 0) * -40px), 0);
}

/* ---------- Tipografia e rótulos ---------- */
.label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font: 500 .75rem/1.2 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.label-num {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 22px;
  padding-inline: 8px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--gold);
  letter-spacing: .06em;
}
.label-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(216, 172, 43, .22);
}
.label--line::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.panel--dark .label { color: var(--muted-dark); }
.panel--dark .label-num { background: var(--gold); color: var(--ink); }
.title {
  font: 700 var(--t-title)/.98 var(--display);
  letter-spacing: -.045em;
  color: var(--ink);
  text-wrap: balance;
}
.panel--dark .title { color: var(--on-dark); }
.lead {
  max-width: 34em;
  font-size: var(--t-lead);
  line-height: 1.55;
  color: var(--text);
}
.panel--dark .lead { color: var(--muted-dark); }
.me { color: var(--gold-ink); }

/* Marca-texto dourado: cresce depois que o título aparece */
.hl {
  background: linear-gradient(var(--gold), var(--gold)) no-repeat 0 86% / 100% .36em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  transition: background-size .9s var(--ease-out) .45s;
}
.motion-ready [data-split]:not(.is-inview) .hl,
.motion-ready:not(.is-ready) .hero-title .hl { background-size: 0% .36em; transition-delay: 0s; }
.hl--text { background: none; color: var(--gold); }

/* ---------- Botões e links ---------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--on-dark);
  --btn-fill: var(--gold);
  --btn-fill-fg: var(--ink);
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 48px;
  padding: 6px 22px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: 600 .9375rem/1.1 var(--sans);
  letter-spacing: -.005em;
  cursor: pointer;
  transition: color .35s var(--ease-out), box-shadow .35s var(--ease-out), transform .25s var(--ease-out), translate var(--motion-base) var(--ease-spring);
}
.btn::before {
  content: "";
  position: absolute;
  left: var(--bx, 50%);
  top: var(--by, 50%);
  z-index: -1;
  width: 260%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--btn-fill);
  transform: translate(-50%, -50%) scale(0);
  transition: transform .6s var(--ease-out);
}
.btn:active { transform: scale(.97); }
.btn-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  transition: background-color .35s var(--ease-out), color .35s var(--ease-out), transform .45s var(--ease-spring);
}
.btn-icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn--lg { min-height: 60px; padding: 8px 8px 8px 28px; font-size: 1rem; }
.btn--lg .btn-icon { width: 44px; height: 44px; }
.btn--sm { min-height: 44px; padding-inline: 20px; font-size: .875rem; }
.btn--dark { --btn-fill: var(--on-dark); }

.link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  color: var(--ink);
  background: linear-gradient(currentColor, currentColor) no-repeat 0 calc(100% - 10px) / 100% 1.5px;
  transition: background-size .45s var(--ease-out), color .2s var(--ease-out);
}
.link--dark { color: var(--ink); }

/* ---------- Abertura ---------- */
.intro { display: none; }
.js-intro .intro {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  place-items: center;
  animation: intro-failsafe 0s linear 9s forwards;
}
.intro-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 55% at 50% 45%, #F4F3F1 0%, rgba(244, 243, 241, 0) 70%),
    var(--bg) var(--grain);
}
.intro-logo {
  position: relative;
  width: min(74vw, 600px);
  height: auto;
  overflow: visible;
  transform-origin: 0 0;
  will-change: transform;
}
.intro-skip {
  position: absolute;
  right: calc(20px + var(--safe-right));
  bottom: calc(20px + var(--safe-bottom));
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font: 500 .75rem/1 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(255, 255, 255, .4);
  transition: color .2s var(--ease-out), background-color .2s var(--ease-out), opacity .4s var(--ease-out);
}
.intro.is-leaving .intro-skip { opacity: 0; }
.js-intro .brand img { opacity: 0; }
@keyframes intro-failsafe { to { visibility: hidden; } }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: fixed;
  top: calc(12px + var(--safe-top));
  left: 0;
  right: 0;
  z-index: 60;
  padding-left: max(clamp(10px, 2vw, 24px), var(--safe-left));
  padding-right: max(clamp(10px, 2vw, 24px), var(--safe-right));
  transition: transform var(--motion-base) var(--ease-out);
}
.site-header.is-hidden { transform: translate3d(0, calc(-100% - 16px - var(--safe-top)), 0); }
.header-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: calc(var(--container) + 2 * var(--gutter) - 16px);
  height: 64px;
  margin-inline: auto;
  padding: 0 10px 0 22px;
  border-radius: 999px;
}
.header-bar::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, .55);
  background: rgba(240, 239, 236, .62);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 10px 40px -20px rgba(13, 13, 15, .35);
  opacity: 0;
  transition: opacity .4s var(--ease-out);
}
.site-header.is-scrolled .header-bar::before,
.menu-open .header-bar::before { opacity: 1; }
.brand { display: inline-flex; align-items: center; min-height: 44px; margin-right: auto; }
.brand img { width: auto; height: 42px; transition: opacity .2s linear; }
.nav { display: none; }
.nav ul { display: flex; gap: 4px; }
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: .875rem;
  font-weight: 500;
  color: var(--text);
  transition: background-color .25s var(--ease-out), color .25s var(--ease-out);
}
.nav a[aria-current] { background: var(--ink); color: var(--on-dark); }
.header-cta { display: none; }
.menu-toggle {
  display: grid;
  place-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink);
}
.menu-toggle span {
  display: block;
  width: 18px;
  height: 1.6px;
  background: var(--on-dark);
  transition: transform .4s var(--ease-out);
}
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.8px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.8px) rotate(-45deg); }
.page-progress {
  position: absolute;
  left: 32px;
  right: 32px;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold-lo), var(--gold), var(--gold-hi));
  pointer-events: none;
}
@media (min-width: 640px) { .header-cta { display: inline-flex; } }
@media (min-width: 1024px) {
  .nav { display: block; }
  .menu-toggle { display: none; }
}

.menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: flex;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: calc(100px + var(--safe-top)) max(var(--gutter), var(--safe-right)) calc(32px + var(--safe-bottom)) max(var(--gutter), var(--safe-left));
  background: var(--bg) var(--grain);
  transition: opacity .4s var(--ease-out);
}
.menu:not(.is-open) { opacity: 0; }
.menu-inner { display: flex; flex: 1; flex-direction: column; justify-content: space-between; gap: 40px; }
.menu-inner > .btn { align-self: flex-start; }
.menu-list a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
  font: 700 clamp(1.9rem, 8vw, 2.6rem)/1.05 var(--display);
  letter-spacing: -.04em;
  color: var(--ink);
}
.menu-list span { font: 500 .75rem/1 var(--mono); color: var(--gold-ink); letter-spacing: .1em; }
.menu-list li { transition: opacity .5s var(--ease-out), transform .6s var(--ease-out); }
.menu-list li:nth-child(2) { transition-delay: 40ms; }
.menu-list li:nth-child(3) { transition-delay: 80ms; }
.menu-list li:nth-child(4) { transition-delay: 120ms; }
.menu-list li:nth-child(5) { transition-delay: 160ms; }
.menu:not(.is-open) .menu-list li { opacity: 0; transform: translate3d(0, 20px, 0); }

/* ---------- Seções e painéis ---------- */
.section { position: relative; padding-block: var(--section); }
.panel {
  margin-inline: clamp(8px, 1.2vw, 16px);
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
}
.panel--dark {
  background: var(--ink) var(--grain-light);
  color: var(--on-dark);
}
.panel--dark::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(50% 40% at 90% 0%, rgba(216, 172, 43, .18), transparent 70%),
    radial-gradient(40% 40% at 0% 100%, rgba(216, 172, 43, .08), transparent 70%);
  pointer-events: none;
}

/* ---------- Hero ---------- */
.hero {
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding-block: calc(120px + var(--safe-top)) 56px;
}
.hero-grid { display: grid; align-items: center; gap: 24px; }
.hero-copy { display: grid; justify-items: start; gap: 28px; }
.hero-title {
  font: 700 var(--t-hero)/.94 var(--display);
  letter-spacing: -.05em;
  color: var(--ink);
  text-wrap: balance;
}
.hero-sub { max-width: 30em; font-size: var(--t-lead); line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.hero-gears { position: relative; justify-self: center; width: min(100%, 620px); }
.gears-svg { width: 100%; height: auto; overflow: visible; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.gears-svg.is-dragging { cursor: grabbing; }
.dial-ring { fill: none; stroke: rgba(13, 13, 15, .14); stroke-width: 1.2; }
.dial-ring--dash { stroke-dasharray: 2 8; }
.dial-ticks { fill: none; stroke: rgba(13, 13, 15, .22); stroke-width: 1.2; }
.g-light { pointer-events: none; mix-blend-mode: soft-light; }
.g-ripples circle { fill: none; stroke: var(--gold); stroke-width: 2; transform-box: fill-box; transform-origin: center; pointer-events: none; }
.gears-readout {
  position: absolute;
  left: 50%;
  bottom: 2%;
  display: flex;
  align-items: center;
  gap: 14px;
  translate: -50% 0;
  padding: 8px 8px 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .55);
  border: 1px solid rgba(255, 255, 255, .7);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font: 500 .75rem/1 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.readout-hint { display: inline-flex; align-items: center; gap: 8px; }
.readout-hint svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.readout-deg {
  min-width: 5ch;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  text-align: center;
}

/* Entrada do hero (depois da abertura) */
.hero [data-in],
.hero-title .split-word > span {
  transition: opacity .9s var(--ease-out), transform 1.1s var(--ease-out);
}
.hero-title .split-word > span { transition-delay: calc(var(--w, 0) * 70ms + .05s); }
.hero .label[data-in] { transition-delay: 0s; }
.hero-sub[data-in] { transition-delay: .45s; }
.hero-actions[data-in] { transition-delay: .6s; }
.hero-gears[data-in] { transition-delay: .2s; transition-duration: 1.2s, 1.6s; }
.motion-ready:not(.is-ready) .hero [data-in] { opacity: 0; transform: translate3d(0, 28px, 0); }
.motion-ready:not(.is-ready) .hero-gears[data-in] { transform: translate3d(0, 40px, 0) scale(.92) rotate(-6deg); }
.motion-ready:not(.is-ready) .hero-title .split-word > span { transform: translate3d(0, 115%, 0) rotate(4deg); }

@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px; }
  .hero-gears { justify-self: end; }
}

/* ---------- Quem somos ---------- */
.about-grid { display: grid; gap: 28px; }
.title .me { color: var(--gold-ink); }
.mission {
  display: grid;
  gap: 24px;
  margin-top: clamp(80px, 11vw, 160px);
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.mission-text {
  max-width: 22ch;
  font: 600 clamp(1.9rem, 1rem + 3vw, 3.9rem)/1.04 var(--display);
  letter-spacing: -.04em;
  color: var(--ink);
}
.mission-text .w { opacity: var(--o, 1); transition: opacity .2s linear; }
@media (min-width: 1024px) {
  .about-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 64px; align-items: end; }
  .about-grid .label { grid-column: 1 / -1; }
  .mission { grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); }
  .mission .label { align-self: start; margin-top: 18px; }
}

/* ---------- O que fazemos: mapa ---------- */
.what-grid { display: grid; gap: 56px; align-items: center; }
.what-copy { display: grid; justify-items: start; gap: 28px; }
.deliver { display: flex; flex-wrap: wrap; gap: 8px; }
.deliver li {
  padding: 9px 16px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  font-size: .875rem;
  color: var(--on-dark);
}
.map { display: grid; gap: 20px; }
.map-stage {
  position: relative;
  padding: clamp(16px, 3vw, 32px);
  border: 1px solid var(--line-dark);
  border-radius: calc(var(--radius) - 8px);
  background: rgba(255, 255, 255, .02);
}
.map-svg { width: 100%; height: auto; overflow: visible; touch-action: manipulation; }
.hex {
  --d: 0;
  fill: rgba(243, 242, 239, .07);
  stroke: rgba(243, 242, 239, .14);
  stroke-width: 1;
  cursor: pointer;
  transform-box: fill-box;
  transform-origin: center;
  transition: fill .5s var(--ease-out), stroke .5s var(--ease-out), opacity .7s var(--ease-out), transform .8s var(--ease-spring);
  transition-delay: calc(var(--d) * 1ms);
}
.hex.is-hover { fill: rgba(216, 172, 43, .3); transition-delay: 0s; }
.hex.is-on { fill: var(--gold); stroke: var(--gold-hi); }
.hex.is-pop { animation: hex-pop .7s var(--ease-spring) calc(var(--d) * 1ms) both; }
@keyframes hex-pop {
  0% { transform: scale(.55); }
  100% { transform: scale(1); }
}
.motion-ready .map:not(.is-seen) .hex { opacity: 0; transform: scale(.3); }
.map-labels text {
  font: 500 11px var(--mono);
  letter-spacing: .1em;
  fill: var(--muted-dark);
  pointer-events: none;
  text-anchor: middle;
  transition: fill .4s var(--ease-out);
}
.map-labels text.is-on { fill: var(--ink); }
.map-compass {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  font: 500 .6875rem/1 var(--mono);
  color: var(--gold);
}
.map-panel { display: grid; gap: 18px; }
.zones { display: flex; flex-wrap: wrap; gap: 6px; }
.zone-btn {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  font-size: .875rem;
  font-weight: 500;
  color: var(--on-dark);
  transition: background-color .3s var(--ease-out), color .3s var(--ease-out), border-color .3s var(--ease-out);
}
.zone-btn[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.zone-info { min-height: 3.4em; }
.zone-name { font: 700 1.5rem/1.1 var(--display); letter-spacing: -.03em; color: var(--on-dark); }
.zone-list { margin-top: 6px; color: var(--muted-dark); font-size: .9375rem; }
.zone-info.is-swap { animation: info-swap .55s var(--ease-out); }
@keyframes info-swap {
  from { opacity: 0; transform: translate3d(0, 10px, 0); }
  to { opacity: 1; transform: none; }
}
@media (min-width: 1024px) {
  .what-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 72px; }
}

/* ---------- Como fazemos: cremalheira e pinhão ---------- */
.how-head { display: grid; gap: 24px; margin-bottom: clamp(56px, 7vw, 96px); }
.rack-wrap {
  --pin: 76px;
  position: relative;
  height: calc(var(--pin) + 18px);
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.rack-wrap.is-dragging { cursor: grabbing; }
.rack {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 16px;
  /* dente trapezoidal com o mesmo passo do pinhão (2π · raio primitivo ÷ 9 dentes) */
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 23.07 16'%3E%3Cpath fill='%230D0D0F' d='M0 9h23.07v7H0zM4.4 9l2.6-7.4q.3-.9 1.2-.9h6.7q.9 0 1.2.9L18.7 9z'/%3E%3C/svg%3E") repeat-x 0 0 / 23.07px 16px;
}
.rack-fill {
  position: absolute;
  left: 0;
  right: 0;
  top: 11px;
  height: 5px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--gold-lo), var(--gold), var(--gold-hi));
  transform-origin: left;
  transform: scaleX(var(--fill, 0));
}
.pinion {
  position: absolute;
  left: 0;
  bottom: 5px;
  width: var(--pin);
  height: var(--pin);
  border-radius: 50%;
  touch-action: none;
  cursor: grab;
  will-change: transform;
}
.pinion-svg { width: 100%; height: 100%; fill: var(--ink); filter: drop-shadow(0 8px 10px rgba(13, 13, 15, .25)); }
.pinion:focus-visible { outline-offset: 6px; }
.steps { display: grid; gap: 8px; margin-top: 28px; }
.step {
  position: relative;
  display: grid;
  gap: 6px;
  width: 100%;
  padding: 20px 20px 22px;
  border-radius: 20px;
  text-align: left;
  transition: background-color .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.step.is-active { background: rgba(255, 255, 255, .7); box-shadow: 0 20px 40px -28px rgba(13, 13, 15, .4); }
.step-num { font: 500 .75rem/1 var(--mono); letter-spacing: .12em; color: var(--muted); transition: color .4s var(--ease-out); }
.step.is-active .step-num { color: var(--gold-ink); }
.step-title { font: 700 clamp(1.4rem, 1.1rem + .8vw, 1.85rem)/1.1 var(--display); letter-spacing: -.035em; color: var(--ink); }
.step-text { color: var(--muted); font-size: .9688rem; line-height: 1.5; }
.hint { margin-top: 20px; font: 500 .75rem/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
}

/* ---------- Por que nós ---------- */
.why-head { display: grid; gap: 24px; margin-bottom: clamp(48px, 6vw, 80px); }
.why-grid { display: grid; gap: 12px; }
.card-in {
  position: relative;
  display: grid;
  align-content: start;
  gap: 12px;
  height: 100%;
  padding: clamp(28px, 3vw, 40px);
  padding-top: clamp(44px, 4vw, 56px);
  border: 1px solid var(--line-dark);
  border-radius: 24px;
  background: rgba(255, 255, 255, .025);
  overflow: hidden;
  transition: transform var(--motion-base) var(--ease-out), border-color .4s var(--ease-out);
}
.card-in:active { transform: perspective(900px) scale(.985); }
.card-teeth {
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 8px;
  background: repeating-linear-gradient(to right, var(--gold) 0 10px, transparent 10px 22px) 0 0 / 200% 100%;
  opacity: .9;
  transition: background-position 1.2s var(--ease-out);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
}
.card-num { font: 500 .75rem/1 var(--mono); letter-spacing: .12em; color: var(--gold); }
.card h3 { font: 700 clamp(1.6rem, 1.2rem + 1vw, 2.2rem)/1.05 var(--display); letter-spacing: -.04em; color: var(--on-dark); }
.card p { max-width: 30em; color: var(--muted-dark); }
@media (min-width: 768px) { .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Contato ---------- */
.panel--gold {
  background:
    radial-gradient(70% 90% at 15% 0%, rgba(255, 236, 170, .55), transparent 60%),
    linear-gradient(140deg, #E6BC3E, var(--gold) 45%, #C99A1F) ;
  color: var(--ink);
}
.panel--gold::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--grain);
  pointer-events: none;
}
.contact { padding-block: clamp(112px, 14vw, 200px); }
.contact-gears {
  position: absolute;
  right: -12%;
  top: 50%;
  z-index: -1;
  width: min(90vw, 820px);
  translate: 0 -50%;
  overflow: visible;
  pointer-events: none;
}
.contact-gears use { fill: none; stroke: rgba(13, 13, 15, .16); stroke-width: 1.5; }
.contact-inner { display: grid; justify-items: start; gap: 28px; }
.contact .label { color: rgba(13, 13, 15, .78); }
.contact-title {
  max-width: 11ch;
  font: 800 clamp(2.8rem, 1rem + 6.4vw, 7.4rem)/.9 var(--display);
  letter-spacing: -.055em;
  color: var(--ink);
}
.contact-text { max-width: 26em; font-size: var(--t-lead); }
.contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; margin-top: 8px; }

/* ---------- Rodapé ---------- */
.site-footer {
  margin: 16px clamp(8px, 1.2vw, 16px) calc(clamp(8px, 1.2vw, 16px) + var(--safe-bottom));
  padding-block: 56px 40px;
  border-radius: var(--radius);
  background: var(--ink) var(--grain-light);
  color: var(--muted-dark);
}
.footer-inner { display: grid; gap: 32px; }
.footer-logo img { width: 150px; height: auto; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 4px 8px; }
.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  margin-left: -12px;
  border-radius: 999px;
  color: var(--on-dark);
  transition: color .2s var(--ease-out), background-color .2s var(--ease-out);
}
.footer-copy { font-size: .875rem; }
.footer-copy a { color: var(--on-dark); }
@media (min-width: 900px) {
  .footer-inner { grid-template-columns: auto 1fr; align-items: center; }
  .footer-nav { justify-content: flex-end; }
  .footer-copy { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--line-dark); }
}


/* ---------- Hover só em aparelhos com cursor; toque recebe estado :active ---------- */
@media (hover: hover) {
  .btn:hover { color: var(--btn-fill-fg); box-shadow: 0 18px 40px -18px rgba(13, 13, 15, .55); }
  .btn:hover::before { transform: translate(-50%, -50%) scale(1); }
  .btn:hover .btn-icon { background: var(--ink); color: var(--gold); transform: rotate(-45deg); }
  .btn--dark:hover .btn-icon { background: var(--ink); }
  .link:hover { background-size: 0% 1.5px; background-position: 100% calc(100% - 10px); }
  .intro-skip:hover { color: var(--ink); background: rgba(255, 255, 255, .8); }
  .nav a:not([aria-current]):hover { background: rgba(13, 13, 15, .06); }
  .zone-btn:hover { border-color: var(--gold); }
  .step:not(.is-active):hover { background: rgba(255, 255, 255, .35); }
  .card-in:hover { border-color: rgba(216, 172, 43, .45); }
  .card-in:hover .card-teeth { background-position: -88px 0; }
  .footer-nav a:hover { color: var(--gold); background: rgba(255, 255, 255, .05); }
  .footer-copy a:hover { color: var(--gold); }
}
.step:not(.is-active):active { background: rgba(255, 255, 255, .5); }
.zone-btn:active { border-color: var(--gold); }
.nav a:active,
.menu-list a:active { color: var(--gold-ink); }
.footer-nav a:active { color: var(--gold); }
.link:active { color: var(--gold-ink); }

/* ---------- Sem backdrop-filter ---------- */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .header-bar::before { background: rgba(240, 239, 236, .96); }
  .gears-readout { background: rgba(255, 255, 255, .92); }
}

/* ---------- Telas muito estreitas (Galaxy Fold, iPhone SE 1ª geração) ---------- */
@media (max-width: 359px) {
  :root { --t-hero: 2.3rem; --t-title: 1.95rem; --gutter: 16px; }
  .label { letter-spacing: .08em; gap: 8px; }
  .btn--lg { padding-left: 22px; font-size: .9375rem; }
  .gears-readout { gap: 8px; padding-left: 12px; font-size: .6875rem; }
}

/* ---------- Celulares na horizontal: hero em duas colunas e menu compacto ---------- */
@media (orientation: landscape) and (max-height: 540px) and (min-width: 600px) {
  .hero { min-height: auto; padding-block: calc(96px + var(--safe-top)) 40px; }
  .hero-grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 24px; }
  .hero-copy { gap: 18px; }
  .hero-title { font-size: clamp(2rem, .8rem + 3.4vw, 3.2rem); }
  .hero-gears { width: min(100%, 360px); justify-self: end; }
  .section { padding-block: clamp(72px, 9vw, 112px); }
  .menu { padding-top: calc(84px + var(--safe-top)); }
  .menu-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
  .menu-list a { padding-block: 10px; font-size: 1.5rem; }
}

/* ---------- Movimento mais curto em telas pequenas ---------- */
@media (max-width: 640px) {
  :root { --motion-distance: 16px; --motion-slow: 640ms; }
}

/* ---------- Toque: fundo esfumaçado estático (economiza bateria em Android/iOS) ---------- */
@media (hover: none) {
  .smoke span { transform: none; will-change: auto; }
}

/* ---------- Impressão ---------- */
@media print {
  .intro, .smoke, .site-header, .menu, .gears-readout, .hint, .skip-link, .contact-gears { display: none !important; }
  .panel, .site-footer { margin: 0; border-radius: 0; }
  .panel--dark, .panel--gold, .site-footer { background: none; color: #000; }
  .panel--dark .title, .panel--dark .lead, .card h3, .card p, .zone-name, .zone-list { color: #000; }
  .section { padding-block: 32px; }
}

/* ---------- Página 404 ---------- */
.not-found main { display: grid; min-height: 100svh; place-items: center; }
.not-found-inner { display: grid; justify-items: start; gap: 28px; max-width: 720px; }
.not-found .brand img { height: 56px; }

/* ---------- Movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .smoke span { transform: none; }
  .hl,
  .btn::before,
  .btn-icon,
  .hero [data-in],
  .hero-title .split-word > span,
  .hex,
  .card-teeth,
  .menu,
  .menu-list li,
  .step { transition: none; }
  .hex.is-pop,
  .zone-info.is-swap { animation: none; }
  .js-intro .intro { display: none; }
}
