/* ==========================================================================
   INIZIATIVA STUDIO — Cinematic Dark Obsidian & WebGL Liquid Glass System
   Powered by @ybouane/liquidglass · Pure Monochrome (Zero Blue / Zero Green)
   ========================================================================== */

:root {
  --bg: #040405;
  --bg-deep: #020203;
  --surface: rgba(16, 16, 18, 0.72);
  --surface-elevated: rgba(24, 24, 28, 0.78);
  --glass-bg: rgba(255, 255, 255, 0.055);
  --glass-bg-hover: rgba(255, 255, 255, 0.095);
  --border: rgba(255, 255, 255, 0.11);
  --border-strong: rgba(255, 255, 255, 0.26);
  --specular: rgba(255, 255, 255, 0.36);

  --text: #f7f7f8;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;

  /* Embedded RateMint Window Accent (ONLY inside the clickable RateMint portal on /tools) */
  --rm-emerald: #10b981;
  --rm-emerald-bright: #34d399;
  --rm-emerald-deep: #059669;

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --radius-xl: 34px;
  --radius-pill: 999px;

  --shadow-glass:
    0 20px 54px rgba(0, 0, 0, 0.68),
    0 1px 0 rgba(255, 255, 255, 0.14) inset;
  --shadow-glass-hover:
    0 28px 72px rgba(0, 0, 0, 0.80),
    0 1px 0 rgba(255, 255, 255, 0.30) inset;

  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  background-color: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 75% 44% at 50% -6%, rgba(255, 255, 255, 0.06), transparent 60%),
    linear-gradient(180deg, #070709 0%, #040405 52%, #020203 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 10px 18px;
  background: #ffffff;
  color: #040405;
  font-weight: 700;
  border-radius: var(--radius-pill);
  z-index: 300;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   FLOATING VISIONOS-STYLE LIQUID GLASS NAVBAR
   ========================================================================== */
.studio-header {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  z-index: 120;
  pointer-events: none;
  padding: 0 18px;
}

.header-capsule {
  pointer-events: auto;
  max-width: 980px;
  margin: 0 auto;
  padding: 8px 10px 8px 18px;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-radius: var(--radius-pill);
  background: linear-gradient(
    180deg,
    rgba(28, 28, 32, 0.64) 0%,
    rgba(10, 10, 12, 0.72) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(28px) saturate(175%);
  -webkit-backdrop-filter: blur(28px) saturate(175%);
  box-shadow:
    0 20px 52px rgba(0, 0, 0, 0.66),
    0 1px 0 rgba(255, 255, 255, 0.24) inset,
    0 -1px 0 rgba(0, 0, 0, 0.45) inset;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.header-capsule:hover {
  border-color: rgba(255, 255, 255, 0.22);
}

.studio-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.studio-logo-img {
  display: block;
  width: auto;
  object-fit: contain;
  user-select: none;
}

.studio-logo-nav {
  height: 30px;
  max-height: 30px;
  width: auto;
  opacity: 0.88;
  transition: opacity 0.22s ease;
}

.studio-brand:hover .studio-logo-nav {
  opacity: 1;
}

.studio-logo-hero {
  width: min(306px, 74vw);
  max-width: 306px;
  height: auto;
  margin: 0 auto 10px;
  opacity: 0.86;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.90) 0%, rgba(0, 0, 0, 1) 100%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.90) 0%, rgba(0, 0, 0, 1) 100%);
  filter: drop-shadow(0 14px 36px rgba(0, 0, 0, 0.80));
}

