:root {
  color-scheme: dark;

  /* Typography */
  --font-serif: "Fraunces", "Times New Roman", serif;
  --font-sans: "Outfit", "Bricolage Grotesque", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Base Backgrounds */
  --bg-primary: #070913;
  --bg-secondary: #0d1124;
  --bg-tertiary: #130f24;

  /* LGBTQ+ Pride Spectrum */
  --pride-red: #ff3b69;
  --pride-orange: #ff782d;
  --pride-yellow: #fbb028;
  --pride-green: #10b981;
  --pride-blue: #0ea5e9;
  --pride-purple: #9333ea;
  --pride-pink: #f472b6;
  --pride-cyan: #06b6d4;

  /* Pride Gradients */
  --pride-spectrum: linear-gradient(
    135deg,
    #ff3b69 0%,
    #ff782d 16.6%,
    #fbb028 33.3%,
    #10b981 50%,
    #0ea5e9 66.6%,
    #9333ea 83.3%,
    #f472b6 100%
  );
  --pride-spectrum-soft: linear-gradient(
    135deg,
    rgba(255, 59, 105, 0.18) 0%,
    rgba(255, 120, 45, 0.15) 18%,
    rgba(251, 176, 40, 0.15) 36%,
    rgba(16, 185, 129, 0.15) 54%,
    rgba(14, 165, 233, 0.15) 72%,
    rgba(147, 51, 234, 0.18) 90%,
    rgba(244, 114, 182, 0.18) 100%
  );
  --pride-border-glow: linear-gradient(
    135deg,
    rgba(255, 59, 105, 0.5) 0%,
    rgba(255, 120, 45, 0.45) 20%,
    rgba(251, 176, 40, 0.45) 40%,
    rgba(16, 185, 129, 0.45) 60%,
    rgba(14, 165, 233, 0.5) 80%,
    rgba(147, 51, 234, 0.55) 100%
  );

  /* Primary Brand & Accent */
  --accent: #f5b74f;
  --accent-hover: #ffd175;
  --accent-deep: #d49320;
  --accent-rose: #f472b6;
  --accent-teal: #2dd4bf;
  --highlight: #2dd4bf;

  /* Surfaces & Glassmorphism */
  --surface: rgba(12, 16, 36, 0.58);
  --surface-hover: rgba(18, 24, 48, 0.75);
  --surface-strong: rgba(9, 12, 28, 0.78);
  --surface-glass: rgba(255, 255, 255, 0.04);
  --border-glass: rgba(255, 255, 255, 0.1);
  --border-glass-subtle: rgba(255, 255, 255, 0.06);
  --border-glass-strong: rgba(255, 255, 255, 0.18);
  --border-glass-hover: rgba(245, 183, 79, 0.4);

  /* Shadows & Depth */
  --shadow-soft: 0 16px 40px -12px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.07);
  --shadow-strong: 0 28px 64px -16px rgba(0, 0, 0, 0.72), 0 0 0 1px rgba(255, 255, 255, 0.1);
  --shadow-pride-glow: 0 12px 35px -8px rgba(244, 114, 182, 0.25), 0 8px 24px -6px rgba(14, 165, 233, 0.2);

  /* Typography Colors */
  --text-primary: #f8f8fc;
  --text-secondary: #cbd5e1;
  --text-muted: rgba(203, 213, 225, 0.8);
  --text-dim: rgba(203, 213, 225, 0.55);
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  background-image:
    radial-gradient(at 15% 15%, rgba(255, 59, 105, 0.08) 0px, transparent 50%),
    radial-gradient(at 85% 10%, rgba(14, 165, 233, 0.1) 0px, transparent 55%),
    radial-gradient(at 50% 50%, rgba(147, 51, 234, 0.06) 0px, transparent 60%),
    radial-gradient(at 20% 85%, rgba(251, 176, 40, 0.09) 0px, transparent 50%),
    radial-gradient(at 80% 85%, rgba(16, 185, 129, 0.08) 0px, transparent 50%),
    linear-gradient(155deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-tertiary) 100%);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

