﻿@import url("https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap");

:root {
  --bg: #08121b;
  --text: #e7eef8;
  --muted: #bdc9d9;
  --gold: #d1aa71;
  --gold-bright: #f3d6a6;
  --line: rgba(183, 199, 219, 0.34);
  --card: rgba(7, 16, 26, 0.72);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", sans-serif;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 2px;
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: none;
}

.chrome {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 25;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.7rem;
  padding: 0.46rem 1rem;
  border-bottom: 1px solid rgba(140, 160, 182, 0.34);
  border-radius: 0;
  background: rgba(5, 11, 20, 0.76);
  backdrop-filter: blur(8px);
}

.logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 0.72rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.92rem;
  font-weight: 700;
  color: #f2f6ff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}

.logo img {
  width: 72px;
  height: 72px;
  min-width: 72px;
  min-height: 72px;
  flex: 0 0 72px;
  object-fit: cover;
  border-radius: 10px;
  border: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
}

.logo span {
  white-space: nowrap;
}

.menu {
  display: flex;
  gap: 0.45rem;
}

.menu a {
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.72rem;
  font-weight: 700;
  color: #d7e2f1;
  padding: 0.52rem 0.92rem;
  border: 1px solid rgba(183, 199, 219, 0.35);
  border-radius: 8px;
  background: rgba(7, 16, 26, 0.6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: 0.25s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.menu a:hover,
.menu a.is-active {
  color: #f4f8ff;
  border-color: rgba(209, 170, 113, 0.82);
  background: linear-gradient(120deg, rgba(209, 170, 113, 0.28), rgba(143, 178, 199, 0.18));
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}

.scene {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(5rem, 8vw, 6.4rem) 0.9rem 1.2rem;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    #000 12%,
    #000 82%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    #000 12%,
    #000 82%,
    transparent 100%
  );
}

.scene::before {
  content: none;
}

.scene::after {
  content: none;
}

.scene:first-of-type::before {
  content: none;
}

.scene + .scene {
  margin-top: -10vh;
}

.scene:first-of-type {
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 82%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 82%, transparent 100%);
}

.scene:last-of-type {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 12%, #000 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 12%, #000 100%);
}

.scene-shell {
  position: relative;
  z-index: 3;
  width: min(1040px, 100%);
  display: grid;
  justify-items: center;
}

.lore-card {
  width: min(760px, 100%);
  border: 1px solid rgba(183, 199, 219, 0.36);
  border-radius: 10px;
  padding: clamp(1rem, 2.5vw, 1.5rem);
  background: linear-gradient(170deg, rgba(7, 16, 26, 0.5), rgba(7, 16, 26, 0.36));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 16px 30px rgba(0, 0, 0, 0.36);
  position: relative;
  overflow: hidden;
}

.lore-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 18, 30, 0.38), rgba(8, 18, 30, 0.52));
  z-index: 0;
}

.lore-card > * {
  position: relative;
  z-index: 1;
}

.game-frame {
  width: min(920px, 100%);
  border: 2px solid rgba(238, 221, 112, 0.95);
  border-radius: 2px;
  padding: clamp(1.1rem, 2.8vw, 1.9rem);
  background:
    linear-gradient(180deg, rgba(8, 18, 31, 0.82), rgba(8, 18, 31, 0.66)),
    radial-gradient(900px 300px at 22% 16%, rgba(238, 221, 112, 0.08), transparent 70%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 239, 156, 0.38),
    0 14px 28px rgba(0, 0, 0, 0.42);
}

.game-frame .small-label {
  color: #f6da89;
}

.game-frame .quest-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.32rem 0.58rem;
  border: 1px solid rgba(238, 221, 112, 0.5);
  background: rgba(12, 22, 36, 0.72);
  box-shadow: inset 0 0 0 1px rgba(255, 238, 150, 0.14);
}

.game-frame h1 {
  font-size: clamp(2rem, 5.2vw, 4.1rem);
  letter-spacing: 0.05em;
}

.game-rank {
  margin: 0.56rem 0 0;
  font-weight: 700;
  color: #dce6f7;
  letter-spacing: 0.04em;
}

.game-stats {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.game-stats li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(214, 225, 242, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #e5edf9;
  font-size: clamp(0.82rem, 1.45vw, 1.06rem);
}

.game-stats strong {
  color: #f3d678;
  letter-spacing: 0.06em;
  font-family: "Cinzel", serif;
}

.game-desc {
  margin: 1rem 0 0;
  max-width: 62ch;
  color: #d0dbef;
}

.quest-kicker {
  margin: 0.8rem 0 0;
  padding-left: 0.7rem;
  border-left: 2px solid rgba(244, 218, 126, 0.8);
  color: #e2ebfa;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.74rem;
  font-weight: 700;
}

.game-values {
  margin-top: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
}

.game-values span {
  border: 1px solid rgba(238, 221, 112, 0.42);
  background: rgba(14, 27, 45, 0.72);
  color: #f0d68b;
  border-radius: 3px;
  padding: 0.3rem 0.54rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.62rem;
  font-weight: 700;
}

.production-frame {
  width: min(1196px, 100%);
  padding: clamp(1.25rem, 2.9vw, 2.3rem);
}

.scene-2 .scene-shell {
  width: min(1400px, 100%);
}

.production-frame p {
  max-width: none;
}

.alliance-frame {
  width: min(1196px, 100%);
  padding: clamp(1.25rem, 2.9vw, 2.3rem);
}

.scene-3 .scene-shell {
  width: min(1400px, 100%);
}

.alliance-frame p {
  max-width: none;
}

.intro-frame h1 {
  font-size: clamp(1.7rem, 3.3vw, 2.75rem);
  white-space: nowrap;
  letter-spacing: 0.03em;
}

.scene-1 .scene-shell {
  gap: 0.85rem;
}

.about-frame {
  width: min(1180px, 100%);
  padding: clamp(1rem, 2.4vw, 1.45rem);
  background:
    linear-gradient(180deg, rgba(6, 14, 25, 0.84), rgba(6, 14, 25, 0.64)),
    radial-gradient(900px 360px at 10% 8%, rgba(239, 221, 131, 0.08), transparent 68%);
}

.about-frame h2 {
  font-size: clamp(1.36rem, 2.8vw, 2.12rem);
  letter-spacing: 0.06em;
}

.about-subline {
  margin: 0.42rem 0 0.86rem;
  color: #cfdbef;
}

.about-selector {
  display: grid;
  grid-template-columns: minmax(205px, 1fr) minmax(520px, 2.25fr) minmax(190px, 0.9fr);
  gap: 0.6rem;
  align-items: stretch;
}

.about-side {
  border: 1px solid rgba(182, 196, 214, 0.34);
  background: linear-gradient(180deg, rgba(10, 21, 34, 0.84), rgba(10, 21, 34, 0.56));
  border-radius: 8px;
  padding: 0.68rem 0.62rem;
}

.about-lv {
  margin: 0;
  color: #dbe8fb;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.about-side h3 {
  margin: 0.18rem 0 0.45rem;
  font-family: "Cinzel", serif;
  font-size: clamp(1.2rem, 1.8vw, 1.48rem);
  color: #f3dca3;
  letter-spacing: 0.04em;
  line-height: 1.1;
}

#about-member-name {
  white-space: pre-line;
}

.about-bars {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.32rem;
}

.about-stat-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.44rem;
}

.about-bars li span {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #dce7f8;
}

.about-bars li strong {
  color: #f6d98f;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.about-bars li i {
  display: block;
  position: relative;
  margin-top: 0.22rem;
  height: 8px;
  border-radius: 999px;
  background: rgba(205, 220, 240, 0.28);
  overflow: hidden;
}