.studio-nav {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.studio-nav a {
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.18s ease, background 0.18s ease;
}

.studio-nav a:hover,
.studio-nav a[aria-current="page"] {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ---------- Pure Monochrome CSS Liquid Glass Buttons ---------- */
.glass-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 19px;
  min-height: 40px;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #ffffff;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.18) 0%,
    rgba(255, 255, 255, 0.06) 52%,
    rgba(255, 255, 255, 0.03) 100%
  );
  backdrop-filter: blur(24px) saturate(165%);
  -webkit-backdrop-filter: blur(24px) saturate(165%);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.54),
    0 1.5px 0 rgba(255, 255, 255, 0.36) inset,
    0 -1px 0 rgba(0, 0, 0, 0.4) inset;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.22s ease,
              border-color 0.22s ease,
              background 0.22s ease;
  overflow: hidden;
  white-space: nowrap;
}

.glass-btn::before {
  content: "";
  position: absolute;
  inset: 0 12% auto 12%;
  height: 45%;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.30), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.glass-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.44);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.24) 0%,
    rgba(255, 255, 255, 0.10) 55%,
    rgba(255, 255, 255, 0.05) 100%
  );
  box-shadow:
    0 16px 38px rgba(0, 0, 0, 0.68),
    0 1.5px 0 rgba(255, 255, 255, 0.52) inset;
}

.glass-btn:active {
  transform: translateY(0) scale(0.985);
}

.glass-btn-primary {
  border-color: rgba(255, 255, 255, 0.34);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.25) 0%,
    rgba(255, 255, 255, 0.11) 54%,
    rgba(255, 255, 255, 0.06) 100%
  );
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.62),
    0 0 22px rgba(255, 255, 255, 0.08),
    0 1.5px 0 rgba(255, 255, 255, 0.54) inset;
}

.glass-btn-lg {
  padding: 13px 28px;
  min-height: 50px;
  font-size: 0.96rem;
}

/* RateMint emerald liquid glass button — strictly inside the RateMint portal window on /tools */
.glass-btn-ratemint {
  color: #ffffff;
  border-color: rgba(110, 231, 183, 0.48);
  background: linear-gradient(
    180deg,
    rgba(52, 211, 153, 0.88) 0%,
    rgba(16, 185, 129, 0.94) 55%,
    rgba(5, 150, 105, 0.98) 100%
  );
  box-shadow:
    0 10px 28px rgba(5, 150, 105, 0.42),
    0 0 24px rgba(16, 185, 129, 0.28),
    0 1.5px 0 rgba(255, 255, 255, 0.46) inset;
}

.glass-btn-ratemint:hover {
  border-color: rgba(167, 243, 208, 0.75);
  background: linear-gradient(
    180deg,
    rgba(52, 211, 153, 0.96) 0%,
    rgba(16, 185, 129, 0.98) 55%,
    rgba(5, 150, 105, 1) 100%
  );
  box-shadow:
    0 14px 36px rgba(5, 150, 105, 0.56),
    0 0 32px rgba(52, 211, 153, 0.36),
    0 1.5px 0 rgba(255, 255, 255, 0.56) inset;
}

/* ==========================================================================
   WEBGL LIQUID GLASS STAGES (@ybouane/liquidglass)
   ========================================================================== */
.lg-stage {
  position: relative;
  width: 100%;
  isolation: isolate;
}

.lg-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  pointer-events: none;
  opacity: 0.86;
  filter: contrast(1.08) brightness(0.86);
}

.lg-backdrop-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 76% 62% at 50% 34%, transparent 18%, rgba(4, 4, 5, 0.78) 100%),
    linear-gradient(180deg, rgba(4, 4, 5, 0.46) 0%, rgba(4, 4, 5, 0.08) 38%, rgba(4, 4, 5, 0.98) 100%);
}

/* WebGL Glass Surface (direct children of [data-lg-root]) */
.lg-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 32px;
  min-height: 54px;
  border-radius: 30px;
  color: #ffffff;
  font-weight: 650;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  z-index: 4;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.66), 0 1px 0 rgba(255, 255, 255, 0.36) inset;
}

.lg-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 20px;
  border-radius: 22px;
  font-size: 0.80rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f4f4f5;
  z-index: 4;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.lg-btn .lg-label,
