/* =========================================================
   Paulo Limeira | Sites & Apps
   Estrutura: painel fixo à esquerda + cards 3D por seção.
   Para trocar a paleta, altere apenas as variáveis abaixo.
   (Paleta ajustada registrada: #F3F4F6 · #1A1C1F · #71757D · #0B6BDA · #FCFCFD)
   ========================================================= */
:root {
  --bg: #f5f5f7;
  --surface: #ffffff;
  --ink: #1d1d1f;
  --muted: #86868b;
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --blue-light: #2997ff;
  --card-dark: #141416;
  --card-tint: #e8eef7;
  --slab: #e6e6e9;

  --ease: cubic-bezier(0.22, 0.8, 0.2, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --pad-x: clamp(28px, 11vw, 240px);
}

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

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}
html:not(.is-profile) {
  overflow: hidden;
  overscroll-behavior: none;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro Display",
    "Helvetica Neue",
    Arial,
    sans-serif;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.011em;
}

a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
img {
  display: block;
  max-width: 100%;
}
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
::selection {
  background: #b8d9ff;
  color: #111;
}

/* ---------- logo ---------- */
:root {
  /* trilho lateral: logo + bolinhas, no canto esquerdo e centralizados */
  --rail-x: clamp(20px, 2.4vw, 40px);
  --logo: 31px; /* 28px + 10% */
  --dots-h: calc(8 * 16px);
}
.logo {
  position: fixed;
  z-index: 31;
  /* centro da logo alinhado ao centro da coluna de bolinhas (18px) */
  left: calc(var(--rail-x) + 9px - var(--logo) / 2);
  top: calc(50% - var(--dots-h) / 2 - 22px - var(--logo));
  opacity: 0.92;
  transition: opacity 0.3s;
}
.logo:hover {
  opacity: 1;
}
.logo img {
  width: var(--logo);
  height: var(--logo);
  object-fit: contain;
}

/* =========================================================
   LAYOUT
   ========================================================= */
.layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  grid-template-areas:
    "panel stage"
    "about stage";
  grid-template-rows: auto 1fr;
  min-height: 100vh;
}

/* ---------- painel ---------- */
.panel {
  grid-area: panel;
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: var(--pad-x);
  padding-right: 24px;
}

