:root {
  --ink: #191823;
  --ink-soft: #3a3748;
  --paper: #f5f2eb;
  --lilac: #dcd6f3;
  --violet: #6d5bc8;
  --violet-dark: #3f326f;
  --cinnabar: #c9543b;
  --line: rgba(25, 24, 35, 0.16);
  --line-strong: rgba(25, 24, 35, 0.38);
  --serif: "Songti SC", "STSong", "SimSun", "Noto Serif SC", serif;
  --display: "STKaiti", "KaiTi", "Kaiti SC", "Songti SC", serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(130deg, rgba(255, 255, 255, 0.76), transparent 36%),
    linear-gradient(150deg, var(--paper) 0%, #efebf6 55%, var(--lilac) 100%);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

button:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 2px solid var(--cinnabar);
  outline-offset: 3px;
}

::selection {
  color: var(--paper);
  background: var(--violet-dark);
}

.gate-grain {
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    repeating-linear-gradient(0deg, transparent 0, transparent 3px, rgba(41, 37, 57, 0.025) 3px, rgba(41, 37, 57, 0.025) 4px),
    repeating-linear-gradient(90deg, transparent 0, transparent 5px, rgba(255, 255, 255, 0.09) 5px, rgba(255, 255, 255, 0.09) 6px);
  mix-blend-mode: multiply;
}

.gate-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1320px, calc(100% - 80px));
  height: 84px;
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
}

.gate-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.gate-seal {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--paper);
  background: var(--cinnabar);
  font-family: var(--display);
  font-size: 23px;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.22);
}

.gate-brand > span:last-child {
  display: flex;
  flex-direction: column;
}

.gate-brand strong {
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: 0.24em;
}

.gate-brand small {
  color: var(--ink-soft);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.18em;
}

.gate-header > p {
  margin: 0;
  color: rgba(25, 24, 35, 0.55);
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 0.2em;
}

.gate-main {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(400px, 0.74fr);
  gap: clamp(64px, 9vw, 150px);
  align-items: center;
  width: min(1180px, calc(100% - 96px));
  min-height: calc(100svh - 140px);
  margin: 0 auto;
  padding: 54px 0;
}

.gate-eyebrow {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0 0 25px;
  color: rgba(25, 24, 35, 0.62);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.gate-eyebrow span:first-child {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gate-eyebrow span:first-child::before {
  width: 25px;
  height: 1px;
  content: "";
  background: var(--cinnabar);
}

.gate-eyebrow span + span {
  padding-left: 17px;
  border-left: 1px solid var(--line-strong);
}

.gate-intro h1 {
  max-width: 650px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(55px, 6.2vw, 88px);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: 0;
}

.gate-intro h1::first-line {
  color: var(--ink);
}

.gate-lead {
  max-width: 540px;
  margin: 25px 0 0;
  color: rgba(25, 24, 35, 0.66);
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.95;
}

.gate-map {
  position: relative;
  width: 330px;
  height: 180px;
  margin: 29px 0 19px;
  overflow: hidden;
}

.gate-map::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.34;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}

.map-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(63, 50, 111, 0.32);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.ring-one {
  width: 155px;
  height: 155px;
}

.ring-two {
  width: 96px;
  height: 96px;
  border-style: dashed;
}

.map-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300px;
  height: 1px;
  background: rgba(63, 50, 111, 0.22);
  transform-origin: center;
}

.orbit-one {
  transform: translate(-50%, -50%) rotate(23deg);
}

.orbit-two {
  transform: translate(-50%, -50%) rotate(-43deg);
}

.map-word {
  position: absolute;
  color: rgba(25, 24, 35, 0.64);
  font-family: var(--display);
  font-size: 16px;
}

.word-one {
  top: 11px;
  left: 47%;
}

.word-two {
  top: 48%;
  right: 12px;
}

.word-three {
  bottom: 9px;
  left: 47%;
}

.word-four {
  top: 48%;
  left: 12px;
}

.map-seal {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 57px;
  height: 57px;
  place-items: center;
  color: var(--paper);
  background: var(--cinnabar);
  font-family: var(--display);
  font-size: 28px;
  transform: translate(-50%, -50%) rotate(-3deg);
}

.gate-quote {
  margin: 0;
  color: rgba(25, 24, 35, 0.44);
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 0.2em;
}

.access-panel {
  position: relative;
  padding: 28px 31px 25px;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.62), transparent 62%),
    rgba(245, 242, 235, 0.57);
  box-shadow: 22px 25px 0 rgba(109, 91, 200, 0.08);
}

.access-panel::before,
.access-panel::after {
  position: absolute;
  width: 22px;
  height: 22px;
  content: "";
  pointer-events: none;
}

.access-panel::before {
  top: 8px;
  left: 8px;
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}

.access-panel::after {
  right: 8px;
  bottom: 8px;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.access-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--line);
  color: rgba(25, 24, 35, 0.46);
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.access-lock {
  display: grid;
  width: 26px;
  height: 26px;
  border: 1px solid var(--line);
  border-radius: 50%;
  place-items: center;
}

.access-lock svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.access-index {
  margin: 30px 0 10px;
  color: var(--cinnabar);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.17em;
}