.lg-pill .lg-label,
.lg-hud-card .lg-content,
.lg-card .lg-content {
  position: relative;
  z-index: 2;
}

.lg-btn .lg-label,
.lg-pill .lg-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.72);
}

.lg-btn .lg-label {
  pointer-events: none;
}

.lg-pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.95);
}

.lg-card,
.lg-hud-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  border-radius: 28px;
  z-index: 3;
  background: linear-gradient(155deg, rgba(24, 24, 28, 0.68), rgba(8, 8, 10, 0.82));
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow: var(--shadow-glass);
}

.lg-card .lg-content,
.lg-hud-card .lg-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  height: 100%;
}

/* Once @ybouane/liquidglass mounts its WebGL canvas, let the shader own the glass lens */
.lg-webgl-active > .lg-surface {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* ==========================================================================
   FULL-BLEED CINEMATIC HERO
   ========================================================================== */
.hero-lg-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(20px, 1fr) auto auto minmax(20px, 1fr);
  grid-template-rows: auto auto auto auto auto;
  gap: 20px 16px;
  justify-items: center;
  align-items: center;
  align-content: center;
  padding: 118px clamp(20px, 4vw, 48px) 64px;
  min-height: 94vh;
}

.hero-brand-block {
  grid-column: 1 / -1;
  grid-row: 1;
  position: relative;
  z-index: 2;
  text-align: center;
  pointer-events: none;
}

.hero-pill-slot {
  grid-column: 1 / -1;
  grid-row: 2;
}

.hero-text-block {
  grid-column: 1 / -1;
  grid-row: 3;
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 860px;
  pointer-events: none;
}

.hero-text-block h1 {
  margin: 0 auto 18px;
  font-size: clamp(2.65rem, 6.2vw, 4.8rem);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -0.05em;
  background: linear-gradient(180deg, #ffffff 22%, #9ca3af 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.85));
}

.hero-text-block p {
  margin: 0 auto;
  max-width: 600px;
  font-size: clamp(1.02rem, 1.45vw, 1.16rem);
  line-height: 1.68;
  color: #d4d4d8;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.90);
}

.hero-btn-left {
  grid-column: 2;
  grid-row: 4;
  margin-top: 10px;
}

.hero-btn-right {
  grid-column: 3;
  grid-row: 4;
  margin-top: 10px;
}

.hero-scroll-cue {
  grid-column: 1 / -1;
  grid-row: 5;
  position: relative;
  z-index: 2;
  margin-top: 30px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.70rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.44);
}

.hero-scroll-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), transparent);
}

/* ==========================================================================
   SECTIONS & EDITORIAL HEADINGS
   ========================================================================== */
.studio-section {
  position: relative;
  padding: clamp(56px, 7vw, 96px) 0;
  scroll-margin-top: 84px;
}

.section-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px 32px;
  margin-bottom: 32px;
}

.section-kicker {
  display: inline-block;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #a1a1aa;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.85rem, 3.4vw, 2.75rem);
  font-weight: 780;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: #ffffff;
}

.section-heading p {
  margin: 0;
  max-width: 460px;
  font-size: 0.98rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   CINEMATIC FEATURED GAME SHOWCASE (Key Art + WebGL Liquid Glass HUD)
   ========================================================================== */
.game-showcase-frame {
  position: relative;
  border-radius: 34px;
  min-height: 540px;
  padding: clamp(24px, 4vw, 44px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  grid-template-rows: auto 1fr auto;
  gap: 24px;
  align-items: end;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.78);
  isolation: isolate;
}

.game-showcase-frame .lg-backdrop {
  border-radius: 34px;
  opacity: 0.96;
  filter: contrast(1.06) brightness(0.92);
}

.game-showcase-frame .lg-backdrop-vignette {
  border-radius: 34px;
  background:
    linear-gradient(90deg, rgba(4, 4, 5, 0.84) 0%, rgba(4, 4, 5, 0.34) 52%, rgba(4, 4, 5, 0.55) 100%),
    linear-gradient(180deg, rgba(4, 4, 5, 0.36) 0%, rgba(4, 4, 5, 0.12) 44%, rgba(4, 4, 5, 0.88) 100%);
}

.game-hud-top-pill {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  align-self: start;
}

.game-hud-copy {
  grid-column: 1;
  grid-row: 2 / 4;
  align-self: end;
  max-width: 560px;
}

.game-hud-copy h3 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
  color: #ffffff;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.85);
}