.name {
  margin: 0;
  font-size: clamp(28px, 2.45vw, 46px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.name span {
  display: block;
  /* mesma largura do nome (ajuste fino no script.js) */
  font-size: 0.613em;
  margin-top: 0.15em;
  white-space: nowrap;
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: clamp(36px, 8vh, 80px);
}

.icon-btn {
  --s: clamp(50px, 3.8vw, 72px);
  position: relative;
  width: var(--s);
  height: var(--s);
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: calc(var(--s) * 0.24);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition:
    border-radius 0.5s var(--ease),
    background 0.4s var(--ease),
    color 0.4s var(--ease),
    transform 0.3s var(--ease);
}
.icon-btn:hover {
  transform: translateY(-2px);
}
.icon-btn svg {
  width: calc(var(--s) * 0.29);
  height: calc(var(--s) * 0.29);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-btn svg .dot {
  fill: currentColor;
  stroke: none;
}

/* rótulo ao passar o mouse */
.icon-btn::after {
  content: attr(data-label);
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translate(-50%, -4px);
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.25s,
    transform 0.25s var(--ease);
}
.icon-btn:hover::after,
.icon-btn:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.btn-profile .i-back {
  display: none;
}
.social {
  display: none;
}

/* contador de seção: invisível na tela, mas lido por leitores de tela */
.current {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- palco ---------- */
.stage-area {
  grid-area: stage;
  grid-row: 1 / span 2;
  align-self: start;
  position: sticky;
  top: 0;
  height: 100vh;
}

.stage {
  position: absolute;
  inset: 0;
  perspective: 1600px;
  perspective-origin: 50% 40%;
  transform-style: preserve-3d;
  container-type: size;
  transition:
    transform 0.95s var(--ease),
    opacity 0.6s var(--ease);
}

/* =========================================================
   CARDS
   ========================================================= */
.card {
  /* retângulo horizontal, proporção 1,45 : 1 */
  --w: min(780px, 88cqw, 80cqh);
  container: card / size;
  position: absolute;
  inset: 0;
  margin: auto;
  width: var(--w);
  height: calc(var(--w) / 1.45);
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 4.4cqh, 40px);
  border-radius: clamp(22px, 3.4cqh, 32px);
  overflow: hidden;
  transform-origin: 50% 50%;
  will-change: transform, opacity, filter;
  box-shadow: 0 40px 80px -48px rgba(0, 0, 0, 0.35);
  --accent: var(--blue);
  --line: rgba(0, 0, 0, 0.08);
}
/* véu cinza que transforma os cards vizinhos em "lâminas" */
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, #ededf0, var(--slab));
  opacity: var(--fade, 0);
  pointer-events: none;
}

.card.dark {
  background: var(--card-dark);
  color: #f5f5f7;
  --accent: var(--blue-light);
  --line: rgba(255, 255, 255, 0.12);
}
.card.light {
  background: var(--surface);
  color: var(--ink);
}
.card.tint {
  background: var(--card-tint);
  color: var(--ink);
  --line: rgba(0, 0, 0, 0.09);
}
.card.blue {
  background: var(--blue);
  color: #fff;
  --accent: rgba(255, 255, 255, 0.62);
  --line: rgba(255, 255, 255, 0.24);
}

.card-body {
  opacity: var(--content, 1);
  transform: translateY(calc((1 - var(--content, 1)) * 28px));
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(8px, 2.1cqi, 14px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}
.card-body::-webkit-scrollbar {
  display: none;
}

.card h2 {
  margin: 0;
  font-size: clamp(22px, 6.4cqi, 38px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.card h2.display {
  font-size: clamp(30px, 9.4cqi, 58px);
  line-height: 1;
  letter-spacing: -0.045em;
}
.card em {
  font-style: normal;
  color: var(--accent);
}
.card .lead {
  margin: 0;
  max-width: 44ch;
  font-size: clamp(13px, 2.9cqi, 17px);
  line-height: 1.5;
  opacity: 0.68;
}
.kicker {
  margin: 0;
  font-size: clamp(11px, 2.4cqi, 13px);
  font-weight: 500;
  opacity: 0.55;
}

.card-foot {
  opacity: var(--foot, 1);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  padding-top: clamp(10px, 2.4cqi, 16px);
  font-size: clamp(12px, 2.7cqi, 15px);
  font-weight: 500;
}
/* cards da pilha de cima: rótulo no topo, visível no degrau */
.card.above .card-foot {
  order: -1;
  align-items: flex-start;
  padding-top: 0;
  padding-bottom: clamp(10px, 2.4cqi, 16px);
}
.card-foot span:last-child {
  opacity: 0.45;
  font-variant-numeric: tabular-nums;
}
.hint i {
  display: inline-block;
  font-style: normal;
  animation: bob 1.8s var(--ease-io) infinite;
}
@keyframes bob {
  50% {
    transform: translateY(3px);
  }
}

/* ---------- 02 · sinais ---------- */
.signals {
  list-style: none;
  margin: clamp(4px, 1.4cqi, 10px) 0 0;
  padding: 0;
}
.signals li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: clamp(8px, 1.9cqi, 12px) 0;
  border-top: 1px solid var(--line);
  font-size: clamp(13px, 2.9cqi, 16px);
  font-weight: 500;
  line-height: 1.35;
}
.signals li::before {
  content: "";
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-2px);
}

/* ---------- 03 · soluções ---------- */
.offers {
  list-style: none;
  margin: clamp(4px, 1.4cqi, 10px) 0 0;
  padding: 0;
}
.offers li + li {
  border-top: 1px solid var(--line);
}
.offers button {
  width: 100%;
  display: grid;
  grid-template-columns: 6.6em minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 10px;
  padding: clamp(10px, 2.3cqi, 14px) 0;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
  font-size: clamp(13px, 2.9cqi, 16px);
}
.offers small {
  font-size: 0.8em;
  opacity: 0.5;
}
.offers b {
  font-weight: 500;
  transition: color 0.25s;
}
.offers span {
  font-size: 0.86em;
  opacity: 0.55;
  white-space: nowrap;
}
.offers button:hover b {
  color: var(--accent);
}

/* ---------- 04 · na prática ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  grid-template-rows: 100%;
  align-items: center;
  gap: clamp(14px, 5cqi, 30px);
}
.split > div:first-child {
  display: grid;
  gap: clamp(10px, 2.6cqi, 18px);
}
.phone {
  justify-self: center;
  /* cabe na altura do card, sem vazar */
  height: min(92%, 400px);
  width: auto;
  max-width: 100%;
  aspect-ratio: 9 / 18.5;
  padding: 5%;
  border-radius: 18% / 9%;
  background: #1d1d1f;
  transform: rotate(4deg);
  box-shadow: 0 30px 60px -20px rgba(16, 40, 80, 0.35);
  font-size: clamp(7px, 1.9cqi, 11px);
}
.screen {
  height: 100%;
  border-radius: 14% / 7%;
  background: #fafafa;
  color: #1d1d1f;
  padding: 12% 9%;
  display: flex;
  flex-direction: column;
  gap: 5%;
  overflow: hidden;
}
.s-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.s-top b {
  letter-spacing: 0.08em;
}
.s-top i {
  width: 1.6em;
  height: 1.6em;
  border-radius: 50%;
  background: #e8e8ed;
}
.screen small {
  font-size: 0.8em;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #86868b;
}
.screen p {
  margin: 0;
  font-size: 1.5em;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.s-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6%;
}
.s-grid span {
  border-radius: 10px;
  background: linear-gradient(150deg, #e9e9ee, #c9c9cf);
}
.s-grid span:nth-child(2) {
  background: linear-gradient(150deg, #dcdce2, #9a9aa1);
}
.s-grid span:nth-child(3) {
  background: linear-gradient(150deg, #d7e6fb, #8db8ef);
}
.s-btn {
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  text-align: center;
  padding: 0.8em 0;
  font-weight: 600;
}

/* ---------- 05 · processo ---------- */
.steps {
  list-style: none;
  margin: clamp(2px, 1cqi, 8px) 0 0;
  padding: 0;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 2.4em minmax(0, 0.9fr) minmax(0, 1.4fr);
  gap: 8px;
  align-items: baseline;
  padding: clamp(8px, 1.9cqi, 12px) 0;
  border-top: 1px solid var(--line);
  font-size: clamp(12.5px, 2.75cqi, 15.5px);
}
.steps li::before {
  content: "0" counter(step);
  font-size: 0.78em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.steps b {
  font-weight: 500;
}
.steps span {
  opacity: 0.55;
}

/* ---------- 06 · quem conduz ---------- */
.about-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: 100%;
  align-items: center;
  gap: clamp(16px, 5cqi, 32px);
}
.about-card img {
  height: 100%;
  width: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: clamp(14px, 3cqi, 20px);
  filter: grayscale(0.15);
}
.about-card > div {
  display: grid;
  gap: clamp(10px, 2.6cqi, 18px);
  justify-items: start;
}
.text-link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font-weight: 600;
  font-size: clamp(13px, 2.8cqi, 16px);
  cursor: pointer;
}

/* ---------- 07 · faq ---------- */
.faq details {
  border-top: 1px solid var(--line);
}
.faq details:last-child {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: clamp(8px, 1.9cqi, 12px) 0;
  font-size: clamp(13px, 2.8cqi, 15.5px);
  font-weight: 500;
  cursor: pointer;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  font-weight: 300;
  opacity: 0.5;
  transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq p {
  margin: 0 0 clamp(10px, 2.3cqi, 14px);
  font-size: clamp(12.5px, 2.7cqi, 15px);
  line-height: 1.5;
  opacity: 0.62;
}

/* ---------- 08 · contato ---------- */
.form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: end;
  gap: clamp(8px, 2cqi, 12px);
  margin-top: clamp(2px, 1cqi, 8px);
}
.form label {
  display: grid;
  gap: 6px;
  font-size: clamp(11px, 2.4cqi, 13px);
}
.form label span {
  opacity: 0.8;
}
.form input,
.form select {
  width: 100%;
  min-width: 0;
  padding: 0.75em 0.9em;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  font-size: clamp(13px, 2.8cqi, 15px);
  outline: none;
  transition:
    background 0.25s,
    border-color 0.25s;
}
.form input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}
.form input:focus,
.form select:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--blue-light);
}
.form select option {
  color: #111;
}
.form button {
  padding: 0.82em 1.3em;
  white-space: nowrap;
  border: 0;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: clamp(13px, 2.9cqi, 16px);
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 0.25s var(--ease),
    background 0.25s;
}
.form button:hover {
  transform: translateY(-1px);
  background: var(--blue-hover);
}
/* card de contato: título um pouco menor para caber o formulário */
.card.cta h2 {
  font-size: clamp(20px, 5.4cqi, 32px);
}
.card.cta .lead {
  font-size: clamp(12.5px, 2.6cqi, 15px);
}
.fine {
  margin: 0;
  font-size: clamp(11px, 2.3cqi, 12.5px);
  opacity: 0.72;
}

/* cards estreitos (celular) */
@container card (max-width: 400px) {
  .card.cta .card-body {
    gap: 8px;
  }
  .card.cta .form {
    gap: 7px;
  }
  .card.cta .form label {
    gap: 4px;
  }
  .card.cta .form input,
  .card.cta .form select {
    padding: 0.62em 0.8em;
  }
  .offers button {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .offers small {
    display: none;
  }
  .steps li {
    grid-template-columns: 2em minmax(0, 1fr);
  }
  .steps span {
    display: none;
  }
  .about-card {
    grid-template-columns: 34% minmax(0, 1fr);
    grid-template-rows: auto;
  }
  .about-card img {
    width: 100%;
    height: auto;
  }
  .form {
    grid-template-columns: 1fr;
  }
}

/* ---------- indicador ---------- */
.dots {
  /* coluna de bolinhas à esquerda do nome */
  --step: 16px;
  --bubble: 10px;
  position: fixed;
  z-index: 30;
  left: var(--rail-x);
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  transition: opacity 0.4s;
}
.dots button {
  width: 18px;
  height: var(--step);
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.dots button::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #c4c4c9;
  transform: scale(var(--grow, 1));
  transition:
    background 0.3s,
    transform 0.35s var(--ease);
}
.dots button:hover::before {
  background: #8e8e93;
  transform: scale(calc(var(--grow, 1) + 0.6));
}
/* a bolha: desliza entre as bolinhas, estica com a velocidade e volta ao formato */
.dots .bubble {
  position: absolute;
  top: calc((var(--step) - var(--bubble)) / 2);
  left: calc((18px - var(--bubble)) / 2);
  width: var(--bubble);
  height: var(--bubble);
  border-radius: 50%;
  background: radial-gradient(
    circle at 34% 30%,
    #8a8a90 0%,
    #3a3a3e 38%,
    var(--ink) 70%
  );
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.22),
    inset 0 -1px 2px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  will-change: transform;
}
.dots .bubble::after {
  /* brilho da bolha */
  content: "";
  position: absolute;
  top: 18%;
  left: 22%;
  width: 32%;
  height: 26%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  filter: blur(0.4px);
}

/* =========================================================
   OBJETO 3D
   ========================================================= */
.object {
  position: absolute;
  inset: 0;
  margin: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-6%) scale(0.96);
  transition:
    opacity 0.9s var(--ease) 0.25s,
    transform 1.2s var(--ease) 0.2s,
    visibility 0s linear 1.2s;
}
.object-canvas {
  width: min(78%, 620px);
  aspect-ratio: 1;
  cursor: pointer;
}
.object-canvas canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}
.object figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(40px, 14vh, 140px);
  text-align: center;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}
