:root {
  --electric: #6fd2c4;
  --copper: #c98f5a;
  --graphite: #202522;
  --chalk: #f8f5ee;
}

.site-header {
  grid-template-columns: 170px 1fr auto;
}

.nav {
  gap: 16px;
}

.hero {
  min-height: 94dvh;
  padding-top: 132px;
  padding-bottom: 48px;
}

.hero-inner {
  margin-left: max(40px, calc((100vw - var(--container)) / 2));
  padding-right: 520px;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(3rem, 4.9vw, 5.25rem);
}

.hero-copy {
  max-width: 610px;
}

.hero-experience {
  position: absolute;
  right: max(32px, calc((100vw - var(--container)) / 2));
  top: 132px;
  z-index: 3;
  width: min(430px, 34vw);
  min-height: 500px;
  color: var(--bone);
}

.mode-orbit {
  position: absolute;
  inset: -32px -18px auto auto;
  z-index: 3;
  width: 164px;
  height: 164px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  animation: orbitSpin 18s linear infinite;
}

.mode-orbit span {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  height: 28px;
  color: var(--ink);
  background: var(--electric);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  animation: orbitCounter 18s linear infinite;
}

.mode-orbit span:nth-child(1) {
  top: -14px;
  left: 52px;
}

.mode-orbit span:nth-child(2) {
  top: 68px;
  right: -28px;
}

.mode-orbit span:nth-child(3) {
  bottom: -14px;
  left: 52px;
}

.mode-orbit span:nth-child(4) {
  top: 68px;
  left: -34px;
}

.reel-window {
  position: relative;
  height: 430px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  background: var(--ink);
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.38);
}

.reel-window::before,
.reel-window::after {
  position: absolute;
  z-index: 4;
  content: "";
  pointer-events: none;
}

.reel-window::before {
  inset: 0;
  background:
    linear-gradient(0deg, rgba(23, 22, 20, 0.82), transparent 42%),
    linear-gradient(90deg, rgba(111, 210, 196, 0.2) 1px, transparent 1px) 0 0 / 54px 54px;
}

.reel-window::after {
  left: 0;
  right: 0;
  top: 38%;
  height: 2px;
  background: var(--electric);
  box-shadow: 0 0 30px rgba(111, 210, 196, 0.8);
  animation: scanReel 4.5s ease-in-out infinite;
}

.reel-window img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.08);
  animation: reelFade 12s infinite;
}

.reel-window img:nth-child(2) {
  animation-delay: 4s;
}

.reel-window img:nth-child(3) {
  animation-delay: 8s;
}

.signal-card {
  position: absolute;
  left: -54px;
  bottom: 34px;
  z-index: 5;
  width: 230px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(23, 22, 20, 0.78);
  backdrop-filter: blur(18px);
}

.signal-card span,
.persona-panel span,
.brief-output span,
.upload-tile span,
.voice-tile span,
.measure-tile span {
  color: var(--electric);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
}

.signal-card strong {
  display: block;
  margin: 8px 0;
  font-family: var(--font-mono);
  font-size: 3rem;
  line-height: 0.9;
}

.signal-card p {
  margin: 0;
  color: rgba(251, 250, 246, 0.72);
  font-size: 0.82rem;
  line-height: 1.45;
}

.experience-switchboard {
  padding: 110px 0;
  color: var(--bone);
  background:
    radial-gradient(circle at 76% 20%, rgba(111, 210, 196, 0.18), transparent 30%),
    linear-gradient(135deg, #151714, #2b1713 46%, #101816);
  overflow: hidden;
}

.switchboard-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 58px;
  align-items: center;
}

.studio-copy h2,
.lab-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 5.2rem);
  line-height: 0.96;
  letter-spacing: 0;
  text-wrap: balance;
}

.studio-copy p:not(.eyebrow),
.lab-head p:not(.eyebrow) {
  max-width: 560px;
  color: rgba(251, 250, 246, 0.76);
}

.persona-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.persona-tab {
  min-height: 46px;
  padding: 0 16px;
  color: var(--bone);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  font-weight: 800;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.persona-tab:hover,
.persona-tab.is-active {
  color: var(--ink);
  background: var(--electric);
  transform: translateY(-2px);
}

.persona-stage {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  min-height: 560px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
}

.persona-visual {
  position: relative;
  min-height: 560px;
  overflow: hidden;
}

.persona-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 260ms ease, transform 600ms ease;
}

.persona-visual.is-changing img {
  opacity: 0.35;
  transform: scale(1.04);
}