body::selection,
::selection {
  background: rgba(251, 176, 40, 0.35);
  color: #ffffff;
}

/* Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-serif);
  color: var(--text-primary);
  letter-spacing: -0.02em;
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
}

p {
  color: var(--text-muted);
  margin-top: 0;
  line-height: 1.75;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Scroll Progress Bar */
.scroll-progress {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 9999;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.06);
}

.scroll-bar {
  height: 100%;
  width: 0%;
  background: var(--pride-spectrum);
  box-shadow: 0 0 10px rgba(251, 176, 40, 0.5);
  border-radius: 0 2px 2px 0;
  transition: width 80ms linear;
}

/* Dynamic Flowing Ambient Background */
.ambient-flow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  background: radial-gradient(circle at 50% 50%, #0d1228 0%, #070913 100%);
}

/* Continuous Rotating Aurora Spectrum Wave */
.ambient-aurora {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    from 0deg at 50% 50%,
    rgba(255, 59, 105, 0.42) 0deg,
    rgba(255, 120, 45, 0.38) 60deg,
    rgba(251, 176, 40, 0.42) 120deg,
    rgba(16, 185, 129, 0.38) 180deg,
    rgba(14, 165, 233, 0.42) 240deg,
    rgba(147, 51, 234, 0.42) 300deg,
    rgba(255, 59, 105, 0.42) 360deg
  );
  filter: blur(60px);
  animation: aurora-spin 34s linear infinite;
  opacity: 0.85;
  mix-blend-mode: screen;
}

@keyframes aurora-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  will-change: transform, opacity;
  mix-blend-mode: screen;
}

/* Orb 1: Rose Coral / Pride Pink */
.ambient-orb--1 {
  width: min(60vw, 750px);
  height: min(60vw, 750px);
  top: -5%;
  left: 0%;
  background: radial-gradient(circle, rgba(255, 59, 105, 0.58) 0%, rgba(255, 120, 45, 0.35) 45%, transparent 70%);
  animation: flow-orb-1 22s cubic-bezier(0.42, 0.05, 0.58, 0.95) infinite alternate;
}

/* Orb 2: Celestial Cyan / Seafoam Teal */
.ambient-orb--2 {
  width: min(58vw, 720px);
  height: min(58vw, 720px);
  top: 5%;
  right: -5%;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.58) 0%, rgba(45, 212, 191, 0.35) 45%, transparent 70%);
  animation: flow-orb-2 26s cubic-bezier(0.42, 0.05, 0.58, 0.95) infinite alternate;
}

/* Orb 3: Golden Honey / Warm Amber */
.ambient-orb--3 {
  width: min(60vw, 750px);
  height: min(60vw, 750px);
  bottom: -10%;
  left: 5%;
  background: radial-gradient(circle, rgba(251, 176, 40, 0.56) 0%, rgba(255, 120, 45, 0.35) 45%, transparent 70%);
  animation: flow-orb-3 24s cubic-bezier(0.42, 0.05, 0.58, 0.95) infinite alternate;
}

/* Orb 4: Lavender Violet / Iris */
.ambient-orb--4 {
  width: min(62vw, 780px);
  height: min(62vw, 780px);
  bottom: -5%;
  right: 0%;
  background: radial-gradient(circle, rgba(147, 51, 234, 0.56) 0%, rgba(244, 114, 182, 0.35) 50%, transparent 70%);
  animation: flow-orb-4 28s cubic-bezier(0.42, 0.05, 0.58, 0.95) infinite alternate;
}

@keyframes flow-orb-1 {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.8;
  }
  50% {
    transform: translate3d(24vw, 18vh, 0) scale(1.18);
    opacity: 0.98;
  }
  100% {
    transform: translate3d(12vw, 32vh, 0) scale(0.92);
    opacity: 0.82;
  }
}

@keyframes flow-orb-2 {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.82;
  }
  50% {
    transform: translate3d(-22vw, 20vh, 0) scale(1.2);
    opacity: 0.98;
  }
  100% {
    transform: translate3d(-10vw, 36vh, 0) scale(0.9);
    opacity: 0.78;
  }
}

