/* ============================================================
   004labs — E · Prisma
   Light showroom, physical/tactile CSS 3D, chrome-iridescent brand object.
   ============================================================ */

/* OD-LAYOUT-PRIMITIVES v1 — structure only: display, flex/grid, overflow, wrapping, ratio.
   Put this @layer first; product CSS outside the layer always wins. */
@layer od-layout {
  :where(.od-stack,.od-row,.od-row-top,.od-cluster,.od-grid,.od-field,.od-stat,.od-cell,.od-tile) > :where(*) { min-width: 0; }

  /* containers */
  .od-stack   { display: flex; flex-direction: column; gap: var(--od-gap, 8px); }
  .od-row     { display: flex; align-items: center; gap: var(--od-gap, 8px); }
  .od-row-top { display: flex; align-items: flex-start; gap: var(--od-gap, 8px); }
  .od-cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--od-gap, 8px); }
  .od-fill    { flex: 1 1 0; min-width: 0; }
  .od-fixed   { flex: none; }
  .od-grid    { display: grid; gap: var(--od-gap, 12px); grid-template-columns: repeat(var(--od-cols, 3), minmax(0, 1fr)); }

  /* stacked information: each piece is its own line — never sibling inline spans */
  .od-stat, .od-field, .od-cell { display: grid; gap: var(--od-gap, 2px); }
  :where(.od-stat,.od-field,.od-cell) > :where(*) { display: block; }
  .od-tile { display: grid; grid-template-rows: auto 1fr; }
  :where(.od-tile) > :where(*) { display: block; }

  /* media keeps its intrinsic ratio by default; never a distorted or cropped
     cover by accident. height:auto lets the ratio win over an <img height="…">
     attribute. Cropping to a uniform box is an explicit opt-in: set --od-ratio
     AND add .od-media-cover together (per the core rule, only where a crop is
     deliberate — tile thumbs, decorative fills — never on full-frame content). */
  .od-media { display: block; width: 100%; height: auto; aspect-ratio: var(--od-ratio, auto); }
  .od-media-cover { object-fit: cover; }

  /* data text only — authored copy is rewritten to its budget instead */
  .od-truncate { display: block; max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .od-clamp-2, .od-clamp-3 { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
  .od-clamp-2 { -webkit-line-clamp: 2; }
  .od-clamp-3 { -webkit-line-clamp: 3; }
  .od-lines-2 { min-height: calc(2 * 1.4em); }   /* block-level reservation for a shared baseline */
  .od-nowrap  { white-space: nowrap; }           /* 数字+单位 · 价格+起 · 日期+星期 */
  .od-keep    { word-break: keep-all; overflow-wrap: anywhere; } /* CJK labels break at spaces / <wbr> first */

  /* screen skeleton (optional): bars take their own space, the middle scrolls — no padding guessed for chrome */
  .od-screen { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: 100%; }
  .od-scroll { overflow-y: auto; overscroll-behavior: contain; min-height: 0; }

  /* horizontal rail: the next item peeks at the edge; trailing room survives overflow */
  .od-rail { display: flex; gap: var(--od-gap, 8px); overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
             padding-inline: var(--od-rail-pad, 16px); scroll-padding-inline: var(--od-rail-pad, 16px); }
  .od-rail::-webkit-scrollbar { display: none; }
  :where(.od-rail) > :where(*) { flex: none; scroll-snap-align: start; }
  :where(.od-rail) > :where(:last-child) { margin-inline-end: var(--od-rail-pad, 16px); }

  .od-spacer { flex: none; visibility: hidden; pointer-events: none; }
  .od-touch  { min-width: 44px; min-height: 44px; }
}
/* /OD-LAYOUT-PRIMITIVES v1 */

/* ---------- Tokens ---------- */
:root {
  --bg: #FAFAF8;
  --ink: #101010;
  --ink-soft: #444441;
  --accent: #6C3DF4;
  --accent-deep: #4A26B8;
  --accent-dim: #34197E;
  --line: rgba(16, 16, 16, 0.12);
  --line-strong: rgba(16, 16, 16, 0.2);
  --card: #FFFFFF;
  --shadow-soft: 0 2px 6px rgba(16, 16, 16, 0.05), 0 16px 40px rgba(16, 16, 16, 0.07);
  --shadow-lift: 0 4px 10px rgba(16, 16, 16, 0.06), 0 28px 64px rgba(16, 16, 16, 0.12);
  --font-display: "Bricolage Grotesque", "Archivo", system-ui, sans-serif;
  --font-body: "Archivo", system-ui, sans-serif;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
}

/* ---------- Language switch ---------- */
html[data-lang="pt"] [lang="en"],
html[data-lang="en"] [lang="pt"] { display: none !important; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg, canvas { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
a, button, .chip, .lang-toggle { cursor: pointer; }
::selection { background: var(--accent); color: #fff; }

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

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding-block: 64px; }
.section--tight { padding-block: 40px; }
.section--xtight { padding-block: 24px; }
.section--flush { padding-top: 0; }

/* ---------- Type ---------- */
.eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.eyebrow--accent { color: var(--accent); }
.eyebrow--dot::before {
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--accent);
  margin-right: 8px;
  transform: rotate(45deg) translateY(-1px);
}
.on-dark .eyebrow { color: rgba(250, 250, 248, 0.72); }

.h1, .h2, .h3, .geo-title, .featured__name {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
.h1 { font-size: clamp(40px, 6.2vw, 78px); }
.h1--page { font-size: clamp(38px, 5.6vw, 68px); }
.h2 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.08; }
.h3 { font-size: clamp(21px, 2.4vw, 27px); line-height: 1.16; }
.accent { color: var(--accent); }

.lead {
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
  max-width: 56ch;
}
.copy { color: var(--ink-soft); margin: 0; }
.copy--sm { font-size: 15px; }
.note { font-size: 13px; color: var(--ink-soft); }
.note--xs { font-size: 12px; }

.link-accent {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}
.link-accent:hover { text-decoration: underline; text-underline-offset: 4px; }
.link-underline {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--line-strong);
}
.link-underline:hover { text-decoration-color: var(--accent); color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 700;
  font-family: var(--font-body);
  text-decoration: none;
  min-height: 44px;
  padding: 10px 22px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn .arrow { transition: transform 0.25s ease; }
.btn:hover .arrow { transform: translateX(4px); }
.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 0 var(--accent-deep), 0 12px 28px rgba(108, 61, 244, 0.28);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 0 var(--accent-deep), 0 18px 36px rgba(108, 61, 244, 0.34);
}
.btn--primary:active { transform: translateY(0); box-shadow: 0 1px 0 var(--accent-deep); }
.btn--outline {
  background: var(--card);
  border-color: var(--line-strong);
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(16, 16, 16, 0.06);
}
.btn--outline:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn--sm { min-height: 40px; padding: 6px 16px; font-size: 14px; }
.btn--xs { min-height: 40px; padding: 6px 14px; font-size: 13px; }
.btn--lg { min-height: 52px; padding: 12px 28px; font-size: 17px; }
.btn--xl { min-height: 56px; padding: 14px 32px; font-size: 18px; }

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 12px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.pill--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 250, 248, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.01em;
}
.nav__links { display: flex; align-items: center; gap: 8px; }
.nav__links a {
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink-soft);
  padding: 8px 14px;
  border-radius: 10px;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.nav__links a:hover { color: var(--ink); background: rgba(16, 16, 16, 0.05); }