.scan-line {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0 48%, rgba(111, 210, 196, 0.92) 50%, transparent 52%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.58), transparent 52%);
  mix-blend-mode: screen;
  transform: translateX(-100%);
  animation: wideScan 5s ease-in-out infinite;
}

.persona-panel {
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 30px;
  background: rgba(23, 22, 20, 0.86);
}

.persona-panel h3 {
  margin: 12px 0;
  font-family: var(--font-display);
  font-size: 2.45rem;
  line-height: 1;
  letter-spacing: 0;
}

.persona-panel p {
  color: rgba(251, 250, 246, 0.72);
}

.multimodal-lab {
  padding: 110px 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(23, 22, 20, 0.06) 1px, transparent 1px) 0 0 / 80px 80px,
    var(--chalk);
}

.lab-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 58px;
  align-items: start;
}

.lab-head .eyebrow {
  color: var(--red);
}

.lab-head p:not(.eyebrow) {
  color: rgba(23, 22, 20, 0.72);
}

.lab-console {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.upload-tile,
.voice-tile,
.measure-tile,
.brief-output {
  display: grid;
  gap: 12px;
  min-height: 178px;
  padding: 22px;
  border: 1px solid rgba(23, 22, 20, 0.13);
  border-radius: 8px;
  background: var(--bone);
  box-shadow: 0 20px 60px rgba(33, 28, 21, 0.1);
}

.upload-tile {
  cursor: pointer;
}

.upload-tile input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.upload-tile strong,
.voice-tile strong,
.measure-tile input,
.brief-output p {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.45rem;
  line-height: 1.05;
  letter-spacing: 0;
}

.voice-tile button {
  justify-self: start;
  min-height: 44px;
  padding: 0 16px;
  color: var(--bone);
  border: 0;
  border-radius: 6px;
  background: var(--red);
  cursor: pointer;
  font-weight: 800;
}

.voice-tile.is-recording button {
  color: var(--ink);
  background: var(--electric);
}

.measure-tile input {
  width: 100%;
  border: 0;
  border-bottom: 2px solid rgba(23, 22, 20, 0.18);
  background: transparent;
  outline: none;
}

.brief-output {
  grid-column: 1 / -1;
  min-height: 170px;
  color: var(--bone);
  background:
    linear-gradient(135deg, rgba(201, 143, 90, 0.2), transparent),
    var(--ink);
}

.brief-output p {
  color: var(--bone);
  font-size: 1.7rem;
}

.why-link-band {
  padding: 54px 0;
  color: var(--bone);
  background: var(--red);
}

.why-hero {
  min-height: 88dvh;
  display: flex;
  align-items: center;
  padding: 140px 0 80px;
  color: var(--bone);
  background:
    linear-gradient(90deg, rgba(23, 22, 20, 0.94), rgba(23, 22, 20, 0.58)),
    url("../assets/fondo-proyectos.webp") center / cover;
}

.why-hero-grid,
.comparison-grid,
.evidence-grid,
.source-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 54px;
  align-items: center;
}

.why-hero h1 {
  margin: 0;
  max-width: 900px;
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 6.5vw, 7rem);
  line-height: 0.92;
  letter-spacing: 0;
  text-wrap: balance;
}

.why-hero p:not(.eyebrow) {
  max-width: 680px;
  color: rgba(251, 250, 246, 0.78);
  font-size: 1.12rem;
}

.impact-meter {
  justify-self: end;
  width: min(100%, 430px);
  min-height: 430px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  background:
    radial-gradient(circle at 50% 28%, rgba(111, 210, 196, 0.26), transparent 34%),
    rgba(23, 22, 20, 0.72);
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
}

.impact-meter span,
.comparison-column span,
.evidence-list span {
  color: var(--electric);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
}

.impact-meter strong {
  margin: 16px 0;
  font-family: var(--font-display);
  font-size: 3.7rem;
  line-height: 0.9;
}

.impact-meter p {
  margin: 0;
  color: rgba(251, 250, 246, 0.72);
}

.why-section {
  padding: 110px 0;
  background: var(--chalk);
}

.comparison-grid {
  align-items: stretch;
}

.comparison-column {
  min-height: 560px;
  padding: 34px;
  border-radius: 10px;
  border: 1px solid rgba(23, 22, 20, 0.12);
  background: var(--bone);
}

.comparison-column.old {
  opacity: 0.78;
}

.comparison-column.new {
  color: var(--bone);
  border-color: rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(135deg, rgba(111, 210, 196, 0.12), transparent 34%),
    var(--ink);
  box-shadow: 0 30px 90px rgba(33, 28, 21, 0.22);
}