@keyframes flow-orb-3 {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.78;
  }
  50% {
    transform: translate3d(18vw, -22vh, 0) scale(1.15);
    opacity: 0.95;
  }
  100% {
    transform: translate3d(28vw, -12vh, 0) scale(0.92);
    opacity: 0.8;
  }
}

@keyframes flow-orb-4 {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.82;
  }
  50% {
    transform: translate3d(-20vw, -18vh, 0) scale(1.16);
    opacity: 0.98;
  }
  100% {
    transform: translate3d(-14vw, -30vh, 0) scale(0.92);
    opacity: 0.78;
  }
}

/* Background Sketch Watermark */
.bg-sketch {
  position: fixed;
  bottom: 0;
  right: 0;
  width: clamp(200px, 20vw, 380px);
  height: clamp(240px, 28vh, 460px);
  background-image: url('/img/kitten.png');
  background-size: contain;
  background-position: right bottom;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 1;
  opacity: 0.16;
  mix-blend-mode: screen;
  filter: contrast(1.2) brightness(1.1);
}

/* Glassmorphic Surfaces */
.surface-card {
  background: var(--surface);
  border: 1px solid var(--border-glass);
  border-radius: 26px;
  box-shadow: var(--shadow-soft);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.surface-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  pointer-events: none;
  z-index: 1;
}

.surface-card-strong {
  background: var(--surface-strong);
  border: 1px solid var(--border-glass-strong);
  box-shadow: var(--shadow-strong);
}

/* Chips & Badges */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: rgba(251, 176, 40, 0.12);
  border: 1px solid rgba(251, 176, 40, 0.38);
  color: #ffe6ba;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 16px -4px rgba(251, 176, 40, 0.2);
  transition: all 0.2s ease;
}

.chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.chip:hover {
  border-color: rgba(251, 176, 40, 0.6);
  background: rgba(251, 176, 40, 0.18);
  transform: translateY(-1px);
}

.pride-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.42rem 0.95rem;
  border-radius: 999px;
  background: var(--surface-glass);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  transition: all 0.2s ease;
}

.pride-pill::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--pride-spectrum);
}

.pride-pill:hover {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

/* Page Shell & Layout */
.app-root {
  display: block;
  position: relative;
  z-index: 2;
}

.page-shell {
  min-height: 100vh;
  width: 100%;
  padding: clamp(0.5rem, 1.2vw, 1.4rem) clamp(1rem, 2.4vw, 2.8rem) clamp(1.5rem, 3vw, 3.5rem);
  box-sizing: border-box;
  display: flex;
  justify-content: center;
}

.page-shell__inner {
  width: 100%;
  max-width: 1240px;
  display: flex;
  flex-direction: column;
  gap: clamp(1.2rem, 2vw, 2.2rem);
  position: relative;
}

/* Floating Sticky Header */
.page-shell__header {
  position: relative;
  z-index: 50;
  padding: clamp(1rem, 1.6vw, 1.5rem) clamp(1.2rem, 2.4vw, 2.2rem);
  animation: rise-in 450ms ease-out;
  transition: padding 0.25s ease, box-shadow 0.25s ease, background 0.25s ease !important;
  transform: none !important;
}

.page-shell__header::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    #ff3b69,
    #ff782d,
    #fbb028,
    #10b981,
    #0ea5e9,
    #9333ea,
    #f472b6,
    #ff3b69
  );
  background-size: 200% 100%;
  animation: pride-stream 16s linear infinite;
  opacity: 0.9;
  border-top-left-radius: 26px;
  border-top-right-radius: 26px;
  pointer-events: none;
}