.nav__links a[aria-current="page"] { color: var(--accent); font-weight: 700; }
.nav__actions { display: flex; align-items: center; gap: 12px; }

.lang-toggle {
  border: 1px solid var(--line-strong);
  background: var(--card);
  border-radius: 999px;
  min-height: 40px;
  padding: 4px 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.lang-toggle:hover { border-color: var(--ink); transform: translateY(-1px); }
.lang-toggle .sep { opacity: 0.35; margin-inline: 4px; }
.lang-toggle .off { opacity: 0.38; font-weight: 600; }

/* ---------- Hero ---------- */
.hero { padding-block: 72px 48px; }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 48px;
  align-items: center;
}
.hero__copy { perspective: 1100px; }
.hero__title {
  transform-style: preserve-3d;
  transform: rotateX(5deg) rotateY(-4deg);
}

/* Extruded display type: stacked translateZ layers, no blurred shadows */
.extrude {
  position: relative;
  display: inline-block;
  transform-style: preserve-3d;
  color: var(--accent);
}
.extrude__face { position: relative; display: inline-block; z-index: 1; }
.extrude__stack {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  pointer-events: none;
  user-select: none;
}
.extrude__layer { position: absolute; inset: 0; display: inline-block; }
.extrude__layer:nth-child(-n+3) { color: var(--accent-deep); }
.extrude__layer:nth-child(n+4) { color: var(--accent-dim); }

