/* F&A Digital · versión B «editorial interactivo». Sin build: CSS plano. */
@font-face {
  font-family: 'Archivo';
  src: url('../fonts/archivo.woff2') format('woff2-variations');
  font-weight: 300 800;
  font-stretch: 100% 125%;
  font-display: swap;
}
@font-face {
  font-family: 'Unbounded';
  src: url('../fonts/unbounded.woff2') format('woff2-variations'), url('../fonts/unbounded.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument';
  src: url('../fonts/instrument-italic.woff2') format('woff2');
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

:root {
  --ink: #0b0a08;
  --ink-2: #1b1915;
  --ink-3: #2a2721;
  --paper: #f6f5f2;
  --white: #ffffff;
  --gold: #cfa24c;
  --gold-2: #ead07c;
  --gold-3: #9a6a22;
  --mute: #6b665d;
  --line: rgb(11 10 8 / 0.12);
  --line-l: rgb(255 255 255 / 0.14);
  --gut: clamp(1rem, 3.6vw, 3.5rem);
  --head: 4rem;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --gold-grad: linear-gradient(100deg, #b98a3a 0%, #ead07c 32%, #cfa24c 58%, #9a6a22 100%);
  color-scheme: light;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  scroll-padding-top: var(--head);
}
body {
  margin: 0;
  overflow-x: clip;
}
img,
video,
svg,
canvas {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
::selection {
  background: var(--gold-2);
  color: var(--ink);
}
.skip {
  position: fixed;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--ink);
  color: var(--white);
  padding: 0.7rem 1rem;
}
.skip:focus {
  top: 1rem;
}
.wrap {
  max-width: 88rem;
  margin: 0 auto;
  padding: 0 var(--gut);
}

/* ---------- Tipografía ---------- */
.kicker {
  margin: 0;
  font-size: 0.74rem;
  font-weight: 650;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-3);
}
.display {
  margin: 0;
  font-weight: 760;
  font-stretch: 125%;
  text-transform: uppercase;
  letter-spacing: -0.025em;
  line-height: 0.9;
}
.display .line {
  display: block;
}
.soft {
  font-family: 'Instrument', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-stretch: 100%;
  text-transform: none;
  letter-spacing: -0.01em;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.08em;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: stretch;
  min-height: 3.4rem;
  text-decoration: none;
  font-weight: 650;
  border-radius: 0.2rem;
  overflow: hidden;
  transition: transform 0.25s var(--ease);
}
.btn-label {
  display: inline-flex;
  align-items: center;
  padding: 0 1.25rem;
  background: var(--ink);
  color: var(--white);
}
.btn-sq {
  display: grid;
  place-items: center;
  width: 3.4rem;
  background: var(--gold);
  color: var(--ink);
  font-size: 1.2rem;
  transition: background-color 0.3s;
}
.btn:hover .btn-sq {
  background: var(--gold-2);
}
.btn:active {
  transform: scale(0.98);
}
.btn-sm {
  min-height: 2.75rem;
  font-size: 0.88rem;
}
.btn-sm .btn-sq {
  width: 2.75rem;
}
.btn-sm .btn-label {
  padding: 0 0.95rem;
}
.link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-weight: 600;
  text-underline-offset: 0.3em;
  text-decoration-color: var(--gold);
}

/* ---------- Cabecera ---------- */
.top {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: calc(var(--head) + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) var(--gut) 0;
  background: rgb(246 245 242 / 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.4s, color 0.4s, border-color 0.4s;
}
.top[data-dark='true'] {
  background: rgb(11 10 8 / 0.88);
  color: var(--white);
  border-color: var(--line-l);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-family: 'Unbounded', 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.brand span {
  white-space: nowrap;
}
.brand em {
  font-style: normal;
  font-weight: 400;
  color: var(--gold-3);
}
.top[data-dark='true'] .brand em {
  color: var(--gold-2);
}
.nav {
  display: flex;
  gap: 1.6rem;
  margin-left: auto;
  font-size: 0.92rem;
}
.nav a {
  text-decoration: none;
  opacity: 0.75;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
}
.nav a:hover {
  opacity: 1;
}
@media (max-width: 860px) {
  .nav {
    display: none;
  }
  .top .btn {
    margin-left: auto;
  }
}

/* ---------- HERO: título enorme + el logo como escultura ---------- */
.hero {
  --sw: min(38vw, 47svh, 36rem);
  --hp: 0;
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--sw);
  grid-template-areas: 'top top' 'title stage' 'side stage' 'side bar' 'fita fita';
  grid-template-rows: auto auto 1fr auto auto;
  column-gap: clamp(1.5rem, 3vw, 3.5rem);
  min-height: min(100svh, 66rem);
  padding: calc(var(--head) + clamp(0.8rem, 2.4vh, 2rem)) max(var(--gut), calc((100vw - 92rem) / 2 + var(--gut))) 4.2rem;
  overflow-x: clip;
}
.hero::before {
  /* luz dourada muito suave atrás do logo */
  content: '';
  position: absolute;
  z-index: -1;
  right: -10vw;
  top: 0;
  width: 70vw;
  height: 90%;
  background: radial-gradient(closest-side, rgb(234 208 124 / 0.32), rgb(234 208 124 / 0) 75%);
  pointer-events: none;
}
.hero-top {
  grid-area: top;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem 2rem;
}
.hero-k {
  display: flex;
  flex-wrap: wrap;
}
.hero-k span {
  white-space: nowrap;
}
.hero-k span + span::before {
  content: '·';
  margin: 0 0.6em;
  opacity: 0.6;
}
.hero-where {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.proof-k {
  margin: 0;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
  white-space: nowrap;
}
.countries {
  display: flex;
  gap: 0.3rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.countries a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.3rem;
  padding: 0 0.75rem 0 0.25rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  background: rgb(255 255 255 / 0.7);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background-color 0.25s, color 0.25s;
}
.countries b {
  display: grid;
  place-items: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  font-size: 0.58rem;
  font-weight: 760;
  letter-spacing: 0.04em;
  background: var(--ink);
  color: var(--gold-2);
  transition: background-color 0.25s, color 0.25s;
}
.countries a:hover {
  background: var(--ink);
  color: var(--white);
}
.countries a:hover b {
  background: var(--gold);
  color: var(--ink);
}
/* Título */
.hero-title {
  grid-area: title;
  align-self: end;
  margin-top: clamp(1rem, 3.4vh, 2.6rem);
  font-size: min(10.6vw, 17svh, 12.5rem);
  line-height: 0.84;
  letter-spacing: -0.035em;
}
.hero-title .line {
  overflow: hidden;
  white-space: nowrap;
  padding: 0.16em 0 0.06em;
  margin-top: -0.16em;
}
.hero-title .line > i {
  display: inline-block;
  font-style: inherit;
}
.hero-title .soft {
  font-size: 1.02em;
  line-height: 0.92;
  letter-spacing: -0.02em;
  padding-right: 0.12em;
}
.hero-side {
  grid-area: side;
  align-self: start;
  padding-top: clamp(1rem, 3vh, 2rem);
}
.lead {
  max-width: 31rem;
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.55;
  color: rgb(11 10 8 / 0.75);
}
.ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem 1.6rem;
  margin-top: 1.6rem;
}
.btn-wa .btn-label {
  gap: 0.6rem;
  padding: 0 1.35rem;
}
.btn-ico {
  display: inline-grid;
  color: #25d366;
}
.btn-ico .ico {
  width: 1.25rem;
  height: 1.25rem;
}
.btn-2 {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 3.4rem;
  font-weight: 650;
  text-decoration: none;
}
.btn-2 span {
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-bottom: 0.15rem;
  transition: background-size 0.35s var(--ease);
}
.btn-2 i {
  display: grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 50%;
  font-style: normal;
  box-shadow: inset 0 0 0 1px var(--ink);
  transition: background-color 0.25s, color 0.25s, translate 0.35s var(--ease);
}
.btn-2:hover i {
  background: var(--ink);
  color: var(--gold-2);
  translate: 0 3px;
}
/* Palco do logo: escultura com profundidade */
.hero-stage {
  grid-area: stage;
  position: relative;
  z-index: 2;
  align-self: center;
  display: grid;
  place-items: center;
  width: var(--sw);
  aspect-ratio: 1;
  margin-top: clamp(1rem, 3vh, 2rem);
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
}
.hero-stage:active {
  cursor: grabbing;
}
.stage-glow {
  /* sombra no chão: dá peso ao disco */
  position: absolute;
  left: 14%;
  right: 14%;
  bottom: -2%;
  height: 12%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(11 10 8 / 0.32), rgb(11 10 8 / 0));
  filter: blur(6px);
  transition: opacity 0.4s;
}
.stage-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.stage-ring circle {
  fill: none;
  stroke: rgb(154 106 34 / 0.3);
  stroke-width: 0.22;
  stroke-dasharray: 0.6 1.4;
}
.stage-ring line {
  stroke: rgb(11 10 8 / 0.16);
  stroke-width: 0.9;
  stroke-linecap: round;
  transition: stroke 0.35s;
}
.stage-ring line.is-on {
  stroke: var(--gold);
}
.logo-tilt {
  position: relative;
  width: 86%;
  transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  will-change: transform;
}
.logo-wrap {
  position: relative;
  width: 100%;
}
/* sombra fixa atrás do disco (aparece quando o disco chega; some ao rolar) */
.logo-tilt::before {
  content: '';
  position: absolute;
  inset: 4% 4% 0;
  border-radius: 50%;
  box-shadow: 0 34px 60px -14px rgb(11 10 8 / 0.42);
  opacity: calc(1 - var(--hp, 0) * 3);
}
.js .logo-tilt::before {
  animation: fade-in 0.6s 0.7s backwards;
}
@keyframes fade-in {
  from {
    opacity: 0;
  }
}
.logo {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.logo .part {
  will-change: transform;
}
/* até o JS posicionar as peças (sem JS, ou se falhar, o logo aparece montado) */
.js .logo:not(.is-live) .part {
  opacity: 0;
  animation: part-show 0.01s 2.5s forwards;
}
@keyframes part-show {
  to {
    opacity: 1;
  }
}
/* Brilho: uma faixa que cruza o logo ao montar + a luz que segue o ratón */
.logo-glint {
  position: absolute;
  inset: 0.4%;
  border-radius: 50%;
  overflow: hidden;
  pointer-events: none;
  mix-blend-mode: overlay;
  background: radial-gradient(circle at var(--gx, 30%) var(--gy, 25%), rgb(255 244 214 / 0.75), rgb(255 244 214 / 0) 42%);
  opacity: var(--gl, 0.5);
  transition: opacity 0.5s;
}
.logo-glint i {
  position: absolute;
  inset: -30% -60%;
  background: linear-gradient(100deg, rgb(255 255 255 / 0) 42%, rgb(255 246 220 / 0.9) 50%, rgb(255 255 255 / 0) 58%);
  translate: -70% 0;
}
.hero-stage.is-glint .logo-glint i {
  animation: glint 1.5s cubic-bezier(0.5, 0, 0.2, 1);
}
@keyframes glint {
  to {
    translate: 70% 0;
  }
}
.sparks {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
}
/* Barra discreta do logo */
.stage-bar {
  grid-area: bar;
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1rem;
  padding: 0.25rem 0.25rem 0.25rem 0.95rem;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.8);
  box-shadow: inset 0 0 0 1px var(--line), 0 14px 30px -22px rgb(11 10 8 / 0.5);
  font-size: 0.78rem;
}
.stage-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  font-weight: 600;
  white-space: nowrap;
}
.hint-hand {
  position: relative;
  flex: none;
  width: 1.6rem;
  height: 0.5rem;
  border-radius: 999px;
  background: rgb(207 162 76 / 0.22);
}
.hint-hand::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 0.62rem;
  height: 0.62rem;
  margin-top: -0.31rem;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgb(207 162 76 / 0.25);
  animation: hand 1.8s var(--ease) infinite alternate;
}
@keyframes hand {
  to {
    translate: 1rem 0;
  }
}
.stage-count {
  margin: 0;
  padding-left: 0.8rem;
  border-left: 1px solid var(--line);
  color: var(--mute);
  white-space: nowrap;
}
.stage-count b {
  display: inline-block;
  min-width: 1.2em;
  text-align: right;
  font-weight: 760;
  font-stretch: 120%;
  font-size: 0.95rem;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.stage-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.4rem;
  padding: 0 0.95rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 650;
  background: var(--ink);
  color: var(--white);
  white-space: nowrap;
  transition: background-color 0.25s, color 0.25s;
}
.stage-btn span {
  color: var(--gold-2);
}
.stage-btn:hover {
  background: var(--gold);
  color: var(--ink);
}
.stage-btn:hover span {
  color: var(--ink);
}
/* Fita de trabajos reales: telas de celular que passam devagar (param ao passar o ratón) */
.hero-fita {
  grid-area: fita;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: end;
  gap: 1.4rem;
  margin: clamp(1rem, 2.4vh, 2rem) calc(-1 * max(var(--gut), calc((100vw - 92rem) / 2 + var(--gut)))) 0;
  padding-left: max(var(--gut), calc((100vw - 92rem) / 2 + var(--gut)));
}
.fita-more {
  display: none;
}
.fita-k {
  margin: 0 0 1.4rem;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
  writing-mode: vertical-rl;
  rotate: 180deg;
}
.fita {
  height: clamp(8rem, 15.5svh, 11rem);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.fita-track {
  display: flex;
  width: max-content;
  margin: 0;
  padding: 0;
  list-style: none;
  animation: fita 70s linear infinite;
}
.fita:hover .fita-track,
.fita:focus-within .fita-track,
.fita.is-off .fita-track {
  animation-play-state: paused;
}
@keyframes fita {
  to {
    translate: -50% 0;
  }
}
.fita-track li {
  flex: none;
  padding-right: 1rem;
}
.fita-track li:nth-child(even) {
  padding-top: 1.4rem;
}
.fita-track button {
  position: relative;
  display: block;
  text-align: left;
}
.fita-ph {
  display: block;
  width: clamp(6.4rem, 8.4vw, 8rem);
  aspect-ratio: 280 / 606;
  padding: 4px;
  border-radius: 1.1rem 1.1rem 0 0;
  background: #0d0c0a;
  box-shadow: 0 0 0 1px rgb(11 10 8 / 0.06), 0 18px 30px -18px rgb(11 10 8 / 0.6);
  transition: translate 0.45s var(--ease);
}
.fita-ph img:not([src]) {
  visibility: hidden;
}
.fita-ph img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0;
  border-radius: 0.85rem 0.85rem 0 0;
}
.fita-t {
  position: absolute;
  left: 6px;
  right: 6px;
  top: 0.6rem;
  display: grid;
  gap: 0.1rem;
  padding: 0.4rem 0.5rem;
  border-radius: 0.5rem;
  background: rgb(11 10 8 / 0.86);
  color: var(--white);
  font-size: 0.62rem;
  line-height: 1.2;
  opacity: 0;
  translate: 0 -4px;
  transition: opacity 0.3s, translate 0.3s;
}
.fita-t b {
  font-weight: 700;
}
.fita-t small {
  font-size: 0.58rem;
  color: var(--gold-2);
}
.fita-track button:hover .fita-ph,
.fita-track button:focus-visible .fita-ph {
  translate: 0 -0.7rem;
}
.fita-track button:hover .fita-t,
.fita-track button:focus-visible .fita-t {
  opacity: 1;
  translate: 0 0;
}
/* Entrada (coreografada con el logo): el título sube, el resto aparece después */
.js .hero-title .line > i {
  animation: line-up 1.15s cubic-bezier(0.19, 1, 0.22, 1) backwards;
  animation-delay: 0.12s;
}
.js .hero-title .line:nth-child(2) > i {
  animation-delay: 0.42s;
}
@keyframes line-up {
  from {
    transform: translateY(110%) rotate(3deg);
  }
}
.js .hero-in {
  animation: fade-up 0.9s var(--ease) backwards;
  animation-delay: var(--d, 0s);
}
@keyframes fade-up {
  from {
    opacity: 0;
    translate: 0 16px;
  }
}
.js .stage-ring {
  animation: ring-in 1.6s 0.5s var(--ease) backwards;
}
@keyframes ring-in {
  from {
    opacity: 0;
    scale: 0.8;
    rotate: -60deg;
  }
}
/* Ao rolar: o texto sobe e some; o logo se desmonta (logo.js) */
[data-hero-fade] {
  opacity: calc(1 - var(--hp) * 1.7);
}
.hero-title {
  translate: 0 calc(var(--hp) * -70px);
}
.hero-stage .stage-ring,
.hero-stage .stage-glow {
  opacity: calc(1 - var(--hp) * 2.2);
}
@media (max-width: 900px) {
  .hero {
    --sw: min(60vw, 31svh, 24rem);
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: 'top' 'title' 'stage' 'bar' 'cta' 'fita' 'lead';
    grid-template-rows: none;
    min-height: 0;
    padding-top: calc(var(--head) + env(safe-area-inset-top) + 1rem);
    padding-bottom: 4.6rem;
  }
  .hero::before {
    right: -40vw;
    top: 10%;
    width: 140vw;
    height: 60%;
  }
  .hero-top {
    display: grid;
    gap: 0.7rem;
  }
  .hero-where {
    gap: 0.6rem;
  }
  .countries span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .countries a {
    padding: 0 0.25rem;
    min-height: 2.4rem;
  }
  .countries b {
    width: 1.9rem;
    height: 1.9rem;
  }
  .hero-title {
    margin-top: 1.1rem;
    font-size: 17.4vw;
    align-self: start;
  }
  .hero-title .soft {
    font-size: 0.84em;
  }
  .hero-side {
    display: contents;
  }
  .ctas {
    grid-area: cta;
    margin-top: 1rem;
    gap: 0.4rem 1.2rem;
  }
  .btn-wa {
    flex: 1 1 100%;
  }
  .btn-wa .btn-label {
    flex: 1;
    justify-content: center;
  }
  .btn-2 {
    min-height: 2.9rem;
  }
  .lead {
    grid-area: lead;
    margin-top: 1.4rem;
    font-size: 1rem;
  }
  .hero-stage {
    justify-self: center;
    margin-top: 0.6rem;
  }
  .stage-bar {
    position: relative;
    z-index: 3;
    margin-top: -0.9rem;
    gap: 0.6rem;
    font-size: 0.74rem;
  }
  .hero-fita {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.6rem;
    margin-top: 1.4rem;
  }
  .fita-k {
    writing-mode: horizontal-tb;
    rotate: none;
    margin: 0;
  }
  .fita-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-right: var(--gut);
  }
  .fita-more {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 2.75rem;
    font-size: 0.9rem;
    font-weight: 650;
    text-decoration: underline;
    text-underline-offset: 0.3em;
    text-decoration-color: var(--gold);
  }
  .fita-more i {
    font-style: normal;
  }
  .ctas .btn-2 {
    display: none;
  }
  .fita {
    height: 8.4rem;
  }
  .fita-ph {
    width: 5.6rem;
  }
  .fita-track li {
    padding-right: 0.75rem;
  }
  .fita-track li:nth-child(even) {
    padding-top: 1rem;
  }
}
@media (max-width: 380px) {
  .hint-hand {
    display: none;
  }
  .stage-bar {
    padding-left: 0.8rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .fita-track {
    animation: none;
  }
  .fita {
    overflow-x: auto;
    scrollbar-width: none;
  }
  .hero-title {
    translate: none;
  }
}

/* ---------- SERVICIOS ---------- */
.services {
  position: relative;
  z-index: 4; /* por cima do topo: o disco do logo afunda atrás dela ao rolar */
  overflow-x: clip;
  background: var(--ink);
  color: var(--white);
  padding: clamp(4rem, 9vw, 8rem) 0;
  clip-path: polygon(0 3.5rem, 50% 0, 100% 3.5rem, 100% 100%, 0 100%);
  margin-top: -3.5rem;
}
.services .kicker {
  color: var(--gold-2);
}
.sec-head {
  container-type: inline-size;
  max-width: 52rem;
}
.sec-title {
  margin-top: 1rem;
  font-size: min(11cqi, 5.6rem);
}
.sec-lead {
  max-width: 34rem;
  margin: 1.2rem 0 0;
  font-size: 1.05rem;
  line-height: 1.6;
  opacity: 0.75;
}
.deal {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 3rem;
  margin-top: 3.5rem;
  align-items: center;
}
.deal-index {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-l);
}
.deal-index li {
  border-bottom: 1px solid var(--line-l);
}
.deal-index button {
  display: grid;
  grid-template-columns: 2.6rem minmax(0, 1fr) auto;
  align-items: center;
  width: 100%;
  min-height: 4.2rem;
  text-align: left;
  font-weight: 700;
  font-stretch: 118%;
  text-transform: uppercase;
  font-size: clamp(1rem, 1.6vw, 1.35rem);
  letter-spacing: -0.01em;
  color: rgb(255 255 255 / 0.45);
  transition: color 0.35s, padding-left 0.45s var(--ease);
}
.deal-index button span:first-child {
  font-size: 0.78rem;
  font-weight: 600;
  font-stretch: 100%;
  color: var(--gold);
}
.deal-index button[aria-current='true'] {
  color: var(--white);
  padding-left: 0.8rem;
}
.deal-index button[aria-current='true']::after {
  content: '→';
  color: var(--gold-2);
}
.deal-index button:hover {
  color: var(--white);
}
.deck-zone {
  display: grid;
  justify-items: center;
}
.deck {
  position: relative;
  display: grid;
  width: min(100%, 30rem);
  touch-action: pan-y;
}
.card {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  border-radius: 0.6rem;
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 30px 60px -30px rgb(0 0 0 / 0.8), inset 0 0 0 1px rgb(255 255 255 / 0.4);
  transform-origin: 50% 110%;
  transition: transform 0.6s var(--ease), opacity 0.4s, filter 0.5s;
  user-select: none;
  -webkit-user-select: none;
  will-change: transform;
}
.card[data-p='0'] {
  z-index: 6;
  cursor: grab;
}
.card:not([data-p='0']) {
  pointer-events: none;
}
.card[data-p='1'] {
  z-index: 5;
  transform: rotate(3deg) translate(1.1rem, 0.4rem) scale(0.97);
  filter: brightness(0.92);
}
.card[data-p='2'] {
  z-index: 4;
  transform: rotate(6deg) translate(2.2rem, 0.9rem) scale(0.94);
  filter: brightness(0.82);
}
.card[data-p='3'] {
  z-index: 3;
  transform: rotate(9deg) translate(3.2rem, 1.5rem) scale(0.91);
  filter: brightness(0.72);
}
.card[data-p='x'] {
  z-index: 1;
  opacity: 0;
  transform: rotate(14deg) translate(3.6rem, 3rem) scale(0.9);
  pointer-events: none;
}
.card[data-p='2'] .card-body,
.card[data-p='3'] .card-body,
.card[data-p='x'] .card-body {
  visibility: hidden;
}
.card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--ink-2);
}
.card-media video,
.card-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-media .phone-in {
  position: absolute;
  inset: 8% auto 8% 50%;
  translate: -50% 0;
  aspect-ratio: 432 / 934;
  height: 84%;
  width: auto;
  border-radius: 0.8rem;
  box-shadow: 0 0 0 4px #000, 0 18px 30px -12px rgb(0 0 0 / 0.8);
  object-fit: cover;
}
.card-media .bg-blur {
  filter: blur(18px) brightness(0.55);
  transform: scale(1.2);
}
.card-num {
  position: absolute;
  left: 1rem;
  top: 0.8rem;
  z-index: 2;
  font-weight: 760;
  font-stretch: 125%;
  font-size: 2.2rem;
  color: var(--gold-2);
  text-shadow: 0 2px 10px rgb(0 0 0 / 0.5);
}
.card-body {
  padding: 1.3rem 1.4rem 1.5rem;
}
.card-body h3 {
  margin: 0;
  font-weight: 760;
  font-stretch: 122%;
  text-transform: uppercase;
  font-size: clamp(1.25rem, 5.4vw, 1.6rem);
  line-height: 1;
  letter-spacing: -0.015em;
}
.card-body p {
  margin: 0.7rem 0 0;
  font-size: 0.98rem;
  line-height: 1.55;
  color: rgb(11 10 8 / 0.78);
}
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.9rem 0 0;
  padding: 0;
  list-style: none;
}
.card-tags li {
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 650;
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line);
}
.deck-ctrl {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100%, 30rem);
  margin-top: 4.4rem;
  position: relative;
  z-index: 8;
}
.round {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  font-size: 1.1rem;
  box-shadow: inset 0 0 0 1px var(--line-l);
}
.round-ink {
  background: var(--gold);
  color: var(--ink);
  box-shadow: none;
}
.deck-count {
  margin: 0;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.deck-count b {
  color: var(--gold-2);
}
.deck-count span {
  font-weight: 400;
  opacity: 0.6;
}
@media (max-width: 900px) {
  .deal {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 2.2rem;
    gap: 1.5rem;
  }
  .deal-index {
    display: flex;
    gap: 0.4rem;
    overflow-x: auto;
    border: 0;
    scrollbar-width: none;
    margin: 0 calc(-1 * var(--gut));
    padding: 0 var(--gut);
  }
  .deal-index::-webkit-scrollbar {
    display: none;
  }
  .deal-index li {
    border: 0;
    flex: none;
  }
  .deal-index button {
    display: inline-flex;
    gap: 0.4rem;
    min-height: 2.6rem;
    width: auto;
    padding: 0 0.9rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-stretch: 105%;
    box-shadow: inset 0 0 0 1px var(--line-l);
  }
  .deal-index button[aria-current='true'] {
    padding-left: 0.9rem;
    background: var(--gold);
    color: var(--ink);
    box-shadow: none;
  }
  .deal-index button[aria-current='true']::after {
    content: none;
  }
  .deal-index button[aria-current='true'] span:first-child {
    color: var(--ink);
  }
  .card[data-p='1'] {
    transform: rotate(3deg) translate(0.6rem, 0.5rem) scale(0.97);
  }
  .card[data-p='2'] {
    transform: rotate(6deg) translate(1.2rem, 1.1rem) scale(0.94);
  }
  .card[data-p='3'] {
    transform: rotate(9deg) translate(1.6rem, 1.8rem) scale(0.91);
  }
  .deck-ctrl {
    margin-top: 2.6rem;
  }
}

/* ---------- TRABAJOS: rolagem horizontal fijada ---------- */
.works {
  position: relative;
  background: var(--paper);
}
.js .works-pin {
  height: var(--pin-h, 400vh);
}
.works-sticky {
  overflow: hidden;
}
.js .works-sticky {
  position: sticky;
  top: calc(var(--head) + env(safe-area-inset-top));
  height: calc(100svh - var(--head) - env(safe-area-inset-top));
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
}
.works-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 0.6rem 2rem;
  padding: clamp(1.2rem, 3vw, 2.4rem) var(--gut) 0 max(var(--gut), calc((100vw - 88rem) / 2 + var(--gut)));
}
.works-head .kicker {
  grid-column: 1 / -1;
}
.works-title {
  font-size: clamp(1.6rem, 4.6vw, 4rem);
}
.works-count {
  margin: 0;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  color: var(--mute);
}
.works-count b {
  font-size: 1.6rem;
  color: var(--ink);
}
.works-meter {
  grid-column: 1 / -1;
  height: 2px;
  background: var(--line);
  overflow: hidden;
}
.works-meter i {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--gold-grad);
  transform: scaleX(0);
  transform-origin: 0 50%;
}
.works-track {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  padding: 1.5rem var(--gut) 1.5rem max(var(--gut), calc((100vw - 88rem) / 2 + var(--gut)));
  will-change: transform;
}
.no-js .works-track,
html:not(.js) .works-track {
  overflow-x: auto;
}
.work {
  position: relative;
  flex: none;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: end;
  gap: 1.2rem;
  width: min(36rem, 82vw);
  height: 100%;
  max-height: 40rem;
}
.work.is-wide {
  width: min(50rem, 88vw);
}
.work-device {
  position: relative;
  height: 100%;
  max-height: 34rem;
  aspect-ratio: 432 / 934;
  border-radius: 1.6rem;
  overflow: hidden;
  background: var(--ink);
  box-shadow: 0 0 0 6px var(--ink), 0 40px 60px -30px rgb(11 10 8 / 0.6);
  transition: transform 0.5s var(--ease);
}
.work.is-wide .work-device {
  aspect-ratio: 16 / 10;
  height: auto;
  width: min(30rem, 62vw);
  border-radius: 0.6rem;
}
.work-device video,
.work-device img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.work-info {
  padding-bottom: 1rem;
  min-width: 0;
}
.work-n {
  font-weight: 760;
  font-stretch: 125%;
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 0.85;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--gold);
}
.tag {
  display: inline-block;
  margin-top: 0.8rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: var(--ink);
  color: var(--gold-2);
}
.tag[data-k='Proyecto de diseño'] {
  background: var(--white);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}