@keyframes pride-stream {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

.page-shell__header.is-condensed {
  position: fixed;
  top: clamp(0.6rem, 1.2vw, 1rem);
  left: 0;
  right: 0;
  margin-left: auto;
  margin-right: auto;
  width: min(calc(100% - clamp(2rem, 4.8vw, 5.6rem)), 1240px);
  box-sizing: border-box;
  z-index: 1000;
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
  box-shadow: var(--shadow-strong);
  transform: none !important;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.navbar__brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.navbar__logo {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 12px;
  display: block;
}

.navbar__identity {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.navbar__title-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.navbar__name {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 1.8vw, 1.45rem);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1;
}

.navbar__tag {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-dim);
  font-weight: 600;
}

/* Progress Pride Flag Badge with 3D Interaction */
.navbar__flag {
  display: inline-block;
  width: 33px;
  height: 20px;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.25);
  position: relative;
  overflow: hidden;
  vertical-align: middle;
  cursor: pointer;
  flex-shrink: 0;
  background-image: url('/img/progress-pride-flag.svg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
}

.navbar__flag::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.3) 0%, transparent 60%);
  pointer-events: none;
}

.navbar__flag:hover {
  transform: scale(1.22) rotate(2deg);
  box-shadow: 0 4px 18px rgba(244, 114, 182, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.5);
}

/* Status Pill with Pulsing Dot */
.navbar__status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--highlight);
  background: rgba(45, 212, 191, 0.1);
  border: 1px solid rgba(45, 212, 191, 0.28);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  width: fit-content;
}

.navbar__status::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--highlight);
  box-shadow: 0 0 8px var(--highlight);
  animation: pulse-status 2.2s ease-in-out infinite;
}

@keyframes pulse-status {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(45, 212, 191, 0.6);
  }
  50% {
    opacity: 0.85;
    transform: scale(1.2);
    box-shadow: 0 0 0 6px rgba(45, 212, 191, 0);
  }
}

/* Navbar Nav Links */
.navbar__links {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.navbar-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  border: 1px solid var(--border-glass);
  background: rgba(15, 20, 42, 0.65);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  overflow: hidden;
  user-select: none;
}

.navbar-link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--pride-spectrum-soft);
  opacity: 0;
  transition: opacity 0.25s ease;
  border-radius: inherit;
}

.navbar-link:hover {
  color: #ffffff;
  border-color: rgba(251, 176, 40, 0.45);
  background: rgba(24, 32, 64, 0.85);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px -4px rgba(0, 0, 0, 0.4);
}

.navbar-link:hover::before {
  opacity: 0.4;
}

.navbar-link.is-active {
  color: #ffffff;
  border-color: rgba(251, 176, 40, 0.6);
  background: linear-gradient(135deg, rgba(251, 176, 40, 0.22) 0%, rgba(45, 212, 191, 0.16) 100%);
  box-shadow: 0 4px 18px -2px rgba(251, 176, 40, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.navbar-link.is-active::after {
  content: "";
  position: absolute;
  bottom: 3px;
  left: 30%;
  right: 30%;
  height: 2px;
  border-radius: 999px;
  background: var(--pride-spectrum);
}

.navbar-link span {
  position: relative;
  z-index: 2;
}

/* Luxury Interactive Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  user-select: none;
}

.button--primary {
  background: linear-gradient(135deg, #f5b74f 0%, #ff8a3d 100%);
  color: #0b0f1e;
  border: none;
  box-shadow: 0 10px 28px -6px rgba(245, 183, 79, 0.5);
}

.button--primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 14px 34px -6px rgba(245, 183, 79, 0.65), 0 0 18px rgba(255, 120, 45, 0.4);
  color: #0b0f1e;
}

.button--ghost {
  border: 1px solid var(--border-glass-strong);
  background: rgba(14, 19, 42, 0.6);
  color: var(--text-primary);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.button--ghost:hover {
  border-color: rgba(251, 176, 40, 0.6);
  background: rgba(24, 32, 64, 0.85);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.4);
  color: #ffffff;
}

/* Main Content Wrapper */
.page-shell__main {
  display: flex;
  flex-direction: column;
  gap: clamp(1.8rem, 2.8vw, 3rem);
  animation: rise-in 520ms ease-out;
}

/* Hero Section */
.hero-section {
  position: relative;
  overflow: hidden;
  padding: clamp(2.6rem, 4.5vw, 4.5rem) clamp(1.4rem, 3.5vw, 3.5rem);
  background: linear-gradient(160deg, rgba(12, 16, 36, 0.92) 0%, rgba(18, 22, 48, 0.85) 100%);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-strong);
  border-radius: 28px;
  animation: rise-in 520ms cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-section::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -10%;
  width: 580px;
  height: 580px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.18) 0%, rgba(45, 212, 191, 0.1) 40%, transparent 70%);
  pointer-events: none;
  border-radius: 50%;
  filter: blur(60px);
}