.about-bars li i::before {
  content: "";
  position: absolute;
  inset: 0;
  width: var(--v, 70%);
  background: linear-gradient(90deg, #f6da8d, #c99a4f);
}

.plain-bars li i {
  display: none;
}

.plain-bars li {
  padding: 0.18rem 0 0.2rem;
  border-bottom: 1px solid rgba(214, 225, 242, 0.24);
}

.about-character {
  position: relative;
  margin: 0;
  min-height: 580px;
  border: 1px solid rgba(226, 207, 126, 0.5);
  border-radius: 8px;
  overflow: hidden;
  background: #101d2c;
  box-shadow: inset 0 0 0 1px rgba(255, 236, 149, 0.2);
}

.about-hud-top {
  position: absolute;
  left: 0.42rem;
  right: 0.42rem;
  top: 0.42rem;
  z-index: 6;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.62rem;
  padding: 0.22rem 0.42rem;
  border: 1px solid rgba(198, 213, 231, 0.4);
  background: linear-gradient(180deg, rgba(185, 196, 206, 0.24), rgba(53, 68, 84, 0.44));
  backdrop-filter: blur(3px);
}

.about-hud-title {
  color: #e7edf7;
  font-family: "Cinzel", serif;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.about-resources {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.28rem;
}

.about-resources span {
  position: relative;
  padding-left: 0.85rem;
  color: #f0f5ff;
  font-size: 0.64rem;
  text-align: right;
  letter-spacing: 0.03em;
}

.about-resources span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 0.52rem;
  height: 0.52rem;
  border-radius: 999px;
  transform: translateY(-50%);
  box-shadow: inset 0 0 0 1px rgba(244, 228, 156, 0.65);
  background: radial-gradient(circle at 35% 35%, #ffea99, #a57a35);
}

.about-character img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 16%;
  display: block;
  filter: contrast(1.06) saturate(0.96) brightness(0.92);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.about-character::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(9, 18, 31, 0.22), rgba(9, 18, 31, 0.7)),
    linear-gradient(90deg, rgba(9, 18, 31, 0.34), transparent 24%, transparent 76%, rgba(9, 18, 31, 0.34));
  pointer-events: none;
}

.about-character::after {
  content: none;
}

.about-nameplate {
  display: block;
  margin-bottom: 0.28rem;
  border: 1px solid rgba(236, 220, 126, 0.42);
  background: linear-gradient(180deg, rgba(10, 20, 34, 0.86), rgba(10, 20, 34, 0.72));
  padding: 0.34rem 0.56rem;
  text-align: center;
  color: #f1f6ff;
  font-family: "Cinzel", serif;
  font-size: clamp(0.98rem, 1.5vw, 1.22rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.15;
  text-transform: none;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.62);
  white-space: pre-line;
}

.about-nav {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 54px;
  height: 54px;
  border: 0;
  background: none;
  transform: translateY(-50%);
  cursor: pointer;
}

.about-nav span {
  display: block;
  position: absolute;
  inset: 0;
}

.about-nav span::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  border-top: 3px solid rgba(219, 238, 254, 0.96);
  border-right: 3px solid rgba(219, 238, 254, 0.96);
  transform-origin: center;
  filter: drop-shadow(0 0 10px rgba(146, 199, 240, 0.5));
}

.about-nav span::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 3px;
  background: linear-gradient(90deg, rgba(158, 208, 245, 0), rgba(190, 224, 250, 0.95));
  border-radius: 999px;
  transform-origin: center;
}

.about-nav-prev {
  left: 0.52rem;
}

.about-nav-prev span::before {
  transform: translate(-52%, -50%) rotate(-135deg);
}

.about-nav-prev span::after {
  transform: translate(-58%, -50%) rotate(180deg);
}

.about-nav-next {
  right: 0.52rem;
}

.about-nav-next span::before {
  transform: translate(-48%, -50%) rotate(45deg);
}

.about-nav-next span::after {
  transform: translate(-42%, -50%) rotate(0deg);
}

.about-nav:hover {
  filter: brightness(1.18);
}

.about-nav:focus-visible {
  outline: 2px solid #f2d680;
  outline-offset: 2px;
}

.about-character.is-switch-next img {
  animation: aboutSwitchNext 0.34s ease;
}

.about-character.is-switch-prev img {
  animation: aboutSwitchPrev 0.34s ease;
}

@keyframes aboutSwitchNext {
  from {
    opacity: 0.4;
    transform: translateX(16px) scale(1.015);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes aboutSwitchPrev {
  from {
    opacity: 0.4;
    transform: translateX(-16px) scale(1.015);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

.about-character figcaption {
  position: absolute;
  left: 0.5rem;
  right: 0.5rem;
  bottom: 4.8rem;
  z-index: 3;
  border: 1px solid rgba(238, 221, 112, 0.48);
  background: rgba(9, 18, 31, 0.74);
  padding: 0.4rem 0.48rem;
  text-align: center;
}

.about-stars {
  display: block;
  color: #f2d57f;
  letter-spacing: 0.26em;
  font-size: 0.68rem;
}

.about-character strong {
  display: block;
  margin-top: 0.16rem;
  color: #f1f6ff;
  font-family: "Cinzel", serif;
  letter-spacing: 0.05em;
  font-size: clamp(0.9rem, 1.25vw, 1.08rem);
}

.about-side-right {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0.46rem;
}

.about-skill-title {
  margin: 0;
  color: #dbe6f7;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
  font-weight: 700;
}

.about-skills {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.42rem;
}

.about-skill-card {
  border: 1px solid rgba(168, 190, 215, 0.32);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(11, 24, 39, 0.86), rgba(9, 18, 31, 0.82)),
    radial-gradient(120px 50px at 50% 0, rgba(99, 159, 211, 0.15), transparent 72%);
  padding: 0.32rem 0.24rem 0.28rem;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 0.22rem;
}

.about-skill-art {
  --ring: rgba(145, 205, 244, 0.82);
  --glow: rgba(116, 185, 235, 0.42);
  position: relative;
  width: 58px;
  aspect-ratio: 1 / 1;
  border-radius: 999px;
  border: 1px solid rgba(186, 208, 229, 0.45);
  background:
    radial-gradient(circle at 33% 30%, rgba(204, 234, 255, 0.24), rgba(17, 36, 55, 0.9) 64%),
    conic-gradient(from 20deg, rgba(150, 205, 246, 0.18), rgba(244, 215, 140, 0.24), rgba(150, 205, 246, 0.18));
  box-shadow:
    inset 0 0 0 1px rgba(244, 221, 140, 0.22),
    0 0 18px var(--glow);
}

.about-skill-art::before {
  content: "";
  position: absolute;
  inset: 24%;
  border: 2px solid var(--ring);
  border-radius: 6px;
  transform: rotate(45deg);
  box-shadow: 0 0 10px var(--glow);
}

.about-skill-art::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 28px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #f4dc93, transparent);
  transform: translate(-50%, -50%) rotate(-35deg);
  box-shadow: 0 0 9px rgba(244, 218, 132, 0.45);
}

.about-skill-card:nth-child(2) .about-skill-art {
  --ring: rgba(255, 191, 107, 0.86);
  --glow: rgba(255, 182, 88, 0.4);
}

.about-skill-card:nth-child(3) .about-skill-art {
  --ring: rgba(170, 228, 188, 0.86);
  --glow: rgba(112, 214, 147, 0.36);
}

.about-skill-card:nth-child(4) .about-skill-art {
  --ring: rgba(201, 182, 255, 0.85);
  --glow: rgba(162, 134, 255, 0.35);
}

.about-skill-card:nth-child(5) .about-skill-art {
  --ring: rgba(255, 166, 192, 0.84);
  --glow: rgba(252, 130, 171, 0.34);
}

.about-skill-card:nth-child(6) .about-skill-art {
  --ring: rgba(140, 227, 232, 0.84);
  --glow: rgba(98, 205, 212, 0.34);
}

.about-skill-label {
  color: #d7ecff;
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.1;
  text-align: center;
  padding: 0 0.12rem;
  white-space: normal;
}

.about-note {
  margin: 0.35rem 0 0;
  text-align: center;
  color: #d6e3f6;
  font-size: 0.68rem;
  line-height: 1.45;
}

.about-thumbs {
  margin-top: 0.62rem;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.42rem;
}

.about-thumb {
  border: 1px solid rgba(170, 192, 217, 0.34);
  background: linear-gradient(180deg, rgba(12, 25, 40, 0.86), rgba(9, 18, 31, 0.8));
  border-radius: 6px;
  padding: 0.22rem;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.about-thumb img {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: block;
  object-fit: cover;
  object-position: center 18%;
  border-radius: 4px;
  border: 1px solid rgba(168, 188, 210, 0.24);
  filter: contrast(1.05) saturate(0.95) brightness(0.92);
}

.about-thumb-name {
  display: block;
  margin-top: 0.22rem;
  text-align: center;
  color: #e8f1ff;
  font-size: 0.62rem;
  letter-spacing: 0.03em;
  line-height: 1.2;
  white-space: pre-line;
}

.about-thumb:hover {
  transform: translateY(-1px);
  border-color: rgba(222, 204, 124, 0.72);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.about-thumb.is-active {
  border-color: rgba(241, 214, 132, 0.92);
  box-shadow: 0 0 0 1px rgba(243, 216, 136, 0.32), 0 8px 20px rgba(0, 0, 0, 0.35);
}

.about-thumb.is-active .about-thumb-name {
  color: #f4dc99;
}

.about-hud-bottom {
  position: absolute;
  left: 0.52rem;
  right: 0.52rem;
  bottom: 0.52rem;
  z-index: 4;
  border: 1px solid rgba(186, 205, 226, 0.38);
  background:
    linear-gradient(180deg, rgba(13, 27, 44, 0.88), rgba(8, 17, 31, 0.86)),
    radial-gradient(420px 120px at 50% 0, rgba(103, 154, 204, 0.12), transparent 78%);
  padding: 0.34rem 0.4rem 0.38rem;
}

.about-core-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.32rem;
}

.about-core-stats span {
  text-align: center;
  color: #ddeaf8;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  border: 1px solid rgba(160, 185, 210, 0.32);
  background: rgba(14, 29, 45, 0.62);
  padding: 0.2rem;
}

.about-power {
  margin-top: 0.36rem;
  display: grid;
  grid-template-columns: 34px 1fr 34px auto;
  align-items: center;
  gap: 0.34rem;
}

.about-power-btn {
  width: 34px;
  height: 26px;
  border: 1px solid rgba(169, 194, 218, 0.56);
  color: #dce9fa;
  background: rgba(16, 34, 55, 0.82);
  font-size: 1rem;
  line-height: 1;
}

.about-power b {
  display: block;
  height: 13px;
  border: 1px solid rgba(173, 198, 220, 0.56);
  border-radius: 999px;
  background: rgba(8, 18, 31, 0.74);
  overflow: hidden;
}

.about-power b i {
  display: block;
  height: 100%;
  width: 66%;
  background: linear-gradient(90deg, #f4d986, #d8a548 55%, #8e6220);
  box-shadow: 0 0 14px rgba(248, 213, 120, 0.45);
}

.about-power strong {
  color: #f4d988;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  padding: 0 0.3rem;
}

.about-footer {
  margin-top: 0.72rem;
  border: 1px solid rgba(186, 201, 220, 0.34);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(9, 18, 32, 0.86), rgba(9, 18, 32, 0.7));
  padding: 0.62rem 0.66rem;
}

.about-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.42rem;
}

.about-metrics span {
  text-align: center;
  font-size: 0.72rem;
  color: #e0eaf9;
  border: 1px solid rgba(185, 200, 219, 0.34);
  border-radius: 6px;
  padding: 0.32rem 0.36rem;
  background: rgba(9, 19, 33, 0.55);
  letter-spacing: 0.05em;
}

.about-progress {
  margin-top: 0.58rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.52rem;
}

.about-progress span {
  color: #dce8fb;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.about-progress b {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: rgba(186, 201, 220, 0.28);
  overflow: hidden;
}

.about-progress b i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #f9df92, #cf9f53);
}

.about-progress em {
  color: #f4db95;
  font-style: normal;
  font-weight: 700;
  font-size: 0.74rem;
}


.project-posters {
  position: relative;
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.project-posters::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 8%;
  bottom: 8%;
  width: 12%;
  transform: translateX(-50%);
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(8, 18, 31, 0.75), rgba(8, 18, 31, 0));
  filter: blur(12px);
  z-index: 3;
}