.tag[data-k='Proyecto propio'] {
  background: var(--gold);
  color: var(--ink);
}
.work-info h3 {
  margin: 0.6rem 0 0;
  font-weight: 760;
  font-stretch: 120%;
  text-transform: uppercase;
  font-size: clamp(1.2rem, 2.2vw, 1.8rem);
  line-height: 1;
  overflow-wrap: anywhere;
}
.work-meta {
  margin: 0.4rem 0 0;
  font-size: 0.84rem;
  color: var(--mute);
}
.work-info p {
  margin: 0.7rem 0 0;
  font-size: 0.94rem;
  line-height: 1.5;
  color: rgb(11 10 8 / 0.75);
}
.work-info .link {
  margin-top: 0.4rem;
  font-size: 0.9rem;
}
.work-end {
  flex: none;
  display: grid;
  align-content: center;
  gap: 1rem;
  width: min(26rem, 80vw);
  height: 100%;
  max-height: 34rem;
  padding: 2rem;
  border-radius: 0.6rem;
  background: var(--ink);
  color: var(--white);
}
.work-end b {
  font-weight: 760;
  font-stretch: 125%;
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 0.85;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.work-end p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
  opacity: 0.8;
}
@media (max-width: 700px) {
  .work {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) auto;
    align-items: start;
    width: 78vw;
    gap: 0.8rem;
  }
  .work-device {
    height: 100%;
    width: auto;
    max-height: none;
    justify-self: start;
    min-height: 0;
  }
  .work.is-wide {
    width: 84vw;
  }
  .work.is-wide .work-device {
    width: 100%;
  }
  .work-info {
    padding: 0;
  }
  .work-n {
    position: absolute;
    right: 0;
    top: 0;
    font-size: 3rem;
  }
  .work-info p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}


