/* Cinematic route: street -> garage -> workstation -> real skills interface. */
.immersive-base {
  --canvas-opacity: 1;
  --canvas-scale: 1.015;
  --look-x: 0px;
  --look-y: 0px;
  --portal-opacity: 0;
  --portal-scale: .42;
  --portal-blur: 14px;
  --speed-opacity: 0;
  --phone-opacity: 0;
  --phone-scale: .76;
  --phone-y: 70px;
  --phone-rotate: 10deg;
  position: relative;
  z-index: 1;
  height: 580vh;
  background: #05050b;
  isolation: isolate;
}

.immersive-base__sticky {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
  background: #05050b;
  perspective: 1200px;
}

.immersive-base__canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  opacity: var(--canvas-opacity);
  /* O poster (125 KB) só entra quando a seção se aproxima — como background
     permanente ele era baixado no primeiro segundo, competindo com o LCP.
     A classe .is-armed vem do IntersectionObserver em immersive-scene.js. */
  background: #05050b;
  filter: saturate(1.04) contrast(1.025);
  transform: translate3d(var(--look-x), var(--look-y), 0) scale(var(--canvas-scale));
  transform-origin: 50% 50%;
  transition: opacity .1s linear;
  will-change: transform, opacity;
}

.immersive-base.is-armed .immersive-base__canvas {
  background: #05050b url("../img/scenes/immersive/poster.webp") center / cover no-repeat;
}

.immersive-base__grade,
.immersive-base__speed,
.immersive-base__grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.immersive-base__grade {
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(2,4,11,.76), rgba(3,5,12,.08) 47%, rgba(5,3,12,.22)),
    linear-gradient(to top, rgba(3,3,10,.74), transparent 38%, rgba(3,4,12,.18)),
    radial-gradient(circle at 50% 48%, transparent 34%, rgba(2,2,8,.36));
  opacity: calc(.82 - var(--portal-opacity));
}

.immersive-base__speed {
  z-index: 3;
  inset: -12%;
  opacity: var(--speed-opacity);
  background: repeating-linear-gradient(
    101deg,
    transparent 0 8.2%,
    rgba(109,244,229,.2) 8.3%,
    transparent 8.48% 15.5%,
    rgba(255,60,137,.16) 15.62%,
    transparent 15.78% 23%
  );
  filter: blur(7px);
  mix-blend-mode: screen;
  transform: translate3d(-4%, 0, 0) skewX(-7deg);
  will-change: opacity, transform;
}

.immersive-base__grain {
  z-index: 4;
  inset: -40%;
  opacity: .052;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.78' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: immersive-grain .28s steps(2) infinite;
}

@keyframes immersive-grain {
  0% { transform: translate3d(0, 0, 0); }
  25% { transform: translate3d(3%, -2%, 0); }
  50% { transform: translate3d(-2%, 3%, 0); }
  75% { transform: translate3d(1%, -3%, 0); }
}

.immersive-base__hud {
  position: absolute;
  top: 34px;
  right: max(34px, calc((100vw - 1240px) / 2));
  left: max(34px, calc((100vw - 1240px) / 2));
  z-index: 8;
  display: grid;
  grid-template-columns: 1fr auto 74px;
  gap: 22px;
  align-items: center;
  padding: 11px 0;
  border-top: 1px solid rgba(255,255,255,.18);
  border-bottom: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.56);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .2em;
  opacity: calc(1 - var(--portal-opacity));
  transition: opacity .18s linear;
}

.immersive-base__hud span:nth-child(2) {
  color: var(--cyan);
}

.immersive-base__hud strong {
  color: #fff;
  font-family: var(--display);
  font-size: 15px;
  font-style: italic;
  text-align: right;
}

.immersive-base__telemetry {
  position: absolute;
  top: 50%;
  right: max(26px, calc((100vw - 1320px) / 2));
  z-index: 8;
  display: grid;
  gap: 11px;
  justify-items: center;
  color: rgba(255,255,255,.52);
  font: 700 6px/1 monospace;
  letter-spacing: .15em;
  opacity: calc(1 - var(--portal-opacity));
  transform: translateY(-50%);
}

.immersive-base__telemetry i {
  display: block;
  width: 1px;
  height: 170px;
  background: rgba(255,255,255,.18);
}