.poster-card {
  margin: 0;
  position: relative;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border: 1px solid rgba(238, 221, 112, 0.42);
  border-radius: 8px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 238, 150, 0.12),
    0 14px 24px rgba(0, 0, 0, 0.35);
  cursor: pointer;
}

.poster-link {
  position: absolute;
  inset: 0;
  z-index: 5;
  border-radius: inherit;
}

.poster-link:focus-visible {
  outline: 2px solid rgba(246, 219, 133, 0.95);
  outline-offset: -2px;
}

.poster-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  filter: saturate(1.05) contrast(1.04) brightness(0.86);
}

.poster-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 13, 24, 0.9), rgba(6, 13, 24, 0.08) 24%, rgba(6, 13, 24, 0.12) 76%, rgba(6, 13, 24, 0.9)),
    linear-gradient(90deg, rgba(6, 13, 24, 0.72), transparent 14%, transparent 86%, rgba(6, 13, 24, 0.72));
  pointer-events: none;
  z-index: 1;
}

.poster-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(145deg, rgba(238, 221, 112, 0.18), rgba(9, 19, 33, 0.02) 32%);
  z-index: 2;
}

.poster-card figcaption {
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: 0.7rem;
  z-index: 4;
  padding: 0.45rem 0.55rem;
  border: 1px solid rgba(238, 221, 112, 0.5);
  background: rgba(8, 18, 31, 0.7);
  color: #f6da89;
  font-family: "Cinzel", serif;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}

.poster-hiberman img {
  object-position: 42% center;
}

.poster-ezoteva img {
  object-position: 58% center;
}

.poster-card:hover img {
  transform: scale(1.06);
  filter: saturate(1.08) contrast(1.05) brightness(0.9);
}

.poster-card:hover figcaption {
  border-color: rgba(246, 219, 133, 0.9);
  color: #ffe9a9;
}

.small-label {
  margin: 0 0 0.45rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--gold);
}

h1,
h2 {
  margin: 0;
  font-family: "Cinzel", serif;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.05;
}

h1 {
  font-size: clamp(2.1rem, 5.6vw, 4.3rem);
}

h2 {
  font-size: clamp(1.8rem, 4.8vw, 3.4rem);
}

.lore-card p {
  color: var(--muted);
  max-width: 64ch;
  line-height: 1.56;
}

.cta-row {
  margin-top: 1rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.btn {
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 0.66rem;
  font-weight: 700;
  padding: 0.56rem 0.88rem;
  border-radius: 4px;
  border: 1px solid transparent;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.btn-gold {
  color: #1e1810;
  background: linear-gradient(120deg, var(--gold), var(--gold-bright));
  border-color: rgba(243, 214, 166, 0.88);
}

.btn-ghost {
  color: #dce7f6;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(183, 199, 219, 0.42);
}

.feature-grid {
  margin-top: 0.9rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
}

.production-frame .feature-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
}

.feature-grid article {
  border: 1px solid rgba(183, 199, 219, 0.3);
  border-radius: 6px;
  padding: 0.58rem 0.62rem;
  background: rgba(7, 16, 26, 0.44);
  min-height: 112px;
}

.production-frame .feature-grid article {
  border-color: rgba(183, 199, 219, 0.48);
  background: rgba(9, 20, 34, 0.9);
  backdrop-filter: none;
  filter: none;
  box-shadow: none;
}

.feature-grid strong {
  display: block;
  color: var(--gold);
  font-family: "Cinzel", serif;
  font-size: 0.86rem;
  letter-spacing: 0.04em;
}

.production-frame .feature-grid strong {
  font-family: "Inter", sans-serif;
  letter-spacing: 0.01em;
  text-transform: none;
  color: #f0d68b;
}

.feature-grid p {
  margin: 0.36rem 0 0;
  font-size: 0.79rem;
  line-height: 1.45;
  color: #d4dfef;
}

.production-frame .feature-grid p {
  font-size: 0.84rem;
  line-height: 1.42;
  color: #e7eef8;
}

.alliance-grid {
  margin-top: 0.95rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.alliance-grid article {
  border: 1px solid rgba(183, 199, 219, 0.48);
  border-radius: 6px;
  padding: 0.62rem 0.68rem;
  background: rgba(9, 20, 34, 0.9);
}

.alliance-grid strong {
  display: block;
  color: #f0d68b;
  font-family: "Inter", sans-serif;
  font-size: 0.84rem;
  letter-spacing: 0.02em;
}

.alliance-grid p {
  margin: 0.36rem 0 0;
  font-size: 0.8rem;
  line-height: 1.42;
  color: #e7eef8;
}

.production-frame .poster-card {
  /* 50% niższe niż poprzednie 9/16 */
  aspect-ratio: 9 / 8;
}

.timeline {
  margin-top: 0.95rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
}

.timeline span {
  border: 1px solid rgba(183, 199, 219, 0.3);
  border-radius: 4px;
  padding: 0.45rem;
  background: rgba(7, 16, 26, 0.45);
  color: #d4e0ef;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.contact-box {
  margin-top: 1rem;
  display: grid;
  gap: 0.45rem;
}

.contact-box a {
  text-decoration: none;
  border: 1px solid rgba(183, 199, 219, 0.35);
  border-radius: 5px;
  padding: 0.52rem;
  background: rgba(7, 16, 26, 0.45);
  color: #dde8f6;
}

.contact-box a:first-child {
  color: var(--gold-bright);
  border-color: rgba(243, 214, 166, 0.75);
}

.deploy-frame {
  width: min(1140px, 100%);
}

.deploy-game {
  margin-top: 0.88rem;
  display: grid;
  gap: 0.62rem;
}

.deploy-head {
  border: 1px solid rgba(178, 198, 220, 0.35);
  border-radius: 8px;
  padding: 0.58rem 0.68rem;
  background: linear-gradient(180deg, rgba(9, 20, 33, 0.78), rgba(9, 20, 33, 0.58));
  display: none;
}

.deploy-instruction {
  margin: 0;
  color: #ebf2ff;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.deploy-steps {
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.42rem;
}

.deploy-steps li {
  border: 1px solid rgba(168, 188, 212, 0.3);
  border-radius: 6px;
  background: rgba(8, 18, 31, 0.6);
  color: #c6d7ee;
  text-align: center;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  padding: 0.34rem 0.28rem;
}

.deploy-steps li.is-active {
  border-color: rgba(244, 218, 132, 0.8);
  color: #f4de9e;
}

.deploy-steps li.is-done {
  border-color: rgba(141, 223, 172, 0.68);
  color: #d2f4de;
}

.deploy-stage {
  position: relative;
  min-height: 500px;
  border: 1px solid rgba(184, 203, 225, 0.35);
  border-radius: 10px;
  overflow: hidden;
  background:
    radial-gradient(1200px 360px at 50% 100%, rgba(28, 62, 90, 0.38), transparent 68%),
    linear-gradient(180deg, rgba(10, 21, 35, 0.9), rgba(6, 13, 23, 0.92));
}

.deploy-scene {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  pointer-events: none;
}

.deploy-scene canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.deploy-vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 55%, rgba(0, 0, 0, 0) 28%, rgba(0, 0, 0, 0.34) 100%),
    linear-gradient(180deg, rgba(4, 8, 14, 0.2), rgba(4, 8, 14, 0.54));
}