/* 3D stages: reserved ratio, no layout shift */
.e3d {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
}
.e3d canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.e3d__fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.e3d__fallback svg { width: 62%; height: auto; }
.e3d.is-3d .e3d__fallback { display: none; }

.hero__stage { position: relative; }
.hero__stage .e3d { aspect-ratio: 1 / 1.04; }
.hero__plinth {
  position: absolute;
  left: 50%;
  bottom: 4%;
  width: 72%;
  height: 18px;
  transform: translateX(-50%) perspective(600px) rotateX(62deg);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(16, 16, 16, 0.16), rgba(16, 16, 16, 0));
  pointer-events: none;
}
.visual-hint {
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
}

/* ---------- AI strip ---------- */
.ai-strip {
  border-block: 1px solid var(--line);
  padding-block: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
}
.ai-strip__label { font-size: 13px; font-weight: 700; color: var(--ink-soft); }
.ai-strip__list { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.ai-strip__list span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
}

/* ---------- Panels ---------- */
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-soft);
  padding: 48px;
}
.panel--ink {
  background: var(--ink);
  color: #FAFAF8;
  border-color: rgba(250, 250, 248, 0.1);
}
.panel--ink .copy, .panel--ink .lead, .panel--ink .note,
.panel--ink .panel__lead, .panel--ink .panel__note { color: rgba(250, 250, 248, 0.76); }
.panel--split {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 48px;
  align-items: center;
}
.panel__lead { font-size: clamp(16px, 1.5vw, 19px); line-height: 1.6; margin: 0; color: var(--ink-soft); }
.panel__lead--lg { font-size: clamp(17px, 1.7vw, 21px); }
.panel__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.panel__note { font-size: 13px; }
.panel__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }

