:root {
  color-scheme: light;
  --paper: #f8f4ea;
  --ink: #12151c;
  --muted: #5d6673;
  --line: #d9d2c2;
  --red: #d7382f;
  --yellow: #f2c230;
  --blue: #2459a6;
  --black: #12151c;
  --green: #0b7f70;
  --panel: rgba(255, 253, 247, 0.88);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 18%, rgba(242, 194, 48, 0.24), transparent 18rem),
    radial-gradient(circle at 88% 76%, rgba(36, 89, 166, 0.16), transparent 20rem),
    linear-gradient(135deg, #faf6ea 0%, #eff4ef 52%, #f7eedf 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  content: "";
  opacity: 0.45;
  background-image:
    linear-gradient(rgba(18, 21, 28, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 21, 28, 0.035) 1px, transparent 1px);
  background-size: 52px 52px;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.ambient {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.drift {
  position: absolute;
  display: block;
  animation: drift 12s ease-in-out infinite alternate;
}

.dot {
  border-radius: 999px;
}

.red {
  top: 16%;
  left: 7%;
  width: 28px;
  height: 28px;
  background: var(--red);
}

.blue {
  right: 12%;
  bottom: 15%;
  width: 46px;
  height: 46px;
  background: var(--blue);
  animation-delay: -3s;
}

.yellow {
  top: 8%;
  right: 23%;
  width: 20px;
  height: 20px;
  background: var(--yellow);
  animation-delay: -5s;
}

.line {
  top: 70%;
  left: 14%;
  width: 180px;
  height: 4px;
  background: var(--black);
  transform: rotate(-13deg);
  animation-delay: -7s;
}

.star {
  top: 30%;
  right: 7%;
  width: 26px;
  height: 26px;
  background: var(--black);
  clip-path: polygon(50% 0, 62% 36%, 100% 50%, 62% 64%, 50% 100%, 38% 64%, 0 50%, 38% 36%);
  animation-delay: -2s;
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) rotate(-8deg);
  }
  to {
    transform: translate3d(34px, -28px, 0) rotate(12deg);
  }
}

.topbar {
  display: grid;
  grid-template-columns: auto auto;
  gap: 22px;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 8px;
}

.brand {
  font-weight: 800;
  text-shadow: 1px 1px 0 rgba(242, 194, 48, 0.25);
}

.logout {
  padding: 8px 10px;
  border-radius: 8px;
  justify-self: end;
}

.logout:hover {
  background: rgba(255, 255, 255, 0.72);
}

.back-sigil {
  position: relative;
  display: inline-block;
  width: 82px;
  height: 58px;
  margin: 0 0 20px;
  border: 1px solid rgba(217, 210, 194, 0.9);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.62);
  box-shadow: 0 10px 28px rgba(35, 29, 18, 0.08);
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.back-stem,
.back-dot,
.back-wing {
  position: absolute;
  display: block;
  pointer-events: none;
}

.back-stem {
  left: 23px;
  top: 27px;
  width: 38px;
  height: 5px;
  border-radius: 999px;
  background: var(--black);
  transform: rotate(-4deg);
  transform-origin: left center;
  transition: transform 180ms ease;
}

.back-wing {
  left: 18px;
  width: 25px;
  height: 5px;
  border-radius: 999px;
  background: var(--black);
  transform-origin: left center;
  transition: transform 180ms ease;
}

.back-wing.top {
  top: 19px;
  transform: rotate(-38deg);
}

.back-wing.bottom {
  top: 33px;
  transform: rotate(34deg);
}

.back-dot {
  right: 13px;
  top: 14px;
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: var(--red);
  box-shadow: -12px 26px 0 -3px var(--yellow);
  transition: transform 180ms ease;
}

.back-sigil:hover,
.back-sigil:focus-visible {
  background: rgba(255, 253, 247, 0.92);
  box-shadow: 0 14px 34px rgba(35, 29, 18, 0.12);
  transform: translateX(-3px);
}