.access-panel h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.access-copy {
  margin: 10px 0 26px;
  color: rgba(25, 24, 35, 0.54);
  font-family: var(--serif);
  font-size: 11px;
  line-height: 1.8;
}

.field-label {
  display: block;
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.code-label {
  margin-top: 20px;
}

.phone-field {
  display: grid;
  grid-template-columns: 58px 1fr;
  border-bottom: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.2);
}

.phone-field > span {
  display: grid;
  height: 50px;
  border-right: 1px solid var(--line);
  place-items: center;
  color: rgba(25, 24, 35, 0.52);
  font-family: var(--serif);
  font-size: 12px;
}

.access-panel input {
  width: 100%;
  height: 50px;
  padding: 0 14px;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.2);
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.08em;
  transition:
    border-color 180ms ease,
    background 180ms ease;
}

.phone-field input {
  border-bottom: 0;
  background: transparent;
}

.access-panel input::placeholder {
  color: rgba(25, 24, 35, 0.31);
}

.access-panel input:focus {
  border-color: var(--violet-dark);
  background: rgba(255, 255, 255, 0.48);
}

#access-code {
  text-transform: uppercase;
}

.field-hint {
  min-height: 16px;
  margin: 6px 0 0;
  color: rgba(25, 24, 35, 0.4);
  font-size: 8px;
  line-height: 1.6;
}

.form-status {
  min-height: 36px;
  padding: 14px 0 4px;
  color: var(--cinnabar-dark);
  font-family: var(--serif);
  font-size: 10px;
  line-height: 1.6;
}

.form-status.is-success {
  color: #51704d;
}

.access-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 52px;
  padding: 0 19px;
  border: 1px solid var(--ink);
  border-radius: 1px;
  color: var(--paper);
  background: var(--ink);
  cursor: pointer;
  font-size: 12px;
  letter-spacing: 0.14em;
  transition:
    color 200ms ease,
    background 200ms ease;
}

.access-submit:hover {
  color: var(--ink);
  background: transparent;
}

.access-submit:disabled {
  opacity: 0.58;
  cursor: wait;
}

.access-submit svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.access-notes {
  display: grid;
  gap: 10px;
  margin-top: 23px;
  padding-top: 19px;
  border-top: 1px solid var(--line);
}

.access-notes div {
  display: grid;
  grid-template-columns: 23px 1fr;
  gap: 7px;
}

.access-notes span {
  padding-top: 2px;
  color: var(--cinnabar);
  font-size: 7px;
  font-weight: 700;
}

.access-notes p {
  margin: 0;
  color: rgba(25, 24, 35, 0.48);
  font-family: var(--serif);
  font-size: 9px;
  line-height: 1.7;
}

.gate-footer {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  width: min(1320px, calc(100% - 80px));
  margin: 0 auto;
  padding: 16px 0 22px;
  border-top: 1px solid var(--line);
  color: rgba(25, 24, 35, 0.42);
  font-size: 7px;
  letter-spacing: 0.12em;
}

@media (max-width: 920px) {
  .gate-header,
  .gate-footer {
    width: calc(100% - 48px);
  }

  .gate-main {
    grid-template-columns: 1fr;
    gap: 18px;
    width: min(680px, calc(100% - 48px));
    padding: 45px 0 40px;
  }

  .gate-intro h1 {
    max-width: 680px;
    font-size: clamp(54px, 9vw, 80px);
  }

  .gate-map {
    position: absolute;
    right: -30px;
    bottom: -20px;
    opacity: 0.4;
    pointer-events: none;
  }

  .gate-intro {
    position: relative;
    min-height: 390px;
  }

  .access-panel {
    width: min(530px, 100%);
    justify-self: end;
    box-shadow: 12px 14px 0 rgba(109, 91, 200, 0.08);
  }
}

@media (max-width: 600px) {
  .gate-header {
    width: calc(100% - 32px);
    height: 68px;
  }

  .gate-header > p {
    font-size: 8px;
    letter-spacing: 0.1em;
  }

  .gate-seal {
    width: 33px;
    height: 33px;
    font-size: 20px;
  }

  .gate-brand strong {
    font-size: 15px;
  }

  .gate-main {
    width: calc(100% - 32px);
    padding: 34px 0 31px;
  }

  .gate-eyebrow {
    margin-bottom: 19px;
    font-size: 7px;
  }

  .gate-intro {
    min-height: 340px;
  }

  .gate-intro h1 {
    font-size: clamp(47px, 14.5vw, 65px);
    line-height: 1.13;
  }

  .gate-lead {
    max-width: 350px;
    margin-top: 20px;
    font-size: 12px;
    line-height: 1.85;
  }

  .gate-map {
    right: -70px;
    bottom: 5px;
    transform: scale(0.84);
  }

  .gate-quote {
    position: relative;
    z-index: 2;
    font-size: 9px;
  }

  .access-panel {
    padding: 23px 18px 19px;
    box-shadow: 8px 9px 0 rgba(109, 91, 200, 0.08);
  }

  .access-index {
    margin-top: 23px;
  }

  .access-panel h2 {
    font-size: 26px;
  }

  .access-copy {
    margin-bottom: 22px;
    font-size: 10px;
  }

  .access-notes {
    gap: 8px;
  }

  .gate-footer {
    width: calc(100% - 32px);
  }

  .gate-footer span:nth-child(2) {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