.object figcaption span {
  color: #b0b0b5;
}

/* fallback sem WebGL: camadas em CSS */
.object-fallback {
  display: none;
  position: absolute;
  inset: 0;
  margin: auto;
  width: 220px;
  height: 220px;
  transform-style: preserve-3d;
  transform: rotateX(58deg) rotateZ(-38deg);
}
.object-fallback i {
  position: absolute;
  inset: 0;
  border-radius: 34px;
  background: #1d1d1f;
  box-shadow: 0 30px 50px rgba(0, 0, 0, 0.12);
}
.object-fallback i:nth-child(2) {
  background: #e9e9ec;
  transform: translateZ(46px);
}
.object-fallback i:nth-child(3) {
  background: var(--blue);
  transform: translateZ(92px);
}
.object.no-webgl .object-canvas {
  display: none;
}
.object.no-webgl .object-fallback {
  display: block;
}

/* =========================================================
   SOBRE (modo perfil)
   ========================================================= */
.about {
  grid-area: about;
  display: none;
  padding: 0 4vw 16vh var(--pad-x);
  margin-top: -13vh;
  font-size: clamp(17px, 1.25vw, 22px);
  line-height: 1.38;
  letter-spacing: -0.015em;
  color: var(--muted);
}
.about-lead {
  max-width: 28em;
  margin: 0 0 0.9em;
}
.about b {
  color: var(--ink);
  font-weight: 500;
}
.about-list {
  margin: 3em 0;
}
.about-list .label {
  margin: 0 0 12px;
  font-size: 12px;
  color: var(--ink);
}
.about-list ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.about-list li {
  color: var(--ink);
}
.about-list li span {
  color: var(--muted);
}
.dark-link {
  margin-top: 1.2em;
  color: var(--blue);
  font-size: inherit;
  font-weight: 500;
}
.credits {
  margin: 6em 0 0;
  font-size: 12px;
}