.back-sigil:hover .back-stem,
.back-sigil:focus-visible .back-stem {
  transform: translateX(-5px) rotate(-4deg);
}

.back-sigil:hover .back-wing.top,
.back-sigil:focus-visible .back-wing.top {
  transform: translateX(-5px) rotate(-42deg);
}

.back-sigil:hover .back-wing.bottom,
.back-sigil:focus-visible .back-wing.bottom {
  transform: translateX(-5px) rotate(38deg);
}

.back-sigil:hover .back-dot,
.back-sigil:focus-visible .back-dot {
  transform: translateX(-4px) scale(1.08);
}

.login-stage,
.home-shell,
.inner-shell,
.gate-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.login-stage {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 0;
}

.login-art {
  position: relative;
  display: grid;
  width: min(880px, 100%);
  min-height: 560px;
  place-items: center;
}

.constellation {
  position: absolute;
  inset: 0;
}

.glyph {
  position: absolute;
  display: block;
  border-radius: 999px;
}

.glyph-a {
  top: 14%;
  left: 9%;
  width: 96px;
  height: 96px;
  border: 16px solid var(--blue);
  border-right-color: transparent;
  animation: drift 9s ease-in-out infinite alternate;
}

.glyph-b {
  right: 8%;
  top: 20%;
  width: 78px;
  height: 78px;
  background: var(--yellow);
  animation: drift 11s ease-in-out infinite alternate-reverse;
}

.glyph-c {
  bottom: 16%;
  left: 13%;
  width: 62px;
  height: 62px;
  background: var(--red);
  clip-path: polygon(50% 0, 62% 36%, 100% 50%, 62% 64%, 50% 100%, 38% 64%, 0 50%, 38% 36%);
  animation: drift 10s ease-in-out infinite alternate;
}

.glyph-d {
  right: 16%;
  bottom: 17%;
  width: 160px;
  height: 5px;
  background: var(--black);
  transform: rotate(20deg);
}

.login-card,
.gate-card {
  position: relative;
  z-index: 1;
  width: min(430px, 100%);
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.9);
  box-shadow: 0 18px 60px rgba(30, 26, 19, 0.14);
  backdrop-filter: blur(12px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: "Hiragino Sans GB", "PingFang SC", "Arial Rounded MT Bold", "Segoe UI", sans-serif;
  font-weight: 900;
  letter-spacing: 0;
}

.title {
  position: relative;
  display: block;
  width: fit-content;
  max-width: 100%;
  letter-spacing: 0;
  transform-origin: left center;
  isolation: isolate;
}

.title::before,
.title::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  color: transparent;
  text-shadow: none;
}

.title-art {
  display: block;
  width: min(var(--title-art-width, 720px), 100%);
  margin: 0 0 var(--title-art-gap, 18px);
  line-height: 0;
  transform: none;
  isolation: auto;
}

.title-art::before,
.title-art::after {
  content: none !important;
}