.game-hud-copy p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.66;
  color: #d4d4d8;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.85);
}

.game-hud-specs {
  grid-column: 2;
  grid-row: 3;
  justify-self: end;
  width: 100%;
  max-width: 420px;
}

.spec-row-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.spec-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.88rem;
}

.spec-row:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.spec-row span {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: #a1a1aa;
}

.spec-row strong {
  color: #ffffff;
  font-weight: 650;
}

/* ==========================================================================
   CURSOR-TRACKED SPECULAR GLASS BENTO GRID
   ========================================================================== */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}

.bento-span-12 { grid-column: span 12; }
.bento-span-7  { grid-column: span 7; }
.bento-span-6  { grid-column: span 6; }
.bento-span-5  { grid-column: span 5; }
.bento-span-4  { grid-column: span 4; }

.glass-spotlight {
  --mx: 50%;
  --my: 0%;
}

.bento-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: linear-gradient(
    155deg,
    rgba(24, 24, 28, 0.72) 0%,
    rgba(9, 9, 11, 0.88) 100%
  );
  border: 1px solid var(--border);
  backdrop-filter: blur(24px) saturate(155%);
  -webkit-backdrop-filter: blur(24px) saturate(155%);
  box-shadow: var(--shadow-glass);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.28s ease,
              box-shadow 0.28s ease;
  overflow: hidden;
}

.bento-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(460px circle at var(--mx) var(--my), rgba(255, 255, 255, 0.095), transparent 52%);
  opacity: 0;
  transition: opacity 0.28s ease;
  pointer-events: none;
}

.bento-card:hover::before {
  opacity: 1;
}

.bento-card::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.34), transparent);
  pointer-events: none;
}

a.bento-card:hover,
.bento-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-glass-hover);
}

a.bento-card:hover {
  transform: translateY(-4px);
}

.bento-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.bento-index {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

.bento-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.22) inset;
}

.bento-tag {
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.70rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f4f4f5;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.20);
}

.bento-tag.subtle {
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
}

.bento-card h3 {
  margin: 16px 0 8px;
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #ffffff;
}

.bento-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.64;
}

.bento-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 650;
  color: #ffffff;
}

.muted-note {
  font-size: 0.86rem;
  color: var(--text-muted);
}

/* ==========================================================================
   STUDIO DISPATCH / ROADMAP LIST
   ========================================================================== */
.dispatch-list {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(12, 12, 14, 0.74);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.dispatch-row {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  align-items: center;
  gap: 16px 24px;
  padding: 22px 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.2s ease;
}

.dispatch-row:last-child {
  border-bottom: none;
}

.dispatch-row:hover {
  background: rgba(255, 255, 255, 0.035);
}

.dispatch-code {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.dispatch-body h3 {
  margin: 0 0 4px;
  font-size: 1.06rem;
  font-weight: 680;
  color: #ffffff;
}

.dispatch-body p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   TOOLS PAGE: CLICKABLE APP PORTAL WINDOWS
   ========================================================================== */
.portal-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
}

.app-window {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(14, 14, 16, 0.84);
  backdrop-filter: blur(26px) saturate(160%);
  -webkit-backdrop-filter: blur(26px) saturate(160%);
  box-shadow:
    0 26px 64px rgba(0, 0, 0, 0.74),
    0 1px 0 rgba(255, 255, 255, 0.16) inset;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.28s ease,
              box-shadow 0.28s ease;
}

.app-window:hover {
  transform: translateY(-6px);
}

.app-window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.44);
}