.feature-list { display: flex; flex-direction: column; }
.feature {
  display: flex;
  gap: 16px;
  align-items: baseline;
  padding-block: 14px;
  border-top: 1px solid var(--line);
}
.panel--ink .feature { border-top-color: rgba(250, 250, 248, 0.14); }
.feature__n {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  color: var(--accent);
  min-width: 24px;
}
.panel--ink .feature__n { color: #A88BFF; }
.feature__title { font-weight: 700; display: block; }
.feature__desc { font-size: 14px; color: var(--ink-soft); display: block; }
.panel--ink .feature__desc { color: rgba(250, 250, 248, 0.66); }

/* Isometric AI chip wall (GEO panel visual) */
.chip-wall-stage { perspective: 1200px; }
.chip-wall {
  transform-style: preserve-3d;
  transform: rotateX(14deg) rotateY(-16deg);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.chip-wall__core {
  grid-column: 1 / -1;
  transform: translateZ(36px);
  background: var(--accent);
  color: #fff;
  border-radius: var(--r-sm);
  padding: 14px 16px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(16, 16, 16, 0.35);
}
.chip-wall__item {
  background: rgba(250, 250, 248, 0.06);
  border: 1px solid rgba(250, 250, 248, 0.18);
  border-radius: var(--r-sm);
  padding: 10px 14px;
  font-weight: 600;
  font-size: 14px;
  text-align: center;
  color: rgba(250, 250, 248, 0.92);
  transform: translateZ(calc(var(--z, 0) * 1px));
  box-shadow: 0 10px 24px rgba(16, 16, 16, 0.3);
}
.panel--light-wall .chip-wall__item {
  background: var(--card);
  border-color: var(--line);
  color: var(--ink);
  box-shadow: var(--shadow-soft);
}

/* ---------- Section heads ---------- */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}
.section-head--solo { margin-bottom: 40px; }
.section-head__aside { max-width: 34ch; font-size: 15px; }
.section-head--loose { align-items: flex-start; flex-wrap: wrap; }
.section-head__copy--wide { max-width: 720px; }

/* ---------- Isometric services grid ---------- */
.iso-stage { perspective: 1600px; }
.iso-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  transform-style: preserve-3d;
}
.iso-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 24px;
  min-height: 216px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  box-shadow: var(--shadow-soft);
  transform-style: preserve-3d;
  transform: rotateX(12deg) rotateY(calc(var(--lean, -1) * 10deg));
  transition: transform 0.5s cubic-bezier(0.22, 0.9, 0.3, 1), box-shadow 0.5s ease;
}
.iso-card:nth-child(odd) { --lean: -1; }
.iso-card:nth-child(even) { --lean: 1; }
.iso-card::before {
  /* physical thickness plate behind the card */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--r-md);
  background: #E9E9E4;
  border: 1px solid var(--line);
  transform: translateZ(-16px);
  transition: transform 0.5s cubic-bezier(0.22, 0.9, 0.3, 1);
}
@media (hover: hover) {
  .iso-card:hover {
    transform: rotateX(0deg) rotateY(0deg) translateZ(12px);
    box-shadow: var(--shadow-lift);
  }
  .iso-card:hover::before { transform: translateZ(-6px); }
}
.iso-card__n {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  color: var(--accent);
}
.iso-card__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  line-height: 1.15;
  display: block;
}
.iso-card__desc { font-size: 14px; color: var(--ink-soft); display: block; }

/* ---------- Process steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.step {
  position: relative;
  padding-top: 24px;
  display: grid;
  gap: 4px;
}
.step__track {
  position: absolute;
  top: 0; left: 0; right: -24px;
  height: 2px;
  background: var(--line);
}
.step:last-child .step__track { right: 0; }
.step__track::before {
  content: "";
  position: absolute;
  left: 0; top: -4px;
  width: 10px; height: 10px;
  border-radius: 2px;
  transform: rotate(45deg);
  background: var(--accent);
}
.step__n {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  color: var(--accent);
}
.step__title { font-family: var(--font-display); font-weight: 800; font-size: 21px; }
.step__desc { font-size: 14px; color: var(--ink-soft); }

/* ---------- Featured / cases ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-soft);
}
.featured {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 40px;
  padding: 40px;
  text-decoration: none;
  transition: transform 0.4s cubic-bezier(0.22, 0.9, 0.3, 1), box-shadow 0.4s ease;
  transform-style: preserve-3d;
}
@media (hover: hover) {
  .featured:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
}
.featured__name { font-size: clamp(44px, 5vw, 64px); color: var(--accent); }
.featured__desc { color: var(--ink-soft); font-size: 16px; }
.pill-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.score-line {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-block: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.score-line__site { color: var(--ink-soft); flex: 1 1 auto; min-width: 0; }
.score-line__value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  color: var(--accent);
  margin-left: auto;
}

/* Report preview (projetos) */
.report {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 40px;
  padding: 40px;
  align-items: center;
}
.scores { display: grid; gap: 8px; }
.score-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 40px;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  font-weight: 600;
}
.score-row__bar {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: rgba(16, 16, 16, 0.07);
  overflow: hidden;
}
.score-row__bar > span {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--score, 0%);
  border-radius: inherit;
  background: var(--accent);
}
.score-row__value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  text-align: right;
}