.deploy-chest-2d {
  position: absolute;
  left: 50%;
  bottom: 0.35rem;
  width: min(64%, 532px);
  height: 88%;
  transform: translateX(-50%);
  z-index: 3;
  pointer-events: none;
  perspective: 4600px;
  perspective-origin: 50% 50%;
}

.deploy-chest-2d img {
  position: absolute;
  display: block;
  width: 86%;
  max-width: none;
  height: auto;
  left: 50%;
  transform: translateX(-50%);
  opacity: 1 !important;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.45));
}

.deploy-chest-bottom {
  bottom: 0;
}

.deploy-chest-top {
  bottom: 26%;
  transform-origin: 50% 0%;
  transform: translateX(-50%) rotateX(0deg);
  transform-style: preserve-3d;
  backface-visibility: hidden;
  transition: transform 0.56s cubic-bezier(0.22, 0.82, 0.2, 1);
}

.deploy-game.is-unlocked .deploy-chest-top {
  bottom: 26%;
  transform: translateX(-50%) translateY(-21%) rotateX(34deg);
}

.deploy-lock-target {
  position: absolute;
  left: 50%;
  top: 62%;
  width: 105px;
  height: 105px;
  transform: translate(-50%, -50%);
  z-index: 6;
  border-radius: 999px;
  border: 0;
  background: transparent;
  transition: box-shadow 0.2s ease;
}

.deploy-lock-target.is-hot {
  box-shadow: none;
}

.deploy-key {
  position: absolute;
  left: 7%;
  top: 63%;
  width: 105px;
  height: 105px;
  border-radius: 0;
  border: 0;
  background: transparent;
  color: transparent;
  font-weight: 900;
  letter-spacing: 0.1em;
  cursor: grab;
  z-index: 5;
  touch-action: none;
  user-select: none;
  box-shadow: none;
  transition: filter 0.2s ease;
  padding: 0;
}

.deploy-key img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  pointer-events: none;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.35));
}

.deploy-key span {
  display: none;
}

.deploy-key:hover {
  filter: brightness(1.06);
}

.deploy-key.is-dragging {
  cursor: grabbing;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45), 0 0 30px rgba(237, 198, 100, 0.4);
}