.immersive-base__telemetry i b {
  display: block;
  width: 3px;
  height: 0;
  margin-left: -1px;
  background: linear-gradient(var(--pink), var(--cyan));
  box-shadow: 0 0 12px var(--pink);
}

.immersive-base__reticle {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 6;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(99,242,224,.4);
  border-radius: 50%;
  opacity: calc(.65 - var(--portal-opacity));
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 7px rgba(99,242,224,.025), 0 0 24px rgba(99,242,224,.08);
}

.immersive-base__reticle::before,
.immersive-base__reticle::after {
  position: absolute;
  top: 50%;
  left: 50%;
  content: "";
  background: rgba(255,255,255,.36);
  transform: translate(-50%, -50%);
}

.immersive-base__reticle::before { width: 76px; height: 1px; }
.immersive-base__reticle::after { width: 1px; height: 76px; }

.immersive-base__reticle i {
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255,53,128,.5);
  border-radius: 50%;
}

.immersive-base__reticle b {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 10px var(--pink);
  transform: translate(-50%, -50%);
}

.immersive-base__copy {
  position: absolute;
  top: 0;
  bottom: 0;
  left: max(48px, calc((100vw - 1240px) / 2));
  z-index: 7;
  width: min(720px, 58vw);
  pointer-events: none;
  transition: opacity .25s linear, filter .25s linear;
}

.immersive-base.is-portal .immersive-base__copy {
  opacity: 0;
  filter: blur(12px);
}

.immersive-base__beat {
  position: absolute;
  top: 52%;
  left: 0;
  width: 100%;
  opacity: 0;
  filter: blur(10px);
  transform: translate3d(0, calc(-50% + 42px), 0) skewY(1.5deg);
  transition:
    opacity .42s ease,
    transform .72s cubic-bezier(.2,.75,.2,1),
    filter .42s ease;
}

.immersive-base__beat.is-active {
  opacity: 1;
  filter: none;
  transform: translate3d(0, -50%, 0);
}

.immersive-base__beat > span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  color: var(--cyan);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .24em;
  text-transform: uppercase;
}

.immersive-base__beat > span::before {
  width: 32px;
  height: 1px;
  content: "";
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
}

.immersive-base__beat h2 {
  max-width: 720px;
  color: #fff;
  font-family: var(--display);
  font-size: clamp(72px, 8.4vw, 132px);
  font-style: italic;
  font-weight: 900;
  letter-spacing: -.052em;
  line-height: .79;
  text-transform: uppercase;
  text-shadow: 0 10px 45px rgba(0,0,0,.62), 5px 5px 0 rgba(13,7,27,.35);
}

.immersive-base__beat p {
  max-width: 390px;
  margin-top: 25px;
  color: rgba(255,255,255,.62);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .04em;
  line-height: 1.7;
}

.immersive-base__loader {
  position: absolute;
  right: max(48px, calc((100vw - 1240px) / 2));
  bottom: 34px;
  z-index: 9;
  display: grid;
  grid-template-columns: auto 130px auto;
  gap: 13px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(4,5,12,.72);
  color: rgba(255,255,255,.56);
  font: 700 6px/1 monospace;
  letter-spacing: .14em;
  backdrop-filter: blur(10px);
  transition: opacity .35s ease, transform .35s ease;
}

.immersive-base.is-ready .immersive-base__loader {
  opacity: 0;
  transform: translateY(8px);
}

.immersive-base__loader i {
  height: 2px;
  overflow: hidden;
  background: rgba(255,255,255,.12);
}

.immersive-base__loader i b {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--pink), var(--cyan));
  box-shadow: 0 0 9px var(--cyan);
}

.immersive-contact-phone {
  position: absolute;
  top: 50%;
  right: max(9vw, calc((100vw - 1240px) / 2));
  z-index: 11;
  display: block;
  width: clamp(155px, 12.5vw, 192px);
  color: #fff;
  opacity: var(--phone-opacity);
  filter: drop-shadow(0 28px 35px rgba(0,0,0,.48));
  transform: translate3d(0, calc(-50% + var(--phone-y)), 0) scale(var(--phone-scale)) rotate(var(--phone-rotate));
  transform-origin: 50% 54%;
  pointer-events: none;
  text-decoration: none;
  will-change: transform, opacity;
}