.window-dots {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
}

.window-dots i {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.window-dots i:nth-child(1) { background: rgba(255, 95, 86, 0.85); }
.window-dots i:nth-child(2) { background: rgba(255, 189, 46, 0.85); }
.window-dots i:nth-child(3) { background: rgba(39, 201, 63, 0.85); }

.window-address {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: rgba(228, 228, 231, 0.74);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.09);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.window-status {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  flex-shrink: 0;
}

.app-window-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  flex: 1;
}

/* --- RateMint Clickable Emerald Window (ONLY green element on /tools) --- */
.app-window-ratemint {
  border-color: rgba(16, 185, 129, 0.36);
  background:
    radial-gradient(ellipse 85% 65% at 88% 8%, rgba(16, 185, 129, 0.22), transparent 58%),
    radial-gradient(circle at 12% 96%, rgba(5, 150, 105, 0.16), transparent 52%),
    linear-gradient(160deg, #061714 0%, #050c0c 58%, #040809 100%);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.74),
    0 0 42px rgba(16, 185, 129, 0.12),
    0 1px 0 rgba(167, 243, 208, 0.20) inset;
}

.app-window-ratemint:hover {
  border-color: rgba(52, 211, 153, 0.68);
  box-shadow:
    0 32px 76px rgba(0, 0, 0, 0.82),
    0 0 64px rgba(16, 185, 129, 0.24),
    0 1px 0 rgba(167, 243, 208, 0.30) inset;
}

.app-window-ratemint .window-status {
  color: #a7f3d0;
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(52, 211, 153, 0.36);
}

.rm-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.rm-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.rm-mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #34d399;
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(52, 211, 153, 0.34);
}

.rm-wordmark {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #f8fafc;
}

.rm-wordmark strong {
  color: #34d399;
}

.rm-window-lead {
  margin: 12px 0 0;
  font-size: 0.96rem;
  color: #a7c4bc;
  max-width: 560px;
}

.rm-mini-ui {
  padding: 18px;
  border-radius: 18px;
  background: rgba(4, 15, 13, 0.72);
  border: 1px solid rgba(52, 211, 153, 0.22);
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 16px;
  align-items: center;
}

.rm-mini-rate-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6ee7b7;
}

.rm-mini-rate-value {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #ecfdf5;
  line-height: 1.1;
  margin: 4px 0;
}

.rm-mini-rate-value span {
  font-size: 1rem;
  color: #6ee7b7;
  font-weight: 600;
}

.rm-mini-bars {
  display: flex;
  height: 9px;
  border-radius: 999px;
  overflow: hidden;
  gap: 2px;
  margin-top: 10px;
}