/* ---------- Utilidades ---------- */
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
html.is-locked {
  overflow: hidden;
}
.btn-gold .btn-label {
  background: var(--gold-2);
  color: var(--ink);
}
.btn-gold .btn-sq {
  background: var(--white);
}
.link-l {
  color: var(--gold-2);
}
.contact-copy {
  container-type: inline-size;
}
.contact-copy .sec-title {
  font-size: min(9.2cqi, 5.4rem);
}

/* ---------- Cabecera: idioma y menú del móvil ---------- */
.lang {
  display: flex;
  gap: 0.15rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.lang a {
  display: grid;
  place-items: center;
  min-width: 2.4rem;
  min-height: 2.6rem;
  text-decoration: none;
  border-radius: 999px;
  opacity: 0.55;
}
.lang a[aria-current='page'] {
  opacity: 1;
  box-shadow: inset 0 0 0 1px currentColor;
}
.nav-wa {
  display: none !important;
}
.menu-btn {
  display: none;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.75rem;
  padding: 0 0.2rem 0 0.4rem;
  font-weight: 650;
  font-size: 0.88rem;
}
.menu-lines {
  display: grid;
  gap: 5px;
  width: 1.3rem;
}
.menu-lines i {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform 0.4s var(--ease);
}
.top.is-menu .menu-lines i:first-child {
  transform: translateY(3.5px) rotate(45deg);
}
.top.is-menu .menu-lines i:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}
@media (max-width: 860px) {
  .menu-btn {
    display: inline-flex;
  }
  .lang {
    margin-left: auto;
  }
  .top .btn {
    margin-left: 0;
  }
  .nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 100dvh;
    z-index: -1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.2rem;
    margin: 0;
    padding: calc(var(--head) + 1rem) var(--gut) 2rem;
    background: var(--ink);
    color: var(--white);
    clip-path: circle(0 at calc(100% - 2.5rem) 2rem);
    visibility: hidden;
    transition: clip-path 0.6s var(--ease), visibility 0s 0.6s;
  }
  .top.is-menu .nav {
    clip-path: circle(150% at calc(100% - 2.5rem) 2rem);
    visibility: visible;
    transition: clip-path 0.7s var(--ease);
  }
  .nav a {
    opacity: 1;
    font-weight: 760;
    font-stretch: 125%;
    text-transform: uppercase;
    font-size: clamp(2rem, 10vw, 3.4rem);
    letter-spacing: -0.02em;
    line-height: 1.05;
    transform: translateY(1.2rem);
    opacity: 0;
    transition: transform 0.6s var(--ease), opacity 0.4s;
  }
  .top.is-menu .nav a {
    transform: none;
    opacity: 1;
    transition-delay: calc(0.12s + var(--i) * 0.05s);
  }
  .nav a.nav-wa {
    display: inline-flex !important;
    margin-top: 1.4rem;
    font-size: 1rem;
    font-stretch: 100%;
    text-transform: none;
    color: var(--gold-2);
  }
  .top.is-menu {
    background: var(--ink);
    color: var(--white);
    border-color: transparent;
  }
  .top.is-menu .brand em {
    color: var(--gold-2);
  }
}
@media (max-width: 600px) {
  .head-cta {
    display: none !important;
  }
}