.immersive-base.is-phone-live .immersive-contact-phone {
  pointer-events: auto;
}

.immersive-contact-phone__device {
  position: relative;
  display: block;
  aspect-ratio: 9 / 18.4;
  padding: 8px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.58);
  border-radius: 28px;
  background: linear-gradient(145deg, #282637, #07070c 36% 72%, #383245);
  box-shadow:
    inset 0 0 0 2px rgba(255,255,255,.07),
    inset -5px -5px 10px rgba(0,0,0,.7),
    0 0 0 1px rgba(7,7,12,.9),
    0 0 38px rgba(255,43,120,.2);
  animation: immersive-phone-float 3.4s ease-in-out infinite;
  transition: transform .28s ease, box-shadow .28s ease;
}

.immersive-contact-phone:hover .immersive-contact-phone__device,
.immersive-contact-phone:focus-visible .immersive-contact-phone__device {
  box-shadow:
    inset 0 0 0 2px rgba(255,255,255,.1),
    inset -5px -5px 10px rgba(0,0,0,.65),
    0 0 0 1px rgba(7,7,12,.9),
    0 0 55px rgba(96,245,223,.28);
  animation-play-state: paused;
  transform: translateY(-5px) scale(1.035);
}

.immersive-contact-phone:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 12px;
}

.immersive-contact-phone__speaker {
  position: absolute;
  top: 14px;
  left: 50%;
  z-index: 3;
  width: 35%;
  height: 15px;
  border-radius: 0 0 10px 10px;
  background: #07070c;
  transform: translateX(-50%);
}

.immersive-contact-phone__screen {
  position: relative;
  display: flex;
  height: 100%;
  padding: 46px 16px 18px;
  overflow: hidden;
  border: 1px solid rgba(96,245,223,.18);
  border-radius: 21px;
  flex-direction: column;
  justify-content: flex-end;
  background:
    linear-gradient(to top, rgba(5,7,14,.96), rgba(5,7,14,.1) 70%),
    radial-gradient(circle at 75% 17%, rgba(255,111,91,.95) 0 8%, transparent 8.5%),
    linear-gradient(150deg, #152e4f, #783473 53%, #ff4e7c);
}

.immersive-contact-phone__screen::before,
.immersive-contact-phone__screen::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.immersive-contact-phone__screen::before {
  inset: 0;
  opacity: .42;
  background:
    linear-gradient(112deg, transparent 0 49.6%, rgba(255,255,255,.12) 50%, transparent 50.4%),
    repeating-linear-gradient(to bottom, transparent 0 5px, rgba(2,3,10,.08) 6px);
}

.immersive-contact-phone__screen::after {
  right: -24%;
  bottom: 31%;
  width: 112%;
  height: 24%;
  border-top: 1px solid rgba(96,245,223,.48);
  border-radius: 50%;
  box-shadow: 0 -9px 0 -7px rgba(96,245,223,.38), 0 -18px 0 -15px rgba(96,245,223,.28);
  transform: rotate(-10deg);
}

.immersive-contact-phone__status,
.immersive-contact-phone__screen strong,
.immersive-contact-phone__screen small,
.immersive-contact-phone__screen b {
  position: relative;
  z-index: 2;
}

.immersive-contact-phone__status {
  position: absolute;
  top: 41px;
  left: 15px;
  color: rgba(255,255,255,.74);
  font: 800 6px/1 var(--body);
  letter-spacing: .14em;
}

.immersive-contact-phone__status i {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 6px;
  border-radius: 50%;
  background: #57efaf;
  box-shadow: 0 0 8px #57efaf;
}

.immersive-contact-phone__screen strong {
  font-family: var(--display);
  font-size: clamp(28px, 2.5vw, 38px);
  font-style: italic;
  font-weight: 900;
  letter-spacing: -.035em;
  line-height: .77;
  text-transform: uppercase;
  text-shadow: 3px 3px 0 rgba(8,5,18,.38);
}

.immersive-contact-phone__screen small {
  margin-top: 13px;
  color: rgba(255,255,255,.62);
  font-size: 7px;
  line-height: 1.45;
}

.immersive-contact-phone__screen b {
  display: block;
  margin-top: 17px;
  padding: 11px 8px;
  border: 1px solid rgba(96,245,223,.38);
  background: rgba(9,8,20,.74);
  color: var(--cyan);
  font-size: 6px;
  letter-spacing: .13em;
  text-align: center;
}

.immersive-contact-phone__tag {
  position: absolute;
  right: 77%;
  bottom: 16%;
  z-index: 4;
  display: grid;
  width: 126px;
  gap: 5px;
  padding: 11px 13px;
  border-left: 2px solid var(--pink);
  background: rgba(7,7,15,.82);
  box-shadow: 10px 10px 0 rgba(255,43,120,.12);
  backdrop-filter: blur(10px);
}

.immersive-contact-phone__tag b {
  color: #fff;
  font-family: var(--display);
  font-size: 15px;
  font-style: italic;
}

.immersive-contact-phone__tag small {
  color: var(--cyan);
  font-size: 5px;
  font-weight: 800;
  letter-spacing: .12em;
}

.immersive-contact-phone__signal,
.immersive-contact-phone__signal::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 160%;
  aspect-ratio: 1;
  border: 1px solid rgba(96,245,223,.2);
  border-radius: 50%;
  content: "";
  transform: translate(-50%, -50%);
  animation: immersive-phone-signal 2.8s ease-out infinite;
}

