:root {
  color-scheme: dark;
  --ink: #f3ead4;
  --ink-soft: #d5cbb5;
  --muted: #a9a58f;
  --night: #0d110d;
  --night-deep: #080b09;
  --line: rgba(229, 207, 159, 0.18);
  --gold: #c6a15c;
  --page-gutter: clamp(1rem, 2.25vw, 2.4rem);
  --gallery-gap: clamp(0.8rem, 1.15vw, 1.2rem);
  font-family: "Inter", system-ui, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--night-deep);
  overflow-x: hidden;
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  opacity: 0.085;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='4' stitchTiles='stitchTiles'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  overflow: hidden;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.8rem 1rem;
  color: var(--night);
  background: var(--ink);
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.environment {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: #101610;
  overflow: hidden;
}

.environment-image {
  position: absolute;
  inset: -1rem;
  background-image: url("/assets/environment/fantasy-gallery-v2.webp");
  background-position: 50% 48%;
  background-size: cover;
  filter: saturate(0.92) brightness(0.76) contrast(1.03);
  transform: scale(1.012);
}

.environment-haze {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 9, 7, 0.18) 0%, rgba(11, 15, 10, 0.03) 34%, rgba(7, 9, 7, 0.42) 100%),
    radial-gradient(ellipse at 53% 42%, transparent 31%, rgba(4, 7, 5, 0.28) 94%),
    linear-gradient(90deg, rgba(5, 8, 6, 0.24), transparent 27%, transparent 73%, rgba(5, 8, 6, 0.25));
}

.ambient-layers,
.ambient-layer {
  position: absolute;
  inset: 0;
}

.ambient-layer {
  opacity: 0;
  background:
    radial-gradient(ellipse at 50% 52%, var(--ambience), transparent 53%),
    linear-gradient(180deg, transparent 25%, color-mix(in srgb, var(--ambience), transparent 55%) 100%);
  transition: opacity 850ms ease;
}

.ambient-layer.is-active {
  opacity: 1;
}

.dust-field {
  position: absolute;
  inset: 8% 0 0;
  opacity: 0.5;
}

.dust-field i {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(240, 216, 156, 0.55);
  box-shadow: 0 0 9px rgba(240, 216, 156, 0.65);
  animation: dust-drift 12s ease-in-out infinite alternate;
}

.dust-field i:nth-child(1) { left: 8%; top: 61%; animation-delay: -2s; }
.dust-field i:nth-child(2) { left: 18%; top: 34%; animation-delay: -7s; animation-duration: 15s; }
.dust-field i:nth-child(3) { left: 30%; top: 67%; animation-delay: -11s; }
.dust-field i:nth-child(4) { left: 42%; top: 45%; animation-delay: -4s; animation-duration: 17s; }
.dust-field i:nth-child(5) { left: 54%; top: 74%; animation-delay: -9s; }
.dust-field i:nth-child(6) { left: 63%; top: 39%; animation-delay: -1s; animation-duration: 14s; }
.dust-field i:nth-child(7) { left: 72%; top: 63%; animation-delay: -6s; }
.dust-field i:nth-child(8) { left: 83%; top: 31%; animation-delay: -10s; animation-duration: 18s; }
.dust-field i:nth-child(9) { left: 91%; top: 58%; animation-delay: -3s; }
.dust-field i:nth-child(10) { left: 48%; top: 24%; animation-delay: -8s; animation-duration: 16s; }

@keyframes dust-drift {
  from { transform: translate3d(-4px, 14px, 0); opacity: 0.22; }
  to { transform: translate3d(12px, -22px, 0); opacity: 0.8; }
}

.site-header {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(100%, 1760px);
  min-height: 4.75rem;
  margin: 0 auto;
  padding: 0.85rem var(--page-gutter);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(6, 8, 6, 0.58), rgba(6, 9, 7, 0.11));
  backdrop-filter: blur(2px);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 0.72rem;
  width: max-content;
  text-transform: uppercase;
}

.brand-mark {
  width: 3.85rem;
  height: 4.2rem;
  fill: rgba(202, 162, 90, 0.14);
  stroke: var(--gold);
  stroke-width: 1.4;
}

.brand-mark .brand-cut {
  fill: var(--night-deep);
  stroke: var(--gold);
}

.brand-mark .brand-line {
  fill: none;
  opacity: 0.65;
}

.brand-mark .brand-line--inner {
  opacity: 0.82;
}

.brand-mark .brand-line--sigil {
  opacity: 0.96;
}

.brand > span {
  display: grid;
  line-height: 1;
}

.brand strong {
  font-family: "Cinzel", Georgia, serif;
  font-size: 1.52rem;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.brand small {
  margin-top: 0.34rem;
  color: #bba475;
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.44em;
}

nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(2rem, 4vw, 4.8rem);
}

nav a {
  position: relative;
  padding: 0.7rem 0;
  color: #cac2ae;
  font-family: "Cinzel", Georgia, serif;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 180ms ease;
}