/* Proyectos: portada neutra (imagen fija) dentro del aparato */
.work-device .bg-blur {
  filter: blur(16px) brightness(0.6);
  transform: scale(1.2);
}
.work-device .contain {
  object-fit: contain;
}
.work-end .btn {
  justify-self: start;
  margin-top: 0.4rem;
}

/* ---------- TODOS LOS PROYECTOS: vitrina limpia ---------- */
.archive {
  position: relative;
  background: var(--white);
  padding: clamp(4rem, 9vw, 7.5rem) 0;
  border-top: 1px solid var(--line);
}
.arch-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.6rem 3rem;
}
.arch-head .sec-head {
  flex: 1 1 30rem;
  min-width: 0;
}
.arch-tabs {
  display: flex;
  gap: 0.25rem;
  padding: 0.3rem;
  border-radius: 999px;
  background: var(--paper, #f1efe9);
  box-shadow: inset 0 0 0 1px var(--line);
}
.arch-tabs button {
  flex: none;
  min-height: 2.6rem;
  padding: 0 1.05rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 650;
  white-space: nowrap;
  transition: background-color 0.25s, color 0.25s;
}
.arch-tabs button:hover {
  background: rgb(11 10 8 / 0.06);
}
.arch-tabs button[aria-pressed='true'] {
  background: var(--ink);
  color: var(--white);
}
.arch-note {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 1.6rem 0 0;
  padding: 0 0.3rem 0 0.95rem;
  min-height: 2.5rem;
  border-radius: 999px;
  background: var(--gold);
  font-size: 0.86rem;
  font-weight: 650;
}
.arch-note[hidden] {
  display: none;
}
.arch-note button {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  font-size: 1.1rem;
  background: rgb(11 10 8 / 0.1);
}
.arch-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3rem 1.6rem;
  margin: clamp(2.2rem, 4vw, 3.2rem) 0 0;
  padding: 0;
  list-style: none;
}
.arch-item[hidden] {
  display: none;
}
.arch-open {
  display: grid;
  gap: 1rem;
  width: 100%;
  text-align: left;
}
/* Capa: o projeto dentro de um aparelho, sobre o próprio fundo desfocado (todas do mesmo tamanho) */
.arch-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: 0.75rem;
  overflow: hidden;
  background: var(--ink-2);
  isolation: isolate;
  --fr: 4 / 5;
}
.arch-media[data-r='432/934'] {
  --fr: 432 / 934;
}
.arch-media[data-r='9/16'] {
  --fr: 9 / 16;
}
.arch-media[data-r='1/1'] {
  --fr: 1 / 1;
}
.arch-bg {
  position: absolute;
  inset: -12%;
  width: 124%;
  height: 124%;
  object-fit: cover;
  filter: blur(26px) brightness(0.55) saturate(1.15);
}
.arch-img,
.arch-vid {
  position: absolute;
  left: 50%;
  top: 50%;
  width: auto;
  height: 82%;
  max-width: 90%;
  aspect-ratio: var(--fr);
  translate: -50% -50%;
  object-fit: cover;
  object-position: 50% 0;
  border-radius: 0.9rem;
  box-shadow: 0 0 0 4px #0d0c0a, 0 0 0 5px rgb(255 255 255 / 0.14), 0 26px 50px -20px rgb(0 0 0 / 0.8);
  transition: scale 0.8s var(--ease);
}
.arch-media[data-r='16/9'] .arch-img,
.arch-media[data-r='16/9'] .arch-vid {
  width: 86%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 0.45rem;
}
.arch-media.is-neutral .arch-img {
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  aspect-ratio: auto;
  translate: none;
  border-radius: 0;
  box-shadow: none;
  object-position: 50% 35%;
}
.arch-vid {
  opacity: 0;
  transition: opacity 0.45s;
}
.arch-media.is-playing .arch-vid {
  opacity: 1;
}
.arch-media::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgb(11 10 8 / 0.08);
  pointer-events: none;
}
.arch-open:hover .arch-img {
  scale: 1.03;
}
.arch-go {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
  scale: 0.6;
  opacity: 0;
  transition: scale 0.4s var(--ease), opacity 0.3s;
}
.arch-open:hover .arch-go,
.arch-open:focus-visible .arch-go,
.arch-media.is-playing .arch-go {
  scale: 1;
  opacity: 1;
}
.arch-txt {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 0.35rem 0.8rem;
}
.arch-name {
  font-weight: 760;
  font-stretch: 112%;
  text-transform: uppercase;
  font-size: 1.15rem;
  line-height: 1.1;
}
.arch-meta {
  grid-column: 1 / -1;
  font-size: 0.84rem;
  color: var(--mute);
}
.arch-txt .tag {
  margin: 0.1rem 0 0;
  padding: 0.2rem 0.5rem;
  font-size: 0.64rem;
  white-space: nowrap;
}
.arch-empty {
  grid-column: 1 / -1;
  padding: 3rem 0;
  color: var(--mute);
}
.arch-more-row {
  display: flex;
  justify-content: center;
  margin-top: clamp(2.6rem, 5vw, 3.6rem);
}
.arch-more[hidden] {
  display: none;
}
.arch-more .btn-sq {
  transition: background-color 0.3s, rotate 0.45s var(--ease);
}
.arch-more[aria-expanded='true'] .btn-sq {
  rotate: 180deg;
}
html:has(.archive.is-vt)::view-transition-group(*) {
  animation-duration: 0.55s;
  animation-timing-function: cubic-bezier(0.23, 1, 0.32, 1);
}
html:has(.archive.is-vt)::view-transition-old(root),
html:has(.archive.is-vt)::view-transition-new(root) {
  animation: none;
}
@media (max-width: 1000px) {
  .arch-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  .arch-head {
    display: grid;
    gap: 1.4rem;
  }
  .arch-tabs {
    overflow-x: auto;
    scrollbar-width: none;
    justify-self: start;
    max-width: 100%;
  }
  .arch-tabs::-webkit-scrollbar {
    display: none;
  }
  .arch-tabs button {
    padding: 0 0.85rem;
    font-size: 0.84rem;
  }
  .arch-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.4rem;
  }
  .arch-media {
    aspect-ratio: 5 / 4;
  }
  .arch-name {
    font-size: 1.1rem;
  }
  .arch-more {
    width: 100%;
  }
  .arch-more .btn-label {
    flex: 1;
    justify-content: center;
  }
}
@media (max-width: 430px) {
  .arch-tabs {
    gap: 0;
    padding: 0.25rem;
  }
  .arch-tabs button {
    flex: 1 1 auto;
    padding: 0 0.6rem;
    font-size: 0.8rem;
  }
}