.immersive-contact-phone__signal::before {
  width: 72%;
  animation-delay: .7s;
}

.immersive-contact-phone__signal i {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 10px var(--pink);
}

.immersive-contact-phone__signal i:first-child { top: 15%; left: 25%; }
.immersive-contact-phone__signal i:last-child { right: 12%; bottom: 29%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }

@keyframes immersive-phone-float {
  0%, 100% { transform: translate3d(0, -6px, 0) rotateY(-4deg); }
  50% { transform: translate3d(0, 7px, 0) rotateY(3deg); }
}

@keyframes immersive-phone-signal {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.7); }
  28% { opacity: .65; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.12); }
}

.immersive-base__portal {
  position: absolute;
  inset: 0;
  z-index: 12;
  overflow: hidden;
  opacity: var(--portal-opacity);
  border: 1px solid rgba(96,245,223,.2);
  background:
    radial-gradient(circle at 12% 70%, rgba(120,67,255,.2), transparent 28%),
    linear-gradient(145deg, #0f0a20, #090713 75%);
  box-shadow: 0 0 0 2px rgba(255,43,120,.16), 0 0 90px rgba(96,245,223,.15);
  filter: blur(var(--portal-blur));
  transform: scale(var(--portal-scale));
  transform-origin: 70% 49%;
  pointer-events: none;
  will-change: transform, opacity, filter;
}

.immersive-base__portal::before,
.immersive-base__portal::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
}

.immersive-base__portal::before {
  opacity: .35;
  background-image:
    linear-gradient(rgba(96,245,223,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96,245,223,.055) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(90deg, black, transparent 72%);
}

.immersive-base__portal::after {
  background:
    linear-gradient(115deg, transparent 0 49.9%, rgba(255,255,255,.04) 50%, transparent 50.1%),
    linear-gradient(to bottom, transparent 0 49.85%, rgba(96,245,223,.08) 50%, transparent 50.15%);
}

.immersive-base__portal-bar {
  position: absolute;
  top: 30px;
  right: 42px;
  left: 42px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-top: 1px solid rgba(255,255,255,.15);
  border-bottom: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.48);
  font: 700 7px/1 monospace;
  letter-spacing: .17em;
}

.immersive-base__portal-bar span:last-child {
  color: var(--cyan);
}

.immersive-base__portal-bar i {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 7px;
  border-radius: 50%;
  background: #57efaf;
  box-shadow: 0 0 9px #57efaf;
}

.immersive-base__portal-copy {
  position: absolute;
  top: 50%;
  left: max(58px, calc((100vw - 1240px) / 2));
  z-index: 2;
  transform: translateY(-52%);
}

.immersive-base__portal-copy > span {
  color: var(--cyan);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .22em;
}

.immersive-base__portal-copy h2 {
  max-width: 620px;
  margin-top: 24px;
  color: #fff9eb;
  font-family: var(--display);
  font-size: clamp(60px, 6.8vw, 106px);
  font-style: italic;
  font-weight: 900;
  letter-spacing: -.048em;
  line-height: .82;
}