/* =========================================================
   MODO PERFIL
   ========================================================= */
html.is-profile .stage {
  transform: translateX(22%);
  opacity: 0;
  pointer-events: none;
}
html.is-profile .dots,
html.is-profile .current {
  opacity: 0;
  pointer-events: none;
}
html.is-profile .object {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition:
    opacity 0.9s var(--ease) 0.3s,
    transform 1.2s var(--ease) 0.25s,
    visibility 0s;
}
html.is-profile .btn-profile {
  background: #000;
  color: #fff;
  border-radius: 50%;
}
html.is-profile .btn-profile .i-user {
  display: none;
}
html.is-profile .btn-profile .i-back {
  display: block;
}
html.is-profile .btn-chat,
html.is-profile .btn-portfolio {
  display: none;
}
html.is-profile .social {
  display: grid;
  animation: pop 0.6s var(--ease) both;
}
html.is-profile .social:nth-of-type(1) {
  animation-delay: 0.05s;
}
html.is-profile .social:nth-of-type(2) {
  animation-delay: 0.1s;
}
html.is-profile .social:nth-of-type(3) {
  animation-delay: 0.15s;
}
html.is-profile .social:nth-of-type(4) {
  animation-delay: 0.2s;
}
html.is-profile .about {
  display: block;
}
html.is-profile .about > * {
  animation: rise 0.9s var(--ease) both;
}
html.is-profile .about > *:nth-child(2) {
  animation-delay: 0.08s;
}
html.is-profile .about > *:nth-child(n + 3) {
  animation-delay: 0.16s;
}

@keyframes pop {
  from {
    opacity: 0;
    transform: translateX(-10px) scale(0.9);
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}

/* =========================================================
   CELULAR
   ========================================================= */
@media (max-width: 860px) {
  .layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "panel"
      "stage"
      "about";
    grid-template-rows: auto 1fr auto;
  }
  html:not(.is-profile) .layout {
    height: 100vh;
    height: 100svh;
  }

  .logo {
    top: 22px;
    left: 20px;
  }
  .logo img {
    width: 28px;
    height: 28px;
  }
  .panel {
    height: auto;
    justify-content: flex-start;
    padding: 72px 20px 6px;
  }
  .name {
    font-size: clamp(24px, 7vw, 30px);
  }
  .actions {
    margin-top: 16px;
    flex-wrap: nowrap;
  }
  .icon-btn {
    --s: 48px;
  }
  .icon-btn::after {
    display: none;
  }
  .current {
    display: none;
  }

  .stage-area {
    grid-row: auto;
    align-self: stretch;
    position: relative;
    height: auto;
    min-height: 0;
    overflow-x: clip;
  }
  html.is-profile .stage-area {
    height: 52svh;
  }
  /* no celular o retângulo fica em pé */
  .card {
    width: min(520px, 88cqw);
    height: min(560px, 70cqh);
  }
  .dots {
    --step: 13px;
    --bubble: 8px;
    position: absolute;
    left: auto;
    right: 2px;
  }
  .dots button {
    width: 14px;
  }
  .dots .bubble {
    left: 3px;
  }
  .object-canvas {
    width: min(86%, 420px);
  }
  .object figcaption {
    bottom: 4px;
    font-size: 12px;
  }

  .about {
    margin-top: 0;
    padding: 8px 20px 72px;
    font-size: 18px;
  }
  .about-list {
    margin: 2.2em 0;
  }
}

@media (hover: none) {
  .icon-btn::after {
    display: none;
  }
}

/* efeitos de animação desligados no sistema: só remove o que é decorativo e repetitivo */
@media (prefers-reduced-motion: reduce) {
  .hint i {
    animation: none;
  }
}

/* =========================================================
   LOGO AO LADO DE "DESENVOLVEDOR DIGITAL" + BOLINHAS AO LADO DOS CARDS (desktop)
   ========================================================= */
@media (min-width: 861px) {
  /* linha 2: [logo] Desenvolvedor Digital — mesma largura de "Paulo Limeira"
     (o tamanho exato é calculado no script.js) */
  .name span {
    display: flex;
    align-items: center;
    gap: 0.42em;
    width: max-content;
  }
  .name span .logo {
    position: static;
    display: block;
    flex: none;
    opacity: 1;
  }
  .name span .logo img {
    width: 1.18em;
    height: 1.18em;
  }

  /* bolinhas: à direita do card ativo, centralizadas na vertical */
  .stage-area {
    container-type: size;
  }
  .dots {
    position: absolute;
    top: 50%;
    /* metade da largura do card (a mesma fórmula do --w dos cards) + respiro */
    left: min(
      calc(50% + min(780px, 88cqw, 80cqh) / 2 + clamp(18px, 2vw, 32px)),
      calc(100% - 24px)
    );
    transform: translateY(-50%);
  }
}