/* Hoja del proyecto */
.sheet {
  width: min(64rem, calc(100vw - 2rem));
  max-width: none;
  max-height: calc(100dvh - 2rem);
  padding: 0;
  border: 0;
  border-radius: 0.8rem;
  background: var(--paper);
  color: var(--ink);
  overflow: hidden;
  box-shadow: 0 40px 80px -30px rgb(0 0 0 / 0.6);
}
.sheet::backdrop {
  background: rgb(11 10 8 / 0.72);
  backdrop-filter: blur(4px);
}
.sheet[open] {
  animation: sheet-in 0.45s var(--ease);
}
.sheet[open]::backdrop {
  animation: fade-in 0.3s;
}
.sheet.is-closing {
  animation: sheet-out 0.26s ease-in forwards;
}
@keyframes sheet-in {
  from {
    opacity: 0;
    transform: translateY(2rem) scale(0.97);
  }
}
@keyframes sheet-out {
  to {
    opacity: 0;
    transform: translateY(1.5rem) scale(0.98);
  }
}
@keyframes fade-in {
  from {
    opacity: 0;
  }
}
.sheet-in {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  max-height: calc(100dvh - 2rem);
}
.sheet-media {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
  padding: 1.5rem;
  background: var(--ink);
}
.sheet-media video,
.sheet-media img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100dvh - 5rem);
  aspect-ratio: var(--r, 9/16);
  object-fit: cover;
  border-radius: 0.6rem;
  background: var(--ink-2);
}
.sheet-media img {
  aspect-ratio: auto;
  object-fit: contain;
}
.sound-btn {
  position: absolute;
  left: 50%;
  bottom: 1.6rem;
  translate: -50% 0;
  min-height: 2.75rem;
  padding: 0 1rem;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.85rem;
}
.sheet-txt {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  padding: 2.4rem 2rem 1.6rem;
  overflow-y: auto;
}
.sheet-txt h3 {
  margin: 0.6rem 0 0;
  font-weight: 760;
  font-stretch: 122%;
  text-transform: uppercase;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 0.95;
  overflow-wrap: anywhere;
}
.sheet-meta {
  margin: 0.4rem 0 0;
  font-size: 0.86rem;
  color: var(--mute);
}
.sheet-txt > p:not(.sheet-meta) {
  margin: 0.9rem 0 0;
  line-height: 1.6;
}
.sheet-vids {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.8rem;
}
.sheet-vids:empty {
  display: none;
}
.sheet-vids button {
  width: 3rem;
  height: 3.8rem;
  border-radius: 0.35rem;
  overflow: hidden;
  opacity: 0.55;
  box-shadow: inset 0 0 0 2px transparent;
}
.sheet-vids button[aria-pressed='true'] {
  opacity: 1;
  outline: 2px solid var(--gold);
}
.sheet-vids img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sheet-nav {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: auto;
  padding-top: 1.6rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.sheet-nav .round {
  box-shadow: inset 0 0 0 1px var(--line);
}
.sheet-nav .round-ink {
  box-shadow: none;
}
.sheet-x {
  position: absolute;
  right: 0.7rem;
  top: 0.7rem;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 50%;
  font-size: 1.6rem;
  line-height: 1;
  background: var(--white);
  box-shadow: 0 6px 16px -8px rgb(0 0 0 / 0.5);
}
@media (max-width: 760px) {
  .sheet {
    width: 100vw;
    max-height: 94dvh;
    margin: auto 0 0;
    border-radius: 1rem 1rem 0 0;
  }
  .sheet[open] {
    animation-name: sheet-up;
  }
  .sheet.is-closing {
    animation-name: sheet-down;
  }
  @keyframes sheet-up {
    from {
      transform: translateY(100%);
    }
  }
  @keyframes sheet-down {
    to {
      transform: translateY(100%);
    }
  }
  .sheet-in {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    max-height: 94dvh;
  }
  .sheet-media {
    padding: 1rem;
  }
  .sheet-media video,
  .sheet-media img {
    max-height: 46dvh;
  }
  .sheet-txt {
    padding: 1.3rem var(--gut) calc(1.2rem + env(safe-area-inset-bottom));
  }
  .sheet-nav {
    padding-top: 1rem;
  }
}

/* ---------- SISTEMAS ---------- */
.systems {
  position: relative;
  overflow-x: clip;
  background: var(--ink);
  color: var(--white);
  padding: clamp(5rem, 10vw, 8.5rem) 0 clamp(4rem, 9vw, 7rem);
  clip-path: polygon(0 0, 100% 3.5rem, 100% 100%, 0 100%);
  margin-top: -3.5rem;
}
.systems .kicker {
  color: var(--gold-2);
}
.sys-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  margin-top: 3rem;
  align-items: start;
}
.scale {
  position: relative;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  padding: 0.3rem;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line-l);
}
.scale button {
  position: relative;
  z-index: 1;
  min-height: 2.75rem;
  padding: 0 1.1rem;
  border-radius: 999px;
  font-weight: 650;
  font-size: 0.88rem;
  white-space: nowrap;
  transition: color 0.35s;
}
.scale button[aria-checked='true'] {
  color: var(--ink);
}
.scale-thumb {
  position: absolute;
  inset: 0.3rem auto 0.3rem 0.3rem;
  width: calc(50% - 0.3rem);
  border-radius: 999px;
  background: var(--gold);
  transition: transform 0.5s var(--ease);
}
[data-scale='l'] .scale-thumb {
  transform: translateX(100%);
}
.constel-stage {
  position: relative;
  aspect-ratio: 1 / 0.92;
  margin-top: 1.4rem;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.constel-stage::before {
  content: '';
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  border: 1px dashed rgb(255 255 255 / 0.14);
}
.constel-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.constel-lines line {
  stroke: var(--gold);
  stroke-width: 1.2;
  stroke-dasharray: 2 4;
}
.node {
  position: absolute;
  left: 0;
  top: 0;
  max-width: 9.5rem;
  padding: 0.55rem 0.85rem;
  border-radius: 0.5rem;
  background: var(--ink-3);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.16);
  font-size: 0.84rem;
  font-weight: 650;
  line-height: 1.15;
  text-align: center;
  cursor: grab;
  touch-action: none;
  will-change: transform;
}
.node.is-drag {
  cursor: grabbing;
  background: var(--gold);
  color: var(--ink);
  z-index: 3;
}
.node.core {
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 7.6rem;
  height: 7.6rem;
  max-width: none;
  padding: 0.6rem;
  border-radius: 50%;
  background: var(--gold-grad);
  color: var(--ink);
  font-weight: 760;
  font-stretch: 115%;
  text-transform: uppercase;
  font-size: 0.86rem;
  cursor: default;
  touch-action: auto;
  box-shadow: 0 0 0 10px rgb(207 162 76 / 0.12), 0 0 60px rgb(207 162 76 / 0.35);
}
.constel-cap {
  min-height: 3em;
  margin: 0.8rem 0 0;
  max-width: 30rem;
  line-height: 1.5;
  opacity: 0.8;
}
.constel-hint {
  margin: 0;
  font-size: 0.78rem;
  color: rgb(255 255 255 / 0.5);
}
.sys-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.sys-tabs button {
  min-height: 2.75rem;
  padding: 0 1rem;
  border-radius: 999px;
  font-weight: 650;
  font-size: 0.88rem;
  box-shadow: inset 0 0 0 1px var(--line-l);
  transition: background-color 0.3s, color 0.3s;
}
.sys-tabs button[aria-selected='true'] {
  background: var(--white);
  color: var(--ink);
}
.sys-screen {
  position: relative;
  aspect-ratio: 16 / 10;
  margin-top: 1rem;
  border-radius: 0.6rem;
  overflow: hidden;
  background: var(--ink-2);
  box-shadow: 0 0 0 1px var(--line-l), 0 40px 70px -40px rgb(0 0 0 / 0.9);
}
.sys-layer {
  position: absolute;
  inset: 0;
  clip-path: inset(0 0 0 100%);
}
.sys-layer.is-in {
  clip-path: inset(0 0 0 0);
  transition: clip-path 0.75s cubic-bezier(0.65, 0, 0.2, 1);
}
.sys-layer video,
.sys-layer .bg-blur {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sys-layer .bg-blur {
  filter: blur(20px) brightness(0.5);
  transform: scale(1.2);
}
.sys-layer.is-phone video {
  inset: 6% auto 6% 50%;
  translate: -50% 0;
  width: auto;
  height: 88%;
  aspect-ratio: 432 / 934;
  border-radius: 0.9rem;
  box-shadow: 0 0 0 4px #000, 0 20px 40px -14px rgb(0 0 0 / 0.9);
}
.sys-info {
  margin-top: 1.3rem;
}
.sys-info .tag {
  margin: 0;
  background: var(--gold);
  color: var(--ink);
}
.sys-info .tag[data-k='Proyecto de diseño'] {
  background: var(--white);
}
.sys-info h3 {
  margin: 0.7rem 0 0;
  font-weight: 760;
  font-stretch: 122%;
  text-transform: uppercase;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  line-height: 1;
}
.sys-info p {
  max-width: 34rem;
  margin: 0.6rem 0 0;
  line-height: 1.6;
  opacity: 0.8;
}
@media (max-width: 900px) {
  .sys-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .constel-stage {
    aspect-ratio: 1 / 1.05;
  }
  .node {
    max-width: 7.6rem;
    font-size: 0.78rem;
    padding: 0.5rem 0.65rem;
  }
  .node.core {
    width: 6.2rem;
    height: 6.2rem;
    font-size: 0.74rem;
  }
  .scale {
    display: grid;
    width: 100%;
  }
  .scale button {
    padding: 0 0.6rem;
  }
}

/* ---------- PAÍSES ---------- */
@property --s {
  syntax: '<number>';
  inherits: true;
  initial-value: 1;
}
@property --px {
  syntax: '<number>';
  inherits: true;
  initial-value: 50;
}
@property --py {
  syntax: '<number>';
  inherits: true;
  initial-value: 50;
}
.atlas-sec {
  padding: clamp(4rem, 9vw, 7.5rem) 0;
  background: var(--paper);
}
.atlas-head {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: end;
  gap: 1rem 3rem;
}
.atlas-head .sec-lead {
  margin: 0;
  max-width: 28rem;
  justify-self: end;
}
.atlas {
  display: grid;
  grid-template-columns: minmax(0, 2.15fr) minmax(17.5rem, 1fr);
  gap: clamp(1rem, 2vw, 1.6rem);
  margin-top: clamp(1.8rem, 3vw, 2.6rem);
  align-items: start;
}
.map {
  position: relative;
  width: 100%;
  aspect-ratio: 1000 / 680;
  overflow: hidden;
  border-radius: 0.9rem;
  background: #ebe4d6;
  box-shadow: inset 0 0 0 1px var(--line);
  touch-action: pan-y;
  isolation: isolate;
}
.map-lens {
  position: absolute;
  inset: 0;
  transform-origin: 0 0;
  transform: translate(calc(50% - var(--s) * var(--px) * 1%), calc(50% - var(--s) * var(--py) * 1%)) scale(var(--s));
}
.map.is-ready .map-lens {
  transition: --s 0.95s cubic-bezier(0.65, 0, 0.2, 1), --px 0.95s cubic-bezier(0.65, 0, 0.2, 1), --py 0.95s cubic-bezier(0.65, 0, 0.2, 1);
}
.map-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.map-grat {
  fill: none;
  stroke: rgb(11 10 8 / 0.07);
  stroke-width: calc(0.8px / var(--s));
}
.map-land {
  fill: #fbfaf7;
  stroke: #d8ccb6;
  stroke-width: calc(0.7px / var(--s));
  stroke-linejoin: round;
}
.map-c {
  fill: #f0dfaa;
  stroke: #b88d3e;
  stroke-width: calc(0.9px / var(--s));
  stroke-linejoin: round;
  cursor: pointer;
  transition: fill 0.45s;
}
.map-c:hover {
  fill: #e8cd80;
}
.map-c.is-on {
  fill: var(--gold);
}
.map-in-bg {
  fill: #e3dbca;
}
.map-in-frame {
  fill: none;
  stroke: rgb(11 10 8 / 0.22);
  stroke-width: calc(1px / var(--s));
}
.map-route {
  fill: none;
  stroke: var(--ink);
  stroke-opacity: 0.4;
  stroke-width: calc(1.5px / var(--s));
  stroke-dasharray: 1 7;
  stroke-linecap: round;
  animation: route-flow 1.4s linear infinite paused;
}
.map.is-live .map-route {
  animation-play-state: running;
}
@keyframes route-flow {
  to {
    stroke-dashoffset: -16;
  }
}
.map-route.is-on {
  stroke: var(--gold-3);
  stroke-opacity: 1;
  stroke-width: calc(2.6px / var(--s));
  stroke-dasharray: var(--len, 2000);
  animation: none;
}
.map-dot {
  fill: var(--gold-2);
  stroke: var(--ink);
  stroke-width: calc(1.6px / var(--s));
}
.pins {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.pin,
.pin-origin {
  position: absolute;
  transform: translate(-50%, -50%) scale(calc(1 / var(--s)));
}
.pin {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  pointer-events: auto;
}
.pin b {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  font-size: 0.62rem;
  font-weight: 760;
  letter-spacing: 0.04em;
  box-shadow: 0 0 0 3px rgb(255 255 255 / 0.95), 0 8px 16px -8px rgb(0 0 0 / 0.55);
  transition: background-color 0.3s, color 0.3s, transform 0.4s var(--ease);
}
.pin:hover b {
  transform: scale(1.1);
}
.pin span {
  position: absolute;
  left: calc(100% - 0.35rem);
  top: 50%;
  translate: 0 -50%;
  padding: 0.28rem 0.6rem;
  border-radius: 0.4rem;
  background: var(--white);
  font-size: 0.78rem;
  font-weight: 650;
  white-space: nowrap;
  box-shadow: 0 6px 14px -8px rgb(0 0 0 / 0.45);
  transition: opacity 0.3s;
}
.pin[data-k='es'] span,
.pin[data-k='ch'] span {
  left: auto;
  right: calc(100% - 0.35rem);
}
.pin.is-on b {
  background: var(--gold);
  color: var(--ink);
  transform: scale(1.18);
}
.pin.is-on::after {
  content: '';
  position: absolute;
  inset: 0.1rem;
  border-radius: 50%;
  border: 2px solid var(--gold);
  animation: ping 1.8s infinite;
  pointer-events: none;
}
.pin.is-on span {
  background: var(--ink);
  color: var(--white);
}
@keyframes ping {
  from {
    transform: scale(0.6);
    opacity: 1;
  }
  to {
    transform: scale(1.5);
    opacity: 0;
  }
}
.pin-origin {
  display: grid;
  place-items: center;
  width: 1rem;
  height: 1rem;
}
.pin-origin i {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--gold-3);
  box-shadow: 0 0 0 3px var(--white);
}
.pin-origin span {
  position: absolute;
  top: calc(100% + 0.15rem);
  left: 50%;
  translate: -50% 0;
  font-family: 'Instrument', Georgia, serif;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--gold-3);
  white-space: nowrap;
}
.map-note {
  position: absolute;
  left: 2.4%;
  top: calc(42.06% - 1.6rem);
  margin: 0;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
  transition: opacity 0.4s;
}
.map[data-zoom='true'] .map-note {
  opacity: 0;
}
.map-back {
  position: absolute;
  right: 0.8rem;
  bottom: 0.8rem;
  min-height: 2.75rem;
  padding: 0 1.1rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-size: 0.84rem;
  font-weight: 650;
  box-shadow: 0 10px 20px -12px rgb(0 0 0 / 0.6);
}
.atlas-side {
  display: grid;
  gap: 0.9rem;
}
.atlas-chips {
  display: grid;
  gap: 0.3rem;
}
.atlas-chips button {
  display: grid;
  grid-template-columns: 2.1rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  min-height: 2.9rem;
  padding: 0 1rem 0 0.45rem;
  border-radius: 0.7rem;
  text-align: left;
  font-weight: 650;
  font-size: 0.92rem;
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background-color 0.3s, color 0.3s, box-shadow 0.3s;
}
.atlas-chips button:hover {
  box-shadow: inset 0 0 0 1px var(--ink);
}
.atlas-chips b {
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  font-size: 0.64rem;
  font-weight: 760;
  letter-spacing: 0.04em;
  background: var(--paper);
}
.atlas-chips small {
  font-size: 0.74rem;
  font-weight: 650;
  color: var(--mute);
  font-variant-numeric: tabular-nums;
}
.atlas-chips button[aria-pressed='true'] {
  background: var(--ink);
  color: var(--white);
  box-shadow: none;
}
.atlas-chips button[aria-pressed='true'] b {
  background: var(--gold);
  color: var(--ink);
}
.atlas-chips button[aria-pressed='true'] small {
  color: var(--gold-2);
}
.atlas-card {
  padding: 1.15rem 1.2rem 1.2rem;
  border-radius: 0.8rem;
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line);
}
.atlas-card-h {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.atlas-card-h b {
  display: grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 50%;
  background: var(--gold);
  font-size: 0.68rem;
  font-weight: 760;
}
.atlas-card h3 {
  margin: 0;
  font-weight: 760;
  font-stretch: 125%;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  line-height: 1;
}
.atlas-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 0.9rem 0 0;
  padding: 0.75rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.atlas-facts dt {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
}
.atlas-facts dd {
  margin: 0.2rem 0 0;
  font-weight: 700;
  font-stretch: 112%;
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
}
.atlas-n {
  margin: 0.9rem 0 0;
  font-size: 0.92rem;
  color: var(--mute);
}
.atlas-list {
  margin: 0.3rem 0 0;
  padding: 0;
  list-style: none;
}
.atlas-list button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 1rem;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  min-height: 2.6rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 0.9rem;
  font-weight: 600;
}
.atlas-list button > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.atlas-list small {
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--mute);
}
.atlas-list i {
  font-style: normal;
  color: var(--gold-3);
  transition: transform 0.3s var(--ease);
}
.atlas-list button:hover i {
  transform: translateX(3px);
}
.atlas-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  margin-top: 0.35rem;
  font-size: 0.88rem;
  font-weight: 700;
}
.atlas-more span {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.atlas-more i {
  display: grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: var(--gold);
  font-style: normal;
}
@media (max-width: 900px) {
  .atlas-head {
    grid-template-columns: minmax(0, 1fr);
  }
  .atlas-head .sec-lead {
    justify-self: start;
  }
  .atlas {
    grid-template-columns: minmax(0, 1fr);
  }
  .map {
    width: auto;
    margin: 0 calc(-1 * var(--gut));
    border-radius: 0;
    box-shadow: inset 0 1px 0 var(--line), inset 0 -1px 0 var(--line);
  }
  .pin b {
    width: 1.7rem;
    height: 1.7rem;
    font-size: 0.56rem;
  }
  .pin:not(.is-on) span {
    opacity: 0;
    pointer-events: none;
  }
  .pin span {
    font-size: 0.72rem;
    padding: 0.2rem 0.45rem;
  }
  .pin-origin span {
    font-size: 0.8rem;
  }
  .map-note {
    font-size: 0.56rem;
    top: calc(42.06% - 1.2rem);
  }
  .map-back {
    right: var(--gut);
    min-height: 2.5rem;
    font-size: 0.78rem;
  }
  .atlas-chips {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.3rem;
  }
  .atlas-chips button {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 0.25rem;
    min-height: 4rem;
    padding: 0.45rem 0.15rem;
    text-align: center;
    font-size: 0.64rem;
  }
  .atlas-chips button span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .atlas-chips b {
    width: 1.9rem;
    height: 1.9rem;
  }
  .atlas-chips small {
    display: none;
  }
}

/* ---------- VÍDEO ---------- */
.reel {
  background: var(--ink);
  color: var(--white);
  padding: clamp(4rem, 9vw, 7.5rem) 0;
}
.reel .kicker {
  color: var(--gold-2);
}
@supports (animation-timeline: view()) {
  .reel {
    animation: reel-open linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 70%;
  }
  @keyframes reel-open {
    from {
      clip-path: inset(0 5% round 2rem);
    }
    to {
      clip-path: inset(0 0 round 0);
    }
  }
}
.reel-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 22rem);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  margin-top: 2.6rem;
  align-items: center;
}
.reel-stage {
  display: grid;
  place-items: center;
  min-height: min(72svh, 40rem);
}
.reel-frame {
  position: relative;
  overflow: hidden;
  border-radius: 0.7rem;
  background: #000;
  box-shadow: 0 0 0 1px var(--line-l), 0 50px 90px -40px rgb(0 0 0 / 1);
  transition: width 0.7s var(--ease), height 0.7s var(--ease);
}
.reel-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.reel-frame.is-swap video {
  animation: reel-swap 0.7s var(--ease);
}
@keyframes reel-swap {
  from {
    opacity: 0;
    transform: scale(1.06);
  }
}
.reel-big {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  color: var(--ink);
  transition: opacity 0.3s;
}
.reel-big span {
  display: grid;
  place-items: center;
  width: 4.6rem;
  height: 4.6rem;
  padding-left: 0.3rem;
  border-radius: 50%;
  background: var(--gold);
}
.is-playing .reel-big {
  opacity: 0;
}
.reel-sound {
  position: absolute;
  left: 0.8rem;
  bottom: 1.1rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0 1rem 0 0.8rem;
  border-radius: 999px;
  background: rgb(11 10 8 / 0.72);
  backdrop-filter: blur(6px);
  font-weight: 650;
  font-size: 0.82rem;
}
.reel-sound[aria-pressed='false'] {
  background: var(--gold);
  color: var(--ink);
}
.ico-snd {
  width: 0.9rem;
  height: 0.9rem;
  background: currentColor;
  clip-path: polygon(0 32%, 32% 32%, 70% 0, 70% 100%, 32% 68%, 0 68%);
}
.reel-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: rgb(255 255 255 / 0.15);
}
.reel-bar i {
  display: block;
  height: 100%;
  background: var(--gold-grad);
  transform: scaleX(0);
  transform-origin: 0 50%;
}
.reel-strip {
  display: grid;
  gap: 0.3rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: r;
}
.reel-strip button {
  display: grid;
  grid-template-columns: 3.6rem minmax(0, 1fr);
  align-items: center;
  gap: 0.9rem;
  width: 100%;
  padding: 0.5rem;
  border-radius: 0.5rem;
  text-align: left;
  transition: background-color 0.3s;
}
.reel-strip button:hover {
  background: var(--ink-2);
}
.reel-strip button[aria-pressed='true'] {
  background: var(--ink-3);
  box-shadow: inset 3px 0 0 var(--gold);
}
.reel-th {
  display: block;
  height: 4.4rem;
  border-radius: 0.3rem;
  overflow: hidden;
  background: var(--ink-2);
}
.reel-th img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.reel-tx {
  display: grid;
  gap: 0.15rem;
}
.reel-tx b {
  font-size: 0.72rem;
  color: var(--gold);
}
.reel-tx span {
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.2;
}
.reel-tx small {
  font-size: 0.78rem;
  opacity: 0.6;
}
@media (max-width: 900px) {
  .reel-body {
    grid-template-columns: minmax(0, 1fr);
  }
  .reel-stage {
    min-height: 0;
  }
  .reel-strip {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    margin: 0 calc(-1 * var(--gut));
    padding: 0 var(--gut) 0.3rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .reel-strip::-webkit-scrollbar {
    display: none;
  }
  .reel-strip li {
    flex: none;
    width: 15rem;
    scroll-snap-align: start;
  }
  .reel-strip button {
    background: var(--ink-2);
  }
}

/* ---------- PROCESO ---------- */
.process {
  padding: clamp(4rem, 9vw, 7.5rem) 0 clamp(3rem, 6vw, 5rem);
  background: var(--paper);
}
.steps {
  margin-top: 2.4rem;
}
.steps-rail {
  position: sticky;
  top: calc(var(--head) + env(safe-area-inset-top));
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 calc(-1 * var(--gut));
  padding: 0 var(--gut);
  background: rgb(246 245 242 / 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.steps-rail a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 3.2rem;
  font-size: 0.84rem;
  font-weight: 650;
  text-decoration: none;
  color: var(--mute);
  transition: color 0.3s;
}
.steps-rail a b {
  font-stretch: 125%;
  color: var(--gold-3);
}
.steps-rail a.is-on {
  color: var(--ink);
}
.rail-fill {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--gold-grad);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.6s var(--ease);
}
.step-stack {
  margin: 0;
  padding: 1.5rem 0 0;
  list-style: none;
}
.step {
  position: sticky;
  top: calc(var(--head) + env(safe-area-inset-top) + 4.4rem + var(--i) * 0.9rem);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  align-items: center;
  gap: 2rem;
  min-height: min(26rem, 58svh);
  margin-bottom: 1.4rem;
  padding: clamp(1.6rem, 4vw, 3rem);
  border-radius: 0.8rem;
  background: var(--white);
  box-shadow: 0 -10px 40px -20px rgb(11 10 8 / 0.35), inset 0 0 0 1px var(--line);
}
.step:nth-child(2) {
  background: #efe3c4;
}
.step:nth-child(3) {
  background: var(--ink);
  color: var(--white);
}
.step:nth-child(4) {
  background: #dcd5c6;
}
.step-n {
  display: block;
  font-weight: 760;
  font-stretch: 125%;
  font-size: clamp(3.4rem, 9vw, 7rem);
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1.5px currentColor;
  opacity: 0.5;
}
.step h3 {
  margin: 1rem 0 0;
  font-weight: 760;
  font-stretch: 125%;
  text-transform: uppercase;
  font-size: clamp(1.7rem, 4.4vw, 3.2rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
}
.step p {
  max-width: 30rem;
  margin: 0.9rem 0 0;
  font-size: 1.05rem;
  line-height: 1.6;
  opacity: 0.8;
}
.step-art {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  max-width: 15rem;
  width: 100%;
  justify-self: center;
}
/* 1 · conversa */
.art-chat {
  align-content: center;
  gap: 0.5rem;
}
.art-chat .b {
  display: block;
  height: 2.4rem;
  border-radius: 1rem;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
  transform: scale(0.6);
  opacity: 0;
  transition: transform 0.5s var(--ease), opacity 0.4s;
}
.art-chat .b1 {
  width: 70%;
  justify-self: start;
}
.art-chat .b2 {
  width: 55%;
  justify-self: end;
  background: var(--gold-2);
  transition-delay: 0.25s;
}
.art-chat .b3 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  width: 4rem;
  justify-self: start;
  transition-delay: 0.5s;
}
.art-chat .b3 i {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--mute);
  animation: dot 1.2s infinite;
}
.art-chat .b3 i:nth-child(2) {
  animation-delay: 0.15s;
}
.art-chat .b3 i:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes dot {
  50% {
    transform: translateY(-4px);
  }
}
.step.is-on .art-chat .b {
  transform: none;
  opacity: 1;
}
/* 2 · documento */
.art-doc .doc {
  position: relative;
  display: grid;
  align-content: start;
  gap: 0.6rem;
  width: 72%;
  aspect-ratio: 3 / 4;
  padding: 1.1rem;
  border-radius: 0.4rem;
  background: var(--white);
  box-shadow: 0 20px 40px -24px rgb(0 0 0 / 0.5);
  transform: rotate(-4deg);
}
.art-doc .doc i {
  height: 0.5rem;
  border-radius: 1rem;
  background: var(--line);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.6s var(--ease);
}
.art-doc .doc i:nth-child(1) {
  width: 60%;
  height: 0.8rem;
  background: var(--ink);
}
.art-doc .doc i:nth-child(2) {
  transition-delay: 0.15s;
}
.art-doc .doc i:nth-child(3) {
  width: 80%;
  transition-delay: 0.3s;
}
.art-doc .doc i:nth-child(4) {
  width: 50%;
  transition-delay: 0.45s;
}
.art-doc .ok {
  position: absolute;
  right: -0.9rem;
  bottom: -0.9rem;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  background: var(--gold);
  transform: scale(0);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.7s;
}
.art-doc .ok::after {
  content: '✓';
  display: grid;
  place-items: center;
  height: 100%;
  font-weight: 800;
  font-size: 1.4rem;
}
.step.is-on .art-doc .doc i,
.step.is-on .art-doc .ok {
  transform: none;
}
/* 3 · ventana que se monta */
.art-build .win {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 0.7rem 3.4rem 2.6rem;
  gap: 0.45rem;
  width: 86%;
  padding: 0.7rem;
  border-radius: 0.5rem;
  background: var(--ink-3);
  box-shadow: inset 0 0 0 1px var(--line-l);
}
.art-build .win i {
  border-radius: 0.25rem;
  background: rgb(255 255 255 / 0.12);
  transform: translateY(1rem);
  opacity: 0;
  transition: transform 0.55s var(--ease), opacity 0.4s;
}
.art-build .w-bar {
  grid-column: 1 / -1;
  background: rgb(255 255 255 / 0.2);
}
.art-build .w-hero {
  grid-column: 1 / -1;
  background: var(--gold-grad) !important;
  transition-delay: 0.15s !important;
}
.art-build .w-a {
  transition-delay: 0.3s !important;
}
.art-build .w-b {
  transition-delay: 0.4s !important;
}
.art-build .w-c {
  transition-delay: 0.5s !important;
}
.step.is-on .art-build .win i {
  transform: none;
  opacity: 1;
}
/* 4 · interruptor */
.switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 12rem;
  height: 5.4rem;
  padding: 0.5rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.1), 0 20px 40px -20px rgb(0 0 0 / 0.6);
}
.switch-k {
  width: 4.4rem;
  height: 4.4rem;
  border-radius: 50%;
  background: var(--white);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.3s;
}
.switch-t {
  position: absolute;
  right: 1.2rem;
  font-weight: 700;
  font-size: 0.86rem;
  transition: opacity 0.3s, transform 0.4s var(--ease);
}
.switch[aria-checked='true'] .switch-k {
  transform: translateX(6.6rem);
  background: var(--gold-2);
}
.switch[aria-checked='true'] .switch-t {
  transform: translateX(-6.2rem);
}
.burst {
  position: fixed;
  z-index: 60;
  pointer-events: none;
}
.burst i {
  position: absolute;
  left: -4px;
  top: -4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-2);
}
.burst i:nth-child(3n) {
  background: var(--ink);
}
@media (max-width: 760px) {
  .steps-rail a {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    font-size: 0.7rem;
    line-height: 1.15;
  }
  .step {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    min-height: 0;
    top: calc(var(--head) + env(safe-area-inset-top) + 4rem + var(--i) * 0.6rem);
  }
  .step h3 {
    margin-top: 1.6rem;
    font-size: clamp(1.35rem, 7vw, 2.2rem);
    overflow-wrap: anywhere;
  }
  .step-n {
    font-size: 3rem;
  }
  .step-art:not(.art-launch) {
    position: absolute;
    right: 1.2rem;
    top: 1.2rem;
    width: 4rem;
    max-width: none;
  }
  .art-chat .b {
    height: 1rem !important;
  }
  .art-chat {
    gap: 0.3rem;
  }
  .step p {
    font-size: 0.98rem;
  }
  .art-chat .b {
    height: 1.4rem;
  }
  .art-chat .b3 {
    width: 2.8rem;
  }
  .art-build .win {
    grid-template-rows: 0.4rem 1.8rem 1.4rem;
    gap: 0.3rem;
    padding: 0.45rem;
    width: 100%;
  }
  .art-doc .ok {
    width: 2.2rem;
    height: 2.2rem;
  }
  .art-doc .ok::after {
    font-size: 1rem;
  }
  .art-launch {
    grid-column: 1 / -1;
    justify-self: start;
    max-width: none;
    aspect-ratio: auto;
  }
  .switch {
    width: 10rem;
    height: 4.2rem;
  }
  .switch-k {
    width: 3.2rem;
    height: 3.2rem;
  }
  .switch[aria-checked='true'] .switch-k {
    transform: translateX(5.8rem);
  }
  .switch[aria-checked='true'] .switch-t {
    transform: translateX(-5rem);
  }
}