.hero-section::after {
  content: "";
  position: absolute;
  left: -8%;
  bottom: -35%;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(255, 59, 105, 0.15) 0%, rgba(251, 176, 40, 0.12) 40%, transparent 70%);
  pointer-events: none;
  border-radius: 50%;
  filter: blur(60px);
}

.hero-layout {
  position: relative;
  z-index: 2;
  display: grid;
  gap: clamp(2rem, 3.5vw, 3.2rem);
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr);
  align-items: center;
}

.hero-copy {
  display: grid;
  gap: 1.4rem;
}

.hero-copy h1 {
  font-size: clamp(2.6rem, 4.2vw + 1rem, 4.6rem);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.025em;
  background: linear-gradient(135deg, #ffffff 25%, #fbb028 60%, #2dd4bf 95%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-copy p {
  font-size: 1.12rem;
  line-height: 1.85;
  color: var(--text-secondary);
  max-width: 54ch;
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero-highlights li {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 1.15rem;
  border-radius: 14px;
  border: 1px solid var(--border-glass);
  background: rgba(12, 17, 36, 0.75);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero-highlights li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pride-spectrum);
  box-shadow: 0 0 8px rgba(251, 176, 40, 0.4);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}

/* Hero Contact Card */
.hero-contact-card {
  display: grid;
  gap: 1.25rem;
  padding: 2rem 2.2rem;
  border-radius: 24px;
  border: 1px solid var(--border-glass);
  background: rgba(12, 17, 36, 0.78);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  position: relative;
  overflow: hidden;
}

.hero-contact-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--pride-spectrum);
}

.hero-contact-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(251, 176, 40, 0.95);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-contact-links {
  display: grid;
  gap: 0.85rem;
}

.hero-contact-links a {
  color: var(--text-primary);
  font-size: 1.05rem;
  font-weight: 600;
  width: fit-content;
  border-bottom: 1px solid rgba(251, 176, 40, 0.35);
  padding-bottom: 2px;
  transition: all 0.2s ease;
}

.hero-contact-links a:hover {
  color: var(--accent-hover);
  border-color: var(--accent);
  transform: translateX(4px);
}

.hero-contact-note {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* General Section Wrapper */
.section {
  position: relative;
  padding: clamp(2.4rem, 3.8vw, 3.8rem) clamp(1.4rem, 3.5vw, 3.5rem);
  margin: 0;
  background: var(--surface);
  border-radius: 28px;
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-soft);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  overflow: visible;
}

.section::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 12% 10%, rgba(251, 176, 40, 0.1), transparent 45%),
    radial-gradient(circle at 88% 12%, rgba(45, 212, 191, 0.08), transparent 50%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 60%);
  opacity: 0.8;
  pointer-events: none;
  z-index: 0;
}

.section__header {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.75rem;
  margin-bottom: clamp(1.8rem, 2.5vw, 2.6rem);
}

.section__eyebrow {
  width: 52px;
  height: 4px;
  border-radius: 999px;
  background: var(--pride-spectrum);
  box-shadow: 0 0 12px rgba(251, 176, 40, 0.4);
}

.section__title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.section__title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 2.5vw + 1rem, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.section__subtitle {
  margin-top: 0.5rem;
  color: var(--text-secondary);
  font-size: 1.08rem;
  max-width: 65ch;
  line-height: 1.75;
}

