:root {
  --ink: #101b23;
  --cream: #f4ead7;
  --tan: #bd9764;
  --gold: #c7a26b;
  --muted: #6e6253;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  min-height: 100%;
}
body {
  background: var(--cream);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}
button,
input {
  font: inherit;
}
.portal {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  padding: 28px clamp(22px, 5vw, 80px) 24px;
  background:
    radial-gradient(
      circle at 50% 90%,
      rgba(199, 162, 107, 0.15),
      transparent 34%
    ),
    linear-gradient(135deg, #f8f0e1 0%, #f1e3cc 55%, #ead7b8 100%);
  isolation: isolate;
}
.portal:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0.34;
  background-image:
    linear-gradient(rgba(102, 73, 34, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(102, 73, 34, 0.05) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(
    to bottom,
    transparent,
    #000 30%,
    #000 72%,
    transparent
  );
}
.ambient {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  filter: blur(85px);
  z-index: -1;
  opacity: 0.25;
}
.ambient-one {
  background: #cca56d;
  left: -160px;
  top: 20%;
}
.ambient-two {
  background: #fff;
  right: -150px;
  bottom: -120px;
}
.portal-header {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 3;
}
.portal-logo {
  width: 78px;
  height: 78px;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.header-copy {
  display: flex;
  flex-direction: column;
  padding-left: 15px;
  border-left: 1px solid rgba(78, 56, 29, 0.32);
}
.company-name {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.19em;
}
.company-line {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.hero-copy {
  text-align: center;
  margin: 10px auto 22px;
  position: relative;
  z-index: 3;
}
.kicker {
  color: #967244 !important;
  font-weight: 800;
  font-size: 11px !important;
  letter-spacing: 0.32em;
  margin-bottom: 7px !important;
}
.hero-copy h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.05;
  margin: 0;
  letter-spacing: -0.025em;
}
.hero-copy p {
  color: var(--muted);
  font-size: 15px;
  margin: 10px 0 0;
}
.doorway-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 520px));
  justify-content: center;
  gap: clamp(18px, 4vw, 56px);
  position: relative;
  z-index: 2;
  perspective: 1400px;
}
.destination {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  min-height: 390px;
  padding: 28px 18px 22px 30px;
  border: 1px solid rgba(113, 84, 45, 0.2);
  border-radius: 28px;
  text-align: left;
  color: var(--ink);
  background: rgba(255, 251, 242, 0.68);
  box-shadow:
    0 22px 60px rgba(85, 56, 20, 0.1),
    inset 0 1px rgba(255, 255, 255, 0.8);
  cursor: pointer;
  overflow: hidden;
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease,
    opacity 0.3s ease;
}
.destination:hover,
.destination:focus-visible {
  transform: translateY(-6px);
  border-color: rgba(120, 84, 36, 0.48);
  box-shadow: 0 32px 74px rgba(78, 50, 17, 0.18);
  outline: none;
}
.destination:disabled {
  cursor: default;
}
.destination-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  z-index: 4;
}
.destination-eyebrow {
  color: #9b7849;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.18em;
  margin-bottom: 12px;
}
.destination strong {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  font-size: clamp(25px, 2.35vw, 35px);
  line-height: 1.05;
}
.destination-description {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  max-width: 240px;
  margin: 14px 0 24px;
}
.enter-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #846139;
  border-bottom: 1px solid #b99463;
  padding-bottom: 5px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.19em;
}
.enter-label b {
  font-size: 18px;
  line-height: 0;
  transition: transform 0.25s ease;
}
.destination:hover .enter-label b {
  transform: translateX(4px);
}
.door-scene {
  position: relative;
  display: block;
  height: 300px;
  perspective: 900px;
  transform-style: preserve-3d;
}
.wall-glow {
  position: absolute;
  inset: 12% -10% 0;
  background: radial-gradient(
    ellipse,
    rgba(197, 154, 94, 0.32),
    transparent 66%
  );
  filter: blur(14px);
}
.door-frame {
  position: absolute;
  width: 148px;
  height: 260px;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  border: 9px solid #b28a58;
  border-bottom-width: 7px;
  background: #161f25;
  box-shadow:
    0 13px 24px rgba(43, 27, 10, 0.27),
    inset 0 0 0 2px #e3c08e;
  transform-style: preserve-3d;
}
.interior {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #253640, #111b21 70%);
  color: #d6b47d;
  overflow: hidden;
}
.interior:before {
  content: "";
  position: absolute;
  width: 65%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(244, 219, 174, 0.22),
    transparent
  );
  transform: skewX(-17deg);
}
.interior-title {
  font-size: 10px;
  letter-spacing: 0.2em;
  font-weight: 800;
  z-index: 1;
}
.interior-line {
  width: 56px;
  height: 2px;
  margin-top: 12px;
  background: rgba(210, 180, 130, 0.45);
  z-index: 1;
}
.interior-line.short {
  width: 38px;
  margin-top: 7px;
}
.door {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, #1b2932, #0e171d 58%, #263944);
  border: 2px solid #0a1115;
  box-shadow: inset -9px 0 15px rgba(0, 0, 0, 0.3);
  transform-origin: left center;
  transition:
    transform 1s cubic-bezier(0.2, 0.77, 0.2, 1),
    box-shadow 1s ease;
  transform-style: preserve-3d;
}
.panel {
  position: absolute;
  border: 3px solid #b99260;
  box-shadow: inset 0 0 0 2px rgba(8, 15, 19, 0.8);
}
.panel-top-left {
  left: 19%;
  top: 12%;
  width: 25%;
  height: 12%;
}
.panel-top-right {
  right: 19%;
  top: 12%;
  width: 25%;
  height: 12%;
}
.panel-mid-left {
  left: 19%;
  top: 31%;
  width: 25%;
  height: 28%;
}
.panel-mid-right {
  right: 19%;
  top: 31%;
  width: 25%;
  height: 28%;
}
.panel-low-left {
  left: 19%;
  bottom: 10%;
  width: 25%;
  height: 22%;
}
.panel-low-right {
  right: 19%;
  bottom: 10%;
  width: 25%;
  height: 22%;
}
.knob {
  position: absolute;
  right: 8%;
  top: 53%;
  width: 14px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(90deg, #9a713f, #d5b078);
  box-shadow: 0 1px 3px #000;
}
.floor-shadow {
  position: absolute;
  left: 50%;
  bottom: 5px;
  width: 175px;
  height: 30px;
  border-radius: 50%;
  background: rgba(46, 28, 10, 0.2);
  filter: blur(9px);
  transform: translateX(-50%);
}
.destination:hover .door {
  transform: rotateY(-14deg);
  box-shadow: 17px 4px 25px rgba(0, 0, 0, 0.27);
}
.portal-foot {
  text-align: center;
  color: rgba(76, 59, 38, 0.58);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 20px 0 0;
}
.transition-veil {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 20;
  background: #111b21;
  opacity: 0;
  transition: opacity 0.45s ease 0.75s;
}
.portal.is-entering .destination:not(.active) {
  opacity: 0;
  transform: scale(0.92);
}
.portal.is-entering .active {
  z-index: 15;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  animation: approach 1.35s cubic-bezier(0.55, 0.05, 0.3, 1) forwards;
}
.portal.is-entering .active .destination-copy {
  opacity: 0;
  transition: opacity 0.2s ease;
}
.portal.is-entering .active .door {
  transform: rotateY(-82deg);
  box-shadow: 32px 4px 45px rgba(0, 0, 0, 0.4);
}
.portal.is-entering .active .door-frame {
  animation: doorwayZoom 1.3s cubic-bezier(0.55, 0.05, 0.3, 1) forwards;
}
.portal.is-entering .portal-header,
.portal.is-entering .hero-copy,
.portal.is-entering .portal-foot {
  opacity: 0;
  transition: opacity 0.25s ease;
}
.portal.is-entering .transition-veil {
  opacity: 1;
}
@keyframes approach {
  0% {
    transform: none;
  }
  55% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1.35);
  }
}
@keyframes doorwayZoom {
  0% {
    transform: translateX(-50%) scale(1);
  }
  100% {
    transform: translateX(-50%) scale(5.6);
  }
}
@media (max-width: 800px) {
  .portal {
    padding: 20px 16px 18px;
    overflow-y: auto;
  }
  .portal-logo {
    width: 60px;
    height: 60px;
  }
  .doorway-grid {
    grid-template-columns: minmax(0, 520px);
  }
  .destination {
    min-height: 320px;
    padding: 24px;
  }
  .door-scene {
    height: 255px;
  }
  .door-frame {
    width: 126px;
    height: 222px;
  }
}
@media (max-width: 480px) {
  .header-copy {
    padding-left: 10px;
  }
  .company-name,
  .company-line {
    font-size: 10px;
  }
  .hero-copy {
    margin-top: 24px;
  }
  .destination {
    grid-template-columns: 1fr 0.72fr;
    min-height: 285px;
    padding: 20px 10px 20px 20px;
    border-radius: 22px;
  }
  .destination-description {
    font-size: 12px;
    margin-bottom: 17px;
  }
  .door-scene {
    height: 220px;
  }
  .door-frame {
    width: 105px;
    height: 190px;
    border-width: 7px;
  }
  .knob {
    width: 10px;
    height: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
.login-page {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(420px, 0.85fr);
  background: #f2e7d4;
}
.login-brand {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(34px, 6vw, 80px);
  color: #f6ecd9;
  background: linear-gradient(150deg, #0d181f, #172832 58%, #0c151b);
  overflow: hidden;
}
.login-brand:after {
  content: "";
  position: absolute;
  width: 540px;
  height: 540px;
  border: 1px solid rgba(196, 155, 101, 0.2);
  transform: rotate(45deg);
  right: -330px;
  bottom: -240px;
  box-shadow:
    0 0 0 70px rgba(196, 155, 101, 0.05),
    0 0 0 140px rgba(196, 155, 101, 0.03);
}
.login-mark {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  letter-spacing: 0.17em;
  font-weight: 800;
}
.login-mark img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  background: #f1e5d0;
  border-radius: 16px;
}
.login-brand h1 {
  font-family: Georgia, serif;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 0.96;
  font-weight: 400;
  max-width: 600px;
  margin: 0;
}
.login-brand p {
  color: #c9b99d;
  max-width: 520px;
  line-height: 1.7;
}
.login-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px;
}
.login-card {
  width: min(420px, 100%);
}
.back-home {
  color: #80603a;
  text-decoration: none;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
}
.login-card h2 {
  font-family: Georgia, serif;
  font-size: 38px;
  font-weight: 500;
  margin: 36px 0 8px;
}
.login-intro {
  color: #766957;
  line-height: 1.6;
  margin: 0 0 28px;
}
.field {
  display: grid;
  gap: 8px;
  margin: 18px 0;
}
.field label {
  font-size: 11px;
  letter-spacing: 0.13em;
  font-weight: 800;
  color: #665540;
}
.field input {
  width: 100%;
  border: 1px solid #cdbb9f;
  border-radius: 10px;
  padding: 14px 15px;
  background: rgba(255, 255, 255, 0.55);
  color: #17232a;
  outline: none;
}
.field input:focus {
  border-color: #8d683c;
  box-shadow: 0 0 0 3px rgba(141, 104, 60, 0.12);
}
.sign-in-button {
  width: 100%;
  margin-top: 12px;
  border: 0;
  border-radius: 10px;
  padding: 15px;
  color: #fff7e9;
  background: #14232c;
  font-size: 12px;
  letter-spacing: 0.16em;
  font-weight: 800;
  cursor: pointer;
}
.login-note {
  margin-top: 18px;
  color: #887963;
  font-size: 12px;
  line-height: 1.5;
}
@media (max-width: 780px) {
  .login-page {
    grid-template-columns: 1fr;
  }
  .login-brand {
    min-height: 330px;
    padding: 30px;
  }
  .login-brand h1 {
    font-size: 48px;
    margin-top: 50px;
  }
  .login-panel {
    padding: 38px 24px 60px;
  }
}

/* Keep the complete main menu inside one device viewport. */
body:has(.portal) {
  overflow: hidden;
}
.portal {
  height: 100dvh;
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto;
  gap: clamp(6px, 1.2vh, 14px);
  padding: clamp(10px, 2vh, 22px) clamp(10px, 3vw, 44px)
    max(8px, env(safe-area-inset-bottom));
  overflow: hidden;
}
.portal-header {
  min-height: 0;
}
.portal-logo {
  width: clamp(44px, 7vh, 68px);
  height: clamp(44px, 7vh, 68px);
}
.hero-copy {
  margin: 0 auto;
}
.hero-copy h1 {
  font-size: clamp(25px, 4.2vh, 43px);
}
.hero-copy p {
  margin-top: 4px;
  font-size: clamp(11px, 1.6vh, 14px);
}
.kicker {
  margin: 0 0 4px !important;
}
.portal-foot {
  margin: 0;
  font-size: 8px;
}
@media (max-width: 600px) {
  .portal {
    padding-inline: 8px;
    gap: 6px;
  }
  .portal-header {
    justify-content: center;
  }
  .portal-logo {
    width: 42px;
    height: 42px;
  }
  .company-name,
  .company-line {
    font-size: 9px;
  }
  .hero-copy h1 {
    font-size: 25px;
  }
  .hero-copy > p:last-child,
  .portal-foot {
    display: none;
  }
}
@media (max-height: 680px) {
  .header-copy {
    display: none;
  }
  .hero-copy h1 {
    font-size: 22px;
  }
  .kicker {
    font-size: 8px !important;
  }
  .portal-foot {
    display: none;
  }
}