/* ---------- CONTACTO (bloque dorado) ---------- */
.contact {
  position: relative;
  background: linear-gradient(160deg, #ead07c 0%, #cfa24c 55%, #b98a3a 100%);
  color: var(--ink);
  padding: clamp(4.5rem, 10vw, 8rem) 0;
}
@supports (animation-timeline: view()) {
  @media (min-width: 901px) {
  .contact {
    animation: contact-open linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 80%;
  }
  @keyframes contact-open {
    from {
      clip-path: circle(30% at 50% 100%);
    }
    to {
      clip-path: circle(150% at 50% 100%);
    }
  }
  }
}
.contact .kicker {
  color: var(--ink);
  opacity: 0.7;
}
.contact .soft {
  background: none;
  color: var(--ink);
}
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.contact .sec-lead {
  opacity: 0.85;
}
.contact-phone {
  margin: 1.4rem 0 0;
  font-weight: 700;
  font-size: 1.1rem;
}
.contact-phone a {
  text-underline-offset: 0.3em;
}
.chat {
  border-radius: 1rem;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 40px 80px -40px rgb(11 10 8 / 0.7);
}
.chat-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.1rem;
  background: var(--ink);
  color: var(--white);
}
.chat-top p {
  display: grid;
  margin: 0;
  line-height: 1.2;
}
.chat-top span {
  font-size: 0.78rem;
  color: #8fd19e;
}
.chat-body {
  display: grid;
  gap: 0.7rem;
  padding: 1.2rem 1.1rem;
  background: radial-gradient(circle at 1px 1px, rgb(11 10 8 / 0.06) 1px, transparent 0) 0 0 / 14px 14px;
}
.msg {
  justify-self: start;
  max-width: 85%;
  margin: 0;
  padding: 0.6rem 0.9rem;
  border-radius: 0.2rem 0.9rem 0.9rem 0.9rem;
  background: var(--white);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.08);
  font-size: 0.95rem;
}
.msg-me {
  justify-self: end;
  min-height: 2.6rem;
  border-radius: 0.9rem 0.2rem 0.9rem 0.9rem;
  background: #dcf5d4;
  line-height: 1.45;
}
.caret {
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 2px;
  vertical-align: -0.12em;
  background: var(--ink);
  animation: blink 1s steps(1) infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.chips button {
  min-height: 2.6rem;
  padding: 0 0.9rem;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 650;
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background-color 0.25s, color 0.25s, transform 0.2s;
}
.chips button:active {
  transform: scale(0.96);
}
.chips button[aria-pressed='true'] {
  background: var(--ink);
  color: var(--white);
  box-shadow: none;
}
.chat-send {
  display: flex;
  margin: 0 1.1rem 1.1rem;
}
.chat-send .btn-label {
  flex: 1;
  gap: 0.6rem;
}
.chat-send .ico {
  width: 1.2rem;
  height: 1.2rem;
}
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .chat {
    margin: 0 calc(-0.5 * var(--gut));
  }
}