/* Service Grid & Cards */
.service-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.service-card {
  position: relative;
  overflow: hidden;
  padding: 2.2rem 2rem;
  background: rgba(10, 15, 32, 0.65);
  border: 1px solid var(--border-glass);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--pride-spectrum-soft);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.service-card:hover {
  border-color: rgba(251, 176, 40, 0.5);
  background: rgba(14, 21, 44, 0.88);
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong), 0 8px 30px -10px rgba(251, 176, 40, 0.2);
}

.service-card:hover::after {
  opacity: 0.4;
}

.service-card__content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1rem;
}

.service-card h3 {
  font-size: 1.45rem;
  line-height: 1.25;
  color: #fff;
}

.service-card p {
  font-size: 0.98rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin: 0;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.75rem;
}

/* gp-ui Showcase Section */
.gp-ui-section {
  position: relative;
  overflow: hidden;
  padding: clamp(2.8rem, 4.5vw, 4.5rem) clamp(1.4rem, 3.5vw, 3.8rem);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(10, 26, 36, 0.75) 0%, rgba(13, 17, 36, 0.85) 100%);
  border: 1px solid var(--border-glass-strong);
  box-shadow: var(--shadow-strong);
}

.gp-ui-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #2dd4bf, #0ea5e9, #9333ea, #f472b6);
}

.gp-ui-section__grid {
  position: absolute;
  inset: 0;
  opacity: 0.15;
  background-image: linear-gradient(rgba(45, 212, 191, 0.2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 212, 191, 0.2) 1px, transparent 1px);
  background-size: 3.5rem 3.5rem;
  pointer-events: none;
}

.gp-ui-layout {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 3rem;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: center;
}

.gp-ui-copy {
  display: grid;
  gap: 1.2rem;
}

.gp-ui-copy h2 {
  font-size: clamp(2.6rem, 3.8vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.gp-ui-copy h2 span {
  color: var(--highlight);
  text-shadow: 0 0 20px rgba(45, 212, 191, 0.35);
}

.gp-ui-intro {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.gp-ui-showcase {
  overflow: hidden;
  border: 1px solid var(--border-glass-strong);
  border-radius: 20px;
  background: rgba(6, 12, 26, 0.88);
  box-shadow: var(--shadow-strong);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.gp-ui-showcase__topline,
.gp-ui-showcase__footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  color: var(--highlight);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.gp-ui-showcase__topline {
  padding: 1rem 1.4rem;
  border-bottom: 1px solid var(--border-glass-subtle);
  background: rgba(255, 255, 255, 0.02);
}

.gp-ui-showcase__body {
  display: grid;
  gap: 0.75rem;
  padding: 1.8rem 1.4rem;
}

.gp-ui-code-line {
  color: #cbd5e1;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 0.88rem;
}

.gp-ui-code-key {
  color: #f472b6;
}

.gp-ui-code-string {
  color: #fde68a;
}

.gp-ui-divider {
  width: 100%;
  height: 1px;
  margin: 0.8rem 0;
  background: var(--border-glass-subtle);
}

.gp-ui-component-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.gp-ui-demo-button {
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #2dd4bf 0%, #0ea5e9 100%);
  color: #042f2e;
  font-size: 0.88rem;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(45, 212, 191, 0.3);
}

.gp-ui-demo-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #a7f3d0;
  font-size: 0.82rem;
  font-weight: 600;
}

.gp-ui-showcase__footer {
  padding: 1rem 1.4rem;
  border-top: 1px solid var(--border-glass-subtle);
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  font-size: 0.82rem;
}

/* Portfolio Section & Cards */
.portfolio-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.75rem;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.portfolio-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  background: rgba(10, 15, 34, 0.7);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.portfolio-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--pride-spectrum-soft);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.portfolio-card:hover {
  transform: translateY(-4px);
  border-color: rgba(251, 176, 40, 0.5);
  background: rgba(14, 21, 44, 0.9);
  box-shadow: var(--shadow-strong), 0 8px 30px -10px rgba(251, 176, 40, 0.2);
}

.portfolio-card:hover::after {
  opacity: 0.35;
}

.portfolio-card__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 1.25rem;
  padding: 2.2rem 2rem;
}

.portfolio-card__badge-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.portfolio-card h3 {
  font-size: clamp(1.8rem, 2.5vw, 2.2rem);
  line-height: 1.1;
  color: #fff;
}

.portfolio-card p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin: 0;
}