/* =========================================================
   TELAS: início ↔ portfólio
   Ao abrir o portfólio, a tela principal se divide ao meio: o lado
   esquerdo sai pela esquerda e o direito pela direita. Pela abertura,
   os elementos do portfólio sobem de baixo, pequenos, e crescem na
   mesma proporção da abertura até a posição e o tamanho finais.
   Ao voltar, tudo acontece exatamente ao contrário.
   ========================================================= */
.view-portfolio {
  position: fixed;
  inset: 0;
  z-index: 40;
  /* transparente: a tela principal continua visível enquanto se abre */
  background: transparent;
  pointer-events: none;
}
html.is-portfolio .view-portfolio {
  pointer-events: auto;
}
html.is-portfolio .view-home {
  pointer-events: none;
}
.view > .panel,
.view > .stage-area,
.view-home > .about {
  /* mesma duração e mesma curva nas duas telas: a abertura e o
     crescimento andam juntos, do início ao fim */
  --view-ease: cubic-bezier(0.7, 0, 0.2, 1);
  transition:
    transform 1.2s var(--view-ease),
    opacity 1.2s var(--view-ease);
  will-change: transform, opacity;
}
/* tela principal se dividindo: esquerda → esquerda, direita → direita */
html.is-portfolio .view-home > .panel,
html.is-portfolio .view-home > .about {
  transform: translateX(-60vw);
  opacity: 0;
}
html.is-portfolio .view-home > .stage-area {
  transform: translateX(60vw);
  opacity: 0;
}
/* portfólio aguardando embaixo, pequeno */
.view-portfolio > .panel,
.view-portfolio > .stage-area {
  transform-origin: 50% 100%;
}
html:not(.is-portfolio) .view-portfolio > .panel,
html:not(.is-portfolio) .view-portfolio > .stage-area {
  transform: translateY(32vh) scale(0.45);
  opacity: 0;
}
/* no celular a logo fica fixa no canto: acompanha a tela de início */
html.is-portfolio body > .logo {
  opacity: 0;
  pointer-events: none;
}

/* ---------- painel do portfólio ---------- */
.btn-back {
  background: #000;
  color: #fff;
  border-radius: 50%;
}
.panel-note {
  max-width: 24em;
  margin: clamp(28px, 6vh, 56px) 0 0;
  font-size: clamp(15px, 1.15vw, 19px);
  line-height: 1.42;
  letter-spacing: -0.012em;
  color: var(--muted);
}
.panel-note b {
  color: var(--ink);
  font-weight: 500;
}
.logo-inline {
  display: none;
  font-style: normal;
}
@media (min-width: 861px) {
  .name span .logo-inline {
    display: block;
    flex: none;
  }
  .name span .logo-inline img {
    width: 1.18em;
    height: 1.18em;
  }
}

/* ---------- cards de projeto ---------- */
.project-body {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  grid-template-rows: 100%;
  align-items: stretch;
  gap: clamp(16px, 4.4cqi, 30px);
}
.media {
  position: relative;
  margin: 0;
  min-height: 0;
  border-radius: clamp(12px, 2.4cqi, 18px);
  overflow: hidden;
  background: rgba(127, 127, 135, 0.12);
}
.media video,
.media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-ph {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 6px;
  padding: 16px;
  text-align: center;
  border: 1.5px dashed currentColor;
  border-radius: inherit;
  opacity: 0.45;
  font-size: clamp(12px, 2.5cqi, 14px);
}
.media-ph svg {
  width: clamp(26px, 6cqi, 40px);
  height: auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linejoin: round;
}
.media-ph small {
  font-size: 0.82em;
  opacity: 0.8;
}
.project-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(8px, 2cqi, 14px);
  min-width: 0;
}
.project h3 {
  margin: 0;
  font-size: clamp(20px, 5.2cqi, 32px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.035em;
}
.facts {
  margin: 0;
  display: grid;
  gap: clamp(6px, 1.6cqi, 10px);
}
.facts div {
  padding-top: clamp(6px, 1.5cqi, 9px);
  border-top: 1px solid var(--line);
}
.facts dt {
  font-size: clamp(10.5px, 2.2cqi, 12px);
  color: var(--accent);
  margin-bottom: 2px;
}
.facts dd {
  margin: 0;
  font-size: clamp(12.5px, 2.6cqi, 14.5px);
  line-height: 1.4;
  opacity: 0.75;
}
.cta-btn {
  justify-self: start;
  align-self: flex-start;
  margin-top: clamp(4px, 1.4cqi, 10px);
  padding: 0.85em 1.4em;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--blue);
  font-size: clamp(13px, 2.9cqi, 16px);
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s;
}
.cta-btn:hover {
  transform: translateY(-1px);
  background: #f2f7ff;
}

@container card (max-width: 400px) {
  .project-body {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
  }
  .facts div:nth-child(n + 2) {
    display: none;
  }
}

@media (max-width: 860px) {
  .panel-note {
    display: none;
  }
}

/* =========================================================
   PORTFÓLIO: cards mais largos com computador + celular
   ========================================================= */
.project-body {
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
}
.devices {
  position: relative;
  align-self: center;
  justify-self: center;
  width: min(100%, 112cqh);
  aspect-ratio: 1.45;
  margin: 0;
}
/* computador: monitor com borda fina e suporte
   (as classes .laptop* foram mantidas para não mexer no HTML) */