/* ---------- RODAPÉ ---------- */
.foot {
  background: var(--ink);
  color: var(--white);
  padding: clamp(3rem, 7vw, 5rem) 0 calc(2rem + env(safe-area-inset-bottom));
  overflow: hidden;
}
.foot-word {
  display: flex;
  justify-content: center;
  padding: 0 var(--gut);
  font-family: 'Unbounded', 'Archivo', sans-serif;
  font-weight: 700;
  font-size: var(--fw, 11.6vw);
  line-height: 0.9;
  letter-spacing: -0.03em;
  white-space: nowrap;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}
.foot-word span {
  display: inline-block;
  will-change: transform;
}
.foot-word .dg {
  font-weight: 400;
  color: var(--gold-2);
}
.foot-word .amp {
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding: 0 0.04em;
}
.foot-word .sp {
  flex: none;
  width: 0.32em;
}
.foot-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem 2.5rem;
  margin-top: 3rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line-l);
  font-size: 0.9rem;
}
.foot-row p {
  margin: 0;
  opacity: 0.7;
}
.foot-row .brand em {
  color: var(--gold-2);
}
.foot-row nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1.4rem;
}
.foot-row nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  text-underline-offset: 0.3em;
}
.foot-c {
  grid-column: 1 / -1;
  font-size: 0.8rem;
}
@media (max-width: 860px) {
  .foot-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Botón flotante (móvil) ---------- */
.fab {
  position: fixed;
  right: calc(1rem + env(safe-area-inset-right));
  bottom: calc(1rem + env(safe-area-inset-bottom));
  z-index: 40;
  display: none;
  place-items: center;
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 0 0 4px rgb(11 10 8 / 0.9), 0 16px 30px -10px rgb(0 0 0 / 0.6);
  transform: translateY(160%) scale(0.6);
  transition: transform 0.45s var(--ease);
}
.fab .ico {
  width: 1.7rem;
  height: 1.7rem;
}
.fab.is-on {
  transform: none;
}
@media (max-width: 860px) {
  .fab {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    transition-delay: 0s !important;
  }
  .reel,
  .contact {
    animation: none !important;
  }
}

/* Ajustes finos */
.work-info h3 {
  font-size: clamp(1.05rem, 1.7vw, 1.6rem);
  font-stretch: 108%;
  overflow-wrap: normal;
}
.fab.is-hidden {
  transform: translateY(160%) scale(0.6);
}
@media (max-width: 700px) {
  .work-n {
    position: static;
    display: inline-block;
    margin-right: 0.5rem;
    font-size: 2rem;
    vertical-align: middle;
  }
  .work-info .tag {
    vertical-align: middle;
    margin-top: 0;
  }
  .work-info h3 {
    font-size: clamp(1.1rem, 5.6vw, 1.45rem);
  }
  .kicker {
    letter-spacing: 0.16em;
  }
}
@media (max-width: 700px) and (max-height: 720px) {
  .work-desc {
    display: none;
  }
}

.link[hidden]{display:none!important}

@media (max-width: 380px) {
  .top {
    gap: 0.8rem;
  }
  .brand {
    gap: 0.45rem;
    font-size: 0.86rem;
  }
  .brand img {
    width: 30px;
    height: 30px;
  }
  .lang a {
    min-width: 2.2rem;
  }
}

/* celular: topo opaco para o texto não se misturar ao rolar */
@media (max-width: 900px) {
  .top:not(.is-menu) { background: rgb(246 245 242 / 0.985); }
  .top[data-dark='true']:not(.is-menu) { background: rgb(11 10 8 / 0.985); }
}

/* Idiomas: 4 no topo (computador); no celular ficam dentro do menu */
.lang a {
  min-width: 2.2rem;
}
.nav-lang,
.foot-langs {
  display: none;
}
.foot-langs {
  display: inline-flex;
  gap: 0.2rem;
}
.foot-langs a {
  display: inline-grid;
  place-items: center;
  min-width: 2.6rem;
  min-height: 2.6rem;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  opacity: 0.6;
}
.foot-langs a[aria-current='page'] {
  opacity: 1;
  box-shadow: inset 0 0 0 1px currentColor;
}
@media (max-width: 860px) {
  .top > .lang {
    display: none;
  }
  .menu-btn {
    margin-left: auto;
  }
  .nav-lang {
    display: flex;
    gap: 0.4rem;
    margin-top: 1.6rem;
    transform: translateY(1.2rem);
    opacity: 0;
    transition: transform 0.6s var(--ease), opacity 0.4s;
  }
  .top.is-menu .nav-lang {
    transform: none;
    opacity: 1;
    transition-delay: calc(0.12s + var(--i) * 0.05s);
  }
  .nav .nav-lang a {
    display: grid;
    place-items: center;
    min-width: 3.2rem;
    min-height: 3rem;
    border-radius: 999px;
    font-size: 0.95rem;
    font-stretch: 110%;
    letter-spacing: 0.06em;
    opacity: 0.6;
    transform: none;
    box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.25);
  }
  .nav .nav-lang a[aria-current='page'] {
    opacity: 1;
    background: var(--gold);
    color: var(--ink);
    box-shadow: none;
  }
}
/* alemão: palavras longas quebram com hífen no texto corrido */
html[lang='de'] p,
html[lang='de'] li,
html[lang='de'] h3,
html[lang='de'] .tag,
html[lang='de'] dd {
  hyphens: auto;
  -webkit-hyphens: auto;
}
html[lang='de'] .display,
html[lang='de'] h2 {
  overflow-wrap: break-word;
  hyphens: manual;
}

