/* AM Soluções de Engenharia. Tokens and rules: see DESIGN.md */

:root {
  --black: #040503;
  --panel: #161616;
  --beige: #EFECE6;
  --paper: #F7F5F1;
  --ink: #15181B;
  --on-dark: #EFECE6;
  --on-dark-2: #BFBCB7;
  --on-dark-3: #8A8782;
  --on-beige-2: #5E5A54;
  --on-beige-3: #6F6B64;
  --line-dark: rgba(239, 236, 230, .14);
  --line-light: rgba(4, 5, 3, .12);
  --terrain: #9A968E;
  --accent: #D9531E;
  --accent-strong: #C4471A;
  --fill: #5A5FA8;
  --water: #2E6DA4;
  --ok: #2F7D4F;

  --sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --ease: cubic-bezier(.33, 1, .68, 1);
  --gutter: 16px;
  --dock-h: 52px;
}
@media (min-width: 900px) { :root { --gutter: 48px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--black);
  color: var(--on-dark);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ol, ul, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* mono label */
.pill, .band__caption, .stack__eyebrow, .feat__pill, .stat__label, .app__label, .app__crumb,
.detail__title, .steps span, .timeline__t, .viz__legend, .range__end {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* ============ Header ============ */
.top {
  display: flex;
  justify-content: center;
  padding: 32px var(--gutter) 0;
  position: relative;
  z-index: 3;
}
.top__logo { display: inline-flex; align-items: center; gap: 14px; color: var(--on-dark); }
.mark { width: auto; height: 34px; }
.top__word { font-family: var(--mono); font-size: 16px; letter-spacing: .12em; text-transform: uppercase; }
@media (max-width: 420px) { .top__logo { gap: 10px; } .top__word { font-size: 13px; letter-spacing: .06em; } .mark { height: 28px; } }

/* ============ Hero ============ */
.hero { position: relative; height: 175svh; }
.hero__pin {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  --p: 0;
}
.hero__copy {
  position: absolute;
  inset: 12svh 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 var(--gutter);
  transform-origin: 50% 0;
  transform: translateY(calc(var(--p) * -6svh)) scale(calc(1 - var(--p) * .42));
  z-index: 2;
}
.hero__title {
  margin-top: 28px;
  font-weight: 300;
  font-size: clamp(52px, 8.6vw, 136px);
  line-height: .98;
  letter-spacing: -.035em;
  max-width: 20ch;
  text-wrap: balance;
}
.hero__title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.hero__title .w > span {
  display: inline-block;
  transform: translateY(105%);
  transition: transform 1s var(--ease);
  transition-delay: calc(var(--i) * 70ms + 150ms);
}
.is-loaded .hero__title .w > span { transform: none; }

/* glowing pill */
.glow {
  position: relative;
  display: inline-flex;
  padding: 1px;
  border-radius: 999px;
  overflow: hidden;
  isolation: isolate;
}
.glow::before {
  content: "";
  position: absolute;
  inset: -200%;
  background: conic-gradient(from 0deg, transparent 0 70%, var(--accent) 82%, #F6B48E 88%, transparent 96%);
  animation: spin 4s linear infinite;
  z-index: -1;
}
.glow::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 1px solid var(--line-dark); z-index: -1; }
.glow__inner {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--panel);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--on-dark);
  transition: background .3s var(--ease);
}
.glow:hover .glow__inner { background: #222; }
@keyframes spin { to { transform: rotate(1turn); } }

/* device */
.hero__device {
  position: absolute;
  left: 50%;
  top: calc(76svh - var(--p) * 46svh);
  width: min(1080px, 92vw);
  transform: translateX(-50%);
  z-index: 1;
}
.device {
  border-radius: 22px 22px 0 0;
  background: #1D1E1C;
  padding: 14px 14px 0;
  border: 1px solid #3A3B38;
  border-bottom: 0;
  box-shadow: 0 -30px 80px rgba(0, 0, 0, .5);
}
.device__screen { border-radius: 10px 10px 0 0; overflow: hidden; background: var(--black); aspect-ratio: 16 / 9.4; }

.app { display: grid; grid-template-columns: 44px 1fr; height: 100%; color: var(--ink); }
.app__side { background: var(--black); display: flex; flex-direction: column; align-items: center; gap: 12px; padding-top: 14px; }
.app__logo { width: auto; height: 18px; color: var(--beige); margin-bottom: 8px; }
.app__ico { width: 14px; height: 14px; border-radius: 3px; background: #3A3B38; }
.app__ico.is-on { background: var(--beige); }
.app__main { display: flex; flex-direction: column; background: #111210; padding: 10px 12px 0 0; }
.app__bar { display: flex; justify-content: space-between; align-items: center; padding: 6px 4px 12px 8px; color: var(--on-dark); }
.app__crumb { color: var(--on-dark-3); font-size: 9px; }
.app__name { font-size: 12px; }
.app__chip { font-family: var(--mono); font-size: 9px; letter-spacing: .06em; text-transform: uppercase; color: #9FD8B4; border: 1px solid rgba(159, 216, 180, .35); padding: 3px 8px; border-radius: 99px; }
.app__body { flex: 1; display: grid; grid-template-columns: 1fr 26%; gap: 1px; background: var(--line-light); border-radius: 8px 8px 0 0; overflow: hidden; }
.app__canvas { background: var(--paper); position: relative; }
.app__canvas svg { width: 100%; height: 100%; }
.app__panel { background: var(--paper); padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.app__label { color: var(--on-beige-3); font-size: 9px; margin-top: 10px; }
.app__big { font-size: clamp(18px, 2.4vw, 30px); font-weight: 500; letter-spacing: -.02em; display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; align-items: baseline; }
.app__big small { font-size: .5em; color: var(--on-beige-3); }
.app__layers { display: grid; gap: 5px; font-size: 11px; }
.app__layers i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; background: var(--c); margin-right: 6px; }
.app__ok { font-size: 12px; color: var(--ok); }

/* ============ Bands ============ */
.band { position: relative; z-index: 2; background: var(--beige); color: var(--black); }
.band--value {
  margin-top: -38svh;
  padding: clamp(72px, 12vw, 140px) var(--gutter);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.band__title {
  font-weight: 300;
  font-size: clamp(40px, 5.4vw, 76px);
  line-height: 1.04;
  letter-spacing: -.03em;
}
.band__lead { margin-top: 20px; max-width: 34ch; font-size: clamp(17px, 1.5vw, 20px); font-weight: 300; line-height: 1.4; color: var(--on-beige-2); }
.band__caption { margin-top: 18px; color: var(--on-beige-3); }
.disciplines {
  margin-top: 44px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 30px;
}
.disciplines li { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--on-beige-2); }
.disciplines svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }

/* ============ Stack (pinned) ============ */
.stack { position: relative; height: calc(var(--steps) * 85svh + 30svh); }
.stack__pin {
  position: sticky;
  top: 0;
  height: 100svh;
  display: grid;
  grid-template-rows: 46svh 1fr;
  gap: 20px;
  padding: 16px var(--gutter) calc(var(--dock-h) + 32px);
}
@media (min-width: 900px) {
  .stack__pin {
    grid-template-rows: none;
    grid-template-columns: minmax(0, 44fr) minmax(0, 56fr);
    gap: 0;
    padding-top: 72px;
    padding-bottom: calc(var(--dock-h) + 44px);
  }
}

.stack__card {
  position: relative;
  background: var(--beige);
  color: var(--black);
  border-radius: 10px;
  overflow: hidden;
  max-width: 820px;
  width: 100%;
}

/* per-step visual */
.viz {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 24px clamp(18px, 4vw, 56px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6%);
  transition: opacity .4s var(--ease), transform .8s var(--ease), visibility 0s linear .8s;
}
.viz.is-above { transform: translateY(-6%); }
.viz.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .5s var(--ease) .28s, transform .9s var(--ease) .28s, visibility 0s;
}

.stat {
  border: 1px solid var(--line-light);
  border-radius: 14px;
  padding: 16px 22px 14px;
  background: rgba(255, 255, 255, .35);
  text-align: left;
  min-width: min(100%, 300px);
}
.stat__label { color: var(--on-beige-3); font-size: 10px; }
.stat__value {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 6px;
  font-size: clamp(30px, 3.6vw, 46px);
  font-weight: 500;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.stat__value small { font-size: .42em; font-weight: 400; color: var(--on-beige-3); letter-spacing: 0; }
.viz__stem { width: 1px; height: 26px; background: var(--line-light); flex: none; }
.viz__art { width: 100%; max-width: 520px; }
.viz__art svg { width: 100%; height: auto; }
.viz__legend { margin-top: 14px; color: var(--on-beige-3); font-size: 10px; display: flex; align-items: center; gap: 6px 16px; flex-wrap: wrap; justify-content: center; text-align: center; }
.viz__legend > span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.k { display: inline-block; width: 10px; height: 10px; border-radius: 2px; }
.k--lot { background: #fff; border: 1px solid var(--ink); }
.k--lost { background: repeating-linear-gradient(135deg, var(--accent) 0 1.5px, transparent 1.5px 4px); border: 1px solid var(--accent); }

/* step 1: lots */
.lot { fill: #fff; stroke: var(--ink); stroke-width: .8; transition: fill .5s var(--ease), stroke .5s var(--ease); }
.lot.is-lost { transition-delay: calc(var(--d) * 60ms + 700ms); }
.viz.is-active .lot.is-lost { fill: url(#hatch-lost); stroke: var(--accent); }
.range { display: flex; align-items: center; gap: 10px; width: 100%; max-width: 520px; margin-top: 16px; }
.range__end { font-size: 10px; color: var(--on-beige-3); }
.range__track { flex: 1; height: 4px; border-radius: 4px; background: var(--line-light); position: relative; overflow: hidden; }
.range__fill { position: absolute; inset: 0; background: var(--ink); transform-origin: 0 50%; transform: scaleX(0); transition: transform 1.4s var(--ease) .6s; }
.viz.is-active .range__fill { transform: none; }

/* step 2: profile */
.draw { stroke-dasharray: var(--len, 1000); stroke-dashoffset: var(--len, 1000); transition: stroke-dashoffset 1.6s var(--ease) .5s; }
.viz.is-active .draw { stroke-dashoffset: 0; }
.area { opacity: 0; transition: opacity .8s var(--ease) 1.4s; }
.viz.is-active .area { opacity: 1; }
.bars { width: 100%; max-width: 520px; display: grid; gap: 7px; margin-top: 16px; }
.bars__row { display: grid; grid-template-columns: 72px 1fr; align-items: center; font-size: 12px; color: var(--on-beige-2); }
.bars__bar { height: 8px; border-radius: 4px; width: var(--w); transform-origin: 0 50%; transform: scaleX(0); transition: transform 1.1s var(--ease) 1.2s; }
.viz.is-active .bars__bar { transform: none; }
.bars__bar--cut { background: var(--accent); }
.bars__bar--fill { background: var(--fill); transition-delay: 1.35s; }
.bars__bar--waste { background: repeating-linear-gradient(135deg, var(--accent) 0 2px, transparent 2px 5px); border: 1px solid var(--accent); transition-delay: 1.5s; }

/* step 3: networks */
.ring { transform-box: fill-box; transform-origin: center; opacity: 0; }
.viz.is-active .ring { animation: ring 2.2s var(--ease) calc(1.2s + var(--d) * .3s) infinite; }
@keyframes ring { 0% { opacity: .9; transform: scale(.4); } 70%, 100% { opacity: 0; transform: scale(1.6); } }
.hit { opacity: 0; transition: opacity .4s var(--ease) calc(1.1s + var(--d) * .3s); }
.viz.is-active .hit { opacity: 1; }
.rows { width: 100%; max-width: 520px; margin-top: 14px; display: grid; }
.rows li { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line-light); opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease), transform .6s var(--ease); }
.rows li:nth-child(1) { transition-delay: 1.3s; }
.rows li:nth-child(2) { transition-delay: 1.45s; }
.rows li:nth-child(3) { transition-delay: 1.6s; }
.viz.is-active .rows li { opacity: 1; transform: none; }
.rows__dot { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--c); position: relative; }
.rows__dot::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--c); }
.rows b { display: block; font-weight: 500; font-size: 13px; }
.rows span { display: block; font-size: 12px; color: var(--on-beige-3); }
.rows em { font-style: normal; font-size: 12px; color: var(--on-beige-2); font-variant-numeric: tabular-nums; }

/* step 4: timeline */
.timeline { width: 100%; max-width: 520px; margin-top: 4px; }
.timeline li {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-light);
  font-size: 13px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .5s var(--ease), transform .6s var(--ease);
  transition-delay: calc(var(--d) * 140ms + 600ms);
}
.viz.is-active .timeline li { opacity: 1; transform: none; }
.timeline b { font-weight: 500; }
.timeline li div span { display: block; margin-top: 2px; font-size: 11px; color: var(--on-beige-3); }
.timeline em { font-style: normal; font-family: var(--mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--on-beige-3); }
.timeline__t { color: var(--on-beige-3); font-size: 10px; }
.timeline .is-back .timeline__t, .timeline .is-back em { color: var(--accent-strong); }
.timeline .is-done { border-bottom: 0; }
.timeline .is-done b { font-size: 15px; }
.timeline .is-done .timeline__t { color: var(--black); font-weight: 500; }

/* step 4: pavement layers, drawn from the surface down */
.pave { width: 100%; max-width: 520px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.pave__col { display: grid; gap: 8px; }
.pave__cbr { font-family: var(--mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--on-beige-3); min-height: 2.6em; }
.pave__stack {
  height: calc(var(--h) * 1.9px);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--ink);
  transform-origin: 50% 0;
  transform: scaleY(0);
  transition: transform 1.1s var(--ease) .6s;
}
.pave__col:nth-child(2) .pave__stack { transition-delay: .75s; }
.pave__col:nth-child(3) .pave__stack { transition-delay: .9s; }
.viz.is-active .pave__stack { transform: none; }
.pave__stack i { flex: var(--t) 1 0; min-height: 0; }
.pave b { font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; }
.l1, .k--l1 { background: var(--ink); }
.l2, .k--l2 { background: var(--terrain); }
.l3, .k--l3 { background: #D3CEC5; }
.l4, .k--l4 { background: repeating-linear-gradient(135deg, var(--terrain) 0 1px, #fff 1px 5px); }
.k--l3, .k--l4 { border: 1px solid var(--terrain); }
.rows--pave { margin-top: 10px; }

/* estrutural.html: structure steps */
.k--pile { background: var(--ink); }
.bars__bar--ink { background: var(--ink); }
.bars__bar--muted { background: var(--terrain); }
.bars--values .bars__row { grid-template-columns: 72px 1fr 40px; gap: 8px; }
.bars--values b { font-size: 12px; font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; }
.bars--values .bars__row:nth-child(2) .bars__bar { transition-delay: 1.35s; }
.bars--values .bars__row:nth-child(3) .bars__bar { transition-delay: 1.5s; }
.bars--values .bars__row:nth-child(4) .bars__bar { transition-delay: 1.65s; }
.sink { transition: transform 1.2s var(--ease) .9s; }
.viz.is-active .sink { transform: translateY(10px); }
.crackline { opacity: 0; transition: opacity .4s var(--ease) 1.9s; }
.viz.is-active .crackline { opacity: 1; }

/* text column */
.stack__text {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 0;
}
@media (min-width: 900px) {
  .stack__text { padding-left: clamp(40px, 10vw, 200px); padding-right: var(--gutter); }
}
.stack__eyebrow { display: flex; justify-content: space-between; gap: 16px; color: var(--on-dark-3); }
.stack__count { color: var(--on-dark-2); font-variant-numeric: tabular-nums; }
.feats { display: grid; align-items: end; flex: 1; min-height: 0; }
.feat { grid-area: 1 / 1; align-self: end; max-width: 520px; visibility: hidden; transition: visibility 0s linear .8s; }
.feat.is-active { visibility: visible; transition: visibility 0s; }

/* mask reveal: each line slides inside its own clip */
.m { display: block; overflow: hidden; padding-bottom: .06em; }
.m > span {
  display: block;
  opacity: 0;
  transform: translateY(var(--dy, 100%));
  transition: transform .8s var(--ease), opacity .4s var(--ease);
  transition-delay: calc(var(--o, 0) * 40ms);
}
.feat.is-above .m > span { transform: translateY(calc(var(--dy, 100%) * -1)); }
.feat.is-active .m > span {
  opacity: 1;
  transform: none;
  transition-delay: calc(var(--o, 0) * 60ms + 300ms);
}
.feat__pill .m { display: inline-block; }
.feat__pill .m > span { display: inline-block; padding: 7px 14px; border: 1px solid var(--line-dark); border-radius: 999px; color: var(--on-dark); }
.feat__head { margin-top: 18px; font-weight: 300; font-size: clamp(56px, 7vw, 104px); line-height: 1.02; letter-spacing: -.02em; --o: 1; }
.feat__title { margin-top: 20px; font-size: clamp(17px, 1.5vw, 20px); font-weight: 400; line-height: 1.4; max-width: 30ch; text-wrap: balance; --o: 2; --dy: 60%; }
.feat__text { margin-top: 14px; font-size: clamp(15px, 1.35vw, 18px); font-weight: 300; line-height: 1.5; color: var(--on-dark-2); max-width: 40ch; --o: 3; --dy: 40%; }
.feat__note { margin-top: 18px; font-size: 11px; color: var(--on-dark-3); max-width: 52ch; --o: 4; --dy: 60%; }
.feat__pill { --dy: 110%; }

@media (max-width: 899px) {
  .feat__text { margin-top: 8px; font-size: 15px; }
  .feat__head { margin-top: 10px; }
  .feat__title { margin-top: 10px; }
  .feat__note { margin-top: 10px; }
  .stat { padding: 12px 16px 10px; }
  .viz { padding: 16px; }
  .viz__stem { height: 14px; }
  .rows li { padding: 6px 0; }
  .rows li:nth-child(3), .timeline li:nth-child(4), .timeline li:nth-child(5) { display: none; }
  .timeline li { padding: 7px 0; }
  .pave { gap: 10px; }
  .pave__stack { height: calc(var(--h) * 1.15px); }
  .rows--pave { display: none; }
  .timeline--keep li:nth-child(4) { display: grid; }
  .timeline--keep li:nth-child(3) { display: none; }
  .bars--values .bars__row:nth-child(4) { display: none; }
  .bars, .range { margin-top: 10px; }
}

@media (max-width: 899px) and (max-height: 760px) {
  .feat__text { display: none; }
}

/* ============ Band 2: sheet ============ */
.band--sheet { overflow: hidden; }
.sheetband {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(80px, 11vw, 140px) var(--gutter) 0;
  display: grid;
  gap: 56px;
}
.band__title--left { font-size: clamp(44px, 6vw, 88px); }
.band__lead--left { max-width: 38ch; }
.btn-ink {
  display: inline-flex;
  margin-top: 28px;
  padding: 11px 18px;
  border-radius: 8px;
  background: var(--black);
  color: var(--beige);
  font-size: 14px;
  font-weight: 500;
  transition: background .3s var(--ease);
}
.btn-ink:hover { background: #2A2A28; }
.steps { margin-top: 40px; display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); gap: 8px 32px; font-size: 14px; color: var(--on-beige-2); }
.steps li { display: flex; gap: 10px; align-items: baseline; }
.steps span { color: var(--on-beige-3); }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, max-content); } }

.sheetband__art { position: relative; height: clamp(280px, 40vw, 520px); }
.sheet {
  position: absolute;
  right: 0;
  top: 0;
  width: min(88%, 900px);
  height: 118%;
  background: #fff;
  border-radius: 14px 14px 0 0;
  box-shadow: 0 30px 80px rgba(20, 16, 10, .18);
  padding: 18px;
  display: grid;
  grid-template-columns: 1fr 22%;
  gap: 14px;
}
.sheet__plan { border: 1px solid var(--ink); position: relative; overflow: hidden; }
.sheet__plan svg { width: 100%; height: 100%; }
.sheet__block { border: 1px solid var(--ink); align-self: start; padding: 10px; font-size: 11px; line-height: 1.5; color: var(--ink); display: grid; gap: 2px; }
.sheet__block b { font-weight: 600; }
.sheet__meta { display: flex; justify-content: space-between; margin-top: 8px; padding-top: 6px; border-top: 1px solid var(--ink); font-family: var(--mono); font-size: 9px; text-transform: uppercase; }
.detail {
  position: absolute;
  left: 0;
  top: 18%;
  z-index: 1;
  width: min(44%, 380px);
  background: var(--black);
  color: var(--on-dark);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 30px 70px rgba(20, 16, 10, .3);
}
.detail__title { color: var(--on-dark-3); font-size: 10px; margin-bottom: 10px; }
.detail svg { width: 100%; height: auto; }
@media (max-width: 899px) {
  .sheet { width: 100%; height: auto; aspect-ratio: 1.15; grid-template-columns: 1fr; }
  .sheet__block { display: none; }
  .detail { top: auto; bottom: 16px; width: 62%; }
}
@media (min-width: 900px) {
  .sheetband { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; padding-bottom: 0; }
  .sheetband__copy { padding-bottom: 120px; }
  .sheetband__art { height: 100%; min-height: 560px; }
  .sheet { top: 200px; height: auto; aspect-ratio: 1.414; width: 100%; right: calc(var(--gutter) * -1 - 40px); }
  .detail { left: -40px; top: 130px; }
}

/* ============ People ============ */
.people { padding: clamp(96px, 12vw, 160px) var(--gutter) 40px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.pill { padding: 6px 12px; border: 1px solid var(--line-dark); border-radius: 999px; color: var(--on-dark-2); font-size: 10px; }
.people__title { margin-top: 22px; font-weight: 300; font-size: clamp(32px, 3.6vw, 52px); line-height: 1.1; letter-spacing: -.02em; }
.people__duo { margin-top: 48px; display: grid; gap: 40px; justify-content: center; }
@media (min-width: 720px) { .people__duo { grid-template-columns: repeat(2, min(340px, 40vw)); gap: 32px; } }
.person { width: min(340px, 80vw); text-align: left; }
@media (min-width: 720px) { .person { width: auto; } }
.person img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; border-radius: 6px; filter: saturate(.9); transition: transform 1.2s var(--ease); }
.person:hover img { transform: scale(1.015); }
.person figcaption { margin-top: 12px; display: grid; gap: 2px; font-size: 14px; }
.person b { font-weight: 500; }
.person span { color: var(--on-dark-3); }

/* ============ Inside: links to the secondary pages ============ */
.inside { padding: clamp(96px, 12vw, 160px) var(--gutter) 0; }
.inside__head { max-width: 1280px; margin: 0 auto; display: grid; gap: 22px; justify-items: start; }
.inside__title { font-weight: 300; font-size: clamp(40px, 5.4vw, 76px); line-height: 1.04; letter-spacing: -.03em; }
.inside__lead { max-width: 44ch; color: var(--on-dark-2); font-weight: 300; font-size: clamp(16px, 1.35vw, 19px); }
.cards { max-width: 1280px; margin: clamp(40px, 5vw, 64px) auto 0; display: grid; gap: 16px; }
@media (min-width: 900px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
.card {
  display: flex;
  flex-direction: column;
  background: var(--beige);
  color: var(--black);
  border-radius: 10px;
  overflow: hidden;
  transition: transform .6s var(--ease);
}
.card:hover { transform: translateY(-4px); }
.card__art { position: relative; aspect-ratio: 16 / 10; background: var(--paper); border-bottom: 1px solid var(--line-light); overflow: hidden; display: grid; place-items: center; }
.card__art > div { width: 100%; height: 100%; }
.card__art svg { width: 100%; height: 100%; }
.card__art--pad { padding: 18px 22px; }
.card__art--pad > div { height: auto; }
.card__art--pad svg { height: auto; }
.card__photos { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: #fff; }
.card__photos img, .card__photos > div { width: 100%; height: 100%; object-fit: cover; background: var(--paper); }
.card__photos span { position: absolute; top: 10px; padding: 4px 9px; border-radius: 99px; background: rgba(4, 5, 3, .78); color: var(--on-dark); font-family: var(--mono); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.card__photos span:first-of-type { left: 10px; }
.card__photos span:last-of-type { left: calc(50% + 10px); }
.card__body { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 22px 22px 20px; }
.card__label { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--on-beige-3); }
.card__title { font-weight: 400; font-size: 22px; line-height: 1.2; letter-spacing: -.01em; }
.card__text { color: var(--on-beige-2); font-size: 15px; font-weight: 300; }
.card__go { margin-top: auto; padding-top: 14px; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; }
.card__go svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .4s var(--ease); }
.card:hover .card__go svg { transform: translateX(4px); }

/* drawings outside the pinned stack animate once they are seen */
[data-reveal] { transition: opacity .6s var(--ease), transform .9s var(--ease); }
.js [data-reveal]:not(.is-shown) { opacity: 0; transform: translateY(24px); }
.is-shown .draw { stroke-dashoffset: 0; }
.is-shown .area { opacity: 1; }

/* ============ Start ============ */
.start { padding: clamp(80px, 10vw, 140px) var(--gutter) calc(var(--dock-h) + 40px); display: flex; flex-direction: column; align-items: center; text-align: center; --s: .6; }
.start__circle {
  width: min(78vw, 520px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 300;
  font-size: clamp(44px, 6vw, 80px);
  letter-spacing: -.02em;
  transform: scale(var(--s));
  transition: background .4s var(--ease);
}
.start__circle:hover { background: var(--accent-strong); }
.start__desc { margin-top: 36px; max-width: 42ch; color: var(--on-dark-2); font-weight: 300; font-size: 17px; }
.start__wa { margin-top: 18px; font-size: 15px; font-weight: 500; color: var(--on-dark); border-bottom: 1px solid var(--line-dark); padding-bottom: 2px; font-variant-numeric: tabular-nums; transition: border-color .3s var(--ease); }
.start__wa:hover { border-color: var(--accent); }
.start__links { margin-top: 40px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.start__links a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.start__links a:hover { background: #1A1A1A; border-color: rgba(239, 236, 230, .3); }
.start__links svg { width: 16px; height: 16px; fill: none; stroke: var(--on-dark-3); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.foot { margin-top: clamp(80px, 10vw, 140px); display: grid; gap: 8px; justify-items: center; font-size: 12px; color: var(--on-dark-3); }
.foot a:hover { color: var(--on-dark); }
.foot p span { margin: 0 8px; }
.sources summary { cursor: pointer; }
.sources ul { margin-top: 10px; display: grid; gap: 4px; text-align: left; }
.sources a { text-decoration: underline; text-underline-offset: 2px; }

/* ============ Dock ============ */
.dock {
  position: fixed;
  left: 50%;
  bottom: 14px;
  z-index: 50;
  transform: translateX(-50%);
  width: min(1000px, calc(100% - 2 * var(--gutter)));
  height: var(--dock-h);
  padding: 0 8px 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(22, 22, 22, .92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 10px;
}
.dock__left { display: flex; align-items: center; gap: 6px; }
.dock__home, .dock__step {
  position: relative;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  color: var(--on-dark-3);
  transition: background .3s var(--ease), color .3s var(--ease);
}
.dock__home svg { width: auto; height: 22px; color: var(--on-dark); }
.dock__step svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.dock__step:hover { color: var(--on-dark); background: #262626; }
.dock__step::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: -7px;
  height: 2px;
  border-radius: 2px;
  background: var(--on-dark);
  transform: scaleX(0);
  transition: transform .4s var(--ease);
}
.dock__step.is-active { background: var(--beige); color: var(--black); }
.dock__step.is-active::after { transform: none; }
.dock__sep { width: 1px; height: 20px; background: var(--line-dark); margin: 0 8px 0 6px; }
.dock__step[aria-current="page"] { background: var(--beige); color: var(--black); }
.dock__right { display: flex; align-items: center; gap: 22px; font-size: 14px; font-weight: 500; white-space: nowrap; }
.dock__link { color: var(--on-dark); opacity: .9; }
.dock__link:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.dock__wa { width: 30px; height: 30px; margin-right: -12px; border-radius: 6px; display: grid; place-items: center; color: var(--on-dark-2); transition: background .3s var(--ease), color .3s var(--ease); }
.dock__wa:hover { background: #262626; color: var(--on-dark); }
.dock__wa svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.dock__cta { background: var(--accent-strong); color: #fff; padding: 8px 16px; border-radius: 7px; transition: background .3s var(--ease); }
.dock__cta:hover { background: #A93C15; }
@media (max-width: 1099px) {
  .dock__link--home { display: none; }
}
@media (max-width: 720px) {
  .dock__link { display: none; }
  .dock__right { gap: 10px; }
  .dock__wa { margin-right: 0; }
  .dock__cta { padding: 8px 12px; }
}
@media (max-width: 400px) {
  .dock__cta-more { display: none; }
  .dock__sep { margin: 0 4px 0 2px; }
}
/* secondary pages: more page icons on the left, so the orange button gives way on phones */
@media (max-width: 480px) {
  .dock--pages .dock__cta { display: none; }
}

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; transition-delay: 0s !important; animation: none !important; }
  .hero__copy { transform: none; }
  .hero__device { top: 62svh; }
  .start { --s: 1 !important; }
}

/* ============ Seal: +200 glebas avaliadas ============ */
.seal { display: block; width: 132px; height: 132px; color: var(--on-dark); flex: none; }
.seal circle { fill: none; stroke: currentColor; }
.seal__edge { stroke-width: 1; }
.seal__inner { stroke-width: .6; opacity: .5; }
.seal__ring { fill: currentColor; font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; }
.seal__num { fill: currentColor; font-family: var(--sans); font-weight: 300; font-size: 34px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.seal__sub { fill: var(--on-dark-3); font-family: var(--mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
@media (min-width: 900px) { .cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card__badge { position: absolute; top: 10px; left: 10px; padding: 4px 9px; border-radius: 99px; background: rgba(4, 5, 3, .78); color: var(--on-dark); font-family: var(--mono); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.feat__text a { color: var(--on-dark); border-bottom: 1px solid var(--accent); transition: color .3s var(--ease); }
.feat__text a:hover { color: var(--accent); }