.laptop {
  position: absolute;
  left: 0;
  top: 3%;
  width: 84%;
}
.laptop-screen {
  position: relative;
  padding: clamp(3px, 0.75cqi, 5px);
  padding-bottom: clamp(5px, 1.3cqi, 9px);
  border-radius: clamp(7px, 1.4cqi, 11px);
  background: #0b0b0d;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    0 0 0 1px rgba(0, 0, 0, 0.25),
    0 22px 36px -18px rgba(0, 0, 0, 0.45);
}
/* a tela: 16:9, a imagem fica sempre dentro da borda */
.laptop-screen > * {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: clamp(3px, 0.7cqi, 6px);
  overflow: hidden;
}
/* suporte: haste + base */
.laptop-base {
  position: relative;
  height: 0;
  padding-bottom: 10%;
  margin: 0;
  background: none;
}
.laptop-base::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 12%;
  height: 80%;
  transform: translateX(-50%);
  clip-path: polygon(14% 0, 86% 0, 100% 100%, 0 100%);
  background: linear-gradient(90deg, #a9a9b0, #dcdce1 50%, #a9a9b0);
}
.laptop-base::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 30%;
  height: 22%;
  transform: translateX(-50%);
  border-radius: 3px 3px 6px 6px;
  background: linear-gradient(180deg, #e6e6ea, #a8a8af);
}
/* celular: borda fina, cantos arredondados e ilha no topo */
.mobile {
  position: absolute;
  right: 0;
  bottom: 2%;
  height: 60%;
  aspect-ratio: 9 / 19.5;
  padding: clamp(2px, 0.55cqi, 4px);
  border-radius: 15% / 7%;
  background: #0b0b0d;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.14),
    0 0 0 1px rgba(0, 0, 0, 0.25),
    0 22px 40px -14px rgba(0, 0, 0, 0.5);
}
.mobile::after {
  content: "";
  position: absolute;
  top: 3%;
  left: 50%;
  width: 28%;
  height: 2.6%;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #0b0b0d;
  z-index: 2;
}
.mobile-screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 13% / 6.2%;
}
.mobile-screen > * {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
/* com imagem real: a tela do monitor assume a proporção do print,
   então a imagem aparece inteira, sem cortes; o monitor fica mais largo */
.laptop-screen > img,
.laptop-screen > video {
  aspect-ratio: auto;
  height: auto;
}
.laptop:has(> .laptop-screen > img, > .laptop-screen > video) {
  width: 94%;
}
/* imagem ou vídeo nas telas */
.laptop-screen img,
.laptop-screen video,
.mobile-screen img,
.mobile-screen video {
  object-fit: cover;
  object-position: top center;
}
/* card "Na prática": o mesmo celular do portfólio, com leve inclinação */
.split .mobile-hero {
  position: relative;
  right: auto;
  bottom: auto;
  justify-self: center;
  /* altura limitada também pela largura do card, para o celular
     nunca ser cortado nem achatado em telas estreitas */
  height: min(92%, 400px, 78cqi);
  width: auto;
  padding: clamp(3px, 0.8cqi, 5px);
  /* 3D: --ry vem do script.js (-15° a 15°) conforme o mouse */
  --ry: 0deg;
  --rn: 0;
  transform: perspective(900px) rotate(4deg) rotateY(var(--ry));
  /* ao sair: volta devagar para a posição inicial */
  transition:
    transform 1.6s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 1.6s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.14),
    0 0 0 1px rgba(0, 0, 0, 0.25),
    /* espessura do aparelho: a lateral aparece do lado que gira */
    calc(var(--rn) * -5px) 0 0 -1px #3a3a40,
    calc(var(--rn) * -14px) 18px 30px -14px rgba(16, 40, 80, 0.4);
  cursor: default;
}
/* com o mouse em cima: acompanha o movimento com suavidade */
.split .mobile-hero.is-tilting {
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
/* reflexo de luz que desliza pela tela ao girar */
.split .mobile-hero .mobile-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255, 255, 255, 0.32) 50%,
    transparent 70%
  );
  opacity: var(--glare, 0);
  transform: translateX(calc(var(--rn) * -35%));
  transition: inherit;
}
/* espaço reservado enquanto não há imagem */
.screen-ph {
  display: grid;
  place-content: center;
  gap: 4px;
  text-align: center;
  background: linear-gradient(160deg, #26262b, #18181c);
  color: rgba(255, 255, 255, 0.55);
  font-size: clamp(10px, 2.1cqi, 13px);
  line-height: 1.3;
}
.screen-ph b {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
}
.screen-ph small {
  font-size: 0.82em;
}
.mobile .screen-ph {
  font-size: clamp(8px, 1.6cqi, 11px);
  padding: 4px;
}

@media (min-width: 861px) {
  /* a área dos cards ganha espaço; o painel fica mais estreito */
  .view-portfolio.layout {
    /* o script.js distribui a largura em espaços iguais:
       margem | texto | espaço | card | margem */
    --pad-x: var(--gutter, clamp(24px, 5.5vw, 110px));
    grid-template-columns: var(--panel-col, minmax(0, 0.62fr)) minmax(0, 1fr);
  }
  .view-portfolio .panel {
    padding-right: 0;
  }
  .view-portfolio .card {
    --w: var(--pf-card, min(1180px, 95cqw, 108cqh));
    height: calc(var(--w) / 1.75);
  }
  .view-portfolio .dots {
    /* bolinhas centralizadas no espaço entre o card e a borda direita */
    left: calc(100% - var(--gutter, 48px) / 2 - 9px);
  }
}

@container card (max-width: 400px) {
  /* celular: aparelhos em cima, informações embaixo */
  .project-body {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    align-content: start;
  }
  .devices {
    width: 100%;
  }
  .project-info {
    justify-content: flex-start;
  }
  .facts div:nth-child(n + 2) {
    display: none;
  }
}

/* cards de projeto menores (telas de ~1024px): mostra Desafio e Solução */
@container card (max-width: 680px) {
  .project .facts div:nth-child(3) {
    display: none;
  }
}
@container card (min-width: 401px) and (max-width: 680px) {
  /* coluna de texto estreita: letra um pouco menor para caber sem cortes */
  .project .facts dd {
    font-size: 12.5px;
    line-height: 1.35;
  }
  .project h3 {
    font-size: 22px;
  }
}

/* =========================================================
   PORTFÓLIO: só a tela do monitor (sem suporte) + ampliar ao clicar
   ========================================================= */
.laptop-base {
  display: none;
}
.laptop {
  top: 50%;
  transform: translateY(-58%);
}
.view-portfolio .laptop-screen,
.view-portfolio .mobile {
  cursor: zoom-in;
  transition: transform 0.35s var(--ease);
}
.view-portfolio .laptop-screen:hover,
.view-portfolio .mobile:hover {
  transform: translateY(-2px);
}
.view-portfolio .laptop-screen:focus-visible,
.view-portfolio .mobile:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

/* camada de fundo e a tela ampliada */
.zoom-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(240, 240, 243, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  cursor: zoom-out;
}
.zoom-clone {
  position: fixed !important;
  z-index: 201;
  margin: 0;
  right: auto !important;
  bottom: auto !important;
  transform: none !important;
  cursor: zoom-out;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    0 0 0 1px rgba(0, 0, 0, 0.25),
    0 40px 90px -30px rgba(0, 0, 0, 0.55) !important;
}
.zoom-clone.mobile {
  width: auto;
}

/* =========================================================
   SINALIZAÇÕES
   ========================================================= */
/* setas em cascata acima das bolinhas */
.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 12px);
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 1px;
  pointer-events: none;
  transition: opacity 0.4s;
}
.scroll-hint i {
  width: 7px;
  height: 7px;
  border-right: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  transform: rotate(45deg);
  opacity: 0;
  animation: cascade 1.8s var(--ease-io) infinite;
}
.scroll-hint i:nth-child(2) {
  animation-delay: 0.18s;
}
.scroll-hint i:nth-child(3) {
  animation-delay: 0.36s;
}
@keyframes cascade {
  0% {
    opacity: 0;
    transform: translateY(-4px) rotate(45deg);
  }
  35% {
    opacity: 0.7;
  }
  70%,
  100% {
    opacity: 0;
    transform: translateY(4px) rotate(45deg);
  }
}
.dots.at-end .scroll-hint {
  opacity: 0;
}