.rm-mini-bars i:nth-child(1) { flex: 54; background: #10b981; }
.rm-mini-bars i:nth-child(2) { flex: 26; background: #f59e0b; }
.rm-mini-bars i:nth-child(3) { flex: 12; background: #a1a1aa; }
.rm-mini-bars i:nth-child(4) { flex: 8;  background: #52525b; }

.rm-mini-pills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.rm-mini-pill {
  padding: 9px 11px;
  border-radius: 11px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #d1fae5;
  background: rgba(16, 185, 129, 0.10);
  border: 1px solid rgba(52, 211, 153, 0.20);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.window-footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

/* --- PDF Sign & Stamp Clickable Obsidian Window (Zero Blue) --- */
.app-window-pdf {
  border-color: rgba(255, 255, 255, 0.18);
  background:
    radial-gradient(ellipse 80% 60% at 88% 10%, rgba(255, 255, 255, 0.09), transparent 58%),
    linear-gradient(160deg, #141417 0%, #09090b 100%);
}

.app-window-pdf:hover {
  border-color: rgba(255, 255, 255, 0.40);
  box-shadow:
    0 32px 76px rgba(0, 0, 0, 0.84),
    0 0 38px rgba(255, 255, 255, 0.07),
    0 1px 0 rgba(255, 255, 255, 0.28) inset;
}

.app-window-pdf .window-status {
  color: #e4e4e7;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.20);
}

.pdf-mini-doc {
  padding: 16px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pdf-mini-line {
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.pdf-mini-sign-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px dashed rgba(255, 255, 255, 0.20);
}

.pdf-mini-stamp {
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #f4f4f5;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  transform: rotate(-3deg);
}

/* ---------- Legal / Editorial Pages (About, Privacy, Terms) ---------- */
.studio-main {
  padding: 112px 0 clamp(56px, 7vw, 88px);
}

.editorial-card {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--radius-lg);
  background: linear-gradient(155deg, rgba(24, 24, 28, 0.78), rgba(10, 10, 12, 0.90));
  border: 1px solid var(--border);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow: var(--shadow-glass);
}

.editorial-card h1 {
  margin: 6px 0 14px;
  font-size: clamp(1.75rem, 3vw, 2.3rem);
  letter-spacing: -0.03em;
  color: #ffffff;
}

.editorial-card h2 {
  margin: 28px 0 10px;
  font-size: 1.2rem;
  color: #f4f4f5;
}

.editorial-card p,
.editorial-card li {
  color: var(--text-secondary);
  line-height: 1.72;
}

.editorial-card a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.editorial-card code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.09);
  color: #f4f4f5;
}

/* ---------- Contact Panel ---------- */
.contact-glass-card {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(40px, 5.5vw, 64px) 32px;
  text-align: center;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(ellipse 75% 60% at 50% 0%, rgba(255, 255, 255, 0.09), transparent 65%),
    linear-gradient(160deg, rgba(22, 22, 26, 0.82), rgba(8, 8, 10, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: var(--shadow-glass);
  overflow: hidden;
}

.contact-glass-card h2 {
  margin: 8px 0 12px;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  letter-spacing: -0.035em;
  color: #ffffff;
}

.contact-glass-card p {
  margin: 0 auto 28px;
  max-width: 540px;
  color: var(--text-secondary);
}

.studio-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

/* ---------- Footer ---------- */
.studio-footer {
  margin-top: 32px;
  padding: 44px 0 54px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(3, 3, 4, 0.88);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-brand {
  font-size: 1.05rem;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: #f4f4f5;
}

.footer-brand strong {
  color: #a1a1aa;
  font-weight: 700;
}

.footer-note {
  margin: 6px 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 480px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-disclaimer {
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ---------- Subtle Scroll Reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

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

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .bento-span-7,
  .bento-span-6,
  .bento-span-5,
  .bento-span-4 {
    grid-column: span 12;
  }

  .game-showcase-frame {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    min-height: 520px;
  }

  .game-hud-copy {
    grid-column: 1;
    grid-row: 2;
  }

  .game-hud-specs {
    grid-column: 1;
    grid-row: 3;
    justify-self: stretch;
    max-width: none;
  }

  .rm-mini-ui {
    grid-template-columns: 1fr;
  }

  .dispatch-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (max-width: 720px) {
  .studio-nav {
    display: none;
  }

  .hero-lg-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto auto auto;
    min-height: 88vh;
    padding-top: 106px;
  }

  .hero-btn-left {
    grid-column: 1;
    grid-row: 4;
  }

  .hero-btn-right {
    grid-column: 1;
    grid-row: 5;
    margin-top: 0;
  }

  .hero-scroll-cue {
    grid-row: 6;
  }

  .container {
    padding: 0 18px;
  }

  .app-window-body,
  .bento-card,
  .lg-card,
  .lg-hud-card {
    padding: 22px;
  }

  .window-address {
    display: none;
  }
}