.geo-title {
  font-size: clamp(56px, 8vw, 104px);
  color: var(--accent);
  line-height: 0.95;
}

.card-grid--cases {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.case-card { padding: 24px; display: grid; gap: 16px; align-content: start; }
.case-card__shot {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #F2F2EE;
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
  display: grid;
  align-content: center;
  padding: 24px;
}
.case-card__lines { display: grid; gap: 10px; }
.case-card__lines span {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: rgba(16, 16, 16, 0.1);
}
.case-card__stamp {
  position: absolute;
  inset: auto 12px 12px auto;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 2px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: rgba(250, 250, 248, 0.85);
  transform: rotate(-4deg);
}
.case-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 700;
  font-size: 14px;
}
.case-cta {
  border: 2px dashed var(--line-strong);
  border-radius: var(--r-lg);
  padding: 24px;
  display: grid;
  gap: 16px;
  align-content: center;
  text-decoration: none;
  transition: border-color 0.25s ease, transform 0.35s ease, box-shadow 0.35s ease;
}
@media (hover: hover) {
  .case-cta:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: var(--shadow-soft); }
}
.case-cta__title { font-family: var(--font-display); font-weight: 800; font-size: 24px; }
.case__n {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  color: var(--accent);
}

/* Fronts (projetos) */
.fronts { display: grid; gap: 40px; }
.fronts__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
.front {
  display: flex;
  gap: 16px;
  align-items: baseline;
  padding-block: 16px;
  border-top: 1px solid var(--line);
}
.front__n { font-family: var(--font-display); font-weight: 800; font-size: 14px; color: var(--accent); min-width: 28px; }
.front__title { font-family: var(--font-display); font-weight: 800; font-size: 19px; display: block; }
.front__desc { font-size: 14px; color: var(--ink-soft); display: block; }

/* ---------- Manifesto ---------- */
.manifesto { max-width: 880px; display: grid; gap: 24px; }
.manifesto__text {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.2vw, 38px);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.015em;
  margin: 0;
}

/* ---------- CTA panel with prism ---------- */
.panel--cta {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: 40px;
  align-items: center;
  overflow: clip;
}
.panel--cta .h2 { max-width: 20ch; }
.cta__stack { display: grid; gap: 32px; }
.cta__prism { position: relative; }
.cta__prism .e3d { aspect-ratio: 1 / 1; max-width: 280px; margin-inline: auto; }

/* Banner (contatos) */
.panel--banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 32px;
  align-items: start;
}
.form-card { padding: 40px; }
.form { display: grid; gap: 24px; }
.field { display: grid; gap: 6px; font-size: 14px; font-weight: 700; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; }
.input {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-weight: 500;
  min-height: 48px;
  padding: 10px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
textarea.input { resize: vertical; min-height: 120px; }
.input:hover { border-color: var(--ink); }
.input:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(108, 61, 244, 0.25);
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--line-strong);
  background: var(--card);
  border-radius: 999px;
  min-height: 40px;
  padding: 6px 16px;
  font-size: 14px;
  font-weight: 600;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.chip:hover { border-color: var(--ink); transform: translateY(-1px); }