.title-art-image {
  display: block;
  width: 100%;
  height: auto;
  mix-blend-mode: multiply;
  filter: saturate(0.92) contrast(1.03);
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%),
    linear-gradient(180deg, transparent 0, #000 9%, #000 91%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%),
    linear-gradient(180deg, transparent 0, #000 9%, #000 91%, transparent 100%);
  mask-composite: intersect;
}

.title-home {
  --title-art-width: 560px;
}

.title-login {
  --title-art-width: 370px;
}

.title-gate,
.title-private {
  --title-art-width: 470px;
}

.title-photo-card,
.title-video-card,
.title-writing-card,
.title-private-card {
  --title-art-width: 230px;
  --title-art-gap: 12px;
}

.title-photography,
.title-video,
.title-writing {
  --title-art-width: 520px;
}

.login-card h1,
.gate-card h1 {
  margin-bottom: 28px;
  line-height: 1.05;
}

.title-login {
  font-family: "Arial Rounded MT Bold", "PingFang SC", "Hiragino Sans GB", sans-serif;
  font-size: 2.82rem;
  color: #10141b;
  text-shadow:
    3px 3px 0 rgba(36, 89, 166, 0.18),
    -2px 1px 0 rgba(242, 194, 48, 0.18),
    0 10px 22px rgba(36, 89, 166, 0.1);
  transform: rotate(-1.2deg) translateY(-1px);
}

.title-login::after {
  content: "进入我的小宇宙";
  transform: translate(5px, 4px);
  -webkit-text-stroke: 1px rgba(36, 89, 166, 0.18);
  opacity: 0.72;
}

.title-gate {
  font-family: "Hiragino Sans GB", "PingFang SC", sans-serif;
  font-size: 2.72rem;
  color: #151820;
  text-shadow:
    0 0 18px rgba(242, 194, 48, 0.32),
    2px 2px 0 rgba(18, 21, 28, 0.12),
    0 12px 26px rgba(9, 14, 20, 0.12);
  transform: rotate(0.3deg);
}

label {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--muted);
  font-weight: 700;
}

input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fffdf8;
  outline: none;
}

input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(36, 89, 166, 0.15);
}

button[type="submit"] {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  color: #fffdf8;
  background: var(--black);
  font-weight: 800;
  cursor: pointer;
}

.form-error,
.notice {
  padding: 10px 12px;
  border-radius: 8px;
  color: #7d1f1a;
  background: rgba(215, 56, 47, 0.1);
}

.home-shell {
  padding: 38px 0 64px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 460px);
  gap: 24px;
  align-items: stretch;
}

.hero-copy,
.hero-orbit,
.portal,
.work-card,
.inner-hero {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 14px 36px rgba(35, 29, 18, 0.08);
}

.hero-copy {
  min-height: 360px;
  padding: 38px;
}

.hero h1,
.inner-hero h1 {
  margin-bottom: 18px;
  line-height: 0.96;
}

.title-home {
  font-family: "Hiragino Sans GB", "PingFang SC", "Arial Black", sans-serif;
  font-size: 5.45rem;
  color: #10141b;
  text-shadow:
    7px 7px 0 rgba(36, 89, 166, 0.16),
    -3px 4px 0 rgba(242, 194, 48, 0.22),
    0 18px 26px rgba(18, 21, 28, 0.1);
  transform: rotate(-0.8deg);
}

.title-home::before {
  content: "";
  inset: auto auto -9px 6px;
  width: 74%;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(36, 89, 166, 0.28), rgba(242, 194, 48, 0.16), transparent);
}

.title-photography,
.title-photo-card {
  font-family: "Avenir Next Condensed", "PingFang SC", "Hiragino Sans GB", sans-serif;
  font-weight: 700;
  color: #17212b;
  transform: scaleX(0.84);
  text-shadow:
    -5px 0 0 rgba(214, 232, 236, 0.78),
    8px 12px 20px rgba(36, 89, 166, 0.18),
    0 0 16px rgba(214, 232, 236, 0.72);
}

.title-video,
.title-video-card {
  font-family: "Hiragino Sans GB", "PingFang SC", "Trebuchet MS", sans-serif;
  font-style: italic;
  color: #161920;
  text-shadow:
    5px 1px 0 rgba(215, 56, 47, 0.18),
    11px 4px 0 rgba(215, 56, 47, 0.08),
    0 10px 18px rgba(215, 56, 47, 0.18);
  transform: skewX(-8deg) translateY(2px);
}

.title-video::before,
.title-video-card::before {
  content: "";
  inset: auto auto -7px 4px;
  width: 80%;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(215, 56, 47, 0.56), rgba(215, 56, 47, 0));
}