.deploy-key.is-returning {
  transition: transform 0.34s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.deploy-key.is-inserted {
  pointer-events: none;
  filter: saturate(0.72);
}

.deploy-key.is-used {
  opacity: 0;
  transition: opacity 0.22s ease;
}

.deploy-fallback {
  position: absolute;
  right: 0.72rem;
  bottom: 0.68rem;
  z-index: 4;
  border: 1px solid rgba(177, 197, 220, 0.45);
  border-radius: 999px;
  background: rgba(8, 16, 27, 0.78);
  color: #d8e6f8;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  padding: 0.36rem 0.64rem;
  cursor: pointer;
}

.deploy-fallback:hover {
  border-color: rgba(242, 216, 134, 0.72);
  color: #f3df9f;
}

.deploy-letter {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  pointer-events: none;
  transition: max-height 0.75s ease, opacity 0.42s ease, transform 0.42s ease;
}

.deploy-game.is-letter-open .deploy-letter {
  max-height: 980px;
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.deploy-letter-inner {
  border: 1px solid rgba(242, 214, 126, 0.52);
  border-radius: 10px;
  padding: 0.86rem 0.88rem;
  background:
    linear-gradient(180deg, rgba(248, 239, 211, 0.94), rgba(221, 205, 167, 0.9)),
    radial-gradient(800px 200px at 50% 0, rgba(255, 255, 255, 0.5), transparent 72%);
  color: #342b1c;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.32);
}

.deploy-letter-inner .small-label {
  color: #705026;
}

.deploy-letter-inner h3 {
  margin: 0.1rem 0 0.55rem;
  color: #2d2214;
  font-family: "Cinzel", serif;
}

.deploy-form {
  display: grid;
  gap: 0.42rem;
}

.deploy-form label {
  font-size: 0.76rem;
  font-weight: 700;
  color: #3a2d1b;
}

.deploy-form input,
.deploy-form textarea {
  border: 1px solid rgba(122, 96, 56, 0.45);
  border-radius: 8px;
  background: rgba(255, 249, 233, 0.85);
  color: #21180f;
  padding: 0.55rem 0.6rem;
  font: inherit;
}

.deploy-form input:focus,
.deploy-form textarea:focus {
  outline: 2px solid rgba(235, 194, 99, 0.42);
  border-color: rgba(204, 149, 52, 0.74);
}

.deploy-submit {
  margin-top: 0.2rem;
  justify-self: start;
}

.deploy-form-feedback {
  margin: 0.35rem 0 0;
  padding: 0.5rem 0.6rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
}

.deploy-form-feedback.is-success {
  background: rgba(26, 107, 61, 0.14);
  border: 1px solid rgba(20, 110, 59, 0.38);
  color: #1a5d39;
}

.deploy-form-feedback.is-error {
  background: rgba(120, 32, 24, 0.12);
  border: 1px solid rgba(138, 39, 30, 0.35);
  color: #7a231c;
}

.scene-1 { background-image: url("assets/qfs-bg-1.png"); }
.scene-2 { background-image: url("assets/qfs-bg-2.png"); }
.scene-3 { background-image: url("assets/qfs-bg-3.png"); }
.scene-4 { background-image: url("assets/qfs-bg-4.png"); }
.scene-5 { background-image: url("assets/o-nas-bg.png"); }

.reveal {
  opacity: 1;
  transform: none;
  animation: fadeRise 0.8s ease both;
}

.scene-2 .reveal { animation-delay: 0.08s; }
.scene-3 .reveal { animation-delay: 0.12s; }
.scene-4 .reveal { animation-delay: 0.16s; }

@keyframes fadeRise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .chrome {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    padding: 0.44rem 0.7rem;
  }

  .menu {
    margin-left: auto;
    max-width: 72%;
    overflow-x: auto;
    white-space: nowrap;
  }

  .scene {
    background-attachment: scroll;
    -webkit-mask-image: linear-gradient(
      to bottom,
      transparent 0%,
      #000 10%,
      #000 86%,
      transparent 100%
    );
    mask-image: linear-gradient(
      to bottom,
      transparent 0%,
      #000 10%,
      #000 86%,
      transparent 100%
    );
  }

  .scene + .scene {
    margin-top: -8vh;
  }

  .scene:first-of-type {
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 86%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0%, #000 86%, transparent 100%);
  }

  .scene:last-of-type {
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 10%, #000 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 10%, #000 100%);
  }

  .production-frame .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .alliance-grid {
    grid-template-columns: 1fr;
  }

  .about-selector {
    grid-template-columns: 1fr;
  }

  .about-character {
    min-height: 560px;
  }

  .about-nav {
    width: 46px;
    height: 46px;
  }

  .about-nameplate {
    font-size: 0.98rem;
    padding: 0.3rem 0.42rem;
  }

  .about-hud-top {
    grid-template-columns: 1fr;
    gap: 0.22rem;
  }

  .about-resources {
    gap: 0.18rem;
  }

  .about-power {
    grid-template-columns: 30px 1fr 30px auto;
  }

  .about-note {
    grid-column: 1 / -1;
  }

  .about-thumbs {
    grid-template-columns: repeat(5, minmax(90px, 1fr));
    gap: 0.34rem;
  }

  .about-thumb-name {
    font-size: 0.58rem;
  }


  .about-side-right {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
  }

  .about-skills {
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .about-skill-card {
    justify-self: stretch;
  }

  .about-metrics {
    grid-template-columns: 1fr;
  }

  .about-progress {
    grid-template-columns: 1fr;
  }

  .deploy-stage {
    min-height: 460px;
  }

  .deploy-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .deploy-key {
    width: 90px;
    height: 90px;
    left: 6%;
    top: 68%;
  }

  .deploy-lock-target {
    top: 58%;
    width: 80px;
    height: 84px;
  }
}

@media (max-width: 700px) {
  .logo span {
    font-size: 0.7rem;
  }

  .logo img {
    width: 56px;
    height: 56px;
    min-width: 56px;
    min-height: 56px;
    flex-basis: 56px;
  }

  .feature-grid,
  .timeline,
  .alliance-grid {
    grid-template-columns: 1fr;
  }

  .project-posters {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .project-posters::before {
    content: none;
  }

  .intro-frame h1 {
    white-space: normal;
  }

  .btn,
  .contact-box a {
    width: 100%;
    text-align: center;
  }

  .deploy-stage {
    min-height: 420px;
  }

  .deploy-head {
    padding: 0.5rem;
  }

  .deploy-steps li {
    font-size: 0.6rem;
    padding: 0.28rem 0.18rem;
  }

  .deploy-key {
    width: 76px;
    height: 76px;
    left: 5%;
    top: 70%;
  }

  .deploy-key span {
    font-size: 0.58rem;
  }

  .deploy-lock-target {
    top: 59%;
    width: 74px;
    height: 76px;
  }

  .deploy-fallback {
    left: 0.58rem;
    right: 0.58rem;
    text-align: center;
    font-size: 0.64rem;
  }

  .deploy-letter-inner {
    padding: 0.72rem;
  }

  .about-character {
    min-height: 540px;
  }

  .about-side h3 {
    font-size: 1.16rem;
  }

  .about-nameplate {
    font-size: 0.88rem;
    letter-spacing: 0.02em;
  }

  .about-character figcaption {
    bottom: 5.9rem;
  }

  .about-hud-bottom {
    padding: 0.32rem;
  }

  .about-core-stats span {
    font-size: 0.66rem;
  }

  .about-power strong {
    font-size: 0.78rem;
    padding: 0 0.15rem;
  }

  .about-thumbs {
    display: flex;
    overflow-x: auto;
    gap: 0.32rem;
    padding-bottom: 0.18rem;
  }

  .about-skills {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-skill-art {
    width: 52px;
  }

  .about-skill-label {
    font-size: 0.52rem;
  }

  .about-thumb {
    min-width: 98px;
    flex: 0 0 auto;
  }
}

/* Subpages: shared shell */
.site-shell {
  min-height: 100vh;
  background:
    radial-gradient(1200px 380px at 12% -10%, rgba(90, 123, 155, 0.2), transparent 60%),
    linear-gradient(180deg, #07111c, #0a1726 42%, #091421);
  color: #dce8f8;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  padding: 0.72rem 1rem;
  border-bottom: 1px solid rgba(150, 172, 198, 0.35);
  background: rgba(5, 12, 21, 0.82);
  backdrop-filter: blur(8px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.56rem;
  text-decoration: none;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
}

.brand strong {
  color: #f0f5ff;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
}

.nav {
  display: flex;
  gap: 0.36rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  text-decoration: none;
  color: #d6e4f8;
  border: 1px solid rgba(160, 182, 208, 0.35);
  border-radius: 8px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 0.46rem 0.72rem;
  background: rgba(9, 20, 34, 0.65);
}

.nav a:hover {
  border-color: rgba(241, 210, 129, 0.8);
  color: #f5f9ff;
}

.site-shell main {
  width: min(1320px, 100%);
  margin: 0 auto;
  padding: 1.1rem 0.9rem 2rem;
}

.section {
  border: 1px solid rgba(151, 173, 197, 0.32);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(8, 18, 31, 0.75), rgba(8, 18, 31, 0.58));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 14px 28px rgba(0, 0, 0, 0.25);
  padding: clamp(1rem, 2.5vw, 1.5rem);
}

.site-shell main .section + .section {
  margin-top: 0.9rem;
}

.section-head {
  margin-bottom: 0.95rem;
}

.section-head h1 {
  font-size: clamp(1.6rem, 3.6vw, 2.5rem);
}

.eyebrow {
  margin: 0 0 0.34rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.68rem;
  color: #f0d58a;
  font-weight: 700;
}

.lead {
  margin: 0.56rem 0 0;
  color: #cfddf1;
  max-width: 72ch;
}

.actions {
  display: flex;
  gap: 0.52rem;
  flex-wrap: wrap;
}

.mt {
  margin-top: 0.9rem;
}

.btn-primary,
.btn-secondary {
  text-decoration: none;
  border-radius: 8px;
  padding: 0.56rem 0.84rem;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid transparent;
}

.btn-primary {
  color: #1e170d;
  background: linear-gradient(120deg, #d5b269, #f3dc9a);
  border-color: rgba(241, 213, 139, 0.8);
}

.btn-secondary {
  color: #e2eefc;
  background: rgba(13, 29, 46, 0.7);
  border-color: rgba(166, 185, 206, 0.4);
}

.list {
  margin: 0;
  padding-left: 1.12rem;
  color: #d6e4f8;
  display: grid;
  gap: 0.36rem;
}

.metric-strip {
  margin-top: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
}

.outs-classic-page .metric-strip {
  justify-content: center;
}

.metric-pill {
  border: 1px solid rgba(182, 202, 224, 0.4);
  border-radius: 999px;
  background: rgba(9, 22, 36, 0.62);
  color: #e0edff;
  font-size: 0.68rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 0.34rem 0.62rem;
}

.contact-page .contact-brief-form {
  width: min(680px, 100%);
  gap: 0.5rem;
  padding: 0.9rem 0.95rem;
  border: 1px solid rgba(238, 221, 112, 0.38);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(11, 24, 39, 0.78), rgba(10, 21, 34, 0.6));
  box-shadow: inset 0 0 0 1px rgba(255, 239, 156, 0.1);
}

.contact-page .contact-brief-form label {
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #cfe0f7;
}

.contact-page .contact-brief-form input,
.contact-page .contact-brief-form textarea {
  border: 1px solid rgba(212, 192, 129, 0.36);
  border-radius: 7px;
  background: rgba(8, 18, 31, 0.84);
  color: #eaf2ff;
  padding: 0.5rem 0.58rem;
  font-size: 0.9rem;
}

.contact-page .contact-brief-form input::placeholder,
.contact-page .contact-brief-form textarea::placeholder {
  color: rgba(202, 218, 239, 0.7);
}

.contact-page .contact-brief-form input:focus,
.contact-page .contact-brief-form textarea:focus {
  outline: 2px solid rgba(210, 178, 101, 0.32);
  border-color: rgba(210, 178, 101, 0.72);
}

.contact-page .contact-brief-form .btn-primary {
  margin-top: 0.28rem;
  justify-self: start;
  padding: 0.46rem 0.76rem;
  font-size: 0.72rem;
}

.contact-page .contact-brief-form .deploy-form-feedback {
  margin-top: 0.2rem;
  font-size: 0.76rem;
  padding: 0.42rem 0.5rem;
}

.contact-page .contact-form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 340px);
  gap: 0.9rem;
  align-items: center;
}

.contact-page .contact-form-main .section-head {
  margin-bottom: 0.7rem;
}

.contact-page .contact-form-title {
  font-size: clamp(1.16rem, 1.75vw, 1.48rem);
  line-height: 1.12;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.contact-page .contact-form-main .contact-brief-form {
  width: 100%;
}

.contact-page .contact-brief-info {
  position: static;
  top: auto;
  align-self: center;
  border: 1px solid rgba(238, 221, 112, 0.4);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(11, 24, 39, 0.8), rgba(10, 21, 34, 0.62));
  padding: 0.82rem 0.86rem;
  box-shadow: inset 0 0 0 1px rgba(255, 239, 156, 0.12);
}

.contact-page .contact-brief-info h3 {
  margin: 0.22rem 0 0.68rem;
  font-size: 1rem;
  color: #f2f7ff;
}

.contact-page .contact-brief-block + .contact-brief-block {
  margin-top: 0.64rem;
  padding-top: 0.64rem;
  border-top: 1px solid rgba(182, 201, 224, 0.22);
}

.contact-page .contact-brief-block h4 {
  margin: 0 0 0.32rem;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #f0d58a;
}

.contact-page .contact-brief-info .list {
  gap: 0.28rem;
  font-size: 0.86rem;
}

.contact-page {
  --contact-bg-top-offset: 86px;
  position: relative;
}

.contact-page .contact-bg-video {
  position: fixed;
  top: var(--contact-bg-top-offset);
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #050b16;
}

.contact-page .contact-bg-video iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 177.78vh;
  height: 100vh;
  min-width: 100vw;
  min-height: 56.25vw;
  transform: translate(-50%, -50%);
  border: 0;
  filter: saturate(1.06) contrast(1.06) brightness(0.46);
}

.contact-page .contact-bg-overlay {
  position: fixed;
  top: var(--contact-bg-top-offset);
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(1000px 360px at 18% 2%, rgba(90, 123, 155, 0.24), transparent 64%),
    linear-gradient(180deg, rgba(7, 16, 28, 0.54), rgba(9, 20, 33, 0.76) 40%, rgba(9, 20, 33, 0.9));
}

.contact-page .site-shell {
  position: relative;
  z-index: 2;
  background: transparent;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.contact-page .site-shell main {
  flex: 1 0 auto;
  width: min(1200px, 100%);
  padding-top: calc(var(--contact-bg-top-offset) + 0.9rem);
  padding-bottom: 2.4rem;
}

.contact-page .site-shell footer {
  width: min(1200px, 100%);
  margin: auto auto 0;
  padding: 0.7rem 0.9rem 1.25rem;
  border-top: 1px solid rgba(238, 221, 112, 0.38);
  color: #c8d9ee;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(180deg, rgba(10, 22, 37, 0), rgba(10, 22, 37, 0.46));
}

.contact-page .section {
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(238, 221, 112, 0.95);
  border-radius: 2px;
  padding: clamp(1.1rem, 2.6vw, 1.75rem);
  background:
    linear-gradient(180deg, rgba(8, 18, 31, 0.82), rgba(8, 18, 31, 0.66)),
    radial-gradient(820px 300px at 20% 12%, rgba(238, 221, 112, 0.08), transparent 72%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 239, 156, 0.36),
    0 14px 28px rgba(0, 0, 0, 0.42);
}

.contact-page .section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 18, 30, 0.34), rgba(8, 18, 30, 0.52));
  z-index: 0;
  pointer-events: none;
}