.immersive-base__portal-copy p {
  margin-top: 22px;
  color: rgba(255,255,255,.48);
  font-size: 10px;
}

.immersive-base__portal-grid {
  position: absolute;
  top: 50%;
  right: max(54px, calc((100vw - 1240px) / 2));
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: min(43vw, 560px);
  border-top: 1px solid rgba(255,255,255,.16);
  border-left: 1px solid rgba(255,255,255,.16);
  transform: translateY(-50%);
}

.immersive-base__portal-grid span {
  display: grid;
  min-height: 148px;
  padding: 26px;
  place-content: end start;
  border-right: 1px solid rgba(255,255,255,.16);
  border-bottom: 1px solid rgba(255,255,255,.16);
  color: #fff9eb;
  font-family: var(--display);
  font-size: clamp(24px, 2.3vw, 36px);
  font-style: italic;
  font-weight: 800;
}

.immersive-base__portal-grid b {
  margin-bottom: 32px;
  color: var(--pink);
  font-family: var(--body);
  font-size: 8px;
  font-style: normal;
  letter-spacing: .12em;
}

.immersive-base__hint {
  position: absolute;
  bottom: 35px;
  left: max(48px, calc((100vw - 1240px) / 2));
  z-index: 8;
  display: flex;
  gap: 12px;
  align-items: center;
  color: rgba(255,255,255,.48);
  font-size: 6px;
  font-weight: 800;
  letter-spacing: .2em;
  opacity: calc(1 - var(--portal-opacity));
}

.immersive-base__hint i {
  position: relative;
  display: block;
  width: 62px;
  height: 1px;
  overflow: hidden;
  background: rgba(255,255,255,.18);
}

.immersive-base__hint i::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  animation: immersive-hint 1.5s ease-in-out infinite;
  transform: translateX(-100%);
}

@keyframes immersive-hint {
  to { transform: translateX(100%); }
}

.immersive-base__fallback {
  display: block;
  width: 100%;
  height: 100vh;
  object-fit: cover;
}

html:not(.js) .immersive-base {
  height: auto;
}

html:not(.js) .immersive-base__sticky {
  display: none;
}

/* The real HTML section keeps the visual language shown inside the monitor. */
.immersive-base + .skills {
  z-index: 2;
  margin-top: -1px;
  border-top: 1px solid rgba(96,245,223,.12);
  background:
    radial-gradient(circle at 12% 70%, rgba(120,67,255,.2), transparent 28%),
    linear-gradient(145deg, #0f0a20, #090713 75%);
}

.immersive-base + .skills::after {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 4;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--cyan), var(--pink), transparent);
  box-shadow: 0 0 22px rgba(96,245,223,.28);
}

@media (max-width: 1000px) {
  .immersive-base { height: 500vh; }
  .immersive-base__portal-copy { left: 42px; }
  .immersive-base__portal-copy h2 { max-width: 520px; }
  .immersive-base__portal-grid { right: 38px; width: 44vw; }
  .immersive-base__portal-grid span { min-height: 125px; padding: 22px; }
}

@media (max-width: 820px) {
  .immersive-base { height: 430vh; }
  .immersive-base__sticky { min-height: 560px; }
  .immersive-base__canvas { filter: saturate(1.02) contrast(1.02); }
  .immersive-base__hud {
    top: 24px;
    right: 22px;
    left: 22px;
    grid-template-columns: 1fr auto;
  }
  .immersive-base__hud span:nth-child(2) { display: none; }
  .immersive-base__copy { left: 26px; width: calc(100% - 52px); }
  .immersive-base__beat { top: 58%; }
  .immersive-base__beat h2 { font-size: clamp(57px, 16vw, 92px); }
  .immersive-base__telemetry { right: 18px; }
  .immersive-base__reticle { opacity: .38; }
  .immersive-base__loader {
    right: 22px;
    bottom: 24px;
    grid-template-columns: auto 90px;
  }
  .immersive-base__loader strong { display: none; }
  .immersive-base__hint { bottom: 27px; left: 25px; }
  .immersive-contact-phone { right: 8vw; width: 150px; }
  .immersive-contact-phone__tag { right: 72%; width: 112px; }
  /* No mobile o portal deixa de ser duas colunas absolutas. A copy ficava
     ancorada em top:38% e a grade colada em bottom:28px: entre as duas sobrava
     um vazio que crescia junto com a altura da tela. Aqui vira uma coluna em
     fluxo, centrada — o espaçamento passa a ser o gap, não o que sobrou. */
  .immersive-base__portal {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: clamp(24px, 5vw, 36px);
    padding: 76px 28px 32px;
    transform-origin: 67% 49%;
  }
  .immersive-base__portal-copy,
  .immersive-base__portal-grid {
    position: static;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    width: auto;
    transform: none;
  }
  .immersive-base__portal-copy h2 { margin-top: 18px; font-size: clamp(46px, 11.5vw, 72px); }
  .immersive-base__portal-copy p { margin-top: 16px; }
  .immersive-base__portal-grid span { min-height: 78px; padding: 15px; font-size: 22px; }
  .immersive-base__portal-grid b { margin-bottom: 16px; }
}