nav a::after {
  position: absolute;
  right: 0;
  bottom: 0.2rem;
  left: 0;
  height: 1px;
  content: "";
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

nav a:hover,
nav a:focus-visible,
nav a.is-active {
  color: #f2dfb7;
}

nav a:hover::after,
nav a:focus-visible::after,
nav a.is-active::after {
  transform: scaleX(1);
}

.header-note {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  justify-self: end;
  min-width: 11.5rem;
  padding: 0.35rem 0 0.35rem 1.1rem;
  border-left: 1px solid rgba(207, 171, 100, 0.32);
  color: #b9a77f;
  font-family: "Cinzel", Georgia, serif;
  font-size: 0.56rem;
  line-height: 1.5;
  letter-spacing: 0.11em;
  text-align: right;
  text-transform: uppercase;
  text-shadow: 0 2px 7px rgba(0, 0, 0, 0.8);
}

.header-note span {
  display: grid;
  gap: 0.22rem;
}

.header-note b {
  color: #dfc58d;
  font-weight: 500;
}

.header-note small {
  color: #9e947d;
  font-family: "Inter", sans-serif;
  font-size: 0.48rem;
  font-weight: 500;
  letter-spacing: 0.14em;
}

.header-note i {
  display: grid;
  place-items: center;
  width: 1.85rem;
  aspect-ratio: 1;
  border: 1px solid rgba(209, 167, 86, 0.48);
  border-radius: 50%;
  color: #e5c780;
  font-family: Georgia, serif;
  font-size: 1.05rem;
  font-style: normal;
  transition: border-color 180ms ease, transform 180ms ease;
}

.header-note:hover i,
.header-note:focus-visible i {
  border-color: #d6ae60;
  transform: translateX(2px);
}

main {
  width: min(100%, 1760px);
  margin: 0 auto;
}

.showcase {
  position: relative;
  min-height: calc(100svh - 5.1rem);
  padding: clamp(1.25rem, 2.7vh, 1.65rem) var(--page-gutter) 0;
  overflow: hidden;
}

.hero-copy {
  position: relative;
  z-index: 3;
  width: min(100%, 82rem);
  margin: 0 auto -1.7rem;
  text-align: center;
}

.eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin: 0 0 0.55rem;
  color: #d4bd8a;
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(0.6rem, 0.72vw, 0.73rem);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow span {
  width: clamp(1.6rem, 3vw, 3.25rem);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.eyebrow span:last-child {
  background: linear-gradient(90deg, var(--gold), transparent);
}

.eyebrow b {
  font-weight: 500;
}

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

h1,
h2 {
  font-family: "Cinzel", Georgia, serif;
  font-weight: 500;
  text-transform: uppercase;
}

h1 {
  max-width: 52rem;
  margin-right: auto;
  margin-bottom: 0.42rem;
  margin-left: auto;
  color: #efe2c6;
  font-size: clamp(2.2rem, 3.3vw, 3.65rem);
  line-height: 1.02;
  letter-spacing: 0.012em;
  text-shadow:
    0 1px 0 #fff2d3,
    0 2px 0 rgba(108, 75, 34, 0.72),
    0 5px 24px rgba(0, 0, 0, 0.7);
}

.hero-support {
  max-width: 38rem;
  margin: 0 auto;
  color: #c8c1af;
  color: #d7c49b;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(0.84rem, 0.98vw, 1rem);
  line-height: 1.45;
  text-wrap: balance;
}

.collection-cta {
  position: relative;
  z-index: 8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  min-width: clamp(16rem, 19vw, 19.5rem);
  min-height: 3.05rem;
  margin-top: 0.75rem;
  padding: 0.7rem 1.35rem;
  border: 1px solid rgba(214, 166, 76, 0.78);
  clip-path: polygon(6% 0, 94% 0, 100% 24%, 100% 76%, 94% 100%, 6% 100%, 0 76%, 0 24%);
  color: #efd8a6;
  background:
    linear-gradient(180deg, rgba(38, 31, 21, 0.96), rgba(10, 11, 9, 0.97)),
    #11120f;
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(0.72rem, 0.95vw, 0.96rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow:
    0 0 0 3px rgba(9, 10, 8, 0.9),
    0 0 0 4px rgba(167, 121, 51, 0.42),
    0 0.9rem 2rem rgba(0, 0, 0, 0.42),
    inset 0 0 1.2rem rgba(222, 178, 93, 0.08);
  transition: color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.collection-cta::before,
.collection-cta::after {
  position: absolute;
  top: 50%;
  width: 1.8rem;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, #aa7f39);
}

.collection-cta::before {
  right: calc(100% + 0.75rem);
}

.collection-cta::after {
  left: calc(100% + 0.75rem);
  transform: rotate(180deg);
}

.collection-cta:hover,
.collection-cta:focus-visible {
  color: #fff0cd;
  border-color: #e0b568;
  transform: translateY(-2px);
}

.collection-cta i {
  font-family: Georgia, serif;
  font-size: 1.2rem;
  font-style: normal;
  line-height: 1;
}

.collection-cta > span {
  position: relative;
}

.collection-cta > span::before {
  position: absolute;
  top: 50%;
  left: -1.35rem;
  width: 0.35rem;
  aspect-ratio: 1;
  border: 1px solid #c9943e;
  content: "";
  transform: translateY(-50%) rotate(45deg);
}

.gallery-shell {
  position: relative;
  z-index: 4;
  margin-inline: clamp(1.15rem, 2vw, 2.2rem);
}

.portal-gallery {
  display: flex;
  align-items: flex-end;
  justify-content: safe center;
  gap: var(--gallery-gap);
  width: 100%;
  margin: 0;
  padding: 0.45rem 0 0.2rem;
  list-style: none;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.portal-gallery::-webkit-scrollbar {
  display: none;
}

.portal-gallery:focus-visible {
  outline: 1px solid rgba(220, 184, 112, 0.55);
  outline-offset: 0.5rem;
}

.portal-item {
  position: relative;
  flex: 0 0 calc((100% - (var(--gallery-gap) * 4)) / 5);
  min-width: 0;
  height: clamp(475px, 62vh, 605px);
  scroll-snap-align: center;
  transform-origin: center bottom;
}

.game-portal {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding-top: 0.72rem;
  filter: saturate(0.98) brightness(0.99);
  transform: translate3d(0, 0, 0);
  transition:
    transform 380ms cubic-bezier(0.2, 0.72, 0.2, 1),
    filter 380ms ease;
  will-change: transform;
}

.game-portal::after {
  position: absolute;
  right: 7%;
  bottom: -0.25rem;
  left: 7%;
  height: 1rem;
  border-radius: 50%;
  content: "";
  background: color-mix(in srgb, var(--accent), transparent 48%);
  filter: blur(1.1rem);
  opacity: 0.24;
  transform: scaleX(0.76);
  transition: opacity 380ms ease, transform 380ms ease;
}

.portal-frame {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: clamp(0.52rem, 0.72vw, 0.72rem);
  border: 1px solid color-mix(in srgb, var(--accent), #e8d7b1 54%);
  border-radius: 50% 50% 0.32rem 0.32rem / 13.5% 13.5% 0.32rem 0.32rem;
  background:
    repeating-linear-gradient(96deg, transparent 0 7px, rgba(255, 225, 157, 0.07) 8px, transparent 9px 17px),
    linear-gradient(90deg, rgba(18, 15, 11, 0.98), rgba(139, 101, 54, 0.82) 15%, rgba(48, 35, 22, 0.96) 39%, rgba(165, 122, 64, 0.76) 82%, rgba(17, 14, 10, 0.98)),
    #3a2c1b;
  box-shadow:
    0 1.5rem 2.7rem rgba(0, 0, 0, 0.64),
    0 0 0 2px rgba(8, 7, 5, 0.72),
    0 0 0 3px color-mix(in srgb, var(--accent), transparent 75%),
    inset 0 0 0 2px rgba(17, 13, 8, 0.74),
    inset 0 0 1.4rem rgba(231, 190, 111, 0.17);
  overflow: hidden;
  transition:
    border-color 380ms ease,
    box-shadow 380ms ease;
}

.portal-frame::before,
.portal-frame::after {
  position: absolute;
  z-index: 3;
  content: "";
  pointer-events: none;
}

.portal-frame::before {
  inset: 0.28rem;
  border: 1px solid rgba(234, 211, 158, 0.31);
  border-radius: inherit;
  box-shadow:
    inset 0 0 0 2px rgba(14, 11, 7, 0.78),
    inset 0 0 0 3px rgba(216, 171, 90, 0.12);
}

.portal-frame::after {
  right: 12%;
  bottom: 0.18rem;
  left: 12%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.65;
}

.portal-inner {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(12, 10, 7, 0.9);
  border-radius: 50% 50% 0.14rem 0.14rem / 12.8% 12.8% 0.14rem 0.14rem;
  background: #171912;
  overflow: hidden;
}

.portal-inner::before {
  position: absolute;
  inset: 0;
  z-index: 2;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(4, 5, 4, 0.64) 0%, rgba(4, 5, 4, 0.22) 18%, transparent 34%),
    linear-gradient(180deg, transparent 58%, rgba(4, 5, 4, 0.12) 68%, rgba(3, 4, 3, 0.72) 84%, rgba(3, 4, 3, 0.97) 100%),
    radial-gradient(ellipse at center, transparent 44%, rgba(2, 3, 2, 0.28) 100%);
}

.portal-item[data-game-id="orbitfall"] .portal-inner::before {
  background:
    linear-gradient(180deg, rgba(2, 4, 9, 0.99) 0%, rgba(2, 4, 9, 0.92) 25%, rgba(2, 4, 9, 0.24) 46%, transparent 56%),
    linear-gradient(180deg, transparent 48%, rgba(2, 3, 8, 0.14) 62%, rgba(2, 3, 8, 0.86) 82%, rgba(1, 2, 5, 0.99) 100%),
    radial-gradient(ellipse at center, transparent 40%, rgba(2, 3, 8, 0.34) 100%);
}

.portal-artwork {
  position: absolute;
  inset: 0;
  background: #22271d;
  overflow: hidden;
}

.portal-artwork::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(115deg, rgba(255, 240, 190, 0.1), transparent 34%),
    linear-gradient(180deg, color-mix(in srgb, var(--accent), transparent 84%), transparent 42%);
  mix-blend-mode: screen;
  pointer-events: none;
}

.portal-artwork img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--image-position);
  filter: saturate(1.08) contrast(1.04) brightness(1.03);
  opacity: 0;
  transform: scale(var(--image-scale));
  transition:
    opacity 650ms ease,
    transform 1.25s cubic-bezier(0.2, 0.65, 0.2, 1),
    filter 500ms ease;
  will-change: transform;
}

.portal-artwork.is-loaded img {
  opacity: 1;
}

.portal-item[data-game-id="orbitfall"] .portal-inner::before {
  background:
    linear-gradient(180deg, rgba(3, 5, 10, 0.94) 0%, rgba(3, 5, 10, 0.74) 18%, transparent 34%),
    linear-gradient(180deg, transparent 57%, rgba(3, 5, 10, 0.12) 67%, rgba(3, 5, 10, 0.78) 82%, rgba(2, 3, 7, 0.98) 100%),
    radial-gradient(ellipse at center, transparent 44%, rgba(2, 3, 8, 0.3) 100%);
}

.portal-heading {
  position: absolute;
  top: clamp(3.8rem, 11.5%, 4.4rem);
  right: 0.7rem;
  left: 0.7rem;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #f1dfbd;
  text-align: center;
  text-shadow:
    0 1px 0 rgba(255, 242, 208, 0.45),
    0 2px 2px #000,
    0 4px 14px #000;
}

.portal-genre {
  font-size: clamp(0.48rem, 0.5vw, 0.62rem);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.portal-heading strong {
  max-width: 95%;
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(1.02rem, 1.47vw, 1.72rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: 0.02em;
  text-wrap: balance;
  text-transform: uppercase;
}

.portal-genre {
  margin-top: 0.55rem;
  color: #ddd4c2;
  letter-spacing: 0.11em;
}

.portal-footer {
  position: absolute;
  right: clamp(0.65rem, 1vw, 1rem);
  bottom: clamp(1rem, 1.5vw, 1.35rem);
  left: clamp(0.65rem, 1vw, 1rem);
  z-index: 4;
  display: grid;
  gap: 0;
  justify-items: center;
  text-align: center;
}

.portal-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 72%;
  min-height: 2.45rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid color-mix(in srgb, var(--accent), #dcc89f 34%);
  clip-path: polygon(7% 0, 93% 0, 100% 24%, 100% 76%, 93% 100%, 7% 100%, 0 76%, 0 24%);
  color: #f3dfb4;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent), transparent 78%), rgba(9, 9, 7, 0.88)),
    #17150f;
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(0.56rem, 0.65vw, 0.73rem);
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  box-shadow: inset 0 0 1rem rgba(255, 226, 164, 0.04);
  transition:
    color 260ms ease,
    background-color 260ms ease,
    border-color 260ms ease;
}

.portal-action i {
  font-family: Georgia, serif;
  font-size: 1rem;
  font-style: normal;
  line-height: 0;
  transition: transform 260ms ease;
}

.portal-crest {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 7;
  display: grid;
  place-items: center;
  width: clamp(2.65rem, 3.35vw, 3.7rem);
  aspect-ratio: 1;
  border: 2px solid color-mix(in srgb, var(--accent), #ead7aa 45%);
  border-radius: 38%;
  background:
    radial-gradient(circle at 40% 30%, color-mix(in srgb, var(--accent), #fff 18%), color-mix(in srgb, var(--accent), #18140e 72%) 68%),
    #2b2317;
  box-shadow:
    0 0 0 4px rgba(23, 18, 12, 0.9),
    0 0 0 5px rgba(210, 175, 103, 0.35),
    0 0 1.4rem color-mix(in srgb, var(--accent), transparent 48%),
    inset 0 0 0 3px rgba(255, 235, 189, 0.1);
  transform: translateX(-50%) rotate(45deg);
  transition: box-shadow 380ms ease, transform 380ms ease;
}

.portal-crest svg {
  width: 54%;
  fill: #f3ddb0;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.72));
  transform: rotate(-45deg);
}

.portal-crown {
  position: absolute;
  top: 0.25rem;
  left: 50%;
  z-index: 6;
  width: clamp(5.1rem, 6vw, 6.5rem);
  height: 3.25rem;
  border-top: 2px solid color-mix(in srgb, var(--accent), #d8b36a 48%);
  border-radius: 50% 50% 0 0;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.8));
  transform: translateX(-50%);
}

.portal-crown::before,
.portal-crown::after,
.portal-crown i {
  position: absolute;
  width: 0.42rem;
  height: 1.3rem;
  content: "";
  background: linear-gradient(90deg, #2a2014, #c09045 48%, #2a2014);
  clip-path: polygon(50% 0, 100% 36%, 70% 100%, 30% 100%, 0 36%);
}

.portal-crown::before { top: -0.76rem; left: 0.48rem; transform: rotate(-28deg); }
.portal-crown::after { top: -0.76rem; right: 0.48rem; transform: rotate(28deg); }
.portal-crown i:nth-child(1) { top: -1.2rem; left: calc(50% - 0.21rem); }
.portal-crown i:nth-child(2) { top: -0.2rem; left: 1.55rem; height: 0.85rem; transform: rotate(-45deg); }
.portal-crown i:nth-child(3) { top: -0.2rem; right: 1.55rem; height: 0.85rem; transform: rotate(45deg); }

.portal-pillar {
  position: absolute;
  top: 17%;
  bottom: 0.4rem;
  z-index: 5;
  width: clamp(0.55rem, 0.74vw, 0.78rem);
  border: 1px solid rgba(229, 191, 116, 0.32);
  background:
    repeating-linear-gradient(90deg, rgba(244, 208, 137, 0.14) 0 1px, transparent 1px 3px),
    linear-gradient(90deg, #17120d, color-mix(in srgb, var(--accent), #76552e 55%) 48%, #17120d);
  box-shadow: 0 0.25rem 0.7rem rgba(0, 0, 0, 0.65);
}

.portal-pillar::before,
.portal-pillar::after {
  position: absolute;
  left: 50%;
  width: 165%;
  height: 0.7rem;
  border: 1px solid rgba(222, 183, 108, 0.34);
  content: "";
  background: linear-gradient(90deg, #19120c, color-mix(in srgb, var(--accent), #8d642f 45%), #19120c);
  transform: translateX(-50%);
}

.portal-pillar::before { top: -0.25rem; clip-path: polygon(14% 0, 86% 0, 100% 100%, 0 100%); }
.portal-pillar::after { bottom: -0.15rem; clip-path: polygon(0 0, 100% 0, 84% 100%, 16% 100%); }
.portal-pillar--left { left: 0.28rem; }
.portal-pillar--right { right: 0.28rem; }

.game-portal:hover,
.game-portal:focus-visible {
  filter: saturate(1.04) brightness(1.03);
  transform: translate3d(0, -0.52rem, 0);
}

.portal-item.is-active .game-portal {
  filter: saturate(1.04) brightness(1.03);
}

.game-portal:focus-visible {
  outline: none;
}

.game-portal:hover .portal-frame,
.game-portal:focus-visible .portal-frame,
.portal-item.is-active .portal-frame {
  border-color: color-mix(in srgb, var(--accent), #fff1cd 58%);
  box-shadow:
    0 1.7rem 2.8rem rgba(0, 0, 0, 0.62),
    0 0 1.35rem color-mix(in srgb, var(--accent), transparent 76%),
    inset 0 0 0 2px rgba(17, 13, 8, 0.72),
    inset 0 0 1.4rem rgba(240, 203, 127, 0.17);
}

.game-portal:hover .portal-artwork img,
.game-portal:focus-visible .portal-artwork img {
  filter: saturate(1.02) contrast(1.055);
  transform: scale(calc(var(--image-scale) * 1.035));
}

.portal-item.is-active .portal-artwork img {
  filter: saturate(1.12) contrast(1.055) brightness(1.04);
}

.game-portal:hover .portal-crest,
.game-portal:focus-visible .portal-crest,
.portal-item.is-active .portal-crest {
  box-shadow:
    0 0 0 4px rgba(23, 18, 12, 0.92),
    0 0 0 5px color-mix(in srgb, var(--accent), #fff1c6 35%),
    0 0 1.5rem color-mix(in srgb, var(--accent), transparent 40%);
  transform: translateX(-50%) rotate(45deg) scale(1.04);
}

.game-portal:hover::after,
.game-portal:focus-visible::after,
.portal-item.is-active .game-portal::after {
  opacity: 0.58;
  transform: scaleX(0.96);
}

.game-portal:hover .portal-action,
.game-portal:focus-visible .portal-action,
.portal-item.is-active .portal-action {
  color: #fff1cf;
  border-color: color-mix(in srgb, var(--accent), #fff1c9 52%);
  background-color: color-mix(in srgb, var(--accent), #17150f 74%);
}

.game-portal:hover .portal-action i,
.game-portal:focus-visible .portal-action i,
.portal-item.is-active .portal-action i {
  transform: translateX(0.22rem);
}

.portal-artwork--sealed {
  background:
    linear-gradient(180deg, rgba(25, 7, 3, 0.14), rgba(12, 5, 4, 0.82)),
    radial-gradient(circle at 50% 22%, color-mix(in srgb, var(--accent), transparent 58%), transparent 31%),
    linear-gradient(150deg, color-mix(in srgb, var(--accent), #2a2720 78%), transparent 54%),
    url("/assets/environment/fantasy-gallery-v2.webp") 76% 52% / auto 112%;
}

.sealed-moon {
  position: absolute;
  top: 17%;
  left: 50%;
  width: 42%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 45% 40%, #f1c095, color-mix(in srgb, var(--accent), #5f4029 48%) 62%, transparent 64%);
  filter: blur(0.4px);
  opacity: 0.38;
  transform: translateX(-50%);
}

.sealed-ridge {
  position: absolute;
  right: -12%;
  bottom: 26%;
  left: -12%;
  height: 38%;
  background: #18251a;
  clip-path: polygon(0 73%, 12% 42%, 23% 66%, 38% 26%, 51% 59%, 66% 18%, 82% 57%, 100% 33%, 100% 100%, 0 100%);
}

.sealed-ridge--far {
  bottom: 36%;
  background: color-mix(in srgb, var(--accent), #29261f 58%);
  opacity: 0.62;
  transform: scale(1.08);
}

.sealed-ridge--near {
  background: #160b09;
}

.sealed-door {
  position: absolute;
  bottom: 18%;
  left: 50%;
  width: 43%;
  height: 49%;
  border: 3px solid color-mix(in srgb, var(--accent), #d5aa65 44%);
  border-radius: 48% 48% 3px 3px / 18% 18% 3px 3px;
  background:
    repeating-linear-gradient(90deg, rgba(211, 174, 107, 0.08) 0 2px, transparent 2px 19px),
    linear-gradient(90deg, #1a0d0a, color-mix(in srgb, var(--accent), #332719 45%) 47%, #160b09);
  box-shadow: inset 0 0 1.8rem #080403, 0 0 1.7rem color-mix(in srgb, var(--accent), transparent 66%);
  transform: translateX(-50%);
}

.sealed-door::before {
  position: absolute;
  top: 52%;
  right: 11%;
  width: 0.38rem;
  aspect-ratio: 1;
  border-radius: 50%;
  content: "";
  background: #c89a55;
  box-shadow: 0 0 0.5rem rgba(222, 177, 99, 0.62);
}

.sealed-door i {
  position: absolute;
  top: 12%;
  bottom: 9%;
  width: 1px;
  background: rgba(221, 184, 115, 0.12);
}

.sealed-door i:nth-child(1) { left: 28%; }
.sealed-door i:nth-child(2) { left: 50%; }
.sealed-door i:nth-child(3) { left: 72%; }

.sealed-copy {
  position: absolute;
  right: 0;
  bottom: 31%;
  left: 0;
  z-index: 1;
  color: #ccb681;
  font-family: "Cinzel", Georgia, serif;
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  text-align: center;
  text-transform: uppercase;
  opacity: 0.72;
}

.gallery-control {
  position: absolute;
  top: 50%;
  z-index: 9;
  display: grid;
  place-items: center;
  width: 2.7rem;
  aspect-ratio: 1;
  border: 1px solid rgba(220, 190, 125, 0.34);
  border-radius: 50%;
  color: #ead8b3;
  background: rgba(10, 13, 10, 0.82);
  backdrop-filter: blur(9px);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%);
  transition: opacity 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.gallery-shell.is-scrollable .gallery-control {
  opacity: 1;
  pointer-events: auto;
}

.gallery-shell:not(.is-scrollable) .gallery-control {
  opacity: 0 !important;
  pointer-events: none;
}

.gallery-control:disabled {
  opacity: 0.28 !important;
  cursor: default;
}

.gallery-control:not(:disabled):hover,
.gallery-control:focus-visible {
  border-color: var(--gold);
  background: rgba(39, 35, 24, 0.94);
}

.gallery-control--prev { left: -0.5rem; }
.gallery-control--next { right: -0.5rem; }

.gallery-hint {
  display: none;
  margin: 0.3rem 0 0;
  color: #9f9a88;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

.gallery-shell::after {
  position: absolute;
  right: -3%;
  bottom: -0.25rem;
  left: -3%;
  z-index: 8;
  height: 2.35rem;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(ellipse at 7% 80%, #1b2115 0 12%, transparent 13%),
    radial-gradient(ellipse at 24% 73%, #222718 0 10%, transparent 11%),
    radial-gradient(ellipse at 47% 79%, #171c12 0 13%, transparent 14%),
    radial-gradient(ellipse at 70% 69%, #202416 0 11%, transparent 12%),
    radial-gradient(ellipse at 92% 78%, #171c12 0 12%, transparent 13%),
    linear-gradient(180deg, transparent 0 38%, rgba(13, 16, 11, 0.96) 40% 100%);
  filter: drop-shadow(0 -0.3rem 0.35rem rgba(0, 0, 0, 0.45));
  clip-path: polygon(0 63%, 5% 40%, 10% 58%, 16% 35%, 22% 60%, 30% 36%, 37% 58%, 45% 38%, 53% 59%, 61% 34%, 69% 60%, 77% 39%, 85% 57%, 93% 35%, 100% 60%, 100% 100%, 0 100%);
  opacity: 0.92;
}

.foreground {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 5;
  height: 4.2rem;
  pointer-events: none;
}

.showcase-strip {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 12;
  display: grid;
  grid-template-columns: minmax(13rem, 0.72fr) minmax(36rem, 1.65fr) minmax(14rem, 0.72fr);
  align-items: center;
  min-height: 4.6rem;
  padding: 0.65rem clamp(1.1rem, 2vw, 2.25rem);
  border-top: 1px solid rgba(216, 178, 102, 0.23);
  color: #bca77d;
  background:
    linear-gradient(180deg, rgba(13, 15, 12, 0.94), rgba(7, 9, 7, 0.99)),
    #090b09;
  box-shadow: 0 -0.7rem 1.8rem rgba(0, 0, 0, 0.48);
}

.showcase-strip p {
  margin: 0;
}

.showcase-copyright,
.showcase-motto {
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(0.48rem, 0.58vw, 0.62rem);
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.showcase-copyright span:first-child,
.showcase-motto span {
  color: #c3913e;
  font-size: 1.2rem;
  vertical-align: middle;
}

.showcase-motto {
  justify-self: end;
  text-align: right;
}

.showcase-principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.showcase-principles p {
  position: relative;
  display: grid;
  grid-template-columns: 2.35rem 1fr;
  column-gap: 0.55rem;
  padding: 0 1rem;
}

.showcase-principles p + p {
  border-left: 1px solid rgba(213, 185, 127, 0.24);
}

.showcase-principles p > span {
  grid-row: 1 / 3;
  align-self: center;
  color: #c7943f;
  font-size: 1.55rem;
  text-align: center;
}

.showcase-principles b {
  color: #d8bd83;
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(0.56rem, 0.69vw, 0.73rem);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.showcase-principles small {
  margin-top: 0.12rem;
  color: #958e7b;
  font-family: Georgia, serif;
  font-size: clamp(0.56rem, 0.66vw, 0.7rem);
}

.foreground-bank {
  position: absolute;
  right: -4%;
  bottom: -2.4rem;
  left: -4%;
  height: 4.6rem;
  border-radius: 50% 50% 0 0;
  background: linear-gradient(180deg, rgba(10, 15, 10, 0.9), #080b09 56%);
  filter: blur(0.2rem);
}

.foreground-grass {
  position: absolute;
  bottom: -0.6rem;
  width: 8rem;
  height: 4.5rem;
  background: #0b100c;
  clip-path: polygon(0 100%, 7% 25%, 12% 100%, 21% 4%, 28% 100%, 38% 34%, 43% 100%, 54% 11%, 59% 100%, 69% 28%, 75% 100%, 88% 3%, 92% 100%, 100% 45%, 100% 100%);
}

.grass-a { left: -1rem; transform: rotate(-4deg); }
.grass-b { right: -1.5rem; transform: scaleX(-1) rotate(-3deg); }
.grass-c { right: 24%; width: 5rem; height: 2.8rem; opacity: 0.7; }

.studio-section {
  position: relative;
  z-index: 7;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(20rem, 1.1fr);
  gap: clamp(3rem, 9vw, 9rem);
  align-items: center;
  min-height: 32rem;
  padding: clamp(5rem, 10vw, 9rem) var(--page-gutter);
  border-top: 1px solid var(--line);
  background:
    radial-gradient(circle at 15% 40%, rgba(98, 76, 39, 0.11), transparent 28rem),
    rgba(8, 11, 9, 0.96);
}

.studio-intro .eyebrow {
  justify-content: flex-start;
}

.studio-intro h2 {
  margin-bottom: 0;
  font-size: clamp(2.2rem, 4.6vw, 5.25rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
}

.studio-copy > p {
  max-width: 43rem;
  margin-bottom: 2.2rem;
  color: #c4beae;
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  line-height: 1.8;
}

.studio-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.studio-stats span {
  display: grid;
  gap: 0.55rem;
  padding: 1.25rem clamp(0.5rem, 1.3vw, 1.2rem);
  color: #9e9a8b;
  font-size: 0.61rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.studio-stats span + span {
  border-left: 1px solid var(--line);
}

.studio-stats strong {
  color: #e5c98f;
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(1.45rem, 2vw, 2rem);
  font-weight: 500;
}

footer {
  position: relative;
  z-index: 7;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, 1760px);
  min-height: 7.5rem;
  margin: 0 auto;
  padding: 1.5rem var(--page-gutter);
  border-top: 1px solid var(--line);
  background: #080b09;
}

footer p {
  margin: 0;
  color: #868477;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-brand {
  transform: scale(0.88);
  transform-origin: left center;
}

.js .reveal {
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.portal-item.reveal:nth-child(2) { transition-delay: 70ms; }
.portal-item.reveal:nth-child(3) { transition-delay: 140ms; }
.portal-item.reveal:nth-child(4) { transition-delay: 210ms; }
.portal-item.reveal:nth-child(5) { transition-delay: 280ms; }

/* Showcase v3 — materially richer, reusable portal architecture */
.showcase {
  min-height: calc(100svh - 4.75rem);
  padding: clamp(1.65rem, 3.3vh, 2rem) 0 0;
}

.hero-copy {
  width: min(100% - 2rem, 82rem);
  margin-bottom: -1.95rem;
}

.eyebrow {
  margin-bottom: 0.32rem;
  color: #e0c58d;
  text-shadow: 0 2px 9px rgba(0, 0, 0, 0.8);
}

h1 {
  max-width: 58rem;
  margin-bottom: 0.28rem;
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(2.45rem, 3.1vw, 3.38rem);
  font-weight: 500;
  letter-spacing: 0.018em;
}

.hero-support {
  max-width: 37rem;
  color: #ead5a8;
  font-size: clamp(0.86rem, 1.02vw, 1.04rem);
  line-height: 1.38;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

.collection-cta {
  min-width: clamp(17.5rem, 20vw, 20.5rem);
  min-height: 3.1rem;
  margin-top: 0.66rem;
  border-color: rgba(218, 165, 67, 0.88);
  background:
    linear-gradient(180deg, rgba(47, 34, 19, 0.97), rgba(10, 10, 8, 0.99)),
    #11120f;
  box-shadow:
    0 0 0 3px rgba(8, 8, 6, 0.94),
    0 0 0 5px rgba(139, 94, 34, 0.78),
    0 0 0 6px rgba(224, 181, 91, 0.3),
    0 1rem 2.2rem rgba(0, 0, 0, 0.56),
    inset 0 0 1.4rem rgba(222, 178, 93, 0.12);
}

.gallery-shell {
  margin-inline: clamp(2.6rem, 3.65vw, 4rem);
}

.portal-gallery {
  gap: 0;
  padding: 0.2rem 0 0.15rem;
}

.portal-item {
  flex-basis: calc((100% - 0.64rem) / 5);
  height: clamp(520px, 65.2vh, 632px);
  overflow: visible;
}

.game-portal {
  padding: 0;
  filter: saturate(0.96) brightness(0.97);
}

.game-portal::before {
  position: absolute;
  right: 2%;
  bottom: 0;
  left: 2%;
  z-index: 0;
  height: 2.7rem;
  border-radius: 50%;
  content: "";
  background: rgba(0, 0, 0, 0.78);
  filter: blur(0.9rem);
  transform: scaleX(0.84);
}

.portal-frame {
  position: absolute;
  inset: 5.05rem 1.72rem 2.78rem;
  z-index: 2;
  width: auto;
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  clip-path: polygon(50% 0, 68% 3%, 84% 10%, 95% 22%, 100% 35%, 100% 100%, 0 100%, 0 35%, 5% 22%, 16% 10%, 32% 3%);
  background: #0e100c;
  box-shadow:
    0 1.2rem 2.5rem rgba(0, 0, 0, 0.72),
    0 0 0 1px rgba(235, 205, 145, 0.14),
    inset 0 0 3.2rem rgba(0, 0, 0, 0.52);
  overflow: hidden;
}

.portal-frame::before {
  inset: 0;
  z-index: 5;
  border: 1px solid rgba(246, 221, 165, 0.24);
  border-radius: 0;
  box-shadow:
    inset 0 0 0 2px rgba(9, 8, 5, 0.76),
    inset 0 0 2.6rem rgba(0, 0, 0, 0.32);
}

.portal-frame::after {
  right: 7%;
  bottom: 0;
  left: 7%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.portal-inner {
  border: 0;
  border-radius: 0;
}

.portal-inner::before {
  background:
    linear-gradient(180deg, rgba(3, 4, 3, 0.66) 0%, rgba(4, 5, 4, 0.25) 18%, transparent 35%),
    linear-gradient(180deg, transparent 55%, rgba(3, 4, 3, 0.08) 63%, rgba(3, 4, 3, 0.72) 85%, rgba(3, 4, 3, 0.98) 100%),
    radial-gradient(ellipse at center, transparent 43%, rgba(2, 3, 2, 0.23) 100%);
}

.portal-artwork img {
  filter: saturate(1.13) contrast(1.07) brightness(1.05);
}

.portal-heading {
  top: clamp(6.55rem, 18%, 7.15rem);
  right: 1.55rem;
  left: 1.55rem;
  z-index: 8;
}

.portal-heading strong {
  max-width: 94%;
  font-size: clamp(1.06rem, 1.5vw, 1.75rem);
  line-height: 0.98;
  text-shadow:
    0 1px 0 rgba(255, 240, 203, 0.4),
    0 2px 2px #000,
    0 5px 18px #000,
    0 8px 28px #000;
}

.portal-genre {
  margin-top: 0.48rem;
  font-size: clamp(0.48rem, 0.52vw, 0.61rem);
  text-shadow: 0 2px 7px #000;
}

.portal-footer {
  right: 0;
  bottom: 3.85rem;
  left: 0;
  z-index: 8;
}

.portal-action {
  position: relative;
  width: 61%;
  min-height: 2.55rem;
  border-color: color-mix(in srgb, var(--accent), #e8cf99 45%);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent), transparent 79%), rgba(8, 8, 7, 0.96)),
    #15130f;
  box-shadow:
    0 0 0 2px rgba(7, 7, 5, 0.84),
    0 0 0 3px color-mix(in srgb, var(--accent), transparent 72%),
    0 0.45rem 1rem rgba(0, 0, 0, 0.48),
    inset 0 0 1rem rgba(255, 226, 164, 0.05);
}

.portal-architecture {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  filter: drop-shadow(0 0.35rem 0.35rem rgba(0, 0, 0, 0.72));
}

.portal-frame-art {
  position: absolute;
  top: -3%;
  bottom: auto;
  left: -16%;
  z-index: 6;
  display: block;
  width: 132%;
  height: 103%;
  object-fit: fill;
  pointer-events: none;
  filter:
    drop-shadow(0 0.45rem 0.3rem rgba(0, 0, 0, 0.82))
    drop-shadow(0 1.1rem 0.9rem rgba(0, 0, 0, 0.54))
    drop-shadow(0 0 0.48rem color-mix(in srgb, var(--accent), transparent 78%))
    sepia(0.08) saturate(0.92);
  transition: filter 420ms ease, transform 420ms cubic-bezier(0.2, 0.72, 0.2, 1);
}

.portal-architecture,
.portal-gem-mount,
.portal-rootwork {
  display: none;
}

.portal-architecture svg {
  display: none;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.portal-architecture .portal-frame-art--reference {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -4%;
  display: block;
  width: 108%;
  height: 100%;
  object-fit: fill;
  filter:
    drop-shadow(0 0.4rem 0.28rem rgba(0, 0, 0, 0.88))
    drop-shadow(0 1.1rem 0.85rem rgba(0, 0, 0, 0.54))
    drop-shadow(0 0 0.42rem color-mix(in srgb, var(--accent), transparent 72%))
    saturate(1.02) brightness(1.03) contrast(1.04);
  transform: none;
  transition: filter 380ms ease;
}

.arch-back,
.arch-body,
.arch-accent,
.arch-inner,
.arch-blocks,
.arch-carving,
.portal-stones path,
.portal-vines path,
.portal-thorns path,
.column-light,
.column-groove,
.column-band {
  vector-effect: non-scaling-stroke;
}

.arch-back {
  fill: none;
  stroke: rgba(4, 4, 3, 0.97);
  stroke-width: 34;
}

.arch-body {
  fill: none;
  stroke-width: 23;
}

.arch-accent {
  fill: none;
  stroke-width: 2.2;
  opacity: 0.78;
}

.arch-inner {
  fill: none;
  stroke: rgba(206, 164, 91, 0.72);
  stroke-width: 5;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.95));
}

.arch-blocks {
  fill: none;
  stroke: rgba(238, 208, 147, 0.22);
  stroke-width: 18;
  stroke-dasharray: 32 4 49 3 25 5;
  stroke-linecap: butt;
  opacity: 0.52;
}

.arch-carving {
  fill: none;
  stroke: rgba(9, 7, 4, 0.84);
  stroke-width: 3.5;
  stroke-linecap: round;
}

.arch-carving--accent {
  stroke: color-mix(in srgb, var(--accent), #d9b16b 45%);
  stroke-width: 1.4;
  opacity: 0.52;
}

.column-light {
  fill: none;
  stroke: rgba(241, 208, 139, 0.44);
  stroke-width: 2;
}

.column-groove {
  fill: none;
  stroke: rgba(7, 6, 4, 0.75);
  stroke-width: 5;
}

.column-band {
  fill: none;
  stroke: rgba(10, 8, 5, 0.78);
  stroke-width: 5;
}

.portal-stones path:first-child {
  stroke: rgba(4, 4, 3, 0.95);
  stroke-width: 3;
}

.portal-stones path:not(:first-child) {
  fill: none;
  stroke: rgba(192, 146, 74, 0.38);
  stroke-width: 1.2;
}

.portal-knots circle {
  fill: color-mix(in srgb, var(--accent), #3d2c19 62%);
  stroke: rgba(236, 202, 136, 0.48);
  stroke-width: 1;
}

.portal-vines path {
  fill: none;
  stroke: #1e2918;
  stroke-width: 5;
  stroke-linecap: round;
  filter: drop-shadow(1px 2px 1px #050604);
}

.portal-vines path:nth-child(n + 2) {
  stroke: #2e3e22;
  stroke-width: 3;
}

.portal-thorns path {
  fill: none;
  stroke: #291f13;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.portal-gem-mount {
  position: absolute;
  top: 0.38rem;
  left: 50%;
  z-index: 7;
  width: clamp(4.5rem, 5.25vw, 5.8rem);
  aspect-ratio: 1;
  border: 2px solid rgba(176, 128, 59, 0.72);
  background:
    linear-gradient(45deg, transparent 42%, #241a0e 43% 57%, transparent 58%),
    linear-gradient(-45deg, transparent 42%, #241a0e 43% 57%, transparent 58%);
  clip-path: polygon(50% 0, 61% 24%, 86% 14%, 76% 39%, 100% 50%, 76% 61%, 86% 86%, 61% 76%, 50% 100%, 39% 76%, 14% 86%, 24% 61%, 0 50%, 24% 39%, 14% 14%, 39% 24%);
  filter: drop-shadow(0 5px 4px rgba(0, 0, 0, 0.86));
  transform: translateX(-50%);
}

.portal-crest {
  top: clamp(2rem, 5.25%, 2.3rem);
  z-index: 8;
  width: clamp(3rem, 3.35vw, 3.65rem);
  border: 2px solid color-mix(in srgb, var(--accent), #f1d797 48%);
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 29%, rgba(255, 255, 255, 0.86), transparent 7%),
    radial-gradient(circle at 44% 38%, color-mix(in srgb, var(--accent), #fff 24%), color-mix(in srgb, var(--accent), #110d09 66%) 66%),
    #261b10;
  box-shadow:
    0 0 0 4px rgba(24, 17, 9, 0.97),
    0 0 0 6px rgba(202, 155, 74, 0.64),
    0 0 1.75rem color-mix(in srgb, var(--accent), transparent 31%),
    inset 0 0 0 3px rgba(255, 238, 194, 0.14),
    inset -0.45rem -0.55rem 0.8rem rgba(0, 0, 0, 0.48);
  transform: translateX(-50%);
}

.portal-crest::before,
.portal-crest::after {
  position: absolute;
  inset: 7%;
  border: 1px solid rgba(255, 237, 193, 0.2);
  border-radius: inherit;
  content: "";
}

.portal-crest::after {
  inset: 21%;
  border-radius: 0;
  border-color: rgba(255, 245, 218, 0.22);
  transform: rotate(45deg);
}

.portal-crest svg {
  position: relative;
  z-index: 2;
  width: 45%;
  transform: none;
}

.game-portal:hover .portal-crest,
.game-portal:focus-visible .portal-crest,
.portal-item.is-active .portal-crest {
  transform: translateX(-50%) scale(1.04);
}

.portal-rootwork {
  position: absolute;
  right: 1.5%;
  bottom: 0.45rem;
  left: 1.5%;
  z-index: 6;
  height: 4.2rem;
  pointer-events: none;
}

.portal-rootwork::before,
.portal-rootwork::after,
.portal-rootwork i {
  position: absolute;
  bottom: 0.75rem;
  height: 0.34rem;
  border-radius: 100% 0 100% 0;
  content: "";
  background: linear-gradient(180deg, #3f3623, #0e120b 72%);
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.7);
  transform-origin: center;
}

.portal-rootwork::before { left: 3%; width: 45%; transform: rotate(5deg); }
.portal-rootwork::after { right: 2%; width: 49%; transform: rotate(-6deg); }
.portal-rootwork i:nth-child(1) { left: 8%; bottom: 1.45rem; width: 34%; transform: rotate(-13deg); }
.portal-rootwork i:nth-child(2) { right: 5%; bottom: 1.55rem; width: 32%; transform: rotate(15deg); }
.portal-rootwork i:nth-child(3) { left: 32%; bottom: 0.35rem; width: 27%; transform: rotate(7deg); }
.portal-rootwork i:nth-child(4) { right: 24%; bottom: 0.25rem; width: 23%; transform: rotate(-11deg); }

.game-portal:hover .portal-architecture,
.game-portal:focus-visible .portal-architecture,
.portal-item.is-active .portal-architecture {
  filter:
    drop-shadow(0 0.35rem 0.4rem rgba(0, 0, 0, 0.74))
    drop-shadow(0 0 0.45rem color-mix(in srgb, var(--accent), transparent 68%));
}

.game-portal:hover .portal-frame-art,
.game-portal:focus-visible .portal-frame-art,
.portal-item.is-active .portal-frame-art {
  filter:
    drop-shadow(0 0.45rem 0.32rem rgba(0, 0, 0, 0.8))
    drop-shadow(0 1.1rem 0.9rem rgba(0, 0, 0, 0.52))
    drop-shadow(0 0 0.45rem color-mix(in srgb, var(--accent), transparent 68%))
    sepia(0.04) saturate(1.04) brightness(1.03);
}

.game-portal:hover .portal-frame,
.game-portal:focus-visible .portal-frame,
.portal-item.is-active .portal-frame {
  border: 0;
  box-shadow:
    0 1.7rem 2.8rem rgba(0, 0, 0, 0.65),
    0 0 1.3rem color-mix(in srgb, var(--accent), transparent 72%),
    inset 0 0 3.2rem rgba(0, 0, 0, 0.36);
}

.gallery-shell::after {
  right: -4rem;
  bottom: -1.15rem;
  left: -4rem;
  z-index: 1;
  height: 5rem;
  background: url("/assets/environment/gallery-ground-v3.webp") center bottom / 100% auto no-repeat;
  clip-path: none;
  filter: drop-shadow(0 -0.35rem 0.4rem rgba(0, 0, 0, 0.34));
  opacity: 0.98;
}

/* Authored poster layers: every layer is sourced from the corresponding game. */
.portal-artwork__overlay {
  z-index: 1;
  object-position: var(--overlay-position);
  transform: scale(var(--overlay-scale));
  pointer-events: none;
}

.portal-artwork__foreground {
  z-index: 2;
  object-position: var(--foreground-position);
  transform: scale(var(--foreground-scale));
  pointer-events: none;
}

.portal-item[data-game-id="iron-horizon"] .portal-artwork > img:first-child {
  filter: saturate(1.08) contrast(1.1) brightness(0.96) sepia(0.08);
}

.portal-item[data-game-id="iron-horizon"] .portal-artwork__overlay {
  top: 19%;
  right: -24%;
  bottom: -4%;
  left: -24%;
  width: 148%;
  height: 85%;
  object-fit: cover;
  object-position: var(--overlay-position);
  filter: saturate(1.08) contrast(1.17) brightness(0.88) sepia(0.3);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.5) 13%, #000 27%, #000 93%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.5) 13%, #000 27%, #000 93%, transparent 100%);
}

.portal-item[data-game-id="orbitfall"] .portal-artwork > img:first-child {
  filter: saturate(1.16) contrast(1.08) brightness(0.98);
}

.portal-item[data-game-id="orbitfall"] .portal-artwork__overlay {
  top: 20%;
  right: -10%;
  bottom: auto;
  left: -10%;
  width: 120%;
  height: 54%;
  object-fit: contain;
  object-position: var(--overlay-position);
  filter:
    saturate(0.9)
    contrast(0.98)
    brightness(0.92)
    drop-shadow(0 1.15rem 1.35rem rgba(1, 2, 12, 0.92))
    drop-shadow(0 0 1.2rem color-mix(in srgb, var(--accent), transparent 40%));
}

.portal-item[data-game-id="orbitfall"] .portal-artwork__foreground {
  top: auto;
  right: -50%;
  bottom: 4%;
  left: -50%;
  width: 200%;
  height: 38%;
  object-fit: contain;
  object-position: var(--foreground-position);
  filter:
    saturate(0.84)
    contrast(1.1)
    brightness(0.92)
    drop-shadow(0 0.7rem 0.8rem rgba(0, 0, 0, 0.9))
    drop-shadow(0 0 0.65rem rgba(77, 172, 217, 0.44));
}

.portal-item[data-game-id="afterlight"] .portal-artwork > img:first-child {
  filter: saturate(1.04) contrast(1.04) brightness(0.98) sepia(0.03);
}

.portal-item[data-game-id="afterlight"] .portal-artwork__foreground {
  top: auto;
  right: -12%;
  bottom: 3%;
  left: -12%;
  width: 124%;
  height: 47%;
  object-fit: cover;
  object-position: var(--foreground-position);
  filter: saturate(0.86) contrast(1.08) brightness(0.77);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.35) 18%, #000 42% 100%);
  mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.35) 18%, #000 42% 100%);
  opacity: 0.88;
}

.game-portal:hover .portal-artwork__overlay,
.game-portal:focus-visible .portal-artwork__overlay,
.portal-item.is-active .portal-artwork__overlay {
  transform: scale(calc(var(--overlay-scale) * 1.018));
}

.game-portal:hover .portal-artwork__foreground,
.game-portal:focus-visible .portal-artwork__foreground,
.portal-item.is-active .portal-artwork__foreground {
  transform: scale(calc(var(--foreground-scale) * 1.018));
}

/* Mirrored botanical growth keeps a repeated frame from reading as a clone stamp. */
.portal-item:nth-child(even) .portal-frame-art {
  transform: scaleX(-1);
}

.portal-item:nth-child(3) .portal-frame-art {
  filter:
    drop-shadow(0 0.45rem 0.3rem rgba(0, 0, 0, 0.82))
    drop-shadow(0 1.1rem 0.9rem rgba(0, 0, 0, 0.54))
    drop-shadow(0 0 0.55rem color-mix(in srgb, var(--accent), transparent 68%))
    sepia(0.02) saturate(0.82) brightness(0.91);
}

.portal-item[data-game-id="iron-horizon"] .portal-frame-art,
.portal-item[data-game-id="gnome-wars"] .portal-frame-art {
  filter:
    drop-shadow(0 0.45rem 0.3rem rgba(0, 0, 0, 0.84))
    drop-shadow(0 1.1rem 0.9rem rgba(0, 0, 0, 0.58))
    drop-shadow(0 0 0.48rem color-mix(in srgb, var(--accent), transparent 75%))
    sepia(0.18) saturate(0.88) brightness(0.84) contrast(1.08);
}

.portal-item[data-game-id="afterlight"] .portal-frame-art {
  filter:
    drop-shadow(0 0.45rem 0.3rem rgba(0, 0, 0, 0.84))
    drop-shadow(0 1.1rem 0.9rem rgba(0, 0, 0, 0.56))
    drop-shadow(0 0 0.48rem color-mix(in srgb, var(--accent), transparent 74%))
    sepia(0.15) saturate(0.76) brightness(0.84) contrast(1.05);
}

/* Each painted world lends a little of its light to the shared gateway. */
.portal-item[data-game-id="iron-horizon"] .portal-frame {
  box-shadow:
    0 1.2rem 2.5rem rgba(0, 0, 0, 0.72),
    0 0 1rem rgba(196, 126, 55, 0.24),
    inset 0 0 2.7rem rgba(190, 116, 47, 0.24);
}

.portal-item[data-game-id="orbitfall"] .portal-frame {
  box-shadow:
    0 1.2rem 2.5rem rgba(0, 0, 0, 0.72),
    0 0 1rem rgba(72, 145, 193, 0.28),
    inset 0 0 2.8rem rgba(53, 130, 181, 0.3);
}

.portal-item[data-game-id="afterlight"] .portal-frame {
  box-shadow:
    0 1.2rem 2.5rem rgba(0, 0, 0, 0.72),
    0 0 1rem rgba(180, 62, 158, 0.3),
    inset 0 0 2.8rem rgba(172, 50, 145, 0.3);
}

.portal-artwork::before {
  position: absolute;
  inset: 0;
  z-index: 3;
  content: "";
  background:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 160 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.035 .08' numOctaves='3' seed='13'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)' opacity='.28'/%3E%3C/svg%3E"),
    linear-gradient(112deg, rgba(224, 191, 128, 0.08), transparent 36% 70%, rgba(25, 14, 10, 0.12));
  mix-blend-mode: soft-light;
  opacity: 0.22;
  pointer-events: none;
}

.portal-base {
  position: absolute;
  right: -8%;
  bottom: -0.8rem;
  left: -8%;
  z-index: 7;
  height: 5.6rem;
  background-image: url("/assets/environment/gallery-ground-v3.webp");
  background-position: var(--base-position) bottom;
  background-size: 500% 400%;
  background-repeat: no-repeat;
  filter:
    drop-shadow(0 -0.18rem 0.28rem rgba(0, 0, 0, 0.52))
    drop-shadow(0 0 0.55rem color-mix(in srgb, var(--accent), transparent 77%));
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.25) 22%, #000 48% 100%);
  mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.25) 22%, #000 48% 100%);
  opacity: 0.96;
  pointer-events: none;
}

.portal-item::after {
  position: absolute;
  right: 8%;
  bottom: 1.25rem;
  left: 8%;
  z-index: 1;
  height: 2.3rem;
  border-radius: 50%;
  content: "";
  background: color-mix(in srgb, var(--accent), transparent 66%);
  filter: blur(1.15rem);
  opacity: 0.42;
  pointer-events: none;
}

.portal-item::before {
  position: absolute;
  inset: 11% -12% 3%;
  z-index: 0;
  border-radius: 42%;
  content: "";
  background:
    radial-gradient(ellipse at 50% 72%, color-mix(in srgb, var(--accent), transparent 72%), transparent 48%),
    linear-gradient(90deg, transparent, rgba(224, 215, 184, 0.07), transparent);
  filter: blur(1.15rem);
  opacity: 0.62;
  pointer-events: none;
}

@media (max-width: 767px) {
  .portal-item:not(.is-active) .portal-heading,
  .portal-item:not(.is-active) .portal-footer,
  .portal-item:not(.is-active) .portal-crest {
    opacity: 0;
  }
}

.portal-artwork--sealed {
  background:
    radial-gradient(ellipse at 50% 42%, color-mix(in srgb, var(--accent), transparent 61%), transparent 39%),
    linear-gradient(180deg, #1b1812 0%, #0c0807 100%);
}

.sealed-glow {
  position: absolute;
  inset: 8% 7% 0;
  background:
    linear-gradient(90deg, transparent 47.5%, color-mix(in srgb, var(--accent), #ffbc6c 35%) 49.4% 50.6%, transparent 52.5%),
    radial-gradient(ellipse at 50% 58%, color-mix(in srgb, var(--accent), transparent 38%), transparent 42%);
  filter: blur(0.22rem);
  opacity: 0.72;
}

.sealed-door {
  inset: 3% 5% -3%;
  width: auto;
  height: auto;
  border: 2px solid color-mix(in srgb, var(--accent), #d5aa65 46%);
  border-radius: 50% 50% 2px 2px / 15% 15% 2px 2px;
  background:
    linear-gradient(90deg, transparent 49.25%, rgba(255, 176, 98, 0.58) 49.7% 50.3%, transparent 50.75%),
    repeating-linear-gradient(90deg, rgba(230, 192, 128, 0.04) 0 3px, transparent 3px 30px),
    linear-gradient(90deg, #120908, #3a1d16 22%, #1c0c0a 49.5%, #3a1d16 78%, #120908);
  box-shadow:
    inset 0 0 3rem #050302,
    inset 0 0 0 0.45rem rgba(10, 5, 4, 0.74),
    0 0 1.8rem color-mix(in srgb, var(--accent), transparent 62%);
  transform: none;
}

.sealed-door::before {
  top: 53%;
  right: 8.5%;
}

.sealed-door i {
  top: 11%;
  bottom: 5%;
  background: rgba(235, 194, 123, 0.1);
}

.sealed-door i:nth-child(1) { left: 20%; }
.sealed-door i:nth-child(2) { left: 40%; }
.sealed-door i:nth-child(3) { left: 60%; }
.sealed-door i:nth-child(4) { left: 80%; }

.sealed-door > svg {
  position: absolute;
  top: 38%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 4rem;
  aspect-ratio: 1;
  border: 1px solid rgba(228, 189, 119, 0.56);
  border-radius: 50%;
  fill: #d3a36d;
  background: rgba(18, 8, 7, 0.86);
  padding: 0.95rem;
  box-shadow:
    0 0 0 0.35rem rgba(9, 5, 4, 0.82),
    0 0 1.35rem color-mix(in srgb, var(--accent), transparent 55%);
  transform: translate(-50%, -50%);
}

.sealed-copy {
  bottom: 20%;
  z-index: 3;
  color: #e0bb87;
  text-shadow: 0 2px 8px #000;
  opacity: 0.78;
}

.showcase-strip {
  min-height: 4.9rem;
  background:
    linear-gradient(180deg, rgba(16, 16, 12, 0.97), rgba(7, 9, 7, 1)),
    #090b09;
}

/* Gnome Wars status page */
.detail-page {
  min-height: 100svh;
  background:
    radial-gradient(circle at 50% 45%, rgba(90, 69, 36, 0.18), transparent 24rem),
    linear-gradient(145deg, #101710, #070a08 68%);
}

.detail-main {
  display: grid;
  place-items: center;
  min-height: calc(100svh - 5.1rem);
  padding: 4rem var(--page-gutter);
}

.field-report {
  width: min(100%, 62rem);
  padding: clamp(2rem, 6vw, 5.5rem);
  border: 1px solid var(--line);
  text-align: center;
  background: rgba(12, 17, 13, 0.76);
  box-shadow: 0 2rem 6rem rgba(0, 0, 0, 0.4);
}

.field-report h1 {
  margin-bottom: 1.4rem;
}

.field-report h1 em {
  color: #d2a95e;
  font-family: Georgia, serif;
  font-weight: 400;
  text-transform: none;
}

.field-report > p {
  max-width: 42rem;
  margin-right: auto;
  margin-bottom: 2rem;
  margin-left: auto;
  color: #bdb8aa;
  line-height: 1.75;
}

.field-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.5rem;
  padding: 1.2rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: #c4ac77;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.back-link {
  display: inline-flex;
  gap: 0.7rem;
  margin-top: 2rem;
  color: #e6d7b6;
  font-family: "Cinzel", Georgia, serif;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@media (max-width: 1279px) {
  .gallery-shell {
    margin-inline: clamp(0.75rem, 2vw, 1.4rem);
  }

  .portal-item {
    flex-basis: clamp(238px, 29vw, 310px);
    height: clamp(455px, 58vh, 560px);
  }

  .portal-heading strong {
    font-size: clamp(1.2rem, 2vw, 1.65rem);
  }

  .gallery-hint {
    display: block;
  }

  .gallery-control--prev { left: -0.25rem; }
  .gallery-control--next { right: -0.25rem; }

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

  .showcase-principles {
    display: none;
  }
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .header-note {
    display: none;
  }

  nav {
    justify-content: flex-end;
    gap: clamp(1rem, 4vw, 2rem);
  }

  .portal-item {
    flex-basis: min(64vw, 330px);
  }

  .studio-section {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .showcase-strip {
    display: none;
  }
}

@media (max-width: 640px) {
  :root {
    --page-gutter: 1.05rem;
    --gallery-gap: 0.75rem;
  }

  main,
  .site-header,
  .showcase {
    width: 100vw;
    max-width: 100vw;
  }

  .site-header {
    min-height: 4.35rem;
    padding-top: 0.58rem;
    padding-bottom: 0.58rem;
  }

  .brand-mark {
    width: 1.72rem;
    height: 2.1rem;
  }

  .brand {
    gap: 0.5rem;
  }

  .brand strong {
    font-size: 0.68rem;
  }

  .brand small {
    margin-top: 0.24rem;
    font-size: 0.43rem;
    letter-spacing: 0.36em;
  }

  nav {
    gap: 0.85rem;
  }

  nav a {
    font-family: "Inter", sans-serif;
    font-size: 0.53rem;
    font-weight: 600;
    letter-spacing: 0.09em;
  }

  nav a:first-child {
    display: none;
  }

  .showcase {
    min-height: calc(100svh - 4.35rem);
    padding-top: 1.3rem;
    padding-bottom: 1rem;
  }

  .hero-copy {
    width: 100%;
    margin-bottom: -0.2rem;
    padding-inline: 1rem;
  }

  .eyebrow {
    gap: 0.55rem;
    margin-bottom: 0.45rem;
    font-size: 0.51rem;
    letter-spacing: 0.1em;
  }

  .eyebrow span {
    width: 1.1rem;
  }

  h1 {
    margin-bottom: 0.45rem;
    font-size: clamp(1.62rem, 7.1vw, 1.92rem);
    line-height: 1.02;
    letter-spacing: 0;
  }

  h1 span {
    display: block;
  }

  .hero-support {
    max-width: 20rem;
    font-size: 0.7rem;
    line-height: 1.5;
  }

  .collection-cta {
    min-width: 13.75rem;
    min-height: 2.55rem;
    margin-top: 0.65rem;
    padding: 0.5rem 1rem;
    font-size: 0.62rem;
  }

  .collection-cta::before,
  .collection-cta::after {
    width: 1rem;
  }

  .gallery-shell {
    margin-inline: 0;
  }

  .portal-gallery {
    width: calc(100% + var(--page-gutter));
    padding: 0.9rem var(--page-gutter) 0.7rem 0;
    scroll-padding-inline: 0 var(--page-gutter);
  }

  .portal-item {
    flex-basis: min(82vw, 335px);
    height: clamp(455px, 67svh, 570px);
  }

  .portal-heading {
    top: 4.4rem;
  }

  .portal-heading strong {
    font-size: clamp(1.25rem, 5.4vw, 1.62rem);
  }

  .portal-genre {
    font-size: 0.52rem;
  }

  .portal-action {
    min-height: 2.5rem;
    font-size: 0.62rem;
  }

  .portal-crest {
    width: 3.1rem;
  }

  .gallery-control {
    top: 55%;
    bottom: auto;
    width: 2.25rem;
    transform: translateY(-50%);
  }

  .gallery-control--prev { left: 0.2rem; }
  .gallery-control--next { right: 0.2rem; }

  .gallery-hint {
    margin: 0.2rem 3rem 0;
    font-size: 0.5rem;
  }

  .foreground {
    height: 3rem;
  }

  .studio-section {
    min-height: 0;
    padding-top: 5rem;
    padding-bottom: 5rem;
  }

  .studio-intro h2 {
    font-size: 2.2rem;
  }

  .studio-copy > p {
    font-size: 0.92rem;
  }

  .studio-stats span {
    padding: 1rem 0.4rem;
    font-size: 0.48rem;
  }

  footer {
    flex-direction: column;
    gap: 1.25rem;
    justify-content: center;
    text-align: center;
  }

  .footer-brand {
    transform-origin: center;
  }

  footer p {
    font-size: 0.52rem;
  }

  .detail-main {
    min-height: calc(100svh - 4.35rem);
    padding: 2rem 1rem;
  }

  .field-report {
    padding: 2.4rem 1.2rem;
  }
}

@media (max-height: 760px) and (min-width: 641px) {
  .showcase {
    padding-top: 1rem;
  }

  .hero-copy {
    margin-bottom: 0.5rem;
  }

  h1 {
    font-size: clamp(2rem, 4vw, 3.4rem);
  }

  .portal-item {
    height: clamp(400px, 57vh, 465px);
  }

}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .game-portal:hover,
  .game-portal:focus-visible,
  .portal-item.is-active .game-portal {
    transform: none;
  }
}

/* Showcase v4 — reference-fidelity architecture and optical geometry */
.environment-image {
  background-position: 50% 47%;
  filter: saturate(0.8) brightness(0.69) contrast(1.12);
}

.environment-haze {
  background:
    radial-gradient(ellipse at 50% 18%, rgba(10, 14, 14, 0.44) 0%, rgba(12, 16, 15, 0.2) 32%, transparent 59%),
    linear-gradient(180deg, rgba(5, 8, 8, 0.27) 0%, rgba(8, 11, 9, 0.02) 37%, rgba(5, 8, 6, 0.44) 100%),
    radial-gradient(ellipse at 51% 45%, transparent 23%, rgba(4, 7, 5, 0.28) 96%),
    linear-gradient(90deg, rgba(4, 7, 5, 0.32), transparent 24%, transparent 76%, rgba(4, 7, 5, 0.31));
}

.site-header {
  position: relative;
  grid-template-columns: minmax(19rem, 1fr) auto minmax(19rem, 1fr);
  width: min(100%, 1760px);
  height: 4.75rem;
  min-height: 0;
  padding: 0 var(--page-gutter);
  border-bottom: 0;
  background: transparent;
  backdrop-filter: none;
  overflow: visible;
}

.site-header::after {
  position: absolute;
  right: clamp(20rem, 25vw, 28rem);
  bottom: 0.18rem;
  left: clamp(20rem, 25vw, 28rem);
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(210, 172, 96, 0.46) 14%, rgba(210, 172, 96, 0.46) 86%, transparent);
}

.site-header .brand {
  gap: 0.85rem;
  transform: translateY(0.36rem);
}

.site-header .brand-mark {
  width: 4.35rem;
  height: 4.8rem;
  stroke-width: 1.55;
  filter: drop-shadow(0 0.18rem 0.2rem rgba(0, 0, 0, 0.72));
}

.site-header .brand strong {
  font-size: 1.72rem;
  letter-spacing: 0.105em;
  text-shadow: 0 1px 0 #f5e4ba, 0 3px 9px rgba(0, 0, 0, 0.82);
}

.site-header .brand small {
  margin-top: 0.38rem;
  font-size: 0.7rem;
  letter-spacing: 0.48em;
}

.site-header nav {
  align-self: stretch;
  gap: clamp(2.4rem, 3.3vw, 3.55rem);
}

.site-header nav a {
  display: grid;
  place-items: center;
  padding: 0.55rem 0 0;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
}

.site-header nav a::after {
  bottom: 0.17rem;
  box-shadow: 0 0 0.45rem rgba(211, 166, 79, 0.42);
}

.header-note {
  display: none;
}

.header-signature {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 0.9rem;
  color: #b8a57d;
  font-family: "Cinzel", Georgia, serif;
  text-align: right;
  text-transform: uppercase;
  transform: translateY(0.12rem);
}

.header-signature span {
  display: grid;
  gap: 0.22rem;
}

.header-signature b {
  color: #d8bd84;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.13em;
}

.header-signature small {
  color: #8f8b7b;
  font-family: Georgia, serif;
  font-size: 0.54rem;
  letter-spacing: 0.12em;
}

.header-signature svg {
  width: 2.35rem;
  height: 2.7rem;
  fill: rgba(195, 148, 65, 0.08);
  stroke: #bd9348;
  stroke-width: 1.15;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.76));
}

.showcase {
  min-height: calc(100svh - 4.75rem);
  padding: clamp(2rem, 3.8vh, 2.25rem) 0 0;
}

.hero-copy {
  width: min(100% - 2rem, 76rem);
  margin-bottom: -2.58rem;
}

.eyebrow {
  gap: 1rem;
  margin-bottom: 0.24rem;
  font-size: clamp(0.62rem, 0.72vw, 0.73rem);
}

.eyebrow span {
  position: relative;
  width: clamp(2rem, 3.15vw, 3.3rem);
}

.eyebrow span::after {
  position: absolute;
  top: 50%;
  right: -0.2rem;
  width: 0.34rem;
  aspect-ratio: 1;
  border: 1px solid #b98a3d;
  content: "";
  background: #1a1812;
  transform: translateY(-50%) rotate(45deg);
}

.eyebrow span:last-child::after {
  right: auto;
  left: -0.2rem;
}

h1 {
  max-width: 60rem;
  margin-bottom: 0.78rem;
  color: transparent;
  background: linear-gradient(180deg, #fff1ce 4%, #e7c893 48%, #b88951 88%);
  background-clip: text;
  -webkit-background-clip: text;
  font-size: clamp(2.75rem, 3.8vw, 4rem);
  line-height: 1;
  letter-spacing: -0.012em;
  white-space: nowrap;
  text-shadow:
    0 1px 0 rgba(255, 244, 213, 0.85),
    0 2px 0 rgba(91, 59, 26, 0.92),
    0 3px 0 rgba(48, 30, 15, 0.88),
    0 7px 20px rgba(0, 0, 0, 0.88);
  transform: scaleX(0.78);
  transform-origin: center;
}

.hero-support {
  max-width: 38.5rem;
  color: #d8c299;
  font-size: clamp(0.87rem, 1vw, 1rem);
  line-height: 1.4;
}

.collection-cta {
  min-width: 19.7rem;
  min-height: 3.25rem;
  margin-top: 0.62rem;
  border: 1px solid #b78234;
  clip-path: polygon(7% 0, 93% 0, 93% 5%, 98% 5%, 98% 18%, 100% 24%, 100% 76%, 98% 82%, 98% 95%, 93% 95%, 93% 100%, 7% 100%, 7% 95%, 2% 95%, 2% 82%, 0 76%, 0 24%, 2% 18%, 2% 5%, 7% 5%);
  background:
    linear-gradient(90deg, rgba(185, 132, 49, 0.16), transparent 17% 83%, rgba(185, 132, 49, 0.16)),
    linear-gradient(180deg, #342519, #11110d 45%, #090a08);
  box-shadow:
    0 0 0 2px rgba(7, 8, 6, 0.96),
    0 0 0 4px rgba(151, 105, 39, 0.72),
    0 0 0 5px rgba(227, 183, 91, 0.23),
    0 0.85rem 1.8rem rgba(0, 0, 0, 0.56),
    inset 0 0 0 3px rgba(218, 175, 91, 0.12),
    inset 0 0 1.25rem rgba(211, 161, 74, 0.1);
}

.collection-cta::before {
  top: 0.28rem;
  right: 0.38rem;
  bottom: 0.28rem;
  left: 0.38rem;
  width: auto;
  height: auto;
  border: 1px solid rgba(213, 165, 76, 0.48);
  background: transparent;
}

.collection-cta::after {
  top: 50%;
  right: -0.42rem;
  left: -0.42rem;
  width: auto;
  height: 0.52rem;
  border-right: 1px solid #be8c3f;
  border-left: 1px solid #be8c3f;
  background: transparent;
  transform: translateY(-50%);
}

.gallery-shell {
  margin-inline: clamp(2.85rem, 3.65vw, 4rem);
}

.portal-gallery {
  gap: clamp(0.6rem, 0.7vw, 0.75rem);
  padding-top: 0.2rem;
}

.portal-frame-art {
  display: none;
}

.portal-architecture {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: block;
  pointer-events: none;
  filter:
    drop-shadow(0 0.38rem 0.24rem rgba(0, 0, 0, 0.88))
    drop-shadow(0 1.15rem 0.85rem rgba(0, 0, 0, 0.52));
  transition: filter 380ms ease;
}

.portal-architecture svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.portal-architecture path {
  vector-effect: non-scaling-stroke;
}

.gateway-glow path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 25;
  opacity: 0.24;
}

.gateway-shadow,
.gateway-metal,
.gateway-patina,
.gateway-highlight,
.gateway-blocks,
.gateway-accent {
  fill: none;
}

.gateway-shadow {
  stroke: rgba(5, 5, 4, 0.98);
  stroke-width: 43;
}

.gateway-metal {
  stroke-width: 31;
}

.gateway-patina {
  stroke-width: 18;
  opacity: 0.9;
}

.gateway-highlight {
  stroke: rgba(244, 213, 151, 0.66);
  stroke-width: 2.4;
  filter: drop-shadow(0 0 2px rgba(252, 215, 135, 0.34));
}

.gateway-blocks {
  stroke: rgba(238, 206, 143, 0.24);
  stroke-width: 24;
  stroke-dasharray: 24 4 37 5 18 4;
  stroke-linecap: butt;
  opacity: 0.68;
}

.gateway-accent {
  stroke: color-mix(in srgb, var(--accent), #f2d49a 26%);
  stroke-width: 3;
  opacity: 0.78;
  filter: drop-shadow(0 0 4px color-mix(in srgb, var(--accent), transparent 28%));
}

.column-body {
  stroke: #0b0906;
  stroke-width: 3;
}

.column-inset {
  fill: rgba(24, 24, 18, 0.92);
  stroke: rgba(216, 179, 110, 0.48);
  stroke-width: 2;
}

.column-carving,
.crown-line,
.plinth-line {
  fill: none;
  stroke: rgba(230, 198, 133, 0.48);
  stroke-width: 1.35;
}

.column-band {
  fill: #4d3b24;
  stroke: rgba(232, 197, 128, 0.42);
  stroke-width: 1.1;
}

.column-cap,
.crown-metal,
.plinth-metal {
  stroke: rgba(236, 205, 142, 0.56);
  stroke-width: 1.3;
}

.plinth-shadow {
  fill: rgba(4, 5, 4, 0.95);
}

.gateway-vines path {
  fill: none;
  stroke: #25331e;
  stroke-width: 4.4;
  stroke-linecap: round;
  filter: drop-shadow(1px 2px 1px rgba(0, 0, 0, 0.92));
}

.gateway-vines path:nth-child(n + 3) {
  stroke: #49603a;
  stroke-width: 2.4;
}

.gateway-vines--1 {
  transform: translateX(4px) scaleX(-1);
  transform-origin: center;
}

.gateway-vines--2 {
  opacity: 0.58;
  transform: translateY(8px);
}

.portal-frame {
  inset: 4.65rem 1.38rem 2.95rem;
  border-radius: 50% 50% 0.12rem 0.12rem / 16.5% 16.5% 0.12rem 0.12rem;
  clip-path: none;
  box-shadow:
    0 1.15rem 2.4rem rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(238, 207, 145, 0.21),
    inset 0 0 2.6rem rgba(0, 0, 0, 0.4);
}

.portal-frame::before {
  inset: 0;
  border-color: rgba(238, 211, 158, 0.28);
  border-radius: inherit;
  box-shadow: inset 0 0 0 2px rgba(5, 5, 4, 0.7), inset 0 0 2.2rem rgba(0, 0, 0, 0.28);
}

.portal-inner {
  border-radius: inherit;
}

.portal-crest-mount {
  position: absolute;
  top: 0.22rem;
  left: 50%;
  z-index: 9;
  display: block;
  width: 5.45rem;
  aspect-ratio: 1;
  filter: drop-shadow(0 0.35rem 0.3rem rgba(0, 0, 0, 0.9));
  transform: translateX(-50%);
  pointer-events: none;
}

.portal-crest-mount::before,
.portal-crest-mount::after {
  position: absolute;
  inset: 0;
  content: "";
  clip-path: polygon(50% 0, 61% 23%, 85% 13%, 77% 38%, 100% 50%, 77% 62%, 85% 87%, 61% 77%, 50% 100%, 39% 77%, 15% 87%, 23% 62%, 0 50%, 23% 38%, 15% 13%, 39% 23%);
  background: linear-gradient(135deg, #2a1d10, #c09855 28%, #372716 53%, #9a713a 76%, #1b130c);
}

.portal-crest-mount::before,
.portal-crest-mount::after {
  display: none;
}

.portal-crest-mount::after {
  inset: 0.43rem;
  background: #15120d;
}

.portal-crest {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: 3.75rem;
  border: 1px solid color-mix(in srgb, var(--accent), #fff0c1 52%);
  border-radius: 0;
  clip-path: polygon(50% 0, 88% 23%, 82% 74%, 50% 100%, 18% 74%, 12% 23%);
  background:
    linear-gradient(35deg, transparent 45%, rgba(255, 255, 255, 0.28) 46% 51%, transparent 52%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.5), transparent 28%),
    radial-gradient(circle at 40% 32%, color-mix(in srgb, var(--accent), #fff 32%), color-mix(in srgb, var(--accent), #16110c 64%) 72%);
  box-shadow:
    0 0 1.6rem color-mix(in srgb, var(--accent), transparent 22%),
    inset 0 0 0 3px rgba(255, 239, 198, 0.11),
    inset -0.55rem -0.7rem 0.9rem rgba(0, 0, 0, 0.5);
  transform: translate(-50%, -50%);
}

.portal-crest::before {
  inset: 12%;
  border-color: rgba(255, 245, 216, 0.24);
  border-radius: 0;
  clip-path: inherit;
}

.portal-crest::after {
  inset: 0;
  border: 0;
  border-radius: 0;
  background: conic-gradient(from 30deg at 50% 45%, transparent, rgba(255, 255, 255, 0.11), transparent 22%, rgba(0, 0, 0, 0.14), transparent 48%, rgba(255, 255, 255, 0.08), transparent 75%);
  transform: none;
}

.portal-crest svg {
  width: 39%;
}

.game-portal:hover .portal-crest,
.game-portal:focus-visible .portal-crest,
.portal-item.is-active .portal-crest {
  transform: translate(-50%, -50%) scale(1.045);
}

.game-portal:hover .portal-architecture,
.game-portal:focus-visible .portal-architecture,
.portal-item.is-active .portal-architecture {
  filter:
    drop-shadow(0 0.4rem 0.26rem rgba(0, 0, 0, 0.86))
    drop-shadow(0 1.15rem 0.9rem rgba(0, 0, 0, 0.5))
    drop-shadow(0 0 0.5rem color-mix(in srgb, var(--accent), transparent 58%));
}

.portal-heading {
  top: calc(18% - 0.1rem);
}

.portal-heading strong {
  max-width: 91%;
  font-size: clamp(1rem, 1.38vw, 1.58rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: 0.008em;
}

.portal-genre {
  margin-top: 0.42rem;
  color: #e1d4bd;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(0.5rem, 0.54vw, 0.61rem);
  font-weight: 400;
  letter-spacing: 0.1em;
}

.portal-footer {
  bottom: 4.18rem;
}

.portal-action {
  width: 64%;
  min-height: 2.52rem;
  font-size: clamp(0.55rem, 0.62vw, 0.69rem);
  font-weight: 500;
}

.portal-base {
  right: -3%;
  bottom: -0.2rem;
  left: -3%;
  height: 4.45rem;
  background-size: 500% auto;
  filter:
    drop-shadow(0 -0.16rem 0.25rem rgba(0, 0, 0, 0.46))
    drop-shadow(0 0 0.7rem color-mix(in srgb, var(--accent), transparent 69%));
}

.portal-base::before,
.portal-base::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.portal-base::before {
  right: 7%;
  bottom: 0.55rem;
  left: 7%;
  height: 1.4rem;
  background:
    radial-gradient(ellipse at 12% 70%, #544933 0 7%, #191a12 8% 12%, transparent 13%),
    radial-gradient(ellipse at 34% 45%, #4a432f 0 6%, #171810 7% 11%, transparent 12%),
    radial-gradient(ellipse at 67% 68%, #5a4d34 0 8%, #181810 9% 13%, transparent 14%),
    radial-gradient(ellipse at 88% 54%, #3e3b29 0 6%, #15160f 7% 11%, transparent 12%);
  opacity: 0.88;
}

.portal-base::after {
  right: 10%;
  bottom: 0.9rem;
  left: 10%;
  height: 1.9rem;
  border-bottom: 0.22rem solid #222719;
  border-radius: 50%;
  box-shadow: 0 0.55rem 0 -0.38rem color-mix(in srgb, var(--accent), transparent 42%);
  transform: rotate(-2deg);
}

.portal-item:nth-child(even) .portal-base::after {
  transform: scaleX(-1) rotate(-3deg);
}

.gallery-shell::after {
  right: -4rem;
  bottom: -0.52rem;
  left: -4rem;
  height: 3.75rem;
  background-size: 100% auto;
  opacity: 0.96;
}

.showcase-strip {
  min-height: 4.2rem;
  padding-top: 0.48rem;
  padding-bottom: 0.48rem;
}

.showcase-copyright,
.showcase-motto {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.showcase-motto {
  justify-content: flex-end;
}

.strip-sigil {
  width: 1.7rem;
  height: 1.7rem;
  fill: rgba(184, 133, 51, 0.08);
  stroke: #c39440;
  stroke-width: 1.15;
  flex: 0 0 auto;
}

.showcase-principles p > .strip-sigil {
  grid-row: 1 / 3;
  align-self: center;
  width: 1.85rem;
  height: 1.85rem;
}

.strip-sigil--terminal {
  width: 1.55rem;
  height: 1.55rem;
}

@media (min-width: 1280px) {
  .portal-item {
    flex-basis: calc((100% - (clamp(0.6rem, 0.7vw, 0.75rem) * 4)) / 5);
    height: clamp(520px, 65.2vh, 632px);
  }
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .header-signature {
    display: none;
  }

  .site-header::after {
    right: var(--page-gutter);
    left: var(--page-gutter);
  }
}

@media (max-width: 640px) {
  .site-header {
    height: 4.35rem;
    padding-inline: var(--page-gutter);
  }

  .site-header .brand {
    gap: 0.5rem;
    transform: none;
  }

  .site-header .brand-mark {
    width: 1.72rem;
    height: 2.1rem;
  }

  .site-header .brand strong {
    font-size: 0.68rem;
  }

  .site-header .brand small {
    margin-top: 0.24rem;
    font-size: 0.43rem;
    letter-spacing: 0.36em;
  }

  .site-header nav {
    gap: 0.85rem;
  }

  .site-header nav a {
    font-family: "Inter", sans-serif;
    font-size: 0.53rem;
    font-weight: 600;
    letter-spacing: 0.09em;
  }

  .site-header nav a:nth-child(3),
  .site-header nav a:nth-child(4) {
    display: none;
  }

  .showcase {
    min-height: calc(100svh - 4.35rem);
    padding-top: 1.25rem;
  }

  .hero-copy {
    width: 100%;
    margin-bottom: -0.18rem;
  }

  h1 {
    max-width: 21rem;
    font-size: clamp(1.62rem, 7vw, 1.92rem);
    transform: none;
    white-space: normal;
  }

  .portal-gallery {
    --mobile-card-width: min(84vw, 335px);
    width: 100%;
    padding-right: calc((100vw - var(--mobile-card-width)) / 2);
    padding-left: calc((100vw - var(--mobile-card-width)) / 2);
    scroll-padding-inline: calc((100vw - var(--mobile-card-width)) / 2);
  }

  .gallery-shell {
    margin-inline: 0;
  }

  .portal-item {
    flex-basis: var(--mobile-card-width);
  }

  .portal-frame {
    right: 1.3rem;
    left: 1.3rem;
  }

  .portal-crest-mount {
    width: 5rem;
  }

  .portal-heading {
    top: 4.15rem;
  }
}

/* The painted frame replaces the geometric construction above. */
.portal-architecture svg {
  display: none;
}

.portal-architecture .portal-frame-art--reference {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -4%;
  display: block;
  width: 108%;
  height: 100%;
  object-fit: fill;
  filter:
    drop-shadow(0 0.4rem 0.28rem rgba(0, 0, 0, 0.88))
    drop-shadow(0 1.1rem 0.85rem rgba(0, 0, 0, 0.54))
    drop-shadow(0 0 0.42rem color-mix(in srgb, var(--accent), transparent 72%))
    saturate(1.02) brightness(1.03) contrast(1.04);
  transform: none;
  transition: filter 380ms ease;
}

.portal-architecture::before,
.portal-architecture::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.portal-architecture::before {
  right: 12%;
  bottom: 1.35rem;
  left: 12%;
  z-index: 0;
  height: 2.5rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent), transparent 54%);
  filter: blur(1rem);
  opacity: 0.42;
}

.portal-architecture::after {
  top: 4.55rem;
  right: 1.78rem;
  bottom: 3rem;
  left: 1.78rem;
  z-index: 2;
  border: 2px solid color-mix(in srgb, var(--accent), #f2d49a 18%);
  border-radius: 50% 50% 0 0 / 16.5% 16.5% 0 0;
  box-shadow:
    0 0 0.65rem color-mix(in srgb, var(--accent), transparent 47%),
    inset 0 0 0.65rem color-mix(in srgb, var(--accent), transparent 55%);
  mix-blend-mode: screen;
  opacity: 0.34;
}

.game-portal:hover .portal-frame-art--reference,
.game-portal:focus-visible .portal-frame-art--reference,
.portal-item.is-active .portal-frame-art--reference {
  filter:
    drop-shadow(0 0.42rem 0.3rem rgba(0, 0, 0, 0.86))
    drop-shadow(0 1.1rem 0.86rem rgba(0, 0, 0, 0.5))
    drop-shadow(0 0 0.58rem color-mix(in srgb, var(--accent), transparent 54%))
    saturate(1.03) brightness(0.98) contrast(1.05);
}

/* Final fidelity pass: retain the painted world behind type, then let each
   world cast its own color back onto the surrounding architecture. */
.portal-item .portal-inner::before {
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--accent) 14%, rgba(3, 4, 3, 0.62)) 0%,
      rgba(4, 5, 4, 0.2) 17%,
      transparent 34%
    ),
    linear-gradient(180deg, transparent 55%, rgba(3, 4, 3, 0.08) 64%, rgba(3, 4, 3, 0.68) 85%, rgba(3, 4, 3, 0.96) 100%),
    radial-gradient(ellipse at center, transparent 48%, rgba(2, 3, 2, 0.2) 100%);
}

.portal-item[data-game-id="orbitfall"] .portal-inner::before {
  background:
    linear-gradient(180deg, rgba(5, 16, 27, 0.52) 0%, rgba(3, 8, 14, 0.18) 17%, transparent 34%),
    linear-gradient(180deg, transparent 55%, rgba(2, 4, 9, 0.08) 64%, rgba(2, 4, 9, 0.7) 85%, rgba(1, 2, 5, 0.97) 100%),
    radial-gradient(ellipse at center, transparent 48%, rgba(2, 3, 8, 0.24) 100%);
}

.portal-architecture::after {
  z-index: 7;
  border-color: color-mix(in srgb, var(--accent) 72%, #f2d49a);
  box-shadow:
    0 0 0.75rem color-mix(in srgb, var(--accent), transparent 32%),
    inset 0 0 0.85rem color-mix(in srgb, var(--accent), transparent 40%);
  opacity: 0.56;
}

.portal-action {
  isolation: isolate;
  width: 54%;
  border: 0;
  clip-path: none;
  background: transparent;
  box-shadow: none;
}

.portal-action::before,
.portal-action::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.portal-action::before {
  inset: -0.26rem -0.48rem;
  z-index: -2;
  border: 1px solid color-mix(in srgb, var(--accent), #e8cf99 36%);
  clip-path: polygon(9% 0, 91% 0, 96% 12%, 100% 12%, 100% 88%, 96% 88%, 91% 100%, 9% 100%, 4% 88%, 0 88%, 0 12%, 4% 12%);
  background: linear-gradient(180deg, #6d5430, #1a160f 46%, #080907);
  box-shadow: 0 0.4rem 0.85rem rgba(0, 0, 0, 0.62);
}

.portal-action::after {
  inset: 0;
  z-index: -1;
  border: 1px solid color-mix(in srgb, var(--accent), #f0d49b 42%);
  clip-path: polygon(7% 0, 93% 0, 100% 24%, 100% 76%, 93% 100%, 7% 100%, 0 76%, 0 24%);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent), transparent 77%), rgba(8, 8, 7, 0.97)),
    #15130f;
  box-shadow: inset 0 0 0.72rem rgba(255, 226, 164, 0.07);
}

.portal-base {
  bottom: -0.55rem;
  z-index: 5;
  height: 7.25rem;
  background-size: 500% 330%;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.18) 18%, #000 42% 100%);
  mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.18) 18%, #000 42% 100%);
}

.portal-crest {
  width: 4.15rem;
}

/* The reference keeps the arch substantial while the long inward columns are
   much slimmer. Preserve full crowns and rooted bases, but trim only that
   repeated mid-column mass so neighboring paintings share more air. */
.portal-architecture .portal-frame-art--reference {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath fill='white' d='M0 0h100v30H0zM0 30h9v54H0zM91 30h9v54h-9zM0 84h100v16H0z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath fill='white' d='M0 0h100v30H0zM0 30h9v54H0zM91 30h9v54h-9zM0 84h100v16H0z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
  filter:
    drop-shadow(0 0.4rem 0.28rem rgba(0, 0, 0, 0.88))
    drop-shadow(0 1.1rem 0.85rem rgba(0, 0, 0, 0.54))
    drop-shadow(0 0 0.58rem color-mix(in srgb, var(--accent), transparent 54%))
    saturate(1.03) brightness(1.04) contrast(1.04);
}

.portal-frame {
  right: 1.05rem;
  left: 1.05rem;
}

.portal-crest-mount::before {
  inset: 0.56rem;
  z-index: 0;
  display: block;
  background: linear-gradient(135deg, #24180d, #c59b55 24%, #4b341c 52%, #a2783e 76%, #19110a);
  filter: drop-shadow(0 0.16rem 0.12rem rgba(0, 0, 0, 0.86));
  opacity: 0.88;
}

@media (min-width: 641px) {
  h1 {
    transform: scaleX(0.7);
  }
}

@media (min-width: 901px) {
  .site-header nav {
    justify-content: space-between;
    gap: 0;
    width: clamp(26rem, 34.5vw, 36.5rem);
  }
}