.comparison-column h2,
.evidence-grid h2,
.outcomes-section h2,
.source-grid h2 {
  margin: 14px 0 24px;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.2vw, 4.5rem);
  line-height: 0.96;
  letter-spacing: 0;
  text-wrap: balance;
}

.comparison-column ul {
  display: grid;
  gap: 16px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.comparison-column li {
  position: relative;
  padding-left: 26px;
}

.comparison-column li::before {
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 10px;
  height: 2px;
  content: "";
  background: var(--red);
}

.evidence-section {
  color: var(--bone);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px) 0 0 / 110px 110px,
    var(--steel);
}

.evidence-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.evidence-list article {
  min-height: 250px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(23, 22, 20, 0.28);
}

.evidence-list h3 {
  margin: 12px 0 10px;
  font-family: var(--font-display);
  font-size: 1.7rem;
  line-height: 1;
}

.evidence-list p,
.source-grid p {
  color: rgba(251, 250, 246, 0.74);
}

.outcomes-section {
  background: var(--bone);
}

.outcome-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 42px;
}

.outcome-grid article {
  min-height: 220px;
  padding: 24px;
  border: 1px solid rgba(23, 22, 20, 0.12);
  border-radius: 8px;
  background: var(--paper);
}

.outcome-grid strong {
  display: block;
  color: var(--red);
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
}

.outcome-grid p {
  color: rgba(23, 22, 20, 0.72);
}

.source-section {
  color: var(--bone);
  background: var(--ink);
}

.source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.source-links a {
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  color: var(--bone);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  transition: border-color 180ms ease, background 180ms ease;
}

.source-links a:hover {
  border-color: var(--electric);
  background: rgba(111, 210, 196, 0.12);
}

.why-final {
  min-height: 620px;
}

@keyframes orbitSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes orbitCounter {
  to {
    transform: rotate(-360deg);
  }
}

@keyframes reelFade {
  0%,
  30% {
    opacity: 1;
    transform: scale(1);
  }
  40%,
  100% {
    opacity: 0;
  }
}

@keyframes scanReel {
  0%,
  100% {
    transform: translateY(-160px);
  }
  50% {
    transform: translateY(170px);
  }
}

@keyframes wideScan {
  0%,
  24% {
    transform: translateX(-100%);
  }
  62%,
  100% {
    transform: translateX(100%);
  }
}

@media (max-width: 1200px) {
  .hero-inner {
    margin-left: auto;
    padding-right: 0;
  }

  .hero-experience {
    position: relative;
    top: auto;
    right: auto;
    width: min(calc(100% - 40px), 720px);
    min-height: auto;
    margin: 46px auto 0;
  }

  .signal-card {
    left: 20px;
  }

  .reel-window {
    height: 390px;
  }
}

@media (max-width: 900px) {
  .switchboard-grid,
  .lab-grid,
  .persona-stage,
  .why-hero-grid,
  .comparison-grid,
  .evidence-grid,
  .source-grid {
    grid-template-columns: 1fr;
  }

  .persona-visual,
  .persona-stage {
    min-height: auto;
  }

  .persona-visual {
    height: 380px;
  }

  .site-header {
    grid-template-columns: auto auto;
  }

  .impact-meter {
    justify-self: start;
  }

  .outcome-grid,
  .evidence-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .hero {
    min-height: auto;
  }

  .hero h1 {
    font-size: 2.45rem;
  }

  .hero-experience {
    display: none;
  }

  .experience-switchboard,
  .multimodal-lab {
    padding: 76px 0;
  }

  .studio-copy h2,
  .lab-head h2 {
    font-size: 2.35rem;
  }

  .persona-visual {
    height: 300px;
  }

  .persona-panel {
    padding: 22px;
  }

  .persona-panel h3 {
    font-size: 2rem;
  }

  .lab-console {
    grid-template-columns: 1fr;
  }

  .brief-output {
    grid-column: auto;
  }

  .brief-output p {
    font-size: 1.35rem;
  }

  .why-hero {
    min-height: auto;
    padding: 120px 0 70px;
  }

  .why-hero h1 {
    font-size: 2.7rem;
  }

  .impact-meter,
  .comparison-column {
    min-height: auto;
  }

  .why-section {
    padding: 76px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mode-orbit,
  .mode-orbit span,
  .reel-window img,
  .reel-window::after,
  .scan-line {
    animation: none !important;
  }

  .reel-window img:first-child {
    opacity: 1;
  }
}