@media (max-width: 560px) {
  .immersive-base { height: 390vh; }
  .immersive-base__sticky { min-height: 520px; }
  .immersive-base__hud { font-size: 6px; }
  .immersive-base__copy { left: 20px; width: calc(100% - 40px); }
  .immersive-base__beat { top: 55%; }
  .immersive-base__beat > span { margin-bottom: 15px; font-size: 7px; }
  .immersive-base__beat h2 { font-size: clamp(52px, 17vw, 72px); }
  .immersive-base__beat p { max-width: 280px; margin-top: 18px; font-size: 9px; }
  .immersive-base__telemetry,
  .immersive-base__reticle { display: none; }
  .immersive-base__loader { right: 18px; left: 18px; justify-content: end; }
  .immersive-contact-phone { top: 62%; right: 15px; width: 126px; }
  .immersive-contact-phone__screen { padding: 42px 11px 13px; }
  .immersive-contact-phone__screen strong { font-size: 25px; }
  .immersive-contact-phone__screen small { font-size: 6px; }
  .immersive-contact-phone__screen b { padding: 9px 5px; font-size: 5px; }
  .immersive-contact-phone__tag { right: 68%; bottom: 12%; width: 98px; padding: 9px; }
  .immersive-contact-phone__tag b { font-size: 12px; }
  .immersive-base__portal-bar { top: 20px; right: 20px; left: 20px; font-size: 5px; }
  .immersive-base__portal { gap: 22px; padding: 64px 20px 24px; }
  .immersive-base__portal-copy h2 { max-width: 350px; font-size: clamp(41px, 12.5vw, 58px); }
  .immersive-base__portal-grid span { min-height: 66px; padding: 12px; font-size: 18px; }
  .immersive-base__portal-grid b { margin-bottom: 12px; }
  .immersive-base__hint { left: 20px; }
}

@media (min-width: 821px) and (max-height: 760px) {
  .immersive-base__beat h2 { font-size: clamp(62px, 7.2vw, 104px); }
  .immersive-base__beat p { margin-top: 18px; }
  .immersive-base__portal-grid span { min-height: 112px; }
  .immersive-base__portal-copy h2 { font-size: clamp(54px, 6vw, 86px); }
}

@media (prefers-reduced-motion: reduce) {
  .immersive-base {
    height: auto;
    min-height: 100svh;
  }

  .immersive-base__sticky {
    position: relative;
    height: 100svh;
  }

  .immersive-base__canvas {
    opacity: 1 !important;
    transform: none !important;
  }

  .immersive-base__speed,
  .immersive-base__grain,
  .immersive-base__portal,
  .immersive-base__reticle,
  .immersive-base__hint,
  .immersive-base__telemetry {
    display: none;
  }

  .immersive-base__copy { opacity: 1 !important; filter: none !important; }
  .immersive-base__beat { display: none; transition: none; }
  .immersive-base__beat:nth-child(3) {
    display: block;
    opacity: 1;
    filter: none;
    transform: translateY(-50%);
  }

  .immersive-contact-phone {
    opacity: 1 !important;
    transform: translate3d(0, -50%, 0) scale(.9) rotate(-2deg) !important;
    pointer-events: auto;
  }

  .immersive-contact-phone__device,
  .immersive-contact-phone__signal,
  .immersive-contact-phone__signal::before {
    animation: none;
  }
}