.contact-page .section > * {
  position: relative;
  z-index: 1;
}

.contact-page .section-head h1,
.contact-page .section-head h2 {
  color: #f2f7ff;
  letter-spacing: 0.03em;
}

.contact-page .contact-head-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.58rem;
  margin-bottom: 0.24rem;
}

.contact-page .contact-head-top .eyebrow {
  margin: 0;
}

.contact-page .contact-head-top .metric-strip {
  margin-top: 0;
  gap: 0.34rem;
}

.contact-page .contact-head-top .metric-pill {
  font-size: 0.62rem;
  padding: 0.28rem 0.54rem;
}

.contact-page .duo {
  margin-top: 0.72rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.72rem;
}

.contact-page .card {
  border: 1px solid rgba(238, 221, 112, 0.44);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(12, 24, 39, 0.86), rgba(10, 21, 34, 0.72));
  padding: 0.78rem 0.82rem;
  box-shadow: inset 0 0 0 1px rgba(255, 239, 156, 0.12);
}

.contact-page .card h3 {
  margin: 0 0 0.5rem;
  color: #f3dca3;
  font-family: "Cinzel", serif;
  font-size: 1.02rem;
  letter-spacing: 0.03em;
}

.contact-page .card .list {
  gap: 0.32rem;
}

.contact-page .contact-form-main {
  border: 1px solid rgba(238, 221, 112, 0.38);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(10, 21, 34, 0.78), rgba(10, 21, 34, 0.58));
  padding: 0.82rem 0.86rem 0.92rem;
  box-shadow: inset 0 0 0 1px rgba(255, 239, 156, 0.1);
}

.outs-page {
  display: grid;
  gap: 0.9rem;
}

.outs-classic-page .site-shell {
  background:
    linear-gradient(180deg, rgba(5, 11, 20, 0.72), rgba(8, 17, 30, 0.82)),
    url("assets/qfs-bg-3.png") center / cover fixed no-repeat;
}

.outs-classic-page .site-shell main {
  width: min(1320px, 100%);
  margin: 0 auto;
  padding: 1rem 0.9rem 2rem;
}

.outs-classic-page .outs-page {
  gap: 1rem;
}

.outs-classic-page .section {
  position: relative;
  overflow: hidden;
  min-height: clamp(560px, 88svh, 960px);
  display: grid;
  align-content: start;
  width: 100%;
  margin: 0;
  padding:
    clamp(5rem, 8vw, 6.2rem)
    clamp(1rem, 2.4vw, 2rem)
    clamp(1.2rem, 2.8vw, 2rem);
  scroll-margin-top: 92px;
  border: 2px solid rgba(238, 221, 112, 0.95);
  border-radius: 2px;
  background:
    linear-gradient(180deg, rgba(8, 18, 31, 0.82), rgba(8, 18, 31, 0.66)),
    radial-gradient(900px 300px at 22% 16%, rgba(238, 221, 112, 0.08), transparent 70%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 239, 156, 0.38),
    0 14px 28px rgba(0, 0, 0, 0.42);
}

.outs-classic-page .section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: center / cover no-repeat;
  opacity: 0.24;
  filter: saturate(1.05) contrast(1.05);
}

.outs-classic-page .section > * {
  position: relative;
  z-index: 1;
}

.outs-classic-page .section:nth-of-type(1)::before { background-image: url("assets/qfs-bg-3.png"); }
.outs-classic-page .section:nth-of-type(2)::before { background-image: url("assets/qfs-bg-2.png"); }
.outs-classic-page .section:nth-of-type(3)::before { background-image: url("assets/qfs-bg-1.png"); }
.outs-classic-page .section:nth-of-type(4)::before { background-image: url("assets/qfs-bg-4.png"); }

.outs-classic-page .site-shell main .section + .section {
  margin-top: 0;
}

.outs-classic-page .outs-hero-panel,
.outs-classic-page .outs-service-card,
.outs-classic-page .outs-step,
.outs-classic-page .outs-video-embed {
  border: 2px solid rgba(238, 221, 112, 0.95);
  border-radius: 2px;
  background:
    linear-gradient(180deg, rgba(8, 18, 31, 0.82), rgba(8, 18, 31, 0.66)),
    radial-gradient(900px 300px at 22% 16%, rgba(238, 221, 112, 0.08), transparent 70%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 239, 156, 0.38),
    0 14px 28px rgba(0, 0, 0, 0.42);
}

.outs-classic-page .outs-services-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.86rem;
}

.outs-classic-page .outs-steps {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.86rem;
}

.outs-classic-page .outs-cta {
  align-items: center;
}