.portfolio-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border-glass-subtle);
}

.portfolio-inline-link {
  color: var(--accent);
  font-size: 0.94rem;
  font-weight: 500;
  word-break: break-all;
  border-bottom: 1px solid rgba(251, 176, 40, 0.3);
  padding-bottom: 2px;
}

.portfolio-inline-link:hover {
  color: var(--accent-hover);
  border-color: var(--accent);
}

/* Contact Section & Cards */
.contact-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.contact-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 1.8rem;
  border-radius: 20px;
  background: rgba(12, 17, 36, 0.72);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-soft);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--pride-spectrum);
  opacity: 0.5;
  transition: opacity 0.25s ease;
}

.contact-card:hover {
  transform: translateY(-3px);
  border-color: rgba(251, 176, 40, 0.5);
  background: rgba(16, 24, 52, 0.9);
  box-shadow: var(--shadow-strong);
}

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

.contact-card__label {
  color: rgba(251, 176, 40, 0.9);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-card__value {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 600;
}

.contact-card__action {
  color: var(--highlight);
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 0.25rem;
}

/* Site Footer */
.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--surface-strong);
  border: 1px solid var(--border-glass-strong);
  border-radius: 28px;
  box-shadow: var(--shadow-strong);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: clamp(2.4rem, 4vw, 3.4rem) clamp(1.4rem, 3.5vw, 3.5rem) 1.5rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--pride-spectrum);
  opacity: 0.9;
  border-top-left-radius: 28px;
  border-top-right-radius: 28px;
}

.site-footer::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  pointer-events: none;
}

.site-footer__inner {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1.4fr auto auto;
  align-items: center;
  padding-bottom: 2rem;
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.site-footer__name {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  line-height: 1;
}

.site-footer__tagline {
  margin: 0;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-secondary);
  font-weight: 500;
}

.site-footer__mascot {
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-footer__kitten {
  max-height: 5.5rem;
  width: auto;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.45));
}

.site-footer__nav {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: right;
}

.site-footer__nav a {
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
}

.site-footer__nav a:hover {
  color: var(--accent-hover);
  transform: translateX(-3px);
}

.site-footer__base {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-glass-subtle);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.site-footer__base p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.site-footer__base a {
  color: var(--accent);
  font-weight: 600;
  transition: color 0.2s ease;
}

.site-footer__base a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

/* Animations */
@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: rgba(251, 176, 40, 0.35);
  border-radius: 999px;
  border: 2px solid var(--bg-primary);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(251, 176, 40, 0.7);
}

/* Responsive Media Queries */
@media (max-width: 900px) {
  .hero-layout,
  .gp-ui-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .site-footer__nav {
    text-align: left;
    align-items: flex-start;
  }

  .site-footer__nav a {
    justify-content: flex-start;
  }

  .site-footer__mascot {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .page-shell {
    padding: 0.55rem 0.8rem 1.5rem;
  }

  .page-shell__header {
    top: 0.55rem;
    padding: 1rem;
    border-radius: 20px;
  }

  .page-shell__header.is-condensed {
    width: min(calc(100% - 1.6rem), 1240px);
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
  }

  .navbar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
  }

  .navbar__brand {
    justify-content: space-between;
  }

  .navbar__links {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .navbar__links::-webkit-scrollbar {
    display: none;
  }

  .hero-section,
  .section,
  .gp-ui-section {
    padding: 2rem 1.25rem;
    border-radius: 22px;
  }

  .hero-copy h1 {
    font-size: clamp(2.2rem, 8vw, 3rem);
  }

  .site-footer__base {
    flex-direction: column;
    text-align: center;
  }
}
