:root {
  --ink: #07070c;
  --ink-soft: #101018;
  --plate: #f3ead8;
  --gold: #dca034;
  --gold-hot: #ffd27a;
  --gold-dim: #7a5a1c;
  --peri: #8ea2ff;
  --peri-deep: #5c6ad4;
  --cream: #f6f1e6;
  --ruby: #9a3044;
  --hair: rgba(220, 160, 52, 0.35);
  --muted: rgba(246, 241, 230, 0.62);
  /* Both source PNGs draw their art off-centre inside their own canvas, so
     object-fit centres the canvas rather than the artwork. Measured offsets:
     butterfly.png art sits 5px high in a 630px canvas (0.794%);
     frame.png's bars sit 5px right and 5px low in a 640px canvas (0.781%).
     These knobs pull both back onto the true centre so plate, butterfly and
     frame share one axis. */
  /* The hash mark is symmetric (arms 209.5px each side), but the blue butterfly
     is drawn 5px left of centre inside it. The eye tracks the creature, not the
     hash, so centre the creature: 5/630 = 0.794% to the right. */
  --mark-nudge: 0.794%;
  --mark-drop: 0.794%;
  --frame-nudge: -0.781%;
  /* Width the rail reserves on the left. .scene is fixed to the whole viewport,
     so anything centred inside it must add half of this to land on the content
     column rather than on the middle of the screen. */
  --rail-gutter: 0px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
  background: var(--ink);
  color: var(--cream);
  font-family: Outfit, system-ui, sans-serif;
}

body {
  min-height: 100dvh;
}

img {
  display: block;
  max-width: 100%;
}