/* ---------- Movimento no site todo (js/motion.js; só com .motion, ou seja, sem movimento reduzido) ---------- */
.motion main section:not(.hero) .display .line,
.motion main section:not(.hero) .display > .soft {
  overflow: hidden;
  padding: 0.14em 0.12em 0.1em 0;
  margin: -0.14em -0.12em -0.1em 0;
}
.motion main section:not(.hero) .display > .soft {
  display: inline-block;
  vertical-align: top;
}
.motion .ml {
  display: inline-block;
  transition: transform 1.05s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.6s;
}
.motion .sec-head:not(.is-in) .ml,
.motion .works-head:not(.is-in) .ml {
  transform: translateY(108%) rotate(2.5deg);
}
.motion .sec-head .line:nth-child(2) .ml,
.motion .works-head .line:nth-child(2) .ml,
.motion .display > .soft .ml {
  transition-delay: 0.1s;
}
.motion .ml-whole {
  transition: transform 1s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.7s;
}
.motion :is(.sec-head, .works-head):not(.is-in) .ml-whole {
  opacity: 0;
  transform: translateY(0.4em);
}
.motion :is(.sec-head, .works-head) .kicker,
.motion :is(.sec-head, .works-head) .sec-lead {
  transition: opacity 0.8s 0.25s, transform 0.9s 0.25s cubic-bezier(0.19, 1, 0.22, 1);
}
.motion :is(.sec-head, .works-head):not(.is-in) :is(.kicker, .sec-lead) {
  opacity: 0;
  transform: translateY(12px);
}
.motion :is(.sec-head, .works-head) .kicker {
  transition-delay: 0s;
}
.motion .display .soft {
  will-change: translate;
}
/* cursor */
.cursor {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}
.cursor.is-on {
  opacity: 1;
}
.cursor-dot,
.cursor-ring {
  position: absolute;
  left: 0;
  top: 0;
}
.cursor-dot {
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: var(--gold);
}
.cursor-ring {
  display: grid;
  place-items: center;
  width: 0;
  height: 0;
}
.cursor-ring::before {
  content: '';
  position: absolute;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px rgb(207 162 76 / 0.75);
  transition: width 0.35s var(--ease), height 0.35s var(--ease), background-color 0.3s, box-shadow 0.3s;
}
.cursor-t {
  position: relative;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s;
}
.cursor.is-link .cursor-ring::before {
  width: 52px;
  height: 52px;
  background: rgb(207 162 76 / 0.14);
}
.cursor.is-view .cursor-ring::before,
.cursor.is-drag .cursor-ring::before {
  width: 78px;
  height: 78px;
  background: var(--gold);
  box-shadow: 0 10px 30px -10px rgb(11 10 8 / 0.5);
}
.cursor.is-view .cursor-t,
.cursor.is-drag .cursor-t {
  opacity: 1;
}
.cursor.is-drag .cursor-ring::before {
  background: rgb(255 255 255 / 0.92);
}
.cursor.is-down .cursor-ring::before {
  width: 26px;
  height: 26px;
}
.cursor.is-view .cursor-dot,
.cursor.is-drag .cursor-dot {
  opacity: 0;
}
/* botões magnéticos */
.mag {
  transition: translate 0.45s cubic-bezier(0.23, 1, 0.32, 1), transform 0.25s var(--ease);
}
.mag:hover {
  transition: translate 0.12s linear, transform 0.25s var(--ease);
}
.btn .btn-sq {
  overflow: hidden;
}
.btn:hover .btn-sq {
  animation: arrow-run 0.5s var(--ease);
}
@keyframes arrow-run {
  45% {
    text-indent: 3rem;
    opacity: 0;
  }
  46% {
    text-indent: -3rem;
  }
  100% {
    text-indent: 0;
    opacity: 1;
  }
}
/* cartões que inclinam */
.arch-media,
.sheet-media {
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}
.arch-media.tilt,
.sheet-media.tilt {
  transform: perspective(900px) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)) scale(1.015);
  transition: transform 0.12s linear;
}
.arch-media::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%), rgb(255 240 205 / 0.28), rgb(255 240 205 / 0) 45%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.arch-media.tilt::before {
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .btn:hover .btn-sq {
    animation: none;
  }
}

/* ---------- Modo leve: celular e telas de toque (o computador fica igual) ---------- */
@media (pointer: coarse), (max-width: 900px) {
  /* sem desfoque ao vivo: os fundos desfocados viram um degradê escuro fixo */
  .card-media .bg-blur,
  .work-device .bg-blur,
  .sys-layer .bg-blur,
  .arch-bg {
    display: none;
  }
  .card-media,
  .work-device,
  .sys-layer:not(.is-wide),
  .arch-media {
    background: radial-gradient(120% 90% at 50% 35%, #3b3428, #14120e 72%);
  }
  .top,
  .reel-sound,
  .steps-rail {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  .steps-rail {
    background: rgb(246 245 242 / 0.97);
  }
  .sheet::backdrop {
    backdrop-filter: none;
    background: rgb(11 10 8 / 0.82);
  }
  /* logo: sem luz que segue o dedo, sombra sem filtro */
  .logo-glint {
    display: none;
  }
  .stage-glow {
    filter: none;
    opacity: 0.6;
  }
  .logo-tilt {
    transform: none;
    will-change: auto;
  }
  /* nada em loop fora do necessário */
  .map-route,
  .pin::before,
  .pin::after,
  .pin *,
  .pin-origin i {
    animation: none !important;
  }
  .arch-media.tilt {
    transform: none;
  }
  /* título do topo entra mais rápido (o LCP não espera a animação) */
  .js .hero-title .line > i {
    animation-duration: 0.7s;
    animation-delay: 0s;
  }
  .js .hero-title .line:nth-child(2) > i {
    animation-delay: 0.12s;
  }
}