.title-writing,
.title-writing-card {
  color: #13161b;
  font-family: "Songti SC", "STSong", "Hiragino Mincho ProN", serif;
  font-weight: 900;
  text-shadow:
    2px 2px 0 rgba(180, 83, 9, 0.2),
    0 12px 18px rgba(88, 68, 42, 0.16);
  transform: rotate(-0.4deg);
}

.title-writing::after,
.title-writing-card::after {
  content: "";
  inset: auto 0 -8px 0;
  height: 3px;
  background:
    linear-gradient(90deg, rgba(180, 83, 9, 0), rgba(180, 83, 9, 0.42), rgba(180, 83, 9, 0));
}

.title-private,
.title-private-card {
  font-family: "Hiragino Sans GB", "PingFang SC", "Arial Rounded MT Bold", sans-serif;
  color: #11151c;
  text-shadow:
    0 0 16px rgba(242, 194, 48, 0.48),
    3px 3px 0 rgba(36, 89, 166, 0.14),
    -3px 2px 0 rgba(215, 56, 47, 0.1),
    0 14px 24px rgba(18, 21, 28, 0.1);
  transform: rotate(0.6deg);
}

.title-private::before,
.title-private-card::before {
  content: "";
  inset: -10px auto auto -16px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--yellow);
  box-shadow:
    18px 9px 0 -3px rgba(215, 56, 47, 0.75),
    34px -3px 0 -4px rgba(36, 89, 166, 0.72);
}

.title-gate::before {
  content: "";
  inset: auto 8px -10px 8px;
  height: 5px;
  border-radius: 999px;
  background: rgba(242, 194, 48, 0.24);
  filter: blur(2px);
}

.title-art.title-home,
.title-art.title-login,
.title-art.title-gate,
.title-art.title-photography,
.title-art.title-video,
.title-art.title-writing,
.title-art.title-private,
.title-art.title-photo-card,
.title-art.title-video-card,
.title-art.title-writing-card,
.title-art.title-private-card {
  font: inherit;
  color: inherit;
  text-shadow: none;
  transform: none;
}

.title-art.title-home::before,
.title-art.title-home::after,
.title-art.title-login::before,
.title-art.title-login::after,
.title-art.title-gate::before,
.title-art.title-gate::after,
.title-art.title-photography::before,
.title-art.title-photography::after,
.title-art.title-video::before,
.title-art.title-video::after,
.title-art.title-writing::before,
.title-art.title-writing::after,
.title-art.title-private::before,
.title-art.title-private::after,
.title-art.title-photo-card::before,
.title-art.title-photo-card::after,
.title-art.title-video-card::before,
.title-art.title-video-card::after,
.title-art.title-writing-card::before,
.title-art.title-writing-card::after,
.title-art.title-private-card::before,
.title-art.title-private-card::after {
  content: none !important;
}

.inner-hero .title {
  font-size: 5.45rem;
}

.portal .title {
  font-size: 1.58rem;
}

.work-card h2 {
  font-size: 1.45rem;
  line-height: 1.2;
  text-shadow: 1px 1px 0 rgba(242, 194, 48, 0.12);
}

.summary,
.inner-hero p,
.portal span,
.work-card p,
.gate-card p {
  color: var(--muted);
  line-height: 1.75;
}

.hero-orbit {
  position: relative;
  min-height: 360px;
  overflow: hidden;
}

.orbit {
  position: absolute;
  display: block;
  border-radius: 999px;
  animation: float-orbit 8s ease-in-out infinite alternate;
}

.orbit.one {
  top: 50px;
  left: 70px;
  width: 92px;
  height: 92px;
  background: var(--yellow);
}

.orbit.two {
  right: 58px;
  top: 118px;
  width: 54px;
  height: 54px;
  background: var(--red);
  animation-delay: -2s;
}

.orbit.three {
  left: 160px;
  bottom: 74px;
  width: 122px;
  height: 122px;
  border: 18px solid var(--blue);
  border-top-color: transparent;
  animation-delay: -4s;
}

