.r3-road-entrance, .r3-road-entrance * { box-sizing: border-box; }

@font-face {
  font-family: "RL3 Road Rajdhani";
  src: url("/road-opening/Rajdhani-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "RL3 Road Rajdhani";
  src: url("/road-opening/Rajdhani-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "RL3 Road Rajdhani";
  src: url("/road-opening/Rajdhani-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "RL3 Road Russo";
  src: url("/road-opening/RussoOne-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}



.r3-road-entrance {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: 100svh;
  overflow: hidden;
  background: #020812;
}

.r3-road-photo,
.r3-road-shade,
.r3-road-grid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.r3-road-photo {
  z-index: -4;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.02);
  animation: r3-road-breath 16s ease-in-out infinite alternate;
}

.r3-road-shade {
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(1, 5, 12, .96) 0%, rgba(2, 8, 18, .78) 43%, rgba(2, 8, 18, .24) 76%, rgba(2, 8, 18, .54) 100%),
    linear-gradient(0deg, rgba(1, 5, 12, .92) 0%, transparent 53%, rgba(1, 5, 12, .45) 100%);
}

.r3-road-grid {
  z-index: -2;
  opacity: .34;
  background-image:
    linear-gradient(rgba(141, 239, 255, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(141, 239, 255, .08) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: linear-gradient(90deg, #000, transparent 68%);
}

.r3-road-route {
  position: absolute;
  top: clamp(1.5rem, 5vw, 4rem);
  left: clamp(1.25rem, 5vw, 5rem);
  display: flex;
  align-items: baseline;
  gap: .5rem;
  color: #8defff;
  font-family: "RL3 Road Russo", "Arial Black", sans-serif;
  font-size: clamp(.8rem, 1.3vw, 1.1rem);
  letter-spacing: .12em;
  text-shadow: 0 0 1.8rem rgba(23, 217, 255, .65);
}

.r3-road-route strong { font-size: clamp(1.6rem, 3vw, 3.4rem); }

.r3-road-copy {
  position: absolute;
  top: clamp(7.5rem, 18vh, 11rem);
  left: clamp(1.25rem, 7vw, 8rem);
  width: min(820px, calc(100% - 2.5rem));
}

.r3-road-copy > p,
.r3-road-surprise {
  text-transform: uppercase;
  letter-spacing: .18em;
}

.r3-road-copy > p {
  margin: 0 0 1rem;
  color: #8defff;
  font-size: clamp(.85rem, 1.45vw, 1.25rem);
  font-weight: 700;
}

.r3-road-copy h1 {
  max-width: 11ch;
  margin: 0;
  color: transparent;
  background: linear-gradient(180deg, #fff 8%, #d8f9ff 38%, #40ddff 62%, #087cff 92%);
  background-clip: text;
  -webkit-background-clip: text;
  font-family: "RL3 Road Russo", "Arial Black", sans-serif;
  font-size: clamp(3.2rem, 7.3vw, 8.6rem);
  font-weight: 400;
  line-height: .88;
  letter-spacing: -.055em;
  text-transform: uppercase;
  text-shadow: 0 0 3rem rgba(23, 217, 255, .18);
}

.r3-road-surprise {
  display: block;
  margin-top: 1.7rem;
  color: #f7fbff;
  font-size: clamp(1rem, 1.8vw, 1.6rem);
  font-weight: 600;
}



.r3-road-pulse i {
  display: block;
  width: 2px;
  height: 18%;
  flex: 0 0 2px;
  background: #17d9ff;
  box-shadow: 0 0 .55rem #17d9ff;
  animation: r3-road-wave 1.25s ease-in-out infinite;
}

.r3-road-pulse i:nth-child(3n+1) { height: 38%; animation-delay: -.18s; }
.r3-road-pulse i:nth-child(3n+2) { height: 76%; animation-delay: -.52s; }
.r3-road-pulse i:nth-child(4n) { height: 52%; animation-delay: -.83s; }
.r3-road-pulse i:nth-child(5n) { height: 28%; animation-delay: -1.02s; }

.r3-road-audio-pulse {
  position: absolute;
  left: clamp(1.25rem, 7vw, 8rem);
  bottom: clamp(3rem, 17vh, 10rem);
}

.r3-road-signal {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: clamp(1.25rem, 5vw, 5rem);
  display: flex;
  align-items: center;
  gap: .55rem;
  height: 7rem;
  opacity: .64;
}

.r3-road-signal i {
  display: block;
  width: 2px;
  height: 20%;
  background: #17d9ff;
  box-shadow: 0 0 1rem #17d9ff;
  animation: r3-road-signal 1.5s ease-in-out infinite;
}

.r3-road-signal i:nth-child(2) { height: 70%; animation-delay: -.45s; }
.r3-road-signal i:nth-child(3) { height: 38%; animation-delay: -.8s; }

@keyframes r3-road-breath {
  from { transform: scale(1.02); }
  to { transform: scale(1.075); }
}

@keyframes r3-road-signal {
  0%, 100% { transform: scaleY(.35); opacity: .35; }
  50% { transform: scaleY(1); opacity: 1; }
}

@keyframes r3-road-wave {
  0%, 100% { transform: scaleY(.34); opacity: .35; }
  50% { transform: scaleY(1); opacity: 1; }
}

@media (max-width: 700px) {
  .r3-road-photo { object-position: 55% center; }
  .r3-road-shade {
    background:
      linear-gradient(180deg, rgba(1, 5, 12, .72) 0%, rgba(2, 8, 18, .57) 45%, rgba(2, 8, 18, .16) 70%, rgba(1, 5, 12, .34) 100%),
      linear-gradient(90deg, rgba(1, 5, 12, .5), rgba(2, 8, 18, .08) 86%);
  }
  .r3-road-grid {
    opacity: .2;
    background-size: 52px 52px;
    mask-image: linear-gradient(0deg, #000, transparent 78%);
  }
  .r3-road-copy {
    top: 6.25rem;
    left: 1.25rem;
    width: calc(100% - 2.5rem);
  }
  .r3-road-copy > p { max-width: 26ch; line-height: 1.25; }
  .r3-road-copy h1 {
    max-width: 10ch;
    font-size: clamp(2.55rem, 13.3vw, 4.9rem);
    line-height: .93;
  }
  .r3-road-surprise { max-width: 20ch; line-height: 1.25; }
  .r3-road-signal { display: none; }
  .r3-road-audio-pulse {
    left: 1.25rem;
    bottom: clamp(2.25rem, 20vh, 9rem);
    width: clamp(4.2rem, 23vw, 6.8rem);
    gap: .17rem;
  }
}

@media (max-width: 380px) {
  .r3-road-copy h1 { font-size: clamp(2.25rem, 12.2vw, 3.2rem); }
}

@media (max-width: 700px) and (max-height: 680px) {
  .r3-road-copy { top: 5.6rem; }
  .r3-road-copy h1 { font-size: clamp(2.25rem, 11.8vw, 4rem); }
  .r3-road-surprise { margin-top: 1rem; }
  .r3-road-audio-pulse { bottom: 1.35rem; }
}

@media (prefers-reduced-motion: reduce) {
  .r3-road-entrance *, .r3-road-entrance *::before, .r3-road-entrance *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Shared entrance: original PMF photograph, typography and composition. */
.r3-road-entrance { color: #f7fbff; font-family: "RL3 Road Rajdhani", Arial, sans-serif; font-size: 1rem; font-weight: 500; line-height: 1.5; }
.r3-road-enter { position: relative; display: block; min-height: 100svh; padding-bottom: 2rem; color: inherit; text-decoration: none; cursor: pointer; }
.r3-road-enter:focus-visible { outline: 3px solid #17d9ff; outline-offset: -6px; }
.r3-road-copy { position: relative; top: auto; padding-top: clamp(7.5rem, 18vh, 11rem); }
.r3-road-copy > .r3-road-kicker { line-height: 1.5; }
.r3-road-copy h1 { overflow-wrap: normal; }
.r3-road-surprise { line-height: 1.5; }
/* The approved entrance has no visible navigation button. */
.r3-road-enter { border:0; padding:0; background:transparent; width:100%; text-align:left; }
.r3-road-copy { padding-bottom:3rem; pointer-events:none; }
.r3-road-hit { position:absolute; inset:0; z-index:4; width:100%; height:100%; border:0; background:transparent; cursor:pointer; }
.r3-road-hit:focus-visible { outline:3px solid #17d9ff; outline-offset:-6px; }
.r3-road-login { box-sizing:border-box; width:min(32rem,calc(100vw - 2rem)); max-height:calc(100svh - 2rem); overflow:auto; padding:1.7rem; border:1px solid #8defff66; color:#f7fbff; background:#061321; font:500 1.125rem/1.4 "RL3 Road Rajdhani",Arial,sans-serif; }
.r3-road-login::backdrop { background:#020812bb; backdrop-filter:blur(5px); }
.r3-road-login h2 { font-family:"RL3 Road Russo",Arial,sans-serif; font-size:1.6rem; margin:0 0 .75rem; }
.r3-road-login p { margin:.5rem 0 1.25rem; color:#bad4df; }
.r3-road-login form { display:grid; gap:.65rem; }
.r3-road-login label { font-weight:700; }
.r3-road-login input { box-sizing:border-box; width:100%; min-width:0; height:3.2rem; border:1px solid #8defff66; padding:.7rem; background:#020812; color:#fff; font:inherit; }
.r3-road-login input:focus { outline:2px solid #17d9ff; outline-offset:2px; }
.r3-road-password { display:flex; gap:.5rem; }
.r3-road-login button { font:700 1rem/1.3 "RL3 Road Rajdhani",Arial,sans-serif; cursor:pointer; }
.r3-road-show,.r3-road-close { padding:.7rem; border:1px solid #8defff66; background:#0d2636; color:#8defff; }
.r3-road-close { float:right; margin:-.4rem -.4rem .5rem 1rem; }
.r3-road-submit { min-height:3.2rem; margin-top:.8rem; border:0; padding:.75rem 1rem; color:#020812; background:#8defff; }
.r3-road-login .r3-road-error { color:#ffb2b9; margin:.5rem 0; }
.r3-road-sound { position:absolute; z-index:6; left:clamp(1.25rem,7vw,8rem); bottom:1.4rem; border:1px solid #8defff55; padding:.45rem .7rem; color:#8defff; background:#02081299; font:600 .95rem/1.4 "RL3 Road Rajdhani",Arial,sans-serif; cursor:pointer; }
@media(max-width:700px){.r3-road-copy{top:auto;padding-top:6.25rem}.r3-road-copy>.r3-road-kicker,.r3-road-surprise{line-height:1.25}}
@media(max-width:700px) and (max-height:680px){.r3-road-copy{padding-top:5.6rem}}