.chip[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.form__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.form__error {
  color: #A61B2B;
  font-size: 14px;
  font-weight: 600;
}
.form-success { display: grid; gap: 16px; justify-items: start; padding-block: 24px; }
.form-success h2:focus { outline: none; }

.contact-side { display: grid; gap: 24px; }
.contact-visual {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--card);
  box-shadow: var(--shadow-soft);
  padding: 24px 24px 40px;
}
.contact-visual .e3d { aspect-ratio: 4 / 3; }
.contact-visual__hint {
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 8px;
}
.contact-card {
  padding: 24px;
  display: grid;
  gap: 8px;
  justify-items: start;
  text-decoration: none;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.25s ease;
}
@media (hover: hover) {
  .contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: var(--line-strong); }
}
.contact-card__title { font-family: var(--font-display); font-weight: 800; font-size: 21px; }
.contact-card__title--break { overflow-wrap: anywhere; }
.contact-card__desc { font-size: 14px; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.footer { padding-block: 40px 120px; }
.footer__inner {
  border-top: 1px solid var(--line);
  padding-top: 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  font-size: 14px;
  color: var(--ink-soft);
}
.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--ink);
}
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer__links a { text-decoration: none; color: var(--ink-soft); font-weight: 600; }
.footer__links a:hover { color: var(--accent); }

/* ---------- Layout switcher ---------- */
.switcher {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 60;
  display: flex;
  gap: 4px;
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 4px;
  box-shadow: var(--shadow-lift);
}
.switcher a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 4px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
  white-space: nowrap;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.switcher a:hover { color: var(--ink); background: rgba(16, 16, 16, 0.06); }
.switcher a[aria-current="true"] { background: var(--accent); color: #fff; }

/* ---------- Scroll reveal (JS only; no-JS stays fully visible) ---------- */
html.js .rv {
  opacity: 0;
  transform: perspective(900px) rotateX(6deg) translateY(28px);
}
html.js .rv-in {
  opacity: 1;
  transform: perspective(900px) rotateX(0deg) translateY(0);
  transition: opacity 0.6s ease, transform 0.75s cubic-bezier(0.22, 0.9, 0.3, 1);
}

/* Pointer tilt targets (JS sets --tiltX/--tiltY on desktop only) */
.tilt { transform: perspective(1000px) rotateX(var(--tiltX, 0deg)) rotateY(var(--tiltY, 0deg)); will-change: transform; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .iso-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-grid--cases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .panel { padding: 32px; }
}
@media (max-width: 880px) {
  .hero__grid, .panel--split, .featured, .report, .contact-grid, .panel--cta {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero { padding-block: 48px 40px; }
  .hero__stage { max-width: 420px; margin-inline: auto; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
  .step__track { right: 0; }
  .fronts__list { grid-template-columns: minmax(0, 1fr); }
  .section-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .nav__links { display: none; }
  .footer { padding-bottom: 136px; }
}
@media (max-width: 640px) {
  .container { padding-inline: 16px; }
  .section { padding-block: 48px; }
  .panel, .form-card, .featured, .report { padding: 24px; }
  .iso-grid { grid-template-columns: minmax(0, 1fr); }
  /* isometric grid flattens into a straight column on mobile */
  .iso-card { transform: none; min-height: 0; gap: 16px; }
  .iso-card::before { transform: translateZ(-8px); }
  .hero__title { transform: none; }
  .card-grid--cases { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .field-grid { grid-template-columns: minmax(0, 1fr); }
  .chip-wall { transform: rotateX(8deg) rotateY(-8deg); }
  .nav__cta { display: none; }
  .switcher { left: 12px; bottom: 12px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html.js .rv { opacity: 1; transform: none; }
  .tilt { transform: none !important; }
  .iso-card, .iso-card:hover { transform: none; }
  .iso-card::before, .iso-card:hover::before { transform: translateZ(-8px); }
  .hero__title { transform: none; }
  .chip-wall { transform: rotateX(8deg) rotateY(-8deg); }
  .btn:hover, .chip:hover, .contact-card:hover, .case-cta:hover, .featured:hover { transform: none; }
}

/* Seletor com 5 layouts: quebra linha em telas estreitas */
@media (max-width: 640px) { .switcher { max-width: calc(100vw - 24px); flex-wrap: wrap; justify-content: center; } .switcher a { padding: 7px 10px; white-space: nowrap; } }