.pixel {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

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

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

.wash {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(780px 480px at 50% 28%, rgba(88, 98, 168, 0.26), transparent 58%),
    radial-gradient(420px 240px at 50% 100%, rgba(154, 48, 68, 0.1), transparent 70%),
    linear-gradient(180deg, #12121c 0%, var(--ink) 46%, #050508 100%);
}

.watermark {
  position: absolute;
  left: calc(50% + var(--rail-gutter) / 2);
  top: 50%;
  width: min(920px, 120vw);
  translate: calc(-50% + var(--mark-nudge)) calc(-50% + var(--mark-drop));
  opacity: 0.05;
  filter: blur(0.4px);
  transform: translate3d(calc(var(--px, 0) * 0.4), calc(var(--py, 0) * 0.4), 0);
}

.glow {
  position: absolute;
  left: calc(50% + var(--rail-gutter) / 2);
  top: 28%;
  width: min(860px, 96vw);
  height: min(860px, 96vw);
  translate: -50% -50%;
  background:
    radial-gradient(circle at 50% 48%, rgba(142, 162, 255, 0.2), transparent 44%),
    radial-gradient(circle at 50% 56%, rgba(220, 160, 52, 0.14), transparent 40%);
  filter: blur(6px);
  transform: translate3d(var(--px, 0), var(--py, 0), 0);
}

.plus-field {
  position: absolute;
  inset: 0;
  opacity: 0.2;
  background-image:
    linear-gradient(var(--hair), var(--hair)),
    linear-gradient(var(--hair), var(--hair)),
    linear-gradient(var(--hair), var(--hair)),
    linear-gradient(var(--hair), var(--hair));
  background-size: 10px 2px, 2px 10px, 10px 2px, 2px 10px;
  background-repeat: no-repeat;
  background-position:
    8% 14%, 8.7% 11.6%,
    92% 16%, 92.7% 13.6%,
    10% 86%, 10.7% 83.6%,
    90% 88%, 90.7% 85.6%;
}

.plus-field::before,
.plus-field::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  opacity: 0.45;
  background:
    linear-gradient(#8ea2ff, #8ea2ff) center / 12px 2px no-repeat,
    linear-gradient(#8ea2ff, #8ea2ff) center / 2px 12px no-repeat;
}

.plus-field::before { top: 22%; left: 18%; }
.plus-field::after { bottom: 20%; right: 17%; }

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image:
    repeating-linear-gradient(0deg, #fff 0 1px, transparent 1px 8px),
    repeating-linear-gradient(90deg, #fff 0 1px, transparent 1px 8px);
  mask-image: radial-gradient(circle at 50% 40%, #000 20%, transparent 75%);
}

.vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, transparent 38%, rgba(0, 0, 0, 0.5) 100%);
}

.mote {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 1px;
  background: var(--gold-hot);
  box-shadow: 0 0 10px rgba(255, 210, 122, 0.85);
  animation: rise 16s linear infinite;
  opacity: 0.75;
}

.m1 { left: 18%; bottom: -4%; animation-duration: 18s; }
.m2 { left: 32%; bottom: -8%; animation-duration: 22s; animation-delay: -4s; background: var(--peri); }
.m3 { left: 47%; bottom: -2%; animation-duration: 15s; animation-delay: -9s; }
.m4 { left: 61%; bottom: -10%; animation-duration: 20s; animation-delay: -2s; background: var(--peri); }
.m5 { left: 74%; bottom: -6%; animation-duration: 17s; animation-delay: -7s; }
.m6 { left: 12%; bottom: -12%; animation-duration: 24s; animation-delay: -11s; width: 2px; height: 2px; }
.m7 { left: 85%; bottom: -3%; animation-duration: 19s; animation-delay: -6s; width: 2px; height: 2px; }
.m8 { left: 54%; bottom: -14%; animation-duration: 26s; animation-delay: -15s; }

.drift {
  position: absolute;
  width: 96px;
  opacity: 0.14;
  filter: drop-shadow(0 0 10px rgba(142, 162, 255, 0.25));
  animation: floaty 14s ease-in-out infinite;
}

.drift-a { top: 10%; left: 5%; animation-delay: -2s; }
.drift-b { top: 16%; right: 5%; width: 72px; animation-delay: -7s; transform: scaleX(-1); }
.drift-c { bottom: 10%; left: 12%; width: 64px; opacity: 0.1; animation-delay: -4s; }

.corner {
  position: absolute;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(220, 160, 52, 0.22);
}

.corner::before,
.corner::after {
  content: "";
  position: absolute;
  background: rgba(220, 160, 52, 0.55);
}

.corner::before { width: 11px; height: 2px; }
.corner::after { width: 2px; height: 11px; }

.c-tl { top: 22px; left: 22px; border-right: 0; border-bottom: 0; }
.c-tl::before, .c-tl::after { top: -1px; left: -1px; }
.c-tr { top: 22px; right: 22px; border-left: 0; border-bottom: 0; }
.c-tr::before, .c-tr::after { top: -1px; right: -1px; }
.c-bl { bottom: 22px; left: 22px; border-right: 0; border-top: 0; }
.c-bl::before, .c-bl::after { bottom: -1px; left: -1px; }
.c-br { bottom: 22px; right: 22px; border-left: 0; border-top: 0; }
.c-br::before, .c-br::after { bottom: -1px; right: -1px; }

.wrap {
  position: relative;
  z-index: 2;
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.rail {
  position: fixed;
  left: 18px;
  top: 0;
  bottom: 0;
  z-index: 4;
  width: 132px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 30px;
  gap: 18px;
  pointer-events: none;
}

.rail * {
  pointer-events: auto;
}

.rail-home {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  color: var(--muted);
  transition: color 0.3s ease, transform 0.3s ease;
}

.rail-home svg {
  width: 38px;
  height: 38px;
  fill: currentColor;
}

.rail-home:hover,
.rail-home:focus-visible {
  color: var(--gold-hot);
  transform: translateY(-2px);
  outline: none;
}

.rail-head {
  font-family: Cinzel, Georgia, serif;
  font-size: 0.58rem;
  letter-spacing: 0.36em;
  text-indent: 0.36em;
  text-transform: uppercase;
  color: var(--muted);
}

.road {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  position: relative;
}

/* The connector line only makes sense between two or more road cards. */
.road:has(li + li)::before {
  content: "";
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 50%;
  width: 1px;
  translate: -50% 0;
  background: linear-gradient(180deg, transparent, var(--gold), transparent);
  opacity: 0.45;
}

.road-card {
  width: 108px;
  display: grid;
  justify-items: center;
  gap: 8px;
  position: relative;
  transition: transform 0.35s ease;
}

.road-card.is-sealed {
  cursor: default;
  opacity: 0.72;
}

.road-mark {
  position: relative;
  width: 92px;
  height: 92px;
  transition: filter 0.35s ease;
}

.road-plate {
  position: absolute;
  inset: 17%;
  border-radius: 18%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 40%, #1a1a24, #0c0c12 74%);
}

.road-plate.is-live {
  background:
    radial-gradient(circle at 50% 42%, #fffaf0 0%, var(--plate) 70%);
}

.road-plate img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transform: translate(var(--mark-nudge), var(--mark-drop));
}

.road-mark .road-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: translate(var(--frame-nudge), var(--frame-nudge));
}

.road-name {
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  line-height: 1.35;
}

.road-card[href]:hover .road-name,
.road-card.is-on .road-name {
  color: var(--cream);
}

.road-card.is-on .road-mark {
  filter: drop-shadow(0 0 12px rgba(220, 160, 52, 0.35));
}

/* Lift and lighten on hover, matching the gate buttons. Needs to outrank the
   .is-on filter above, which the extra [href] and :hover compound does. */
.road-card[href]:hover,
.road-card[href]:focus-visible {
  transform: translateY(-4px);
  outline: none;
}

.road-card[href]:hover .road-mark,
.road-card[href]:focus-visible .road-mark {
  filter: brightness(1.12) drop-shadow(0 0 14px rgba(220, 160, 52, 0.55));
}

/* Reserve the rail's gutter on the body so .wrap stays centred inside the
   bracket rectangle (which the rule below pulls in to 168px on the left). */
.has-rail {
  --rail-gutter: 146px;
  padding-left: var(--rail-gutter);
}

.has-rail .wrap {
  width: min(1080px, calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
}

.has-rail .c-tl,
.has-rail .c-bl {
  left: 168px;
}

.top {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 22px 0 8px;
  gap: 14px;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.mini-crest {
  position: relative;
  width: 42px;
  height: 42px;
  flex: none;
}

.mini-plate {
  position: absolute;
  inset: 17%;
  border-radius: 18%;
  background: radial-gradient(circle at 50% 42%, #fffaf0 0%, var(--plate) 70%);
}

.mini-crest img:first-of-type {
  position: absolute;
  inset: 17%;
  width: 66%;
  height: 66%;
  object-fit: contain;
  object-position: center;
  transform: translate(var(--mark-nudge), var(--mark-drop));
}

.mini-crest img:last-of-type {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: translate(var(--frame-nudge), var(--frame-nudge));
}

.brand-name {
  font-family: Cinzel, Georgia, serif;
  letter-spacing: 0.38em;
  text-indent: 0.38em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.menu {
  display: flex;
  justify-content: center;
  gap: 22px;
}

.menu a {
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  position: relative;
  padding: 6px 0;
}

.menu a:hover,
.menu a:focus-visible,
.menu a.is-on {
  color: var(--cream);
}

.menu a.is-on::after {
  content: "";
  position: absolute;
  left: 20%;
  right: 8%;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

main {
  flex: 1;
  padding: 18px 0 48px;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 18px 0 36px;
}

.crest {
  position: relative;
  width: min(320px, 70vw);
  aspect-ratio: 1;
  margin: 0;
  transform: translate3d(calc(var(--px, 0) * 0.35), calc(var(--py, 0) * 0.35), 0);
  animation: hover 7s ease-in-out infinite;
}

.page-studio .crest,
.page-home .crest {
  width: min(360px, 72vw);
}

.crest-halo {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 210, 122, 0.22), rgba(142, 162, 255, 0.08) 40%, transparent 68%);
  filter: blur(10px);
  animation: pulse 5.5s ease-in-out infinite;
}

.crest-plate {
  position: absolute;
  inset: 17.2%;
  border-radius: 18%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 42%, #fffaf0 0%, var(--plate) 58%, #e6d8bc 100%);
  box-shadow:
    inset 0 0 0 1px rgba(122, 90, 28, 0.08),
    0 18px 50px rgba(0, 0, 0, 0.35);
}

.crest-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  transform: translate(var(--frame-nudge), var(--frame-nudge));
}

.crest-mark {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  user-select: none;
  transform: translate(var(--mark-nudge), var(--mark-drop));
  transform-origin: 50% 50%;
  animation: wings 3.8s ease-in-out infinite;
}

.wordmark {
  font-family: Cinzel, Georgia, serif;
  font-weight: 500;
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  letter-spacing: 0.58em;
  text-indent: 0.58em;
  text-transform: uppercase;
  position: relative;
}

.wordmark::before,
.wordmark::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 36px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.wordmark::before { right: calc(100% + 10px); }
.wordmark::after { left: calc(100% + 10px); }

.chapter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 8px 0 22px;
}

.chapter h1,
.chapter h2 {
  font-family: Cinzel, Georgia, serif;
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.46em;
  text-indent: 0.46em;
  text-transform: uppercase;
}

.chapter::before,
.chapter::after {
  content: "";
  width: 48px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.chapter-space {
  margin-top: 48px;
}

.notice {
  text-align: center;
  font-family: Cinzel, Georgia, serif;
  font-weight: 500;
  font-size: clamp(1rem, 2.6vw, 1.35rem);
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 12px;
}

.notice-sub {
  text-align: center;
  font-size: 0.74rem;
  letter-spacing: 0.24em;
  text-indent: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 34px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.gallery-lead {
  grid-template-columns: 1fr;
  margin-bottom: 18px;
}

.gallery-lead .piece-window {
  aspect-ratio: 21 / 9;
}

.gallery-two {
  grid-template-columns: 1fr 1fr;
}

.piece {
  display: grid;
  justify-items: center;
  gap: 12px;
  transition: transform 0.35s ease;
}

.piece:hover,
.piece:focus-visible {
  transform: translateY(-5px);
}

.piece:focus-visible {
  outline: none;
}

.piece-window {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0c0c12;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.piece-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.piece:hover .piece-art {
  transform: scale(1.04);
}

.piece-window::before,
.piece-window::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.piece-window::before {
  border: 1px solid rgba(220, 160, 52, 0.38);
  box-shadow: inset 0 0 0 6px rgba(7, 7, 12, 0.18);
}

.piece-seal {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 42px;
  height: 42px;
  z-index: 2;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.35));
}

.piece span {
  font-size: 0.68rem;
  letter-spacing: 0.26em;
  text-indent: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
}

.seals {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  margin: 10px 0 8px;
}

.seal {
  width: 168px;
  display: grid;
  justify-items: center;
  gap: 10px;
  transition: transform 0.35s ease;
}

.seal:hover,
.seal:focus-visible {
  transform: translateY(-4px);
}

.seal-plate,
.seal-art,
.seal-frame {
  grid-area: 1 / 1;
}

.seal-plate {
  width: 168px;
  aspect-ratio: 1;
  border-radius: 18%;
  transform: scale(0.72);
  overflow: hidden;
  background: #111118;
}

.seal-plate img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.seal-frame {
  width: 168px;
  height: 168px;
  object-fit: contain;
  transform: translate(var(--frame-nudge), var(--frame-nudge));
}

.seal span {
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  text-indent: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

.gates {
  display: flex;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
}

.gate {
  width: 132px;
  display: grid;
  justify-items: center;
  gap: 10px;
  transition: transform 0.35s ease;
}

.gate:hover,
.gate:focus-visible {
  transform: translateY(-4px);
}

.gate:focus-visible {
  outline: none;
}

.gate-plate,
.gate-icon,
.gate-frame {
  grid-area: 1 / 1;
}

.gate-plate {
  width: 132px;
  aspect-ratio: 1;
  border-radius: 18%;
  background: radial-gradient(circle at 50% 40%, #222230, #12121a 72%);
  transform: scale(0.72);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.gate:hover .gate-plate,
.gate:focus-visible .gate-plate {
  background: radial-gradient(circle at 50% 40%, #2c2a22, #1a1610 72%);
}

.gate-icon {
  width: 46px;
  height: 46px;
  align-self: center;
  fill: var(--cream);
  z-index: 1;
  filter: drop-shadow(0 0 10px rgba(142, 162, 255, 0.35));
}

/* Discord's mark is wider than tall, so it needs a bigger box than these two,
   whose square viewBoxes are filled edge to edge. */
.gate-icon.roblox,
.gate-icon.tiktok {
  width: 34px;
  height: 34px;
}

.gate:hover .gate-icon,
.gate:focus-visible .gate-icon {
  fill: #fff6e4;
  filter: drop-shadow(0 0 14px rgba(255, 210, 122, 0.8));
}

.gate-frame {
  width: 132px;
  height: 132px;
  object-fit: contain;
  transform: translate(var(--frame-nudge), var(--frame-nudge));
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.28));
}

.gate:hover .gate-frame,
.gate:focus-visible .gate-frame {
  filter:
    drop-shadow(0 8px 18px rgba(0, 0, 0, 0.28))
    drop-shadow(0 0 16px rgba(220, 160, 52, 0.35));
}

.gate span {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  text-transform: uppercase;
  color: rgba(246, 241, 230, 0.86);
}

.page-community .gate {
  width: 168px;
}

.page-community .gate-plate,
.page-community .gate-frame {
  width: 168px;
}

.page-community .gate-frame {
  height: 168px;
}

.page-community .gate-icon {
  width: 58px;
  height: 58px;
}

.page-community .gate-icon.roblox {
  width: 44px;
  height: 44px;
}

.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0 28px;
  color: var(--muted);
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  text-transform: uppercase;
}

.foot-mark {
  width: 22px;
  height: 22px;
  opacity: 0.7;
}

@keyframes hover {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -7px; }
}

@keyframes wings {
  0%, 100% { transform: translate(var(--mark-nudge), var(--mark-drop)) scaleX(1); }
  50% { transform: translate(var(--mark-nudge), var(--mark-drop)) scaleX(1.035); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.7; transform: scale(0.98); }
  50% { opacity: 1; transform: scale(1.04); }
}

@keyframes rise {
  0% { transform: translateY(0) scale(1); opacity: 0; }
  12% { opacity: 0.6; }
  100% { transform: translateY(-110vh) scale(0.6); opacity: 0; }
}

@keyframes floaty {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -12px; }
}

@media (max-width: 860px) {
  .rail {
    position: sticky;
    left: 0;
    top: 0;
    bottom: auto;
    width: 100%;
    height: auto;
    flex-direction: row;
    justify-content: center;
    padding: 8px 0 4px;
    background: linear-gradient(180deg, rgba(7, 7, 12, 0.86), transparent);
  }

  .road-card {
    width: 78px;
  }

  .road {
    flex-direction: row;
    gap: 22px;
  }

  .road:has(li + li)::before {
    top: 50%;
    bottom: auto;
    left: 18px;
    right: 18px;
    width: auto;
    height: 1px;
    translate: 0 -50%;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
  }

  .road-mark {
    width: 72px;
    height: 72px;
  }

  .has-rail {
    --rail-gutter: 0px;
  }

  .has-rail .wrap {
    width: min(1080px, calc(100% - 28px));
    margin: 0 auto;
  }

  .has-rail .c-tl,
  .has-rail .c-bl {
    left: 22px;
  }
}

@media (max-width: 780px) {
  .gallery { grid-template-columns: 1fr; }
  .piece-window,
  .gallery-lead .piece-window { aspect-ratio: 16 / 9; }
  .brand-name { display: none; }
  .menu { gap: 14px; }
  .wrap { width: min(1080px, calc(100% - 28px)); }
}

@media (max-width: 560px) {
  .top { padding-top: 16px; }
  .menu a { letter-spacing: 0.16em; text-indent: 0.16em; font-size: 0.62rem; }
  .crest { width: min(280px, 78vw); }
  .gates { gap: 18px; }
  .gate,
  .gate-frame,
  .gate-plate { width: 112px; }
  .gate-frame { height: 112px; }
  .wordmark { letter-spacing: 0.42em; text-indent: 0.42em; }
  .wordmark::before,
  .wordmark::after { width: 18px; }
  .corner { display: none; }
  .foot { justify-content: center; }
}