@media (max-width: 1100px) {
  .outs-classic-page .outs-services-grid,
  .outs-classic-page .outs-steps {
    grid-template-columns: 1fr;
  }

  .outs-classic-page .outs-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .outs-classic-page .site-shell main {
    padding: 0.9rem 0.5rem 1.2rem;
  }

  .outs-classic-page .section {
    min-height: auto;
    padding:
      clamp(4.2rem, 13vw, 5rem)
      clamp(0.8rem, 4vw, 1.1rem)
      clamp(1rem, 4vw, 1.4rem);
  }

  .outs-classic-page .site-shell main .section + .section {
    margin-top: 0;
  }
}

.outs-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(270px, 0.9fr);
  gap: 0.9rem;
}

.outs-hero-panel {
  border: 1px solid rgba(181, 201, 223, 0.36);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(10, 23, 38, 0.72), rgba(10, 23, 38, 0.54));
  padding: 0.75rem;
}

.outs-hero-panel h2 {
  font-size: clamp(1.08rem, 2.2vw, 1.38rem);
}

.outs-scope-frame {
  padding: clamp(1.45rem, 3vw, 2.6rem);
}

.outs-scope-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: clamp(0.85rem, 2vw, 1.35rem);
  align-items: start;
}

.outs-scope-copy {
  max-width: 72ch;
  display: grid;
  gap: 0.9rem;
}

.outs-scope-copy p {
  margin: 0;
  color: #d6e5f9;
  line-height: 1.72;
}

.outs-scope-copy .outs-scope-lead {
  font-size: clamp(1.02rem, 1.45vw, 1.14rem);
  font-weight: 700;
  color: #f2f7ff;
}

.outs-scope-copy .outs-scope-divider {
  border-top: 1px solid rgba(182, 201, 224, 0.26);
  padding-top: 0.85rem;
}

.outs-scope-copy .outs-scope-soft {
  opacity: 0.78;
  font-style: italic;
}

.outs-scope-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.48rem;
  align-content: start;
}

.outs-scope-thumb {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 0;
  border-radius: 6px;
  background: rgba(7, 15, 26, 0.9);
  box-shadow: none;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.outs-scope-thumb:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

@media (max-width: 980px) {
  .contact-page .duo {
    grid-template-columns: 1fr;
  }

  .contact-page .contact-form-layout {
    grid-template-columns: 1fr;
  }

  .contact-page .contact-brief-info {
    position: static;
    top: auto;
  }

  .outs-scope-layout {
    grid-template-columns: 1fr;
  }

  .outs-scope-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .contact-page .contact-head-top {
    align-items: flex-start;
  }

  .contact-page .contact-form-title {
    white-space: normal;
  }
}

@media (max-width: 620px) {
  .outs-scope-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.outs-services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.58rem;
}

.outs-service-card {
  border: 1px solid rgba(177, 197, 221, 0.36);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(10, 22, 37, 0.68), rgba(10, 22, 37, 0.5));
  padding: 0.72rem;
}

.outs-service-card h3 {
  margin: 0;
  font-size: 1.02rem;
  color: #f2f7ff;
}

.outs-service-card p {
  margin: 0.44rem 0 0;
  color: #d6e5f9;
  line-height: 1.45;
}

.outs-service-media {
  width: 100%;
  display: block;
  margin-top: 0.52rem;
  border-radius: 7px;
  border: 1px solid rgba(182, 201, 224, 0.4);
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: rgba(7, 15, 26, 0.9);
}

.outs-service-media-grid {
  margin-top: 0.52rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.46rem;
}

.outs-service-media-grid .outs-service-media {
  margin-top: 0;
  aspect-ratio: 4 / 3;
}

.outs-media-carousel {
  margin-top: 0.52rem;
  position: relative;
}

.outs-media-carousel-stage {
  overflow: hidden;
  border-radius: 8px;
}

.outs-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(238, 221, 112, 0.8);
  background: rgba(12, 24, 39, 0.84);
  color: #f4e4ac;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 0.95rem;
}

.outs-carousel-prev { left: 0.45rem; }
.outs-carousel-next { right: 0.45rem; }

.outs-carousel-arrow:hover {
  background: rgba(28, 45, 66, 0.92);
}

.outs-media-carousel [data-carousel-item][hidden] {
  display: none !important;
}

.outs-video-embed {
  margin-top: 0.58rem;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(182, 201, 224, 0.42);
  background: rgba(7, 15, 26, 0.9);
}

.outs-video-embed iframe {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  border: 0;
}

.outs-video-embed video {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  border: 0;
  object-fit: cover;
  background: #050b16;
}

.outs-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.62rem;
}

.outs-step {
  border: 1px solid rgba(175, 196, 218, 0.36);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(11, 24, 40, 0.7), rgba(11, 24, 40, 0.54));
  padding: 0.72rem;
}

.outs-step span {
  display: inline-block;
  color: #f2d68c;
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 0.7rem;
}

.outs-step h3 {
  margin: 0.3rem 0 0;
  font-size: 1rem;
}

.outs-step p {
  margin: 0.4rem 0 0;
  color: #d5e4f8;
  line-height: 1.42;
}

.outs-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.9rem;
  align-items: end;
}

.team-hint {
  margin: 0.6rem 0 0;
  color: #f0d58a;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.member-grid {
  display: flex;
  gap: 0.72rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 0.4rem;
}

.member-card {
  flex: 0 0 min(440px, 90vw);
  scroll-snap-align: start;
  border: 1px solid rgba(176, 196, 218, 0.35);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(11, 24, 40, 0.78), rgba(11, 24, 40, 0.64));
  padding: 0.72rem 0.78rem;
}

.member-card h2 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.05rem, 2.2vw, 1.46rem);
  color: #f3f7ff;
  letter-spacing: 0.03em;
}

.member-card p {
  margin: 0.38rem 0 0;
  color: #d7e4f7;
  line-height: 1.45;
  font-size: 0.9rem;
}

.member-card strong {
  color: #f4d98e;
}

.member-actions {
  margin-top: 0.64rem;
}

.choose-btn {
  border: 1px solid rgba(238, 221, 112, 0.64);
  border-radius: 6px;
  background: linear-gradient(135deg, #d8b267, #f3db9b);
  color: #1c160d;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  padding: 0.46rem 0.72rem;
  cursor: pointer;
}

.choose-btn:hover {
  filter: brightness(1.06);
}

.member-grid.is-paused .choose-btn {
  background: rgba(11, 24, 40, 0.72);
  color: #e9f1ff;
  border-color: rgba(176, 196, 218, 0.55);
}

.site-shell footer {
  width: min(1320px, 100%);
  margin: 0 auto;
  padding: 0.8rem 0.9rem 1.5rem;
  color: #b8c9df;
}

.page-footer {
  position: relative;
  z-index: 6;
  width: min(1320px, 100%);
  margin: 0 auto;
  padding: 0.72rem 0.9rem 1.25rem;
  border-top: 1px solid rgba(238, 221, 112, 0.34);
  color: #c8d9ee;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(180deg, rgba(10, 22, 37, 0), rgba(10, 22, 37, 0.46));
}

.page-footer p {
  margin: 0;
}

.footer-social {
  margin-top: 0.56rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.42rem;
}

.footer-social-link {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(238, 221, 112, 0.44);
  border-radius: 8px;
  background: rgba(10, 21, 34, 0.72);
  color: #d8e7fb;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.footer-social-link:hover {
  border-color: rgba(241, 214, 132, 0.9);
  background: rgba(241, 214, 132, 0.14);
  color: #f4f8ff;
  transform: translateY(-1px);
}

.footer-social-link svg {
  width: 16px;
  height: 16px;
  display: block;
  fill: currentColor;
}

.ezo-page {
  display: grid;
  gap: 0.9rem;
}

.ezo-page .section {
  border: 2px solid rgba(238, 221, 112, 0.88);
  border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(8, 18, 31, 0.82), rgba(8, 18, 31, 0.64)),
    radial-gradient(900px 300px at 22% 16%, rgba(238, 221, 112, 0.08), transparent 70%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 239, 156, 0.28),
    0 14px 28px rgba(0, 0, 0, 0.36);
}

.ezo-page .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.45rem;
  padding: 0.32rem 0.58rem;
  border: 1px solid rgba(238, 221, 112, 0.5);
  background: rgba(12, 22, 36, 0.72);
  color: #f6da89;
  box-shadow: inset 0 0 0 1px rgba(255, 238, 150, 0.14);
}