.orbit-thread {
  position: absolute;
  right: 36px;
  bottom: 70px;
  width: 310px;
  height: 5px;
  background: var(--black);
  transform: rotate(-18deg);
}

@keyframes float-orbit {
  from {
    transform: translateY(0) rotate(0);
  }
  to {
    transform: translateY(24px) rotate(14deg);
  }
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.portal {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  padding: 24px;
}

.portal:hover {
  transform: translateY(-2px);
}

.portal p {
  margin-bottom: 46px;
  color: var(--green);
  font-size: 0.86rem;
  font-weight: 800;
}

.portal h2 {
  margin-bottom: 14px;
  font-size: 1.55rem;
  line-height: 1.15;
}

.portal-mark {
  position: absolute;
  top: 20px;
  right: 20px;
  display: block;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: var(--blue);
}

.portal-video .portal-mark {
  background: var(--red);
  clip-path: polygon(50% 0, 62% 36%, 100% 50%, 62% 64%, 50% 100%, 38% 64%, 0 50%, 38% 36%);
}

.portal-writing .portal-mark {
  width: 76px;
  height: 6px;
  background: var(--black);
  transform: rotate(-15deg);
}

.portal-private .portal-mark {
  background: var(--yellow);
}

.portal-private {
  min-height: 340px;
  padding-bottom: 118px;
}

.portal-private > span:not(.portal-mark) {
  position: relative;
  z-index: 2;
  display: block;
  max-width: 92%;
}

.secret-ritual {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 18px;
  height: 86px;
}

.secret-halo {
  position: absolute;
  left: -5px;
  top: 11px;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  opacity: 0;
  background: radial-gradient(circle, rgba(242, 194, 48, 0.42), rgba(242, 194, 48, 0) 68%);
  transform: scale(0.6);
  transition: opacity 420ms ease, transform 520ms ease;
}

.secret-star {
  position: absolute;
  left: 4px;
  top: 20px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border: 0;
  background-color: var(--black);
  clip-path: polygon(50% 0, 62% 36%, 100% 50%, 62% 64%, 50% 100%, 38% 64%, 0 50%, 38% 36%);
  cursor: pointer;
  transition:
    background-color 620ms ease,
    filter 420ms ease,
    transform 360ms ease;
}

.secret-star.pulse {
  transform: scale(0.82) rotate(-10deg);
}

.secret-ritual.primed .secret-halo {
  opacity: 1;
  transform: scale(1);
}

.secret-ritual.primed .secret-star {
  background-color: #163a65;
  filter: drop-shadow(0 0 10px rgba(36, 89, 166, 0.24));
}

.secret-ritual.unlocked .secret-star {
  background-color: var(--blue);
  animation: star-breathe 1.8s ease-in-out infinite alternate;
}

@keyframes star-breathe {
  from {
    transform: scale(1) rotate(0deg);
    filter: drop-shadow(0 0 8px rgba(36, 89, 166, 0.2));
  }
  to {
    transform: scale(1.08) rotate(7deg);
    filter: drop-shadow(0 0 16px rgba(36, 89, 166, 0.34));
  }
}

.secret-spark {
  position: absolute;
  z-index: 1;
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  opacity: 0;
  transform: translate3d(0, 0, 0) scale(0.4);
  transition:
    opacity 420ms ease,
    transform 560ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.spark-one {
  left: 3px;
  top: 6px;
  background: var(--yellow);
}

.spark-two {
  left: 30px;
  top: 4px;
  background: var(--red);
}

.spark-three {
  left: 39px;
  top: 43px;
  background: var(--blue);
}

.secret-path {
  position: absolute;
  left: 50px;
  top: 37px;
  width: calc(100% - 120px);
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--red), var(--yellow));
  opacity: 0.18;
  transform: scaleX(0.62);
  transform-origin: left center;
  transition:
    opacity 500ms ease,
    transform 620ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.secret-target {
  position: absolute;
  right: 4px;
  top: 11px;
  width: 52px;
  height: 52px;
  border: 9px solid var(--yellow);
  border-radius: 999px;
  transition:
    border-color 360ms ease,
    box-shadow 360ms ease,
    transform 280ms ease;
}

.secret-seed {
  position: absolute;
  left: 52px;
  top: 26px;
  z-index: 3;
  width: 25px;
  height: 25px;
  border-radius: 999px;
  background: var(--red);
  cursor: grab;
  touch-action: none;
  transform: translate3d(0, 0, 0);
  transition:
    box-shadow 220ms ease,
    filter 220ms ease,
    transform 180ms ease;
}

.secret-seed.dragging {
  cursor: grabbing;
  filter: saturate(1.18);
  box-shadow: 0 10px 18px rgba(215, 56, 47, 0.22);
  transition: none;
}

.secret-ritual.primed .secret-seed {
  box-shadow: 0 0 0 5px rgba(215, 56, 47, 0.08);
}

.secret-ritual.unlocked .secret-path {
  opacity: 0.58;
  transform: scaleX(1);
}

.secret-ritual.unlocked .secret-target {
  box-shadow: 0 0 0 8px rgba(242, 194, 48, 0.12);
}

.secret-ritual.unlocked .secret-spark {
  opacity: 1;
}

.secret-ritual.unlocked .spark-one {
  transform: translate3d(-8px, -11px, 0) scale(1);
}

.secret-ritual.unlocked .spark-two {
  transform: translate3d(12px, -15px, 0) scale(0.8);
}

.secret-ritual.unlocked .spark-three {
  transform: translate3d(10px, 12px, 0) scale(0.9);
}

.secret-ritual.transporting .secret-target {
  transform: scale(1.12);
  border-color: #f7d85a;
  box-shadow: 0 0 0 14px rgba(242, 194, 48, 0.14);
}

.secret-ritual.transporting .secret-seed {
  filter: brightness(1.05);
}

.inner-shell,
.gate-shell {
  padding: 42px 0 68px;
}

.inner-hero {
  padding: 34px;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.work-card {
  min-height: 240px;
  padding: 24px;
}

.work-index {
  display: block;
  margin-bottom: 54px;
  color: var(--red);
  font-weight: 900;
}

.photography .work-index {
  color: var(--blue);
}

.video .work-index {
  color: var(--red);
}

.writing .work-index {
  color: var(--green);
}

.private-room .work-index {
  color: var(--yellow);
}

.gate-shell {
  position: relative;
  min-height: calc(100vh - 72px);
  display: grid;
  place-items: center;
}

.gate-shell > .back-sigil {
  position: absolute;
  left: 0;
  top: 42px;
  margin: 0;
}

@media (max-width: 960px) {
  .hero,
  .section-grid,
  .work-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    grid-template-columns: 1fr auto;
  }

  .logout {
    grid-column: 2;
    grid-row: 1;
  }

  .hero h1,
  .inner-hero h1,
  .inner-hero .title {
    font-size: 4.2rem;
  }
}

@media (max-width: 560px) {
  .topbar,
  .login-stage,
  .home-shell,
  .inner-shell,
  .gate-shell {
    width: min(100% - 20px, 1180px);
  }

  .hero-copy,
  .inner-hero,
  .portal,
  .work-card,
  .login-card,
  .gate-card {
    padding: 20px;
  }

  .hero-copy,
  .hero-orbit {
    min-height: 300px;
  }

  .portal {
    min-height: 280px;
  }

  .portal-private {
    min-height: 360px;
  }

  .login-card h1,
  .gate-card h1 {
    font-size: 2.18rem;
  }

  .hero h1,
  .inner-hero h1,
  .inner-hero .title {
    font-size: 3.1rem;
  }

  .portal h2,
  .portal .title {
    font-size: 1.45rem;
  }

  .back-sigil {
    margin-bottom: 12px;
    width: 72px;
    height: 52px;
  }
}

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