body.hello {
  background: #2b3a67;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
}

.hello__ui {
  position: relative;
  z-index: 1;
  height: 100vh;
  height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: clamp(56px, 9vh, 90px) 16px clamp(12px, 3vh, 28px);
  transition: transform 0.9s cubic-bezier(0.6, 0, 0.3, 1), opacity 0.9s;
}

.hello__title {
  text-align: center;
  color: #16121a;
  /* soft pale glow so dark text holds up over the misty sky */
  text-shadow: 0 0 22px rgba(240, 232, 240, 0.85), 0 0 4px rgba(240, 232, 240, 0.6);
  animation: rise-in 1s 0.1s both;
}
.hello__namaste {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 46px);
  color: #9c1c26;
  letter-spacing: 0.02em;
}
.hello__title h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(24px, 6.2vw, 78px);
  line-height: 1.08;
}
.hello__line {
  display: block;
  white-space: nowrap;
}
.hello__name {
  background: linear-gradient(90deg, #c4281c, #e0731a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 0 12px rgba(240, 232, 240, 0.8));
}
.hello__sub {
  margin: 0.4em 0 0;
  font-size: clamp(16px, 2.2vw, 22px);
  opacity: 0.92;
}

/* ---------- the crossroads ---------- */
.crossroads {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(4px, 2vw, 28px);
  width: 100%;
  max-width: 760px;
  margin-bottom: clamp(0px, 2vh, 20px);
}

.crossroads__sagun {
  position: relative;
  height: clamp(200px, 44vh, 400px);
  aspect-ratio: 200 / 360;
  animation: rise-in 0.9s 0.35s both;
}
.crossroads__figure {
  width: 100%;
  height: 100%;
}

.bubble {
  position: absolute;
  top: -4%;
  right: -38%;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(16px, 2.4vh, 22px);
  padding: 0.3em 0.75em;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  animation: bubble 3s 1.2s ease-in-out infinite both;
}
.bubble::after {
  content: "";
  position: absolute;
  left: 14px;
  bottom: -8px;
  border: 8px solid transparent;
  border-top-color: var(--cream);
  border-bottom: 0;
}

/* signpost */
.signpost {
  position: relative;
  height: clamp(190px, 38vh, 340px);
  width: clamp(150px, 30vw, 270px);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 14%;
  gap: 8%;
  animation: rise-in 0.9s 0.55s both;
}
.signpost__pole {
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 4%;
  bottom: 0;
  width: 14px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #4a2c18, #7b4d2c 45%, #4a2c18);
  border-radius: 4px 4px 0 0;
}
.signpost__cap {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 50%;
  width: 26px;
  height: 18px;
  transform: translateX(-50%);
  background: var(--dhaka);
  background-size: 9px 9px;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.sign {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  min-height: 64px;
  padding: 10px 34px 10px 16px;
  text-decoration: none;
  color: #fff3dc;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.0) 0 18px,
      rgba(0, 0, 0, 0.08) 18px 19px,
      rgba(255, 255, 255, 0.03) 19px 31px
    ),
    linear-gradient(180deg, #9a6638, #6f4321);
  clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 50%, calc(100% - 26px) 100%, 0 100%);
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.35));
  transition: transform 0.25s cubic-bezier(0.3, 1.6, 0.5, 1);
  cursor: pointer;
}
.sign--right {
  transform: translateX(16%) rotate(-3deg);
}
.sign--left {
  transform: translateX(-16%) rotate(2deg);
  padding: 8px 16px 8px 34px;
  clip-path: polygon(26px 0, 100% 0, 100% 100%, 26px 100%, 0 50%);
  text-align: right;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.0) 0 18px,
      rgba(0, 0, 0, 0.08) 18px 19px,
      rgba(255, 255, 255, 0.03) 19px 31px
    ),
    linear-gradient(180deg, #7f9a4a, #4d6a2a);
}
.sign--right:hover,
.sign--right:focus-visible {
  transform: translateX(24%) rotate(-1deg) scale(1.04);
}
.sign--left:hover,
.sign--left:focus-visible {
  transform: translateX(-24%) rotate(0deg) scale(1.04);
}
.sign:focus-visible {
  outline: none;
  filter: drop-shadow(0 0 0 #fff) drop-shadow(0 0 6px var(--gold));
}
.sign__main {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.6vw, 26px);
  line-height: 1.1;
}
.sign--right .sign__main::after {
  content: " →";
}
.sign--left .sign__main::before {
  content: "← ";
}
.sign__hint {
  font-size: clamp(11px, 1.4vw, 14px);
  opacity: 0.85;
  line-height: 1.2;
}

.hello__keys {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
}
.hello__keys kbd {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 1px 6px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 4px;
}
@media (hover: none) {
  .hello__keys {
    visibility: hidden;
  }
}

/* ---------- leaving transitions ---------- */
.veil {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.8s 0.25s;
}
body.go-this .veil {
  opacity: 1;
  background: radial-gradient(circle at 75% 70%, #1f4a2e, #0d2015 70%);
}
body.go-that .veil {
  opacity: 1;
  background: radial-gradient(circle at 25% 75%, #8fd0e4, #2f7f99 70%);
}
body.go-this .hello__ui {
  transform: translateX(-12%) scale(1.15);
  opacity: 0;
}
body.go-that .hello__ui {
  transform: translateX(12%) scale(1.15);
  opacity: 0;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
}
@keyframes bubble {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-6px) rotate(2deg); }
}

@media (max-width: 520px) {
  .crossroads {
    gap: 0;
  }
  .crossroads__sagun {
    height: min(32vh, 280px);
  }
  .bubble {
    right: -10%;
    top: -10%;
  }
  .signpost {
    width: min(50vw, 200px);
    height: min(34vh, 280px);
  }
  .sign {
    min-height: 54px;
    padding: 8px 26px 8px 12px;
  }
  .sign--left {
    padding: 8px 12px 8px 26px;
  }
  .sign__main {
    font-size: 17px;
    white-space: nowrap;
  }
  .sign__hint {
    font-size: 11px;
  }
  .sign--right { transform: translateX(4%) rotate(-3deg); }
  .sign--left { transform: translateX(-4%) rotate(2deg); }
  .sign--right:hover, .sign--right:focus-visible { transform: translateX(8%) rotate(-1deg); }
  .sign--left:hover, .sign--left:focus-visible { transform: translateX(-8%) rotate(0deg); }
}

/* ---------- one-click résumé ---------- */
.resume-btn {
  position: fixed;
  z-index: 4;
  right: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px 9px 13px;
  border-radius: 99px;
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1;
  color: #fff3dc;
  text-decoration: none;
  background: linear-gradient(180deg, #c2412d, #8f1f22);
  border: 2px solid #f1d29a;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s cubic-bezier(0.3, 1.6, 0.5, 1);
  animation: rise-in 0.9s 0.8s both;
}
.resume-btn:hover,
.resume-btn:focus-visible {
  transform: translateY(-3px) rotate(-2deg);
}
body.go-this .resume-btn,
body.go-that .resume-btn {
  opacity: 0;
  transition: opacity 0.4s;
}
@media (max-width: 520px) {
  .resume-btn {
    right: 12px;
    bottom: 12px;
    font-size: 15px;
    padding: 7px 13px 7px 11px;
  }
}