.ezo-page .section-head h2 {
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ezo-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.95fr);
  gap: 0.9rem;
  align-items: stretch;
}

.ezo-hero-copy {
  display: grid;
  align-content: center;
}

.ezo-hero-copy h1 {
  margin: 0;
  font-size: clamp(1.8rem, 3.4vw, 2.9rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ezo-hero-media {
  border: 1px solid rgba(238, 221, 112, 0.5);
  border-radius: 8px;
  overflow: hidden;
  background: #0d1c2c;
  min-height: 360px;
  box-shadow: inset 0 0 0 1px rgba(255, 238, 150, 0.12), 0 14px 24px rgba(0, 0, 0, 0.34);
  position: relative;
}

.ezo-hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(6, 13, 24, 0.72), rgba(6, 13, 24, 0.12) 24%, rgba(6, 13, 24, 0.18) 76%, rgba(6, 13, 24, 0.74)),
    linear-gradient(90deg, rgba(6, 13, 24, 0.55), transparent 16%, transparent 84%, rgba(6, 13, 24, 0.55));
}

.ezo-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05) contrast(1.04) brightness(0.9);
}

.ezo-pillars {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.62rem;
}

.ezo-card {
  border: 1px solid rgba(183, 199, 219, 0.48);
  border-radius: 6px;
  background: rgba(9, 20, 34, 0.9);
  padding: 0.72rem;
}

.ezo-card h3 {
  margin: 0;
  color: #f0d68b;
  font-size: 0.94rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.ezo-card p {
  margin: 0.38rem 0 0;
  color: #e7eef8;
  line-height: 1.42;
}

.ezo-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.72rem;
}

.ezo-panel {
  border: 1px solid rgba(183, 199, 219, 0.48);
  border-radius: 6px;
  background: rgba(9, 20, 34, 0.9);
  padding: 0.76rem;
}

.ezo-panel .section-head {
  margin-bottom: 0.62rem;
}

.ezo-panel .section-head h2 {
  margin: 0;
  font-size: 1rem;
}

.ezo-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.72rem;
}

.ezo-shot {
  margin: 0;
  border: 1px solid rgba(183, 199, 219, 0.48);
  border-radius: 6px;
  overflow: hidden;
  background: rgba(9, 20, 34, 0.9);
}

.ezo-shot img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  filter: saturate(0.96) contrast(1.02);
}

.ezo-shot figcaption {
  padding: 0.5rem 0.56rem;
  color: #f0d68b;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-top: 1px solid rgba(183, 199, 219, 0.4);
  background: rgba(9, 20, 34, 0.92);
}

.hib-page-shell {
  background:
    radial-gradient(1200px 420px at 9% -16%, rgba(223, 129, 74, 0.1), transparent 62%),
    radial-gradient(900px 300px at 90% 10%, rgba(238, 221, 112, 0.09), transparent 66%),
    linear-gradient(180deg, #09121e, #0a1624 45%, #08121b);
}

.hib-page {
  display: grid;
  gap: 0.9rem;
}

.hib-page .section {
  border: 2px solid rgba(238, 221, 112, 0.88);
  border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(8, 18, 31, 0.82), rgba(8, 18, 31, 0.64)),
    radial-gradient(900px 300px at 22% 16%, rgba(238, 221, 112, 0.08), transparent 70%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 239, 156, 0.28),
    0 14px 28px rgba(0, 0, 0, 0.36);
}

.hib-page .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.45rem;
  padding: 0.32rem 0.58rem;
  border: 1px solid rgba(238, 221, 112, 0.5);
  background: rgba(12, 22, 36, 0.72);
  color: #f6da89;
  box-shadow: inset 0 0 0 1px rgba(255, 238, 150, 0.14);
}

.hib-page .section-head h2 {
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hib-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(310px, 1fr);
  gap: 0.9rem;
  align-items: stretch;
}

.hib-hero-copy {
  display: grid;
  align-content: center;
}

.hib-hero-copy h1 {
  margin: 0;
  font-size: clamp(1.9rem, 3.7vw, 3rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.48), 0 0 18px rgba(232, 163, 91, 0.2);
}

.hib-hero-art {
  margin: 0;
  position: relative;
  border: 1px solid rgba(238, 221, 112, 0.5);
  border-radius: 8px;
  overflow: hidden;
  background: #0d1c2c;
  min-height: 380px;
  box-shadow: inset 0 0 0 1px rgba(255, 238, 150, 0.12), 0 14px 24px rgba(0, 0, 0, 0.34);
}

.hib-hero-art::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(6, 13, 24, 0.72), rgba(6, 13, 24, 0.12) 24%, rgba(6, 13, 24, 0.18) 76%, rgba(6, 13, 24, 0.74)),
    linear-gradient(90deg, rgba(6, 13, 24, 0.55), transparent 16%, transparent 84%, rgba(6, 13, 24, 0.55));
}

.hib-hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05) contrast(1.04) brightness(0.9);
}

.hib-cast-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.62rem;
}

.hib-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.64rem;
}

.hib-panel-shot {
  margin: 0;
  border: 1px solid rgba(183, 199, 219, 0.48);
  border-radius: 6px;
  overflow: hidden;
  background: rgba(9, 20, 34, 0.9);
}

.hib-panel-shot img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hib-cast-card {
  border: 1px solid rgba(183, 199, 219, 0.48);
  border-radius: 6px;
  background: rgba(9, 20, 34, 0.9);
  padding: 0.72rem;
}

.hib-cast-id {
  margin: 0;
  color: #f0d68b;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hib-cast-card h3 {
  margin: 0.22rem 0 0;
  color: #f4f8ff;
  font-size: 1.16rem;
  letter-spacing: 0.02em;
}

.hib-cast-card p {
  margin: 0.4rem 0 0;
  color: #dce8f8;
  line-height: 1.42;
}

.hib-flow-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
}

.hib-flow-card {
  border: 1px solid rgba(183, 199, 219, 0.48);
  border-radius: 6px;
  background: rgba(9, 20, 34, 0.9);
  padding: 0.72rem;
}

.hib-flow-card span {
  color: #f0d68b;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hib-flow-card h3 {
  margin: 0.33rem 0 0;
  font-size: 1rem;
}

.hib-flow-card p {
  margin: 0.4rem 0 0;
  color: #e7eef8;
  line-height: 1.42;
}

.hib-systems-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.62rem;
}

.hib-system-card {
  border: 1px solid rgba(183, 199, 219, 0.48);
  border-radius: 6px;
  background: rgba(9, 20, 34, 0.9);
  padding: 0.76rem;
}

.hib-system-card h3 {
  margin: 0;
  font-size: 0.94rem;
  color: #f0d68b;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hib-system-card p {
  margin: 0.38rem 0 0;
  color: #e7eef8;
  line-height: 1.42;
}

.hib-video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.64rem;
}

.hib-video-card {
  border: 1px solid rgba(183, 199, 219, 0.48);
  border-radius: 6px;
  overflow: hidden;
  background: rgba(9, 20, 34, 0.9);
}

.hib-video-card h3 {
  margin: 0;
  padding: 0.56rem 0.62rem 0.5rem;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #f0d68b;
  font-family: "Inter", sans-serif;
}

.hib-video-card video {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #04070d;
}

@media (max-width: 980px) {
  .member-grid {
    gap: 0.62rem;
  }

  .ezo-hero {
    grid-template-columns: 1fr;
  }

  .ezo-hero-media {
    min-height: 300px;
  }

  .ezo-pillars {
    grid-template-columns: 1fr;
  }

  .ezo-layout {
    grid-template-columns: 1fr;
  }

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

  .hib-hero {
    grid-template-columns: 1fr;
  }

  .hib-hero-art {
    min-height: 300px;
  }

  .hib-cast-grid,
  .hib-panels,
  .hib-systems-grid,
  .hib-video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hib-flow-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .outs-services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .outs-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .outs-hero {
    grid-template-columns: 1fr;
  }

  .outs-cta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .contact-page {
    --contact-bg-top-offset: 84px;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav {
    width: 100%;
  }

  .outs-services-grid,
  .outs-steps {
    grid-template-columns: 1fr;
  }

  .hib-cast-grid,
  .hib-panels,
  .hib-flow-grid,
  .hib-systems-grid,
  .hib-video-grid {
    grid-template-columns: 1fr;
  }
}

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

  * {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