/* selo "Ampliar" sobre as telas do portfólio */
.laptop-screen > .zoom-hint,
.zoom-hint {
  width: auto;
  height: auto;
  aspect-ratio: auto;
  overflow: visible;
  position: absolute !important;
  z-index: 3;
  left: 12px;
  bottom: 14px;
  right: auto;
  top: auto;
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
  padding: 5px 9px 5px 7px;
  border-radius: 999px;
  background: rgba(20, 20, 22, 0.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16);
  pointer-events: none;
  animation: hint-pulse 2.6s var(--ease-io) infinite;
}
.mobile .zoom-hint {
  left: 50%;
  right: auto;
  bottom: 6%;
  transform: translateX(-50%);
  padding: 5px;
}
@container card (max-width: 520px) {
  .zoom-hint span {
    display: none;
  }
  .laptop-screen > .zoom-hint {
    padding: 4px;
    left: 8px;
    bottom: 8px;
  }
}
.zoom-hint svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}
@keyframes hint-pulse {
  0%,
  100% {
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.16),
      0 0 0 0 rgba(255, 255, 255, 0.35);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.16),
      0 0 0 7px rgba(255, 255, 255, 0);
  }
}
.view-portfolio .laptop-screen:hover .zoom-hint,
.view-portfolio .mobile:hover .zoom-hint {
  background: var(--blue);
}
.zoom-clone .zoom-hint {
  display: none !important;
}

/* aviso enquanto a tela está ampliada */
.zoom-tip {
  position: fixed;
  z-index: 202;
  left: 50%;
  bottom: clamp(16px, 3.5vh, 32px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px 9px 12px;
  border-radius: 999px;
  background: rgba(20, 20, 22, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  font-size: 13px;
  white-space: nowrap;
  cursor: pointer;
  opacity: 0;
  transform: translate(-50%, 12px);
  transition:
    opacity 0.45s var(--ease) 0.35s,
    transform 0.6s var(--ease) 0.35s;
}
.zoom-tip.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.zoom-tip:not(.show) {
  transition-delay: 0s;
  transition-duration: 0.25s;
}
.zoom-tip svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

/* vídeo que toca na tela ampliada (por cima da imagem) */
.laptop-screen > .zoom-video,
.mobile-screen > .zoom-video {
  position: absolute;
  aspect-ratio: auto;
  width: auto;
  height: auto;
  object-fit: cover;
  object-position: top center;
  background: transparent;
  opacity: 0;
  transition: opacity 0.6s var(--ease);
}
.laptop-screen > .zoom-video {
  /* mesma área da imagem: dentro da borda fina do monitor */
  top: clamp(3px, 0.75cqi, 5px);
  left: clamp(3px, 0.75cqi, 5px);
  right: clamp(3px, 0.75cqi, 5px);
  bottom: clamp(5px, 1.3cqi, 9px);
  /* vídeo é elemento "substituído": precisa de largura/altura explícitas */
  width: calc(100% - 2 * clamp(3px, 0.75cqi, 5px));
  height: calc(100% - clamp(3px, 0.75cqi, 5px) - clamp(5px, 1.3cqi, 9px));
  border-radius: clamp(3px, 0.7cqi, 6px);
}
.mobile-screen > .zoom-video {
  inset: 0;
  width: 100%;
  height: 100%;
}
.zoom-video.on {
  opacity: 1;
}

/* =========================================================
   CARD "INÍCIO": notebook + celular em 3D (projeto Íris Semijóias)
   ========================================================= */
.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  grid-template-rows: 100%;
  align-items: center;
  gap: clamp(16px, 4cqi, 40px);
}
.hero-text {
  display: grid;
  gap: clamp(8px, 2.1cqi, 14px);
}
.hero-split h2.display {
  font-size: clamp(26px, 6.2cqi, 46px);
}
.hero-devices {
  --ry: 0deg;
  --rn: 0;
  position: relative;
  width: 100%;
  padding: 0 6% 8% 0;
  transform: perspective(1100px) rotateY(calc(-8deg + var(--ry)));
  transform-style: preserve-3d;
  transition: transform 1.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.hero-devices.is-tilting {
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
/* notebook */
.nb {
  position: relative;
}
.nb-lid {
  position: relative;
  aspect-ratio: 16 / 10;
  padding: 2.2% 2.2% 2.6%;
  border-radius: 10px 10px 3px 3px;
  background: #0b0b0d;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.16),
    /* espessura da tampa: aparece do lado que gira */
    calc(var(--rn) * -4px) 0 0 -1px #3a3a40;
  transition: box-shadow 1.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.hero-devices.is-tilting .nb-lid {
  transition-duration: 0.45s;
}
/* câmera */
.nb-lid::before {
  content: "";
  position: absolute;
  top: 0.9%;
  left: 50%;
  width: 4px;
  height: 4px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: #2a2a2e;
}
.nb-screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 3px;
  background: #fff;
}
.nb-screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left top;
}
/* base do teclado, levemente mais larga que a tela */
.nb-base {
  position: relative;
  width: 114%;
  margin-left: -7%;
  height: clamp(6px, 1.6cqi, 12px);
  border-radius: 1px 1px 10px 10px / 1px 1px 100% 100%;
  background: linear-gradient(180deg, #d9d9de 0%, #a9a9b0 55%, #6e6e75 100%);
  box-shadow: 0 14px 22px -10px rgba(0, 0, 0, 0.6);
}
.nb-base::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 16%;
  height: 45%;
  transform: translateX(-50%);
  border-radius: 0 0 6px 6px;
  background: rgba(0, 0, 0, 0.18);
}
/* celular à frente, no canto direito, mais próximo do olhar */
.hero-devices .mobile {
  right: 0;
  bottom: 0;
  height: 66%;
  padding: clamp(2px, 0.6cqi, 4px);
  transform: translateZ(40px);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.18),
    calc(var(--rn) * -4px) 0 0 -1px #3a3a40,
    0 20px 34px -12px rgba(0, 0, 0, 0.65);
  transition: box-shadow 1.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.hero-devices.is-tilting .mobile {
  transition-duration: 0.45s;
}
/* reflexo de luz que desliza pelas telas ao girar */
.nb-screen::after,
.hero-devices .mobile-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255, 255, 255, 0.28) 50%,
    transparent 70%
  );
  opacity: var(--glare, 0);
  transform: translateX(calc(var(--rn) * -35%));
  transition:
    opacity 0.6s,
    transform 0.6s;
}
/* card estreito (celular): aparelhos abaixo do texto */
@container card (max-width: 460px) {
  .hero-split {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    align-content: center;
  }
  .hero-devices {
    width: min(82%, 300px);
    justify-self: center;
  }
}

/* =========================================================
   TELA PRINCIPAL: cards 20% mais largos (computador)
   A altura continua a mesma; só a largura cresce.
   ========================================================= */
@media (min-width: 861px) {
  .view-home.layout {
    /* o palco ganha espaço para os cards mais largos */
    grid-template-columns: minmax(0, 0.66fr) minmax(0, 1.34fr);
  }
  .view-home .card {
    /* --base: a largura de antes; os cards ficam 20% mais largos */
    --base: min(780px, 51.9vw, 80cqh);
    --w: min(calc(var(--base) * 1.2), 96cqw);
    height: calc(var(--base) / 1.45);
  }
  .view-home .dots {
    left: min(
      calc(
        50% + min(min(780px, 51.9vw, 80cqh) * 1.2, 96cqw) / 2 +
          clamp(18px, 2vw, 32px)
      ),
      calc(100% - 24px)
    );
  }
}
/* cards largos e baixos (notebooks de 13–15"): a letra acompanha a
   altura do card, não a largura, para nada passar da borda */
@container card (min-aspect-ratio: 1.6) and (max-height: 380px) {
  .view-home .card h2 {
    font-size: clamp(20px, 7.2cqh, 34px);
  }
  .view-home .card .lead {
    font-size: clamp(12.5px, 3.6cqh, 16px);
  }
  .view-home .card-body {
    gap: clamp(6px, 2.2cqh, 14px);
  }
  .view-home .steps li {
    padding: clamp(5px, 1.7cqh, 12px) 0;
    font-size: clamp(12px, 3.4cqh, 15.5px);
  }
}
