/* blazeowens.com shared stylesheet. Every page links this file; no page has its own <style> block.
   Each page sets classes on <html> (e.g. class="p-resume has-nav"). Page-only rules are wrapped in
   :where(.p-name) so they keep the same specificity they had as inline styles. */

/* ══════ Tokens ══════ */
:root {
  --accent: #5280ff;
  --bg: #080a0f;
  --fg: #e8eaf0;
  --mid: #9ea4b8;
}

/* ══════ Shared: every page ══════ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ══════ Reduced motion (all pages) ══════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ══════ Shared: pages with the top nav (.has-nav) ══════ */
:where(.has-nav) nav {
  position: fixed;
  top: 1rem;
  left: 1.5rem;
  right: 1.5rem;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 2.5rem;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(82, 128, 255, 0.03) 50%, rgba(255, 255, 255, 0.01) 100%);
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom-color: rgba(255, 255, 255, 0.02);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45), 0 1px 0 rgba(255, 255, 255, 0.04) inset;
}

:where(.has-nav) .nav-logo {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.3rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  text-decoration: none;
  -webkit-text-stroke: 1px var(--accent);
}

:where(.has-nav) .nav-links {
  display: flex;
  gap: 2.8rem;
  list-style: none;
}

:where(.has-nav) .nav-links a {
  font-weight: 300;
  font-size: 0.76rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mid);
  text-decoration: none;
  position: relative;
  transition: color 0.3s;
}

:where(.has-nav) .nav-links a::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.35s ease;
}

:where(.has-nav) .nav-links a:hover {
  color: var(--fg);
}

:where(.has-nav) .nav-links a:hover::after {
  width: 100%;
}

:where(.has-nav) .nav-links a.active {
  color: var(--fg);
}

:where(.has-nav) .nav-links a.active::after {
  width: 100%;
}

@media (max-width: 600px) {
  :where(.has-nav) nav {
    top: 0.75rem;
    left: 0.75rem;
    right: 0.75rem;
    padding: 0.85rem 1.2rem;
    border-radius: 12px;
  }
  :where(.has-nav) .nav-logo {
    font-size: 1.1rem;
  }
  :where(.has-nav) .nav-links {
    gap: 1.2rem;
  }
  :where(.has-nav) .nav-links a {
    font-size: 0.68rem;
    letter-spacing: 0.1em;
  }
}

@media (max-width: 380px) {
  :where(.has-nav) .nav-links {
    gap: 0.8rem;
  }
  :where(.has-nav) .nav-links a {
    font-size: 0.62rem;
  }
}

/* ══════ Shared: case study pages (.p-case) ══════ */
:root:where(.p-case) {
  --border: rgba(82, 128, 255, 0.18);
  --glass: rgba(15, 18, 25, 0.6);
}

:where(.p-case) ::selection {
  background: var(--accent);
  color: #fff;
}

:where(.p-case) *:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 4px;
}

html:where(.p-case),
:where(.p-case) body {
  width: 100%;
  height: 100%;
  background: var(--bg);
  color: var(--fg);
  font-family: "Syne", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

:where(.p-case) .container {
  max-width: 900px;
  margin: 0 auto;
  padding: 7.5rem 2rem 8rem 2rem;
  position: relative;
  z-index: 10;
}

:where(.p-case) h1 {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(3.5rem, 8vw, 5.5rem);
  line-height: 0.9;
  letter-spacing: 2px;
  margin-bottom: 2rem;
  color: #fff;
}

:where(.p-case) h2 {
  font-family: "Bebas Neue", sans-serif;
  font-size: 2.5rem;
  letter-spacing: 1px;
  color: var(--accent);
  margin: 4rem 0 1.5rem 0;
}

:where(.p-case) p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--mid);
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}

:where(.p-case) strong {
  color: var(--fg);
  font-weight: 600;
}

:where(.p-case) .meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 4rem;
}

:where(.p-case) .meta-item h4 {
  font-family: "Bebas Neue", sans-serif;
  color: var(--accent);
  font-size: 1.2rem;
  letter-spacing: 1px;
  margin-bottom: 0.25rem;
}

:where(.p-case) .meta-item p {
  margin: 0;
  font-size: 0.95rem;
}

:where(.p-case) .exec-summary {
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-left: 4px solid var(--accent);
  padding: 2rem;
  border-radius: 0 12px 12px 0;
  margin-bottom: 4rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

:where(.p-case) .exec-summary h3 {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 1rem;
  letter-spacing: 1px;
}

:where(.p-case) .exec-summary ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

:where(.p-case) .exec-summary li {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--mid);
}

:where(.p-case) .exec-summary li strong {
  color: var(--accent);
}

:where(.p-case) .content-link {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
  transition: opacity 0.3s;
}

:where(.p-case) .content-link:hover {
  opacity: 0.7;
}

@media (max-width: 820px) {
  :where(.p-case) .container {
    padding: 7rem 1.5rem 6rem;
  }
  :where(.p-case) .meta-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 600px) {
  :where(.p-case) .container {
    padding: 6.5rem 1.2rem 4rem;
  }
  :where(.p-case) h1 {
    font-size: clamp(2.5rem, 10vw, 3.5rem);
  }
  :where(.p-case) h2 {
    font-size: 2rem;
    margin: 3rem 0 1rem;
  }
  :where(.p-case) p {
    font-size: 1rem;
  }
  :where(.p-case) .meta-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  :where(.p-case) .exec-summary {
    padding: 1.5rem;
  }
  :where(.p-case) .exec-summary h3 {
    font-size: 1.5rem;
  }
  :where(.p-case) .exec-summary li {
    font-size: 0.95rem;
  }
}

@media (max-width: 380px) {
  :where(.p-case) .meta-grid {
    grid-template-columns: 1fr;
  }
  :where(.p-case) h1 {
    font-size: clamp(2rem, 9vw, 3rem);
  }
}

/* ══════ Page: index.html (.p-home) ══════ */
:root:where(.p-home) {
  --accent-dim: rgba(82, 128, 255, 0.15);
}

html:where(.p-home),
:where(.p-home) body {
  width: 100%;
  height: 100%;
  background: var(--bg);
  color: var(--fg);
  font-family: "Syne", sans-serif;
  overflow: hidden;
}

:where(.p-home) canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

:where(.p-home) .vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: radial-gradient(ellipse at center, transparent 30%, rgba(8, 10, 15, 0.85) 100%);
  pointer-events: none;
}

:where(.p-home) .nav-links {
  display: flex;
  gap: 2.8rem;
  list-style: none;
  margin-top: 2.5rem;
  opacity: 0;
  animation: fadeUp-hero 1s 1s forwards;
  pointer-events: all;
}

:where(.p-home) .nav-links a {
  font-family: "Syne", sans-serif;
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mid);
  text-decoration: none;
  position: relative;
  transition: color 0.3s;
}

:where(.p-home) .nav-links a::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.35s ease;
}

:where(.p-home) .nav-links a:hover {
  color: var(--fg);
}

:where(.p-home) .nav-links a:hover::after {
  width: 100%;
}

:where(.p-home) .hero {
  position: fixed;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  pointer-events: none;
}

:where(.p-home) .hero-name {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(6rem, 14vw, 14rem);
  line-height: 0.9;
  letter-spacing: 0.03em;
  color: var(--accent);
  opacity: 0;
  animation: fadeUp-hero 1.1s 0.75s forwards;
  text-align: center;
  -webkit-text-stroke: 1px var(--accent);
  text-shadow: none;
}

:where(.p-home) .hero-name span {
  display: block;
  color: var(--accent);
  -webkit-text-stroke: 1px var(--accent);
}

@media (max-width: 600px) {
  :where(.p-home) .nav-links {
    gap: 1.2rem;
    margin-top: 2rem;
  }
  :where(.p-home) .nav-links a {
    font-size: 0.68rem;
    letter-spacing: 0.1em;
  }
  :where(.p-home) .hero-name {
    font-size: clamp(4.5rem, 20vw, 7rem);
  }
}

@media (max-width: 380px) {
  :where(.p-home) .nav-links {
    gap: 0.8rem;
  }
  :where(.p-home) .nav-links a {
    font-size: 0.62rem;
    letter-spacing: 0.1em;
  }
  :where(.p-home) .hero-name {
    font-size: clamp(3.5rem, 18vw, 5rem);
  }
}

/* ══════ Page: resume.html (.p-resume) ══════ */
:root:where(.p-resume) {
  --border: rgba(82, 128, 255, 0.15);
}

html:where(.p-resume) {
  scroll-behavior: smooth;
}

:where(.p-resume) body {
  background: var(--bg);
  color: var(--fg);
  font-family: "Syne", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

:where(.p-resume) main {
  max-width: 800px;
  margin: 0 auto;
  padding: 7.5rem 2rem 6rem;
}

:where(.p-resume) .page-header {
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeUp 0.9s 0.2s forwards;
}

:where(.p-resume) .page-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(3.5rem, 8vw, 5.5rem);
  line-height: 0.9;
  letter-spacing: 2px;
  color: #fff;
  margin-bottom: 0.5rem;
}

:where(.p-resume) .page-subtitle {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 3px;
}

:where(.p-resume) .section-block {
  margin-bottom: 4rem;
  opacity: 0;
  animation: fadeUp 0.9s forwards;
}

:where(.p-resume) .section-block:nth-of-type(1) {
  animation-delay: 0.3s;
}

:where(.p-resume) .section-block:nth-of-type(2) {
  animation-delay: 0.5s;
}

:where(.p-resume) .section-label {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.4rem;
  letter-spacing: 1px;
  color: #fff;
  margin-bottom: 1.5rem;
  display: block;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
}

:where(.p-resume) .skill-tag {
  display: inline-block;
  padding: 0.3rem 0.6rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-right: 0.3rem;
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
}

:where(.p-resume) .skill-tag:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent);
  color: var(--accent);
}

:where(.p-resume) .exp-item {
  margin-bottom: 3.5rem;
  position: relative;
}

:where(.p-resume) .exp-item:last-child {
  margin-bottom: 0;
}

:where(.p-resume) .exp-company {
  font-family: "Bebas Neue", sans-serif;
  font-size: 2rem;
  letter-spacing: 1px;
  color: #fff;
}

:where(.p-resume) .exp-roles {
  list-style: none;
  margin-bottom: 1rem;
}

:where(.p-resume) .exp-role {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.4rem;
  padding-left: 1rem;
  border-left: 2px solid var(--accent);
  gap: 1rem;
}

:where(.p-resume) .exp-role-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--fg);
}

:where(.p-resume) .exp-role-date {
  font-size: 0.78rem;
  font-weight: 300;
  color: var(--mid);
  text-transform: uppercase;
  white-space: nowrap;
}

:where(.p-resume) .exp-bullets {
  list-style: none;
  padding-left: 1rem;
}

:where(.p-resume) .exp-bullets li {
  position: relative;
  margin-bottom: 0.5rem;
  color: var(--mid);
  font-size: 0.92rem;
  line-height: 1.7;
  padding-left: 1.2rem;
}

:where(.p-resume) .exp-bullets strong {
  color: #fff;
}

:where(.p-resume) .exp-bullets li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.7rem;
}

:where(.p-resume) .skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2.5rem 2rem;
}

:where(.p-resume) .skills-section h4 {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.1rem;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

:where(.p-resume) .info-list {
  list-style: none;
}

:where(.p-resume) .info-list li {
  margin-bottom: 0.5rem;
  font-size: 0.92rem;
  color: var(--mid);
}

:where(.p-resume) .info-list li + li {
  margin-top: 0.75rem;
}

:where(.p-resume) .info-list strong {
  color: #fff;
  font-weight: 600;
}

@media (max-width: 850px) {
  :where(.p-resume) main {
    padding: 6.5rem 2rem 5rem;
  }
}

@media (max-width: 600px) {
  :where(.p-resume) main {
    padding: 6rem 1.4rem 4rem;
  }
  :where(.p-resume) .exp-company {
    font-size: 1.5rem;
  }
  :where(.p-resume) .exp-role {
    flex-direction: column;
    gap: 0.1rem;
    padding-bottom: 0.4rem;
  }
  :where(.p-resume) .exp-role-date {
    font-size: 0.68rem;
  }
  :where(.p-resume) .exp-bullets li {
    font-size: 0.85rem;
  }
  :where(.p-resume) .skills-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 1.5rem;
  }
  :where(.p-resume) .section-block {
    margin-bottom: 3rem;
  }
  :where(.p-resume) .exp-item {
    margin-bottom: 2.5rem;
  }
}

@media (max-width: 380px) {
  :where(.p-resume) .skills-grid {
    grid-template-columns: 1fr;
  }
}

/* ══════ Page: portfolio.html (.p-portfolio) ══════ */
:root:where(.p-portfolio) {
  --border: rgba(82, 128, 255, 0.15);
  --glass: rgba(255, 255, 255, 0.03);
}

html:where(.p-portfolio) {
  scroll-behavior: smooth;
}

:where(.p-portfolio) body {
  background: var(--bg);
  color: var(--fg);
  font-family: "Syne", sans-serif;
  min-height: 100vh;
}

:where(.p-portfolio) #view-grid {
  position: relative;
  z-index: 10;
  max-width: 1400px;
  margin: 0 auto;
  padding: 7.5rem 3.5rem 4rem;
}

:where(.p-portfolio) .page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
  animation: fadeUp-grid 0.9s 0.2s both;
}

:where(.p-portfolio) .page-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 0.9;
  letter-spacing: 0.03em;
}

:where(.p-portfolio) .page-title span {
  color: transparent;
  -webkit-text-stroke: 1px rgba(82, 128, 255, 0.4);
}

:where(.p-portfolio) .page-count {
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--mid);
  padding-bottom: 0.4rem;
}

:where(.p-portfolio) .grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

:where(.p-portfolio) .project-card {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  animation: fadeUp-grid 0.9s both;
}

:where(.p-portfolio) .project-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

:where(.p-portfolio) .project-card:nth-child(1) {
  animation-delay: 0.3s;
}

:where(.p-portfolio) .project-card:nth-child(2) {
  animation-delay: 0.4s;
}

:where(.p-portfolio) .project-card:nth-child(3) {
  animation-delay: 0.5s;
}

:where(.p-portfolio) .project-card:nth-child(4) {
  animation-delay: 0.6s;
}

:where(.p-portfolio) .project-card.featured {
  grid-column: 1 / -1;
  aspect-ratio: 21/9;
}

:where(.p-portfolio) .project-card.wide {
  grid-column: 1 / -1;
  aspect-ratio: 3/1;
}

:where(.p-portfolio) .card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.5s;
  filter: brightness(0.72) saturate(0.85);
}

:where(.p-portfolio) .project-card:hover .card-img {
  transform: scale(1.06);
  filter: brightness(0.6) saturate(0.85);
}

:where(.p-portfolio) .card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem 2.2rem;
  background: linear-gradient(to top, rgba(8, 10, 15, 0.85) 0%, transparent 60%);
  transition: background 0.4s;
}

:where(.p-portfolio) .project-card:hover .card-overlay {
  background: linear-gradient(to top, rgba(8, 10, 15, 0.65) 0%, rgba(8, 10, 15, 0.15) 100%);
}

:where(.p-portfolio) .card-company {
  font-size: 0.6rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
  opacity: 0.8;
}

:where(.p-portfolio) .card-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.8rem);
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--fg);
  transition: transform 0.35s;
}

:where(.p-portfolio) .card-meta {
  margin-top: 0.5rem;
  font-size: 0.72rem;
  font-weight: 300;
  color: var(--mid);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s 0.05s, transform 0.3s 0.05s;
}

:where(.p-portfolio) .project-card:hover .card-meta {
  opacity: 1;
  transform: translateY(0);
}

:where(.p-portfolio) .modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(8, 10, 15, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

:where(.p-portfolio) .modal-backdrop.open {
  opacity: 1;
  pointer-events: all;
}

:where(.p-portfolio) .modal {
  width: min(420px, 92vw);
  background: rgba(12, 15, 22, 0.95);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.6rem 2.4rem;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.7);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  text-align: center;
}

:where(.p-portfolio) .modal-backdrop.open .modal {
  transform: translateY(0) scale(1);
}

:where(.p-portfolio) .modal-lock {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(82, 128, 255, 0.1);
  border: 1px solid rgba(82, 128, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.4rem;
  font-size: 1.4rem;
}

:where(.p-portfolio) .modal-heading {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--fg);
  margin-bottom: 1.6rem;
}

:where(.p-portfolio) .modal-field {
  margin: 0;
}

:where(.p-portfolio) .modal-field input {
  width: 100%;
  background: rgba(8, 10, 15, 0.6);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  font-family: "Syne", sans-serif;
  font-size: 0.95rem;
  color: var(--fg);
  outline: none;
  caret-color: var(--accent);
  transition: border-color 0.25s;
}

:where(.p-portfolio) .modal-field input:focus {
  border-color: var(--accent);
}

:where(.p-portfolio) .modal-field input.shake {
  animation: shake 0.4s ease;
  border-color: #ff5252;
}

:where(.p-portfolio) .modal-error {
  font-size: 0.78rem;
  color: #ff6b7d;
  margin-top: 0.9rem;
  min-height: 1.1em;
  opacity: 0;
  transition: opacity 0.25s;
}

:where(.p-portfolio) .modal-error.show {
  opacity: 1;
}

:where(.p-portfolio) .modal-btn {
  width: 100%;
  margin-top: 0.9rem;
  padding: 0.9rem 1.1rem;
  background: var(--accent);
  border: none;
  border-radius: 10px;
  font-family: "Syne", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #fff;
  transition: opacity 0.2s, transform 0.2s;
  cursor: pointer;
}

:where(.p-portfolio) .modal-btn:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

:where(.p-portfolio) .modal-btn:active {
  transform: translateY(0);
}

:where(.p-portfolio) .modal-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

:where(.p-portfolio) .modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  background: none;
  border: none;
  color: var(--mid);
  cursor: pointer;
  transition: color 0.25s, background 0.25s;
}

:where(.p-portfolio) .modal-close:hover {
  color: var(--fg);
  background: rgba(255, 255, 255, 0.05);
}

:where(.p-portfolio) .modal-close:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (max-width: 820px) {
  html:where(.p-portfolio),
  :where(.p-portfolio) body {
    overflow-x: hidden;
    overflow-y: auto;
  }
  :where(.p-portfolio) .grid {
    grid-template-columns: 1fr;
  }
  :where(.p-portfolio) .project-card.featured,
  :where(.p-portfolio) .project-card.wide {
    grid-column: 1;
    aspect-ratio: 16/9;
  }
  :where(.p-portfolio) .project-card {
    aspect-ratio: 16/9;
  }
  :where(.p-portfolio) .card-meta {
    opacity: 1;
    transform: translateY(0);
  }
  :where(.p-portfolio) #view-grid {
    padding: 6.5rem 1.2rem 3rem;
  }
}

@media (max-width: 600px) {
  :where(.p-portfolio) .card-title {
    font-size: 1.4rem;
  }
  :where(.p-portfolio) .card-overlay {
    padding: 1.2rem 1.4rem;
  }
}

/* ══════ Page: contact.html (.p-contact) ══════ */
:root:where(.p-contact) {
  --border: rgba(82, 128, 255, 0.18);
}

html:where(.p-contact),
:where(.p-contact) body {
  width: 100%;
  height: 100%;
  background: var(--bg);
  color: var(--fg);
  font-family: "Syne", sans-serif;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

:where(.p-contact) .page {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 2rem;
  text-align: center;
}

:where(.p-contact) .eyebrow {
  font-size: 0.62rem;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.6rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.2s forwards;
}

:where(.p-contact) .heading {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(4.5rem, 11vw, 10rem);
  line-height: 0.88;
  letter-spacing: 0.02em;
  color: var(--fg);
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeUp 0.9s 0.35s forwards;
}

:where(.p-contact) .tagline {
  font-size: 1rem;
  font-weight: 300;
  color: var(--mid);
  line-height: 1.6;
  max-width: 480px;
  margin-bottom: 2.8rem;
  opacity: 0;
  animation: fadeUp 0.9s 0.48s forwards;
}

:where(.p-contact) .links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  opacity: 0;
  animation: fadeUp 0.9s 0.62s forwards;
}

:where(.p-contact) .contact-link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.4rem 2rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(12px);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s, transform 0.2s;
  min-width: min(420px, 90vw);
}

:where(.p-contact) .contact-link:hover {
  background: rgba(82, 128, 255, 0.06);
  border-color: rgba(82, 128, 255, 0.4);
  transform: translateY(-2px);
}

:where(.p-contact) .link-name {
  font-family: "Bebas Neue", sans-serif;
  font-size: 2rem;
  letter-spacing: 0.06em;
  color: var(--fg);
  line-height: 1;
  transition: color 0.25s;
}

:where(.p-contact) .contact-link:hover .link-name {
  color: var(--accent);
}

@media (max-width: 820px) {
  :where(.p-contact) .page {
    padding: 0 1.5rem;
  }
}

@media (max-width: 600px) {
  :where(.p-contact) .heading {
    font-size: clamp(3.5rem, 16vw, 6rem);
    margin-bottom: 2rem;
  }
  :where(.p-contact) .tagline {
    font-size: 0.9rem;
    max-width: 340px;
    margin-bottom: 2rem;
  }
  :where(.p-contact) .contact-link {
    padding: 1rem 1.4rem;
    min-width: min(320px, 85vw);
  }
  :where(.p-contact) .link-name {
    font-size: 1.6rem;
  }
}

@media (max-width: 380px) {
  :where(.p-contact) .heading {
    font-size: clamp(2.8rem, 14vw, 4rem);
  }
  :where(.p-contact) .contact-link {
    padding: 0.9rem 1.2rem;
    min-width: min(280px, 85vw);
  }
  :where(.p-contact) .link-name {
    font-size: 1.4rem;
  }
}

/* ══════ Page: 404.html (.p-404) ══════ */
:root:where(.p-404) {
  --border: rgba(82, 128, 255, 0.18);
}

html:where(.p-404),
:where(.p-404) body {
  width: 100%;
  height: 100%;
  background: var(--bg);
  color: var(--fg);
  font-family: "Syne", sans-serif;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

:where(.p-404) .vignette {
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 30%, rgba(8, 10, 15, 0.85) 100%);
  pointer-events: none;
}

:where(.p-404) .page {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 2rem;
}

:where(.p-404) .code {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(6rem, 18vw, 12rem);
  line-height: 0.9;
  letter-spacing: 0.03em;
  color: var(--accent);
  opacity: 0;
  animation: fadeUp 0.9s 0.15s forwards;
}

:where(.p-404) .note {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--mid);
  margin-top: 1.4rem;
  opacity: 0;
  animation: fadeUp 0.9s 0.3s forwards;
}

:where(.p-404) .home {
  display: inline-block;
  margin-top: 2.2rem;
  padding: 0.85rem 2rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg);
  text-decoration: none;
  transition: background 0.25s, border-color 0.25s;
  opacity: 0;
  animation: fadeUp 0.9s 0.45s forwards;
}

:where(.p-404) .home:hover {
  background: rgba(82, 128, 255, 0.1);
  border-color: rgba(82, 128, 255, 0.4);
}

:where(.p-404) .home:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ══════ Page: password gate (.p-gate) ══════ */
:root:where(.p-gate) {
  --border: rgba(82, 128, 255, 0.18);
}

html:where(.p-gate),
:where(.p-gate) body {
  width: 100%;
  height: 100%;
  background: var(--bg);
  color: var(--fg);
  font-family: "Syne", sans-serif;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

:where(.p-gate) canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

:where(.p-gate) .vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: radial-gradient(ellipse at center, transparent 30%, rgba(8, 10, 15, 0.85) 100%);
  pointer-events: none;
}

:where(.p-gate) .gate {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.4s;
}

:where(.p-gate) .gate.show {
  opacity: 1;
}

:where(.p-gate) .gate-card {
  position: relative;
  width: min(420px, 92vw);
  padding: 2.6rem 2.4rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  text-align: center;
}

:where(.p-gate) .gate-lock {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(82, 128, 255, 0.1);
  border: 1px solid rgba(82, 128, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.4rem;
}

:where(.p-gate) .gate-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  color: var(--mid);
  text-decoration: none;
  transition: color 0.25s, background 0.25s;
}

:where(.p-gate) .gate-close:hover {
  color: var(--fg);
  background: rgba(255, 255, 255, 0.05);
}

:where(.p-gate) .gate-close:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

:where(.p-gate) .gate-title {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 1.6rem;
}

:where(.p-gate) .gate-input {
  width: 100%;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(8, 10, 15, 0.6);
  color: var(--fg);
  font-family: "Syne", sans-serif;
  font-size: 0.95rem;
  outline: none;
  caret-color: var(--accent);
  transition: border-color 0.25s;
}

:where(.p-gate) .gate-input:focus-visible {
  border-color: var(--accent);
}

:where(.p-gate) .gate-input.shake {
  animation: shake 0.4s ease;
  border-color: #ff5252;
}

:where(.p-gate) .gate-btn {
  width: 100%;
  margin-top: 0.9rem;
  padding: 0.9rem 1.1rem;
  border: none;
  border-radius: 10px;
  background: var(--accent);
  color: #ffffff;
  font-family: "Syne", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}

:where(.p-gate) .gate-btn:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

:where(.p-gate) .gate-btn:active {
  transform: translateY(0);
}

:where(.p-gate) .gate-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

:where(.p-gate) .gate-btn:disabled {
  opacity: 0.5;
  cursor: wait;
}

:where(.p-gate) .gate-error {
  font-size: 0.78rem;
  color: #ff6b7d;
  margin-top: 0.9rem;
  min-height: 1.1em;
  opacity: 0;
  transition: opacity 0.25s;
}

:where(.p-gate) .gate-error.show {
  opacity: 1;
}

:where(.p-gate) .noscript-msg {
  padding: 6rem 2rem;
  text-align: center;
}

/* ══════ Page: mrbd.html (.p-mrbd) ══════ */
:where(.p-mrbd) .content-list {
  list-style: none;
  margin-bottom: 2rem;
}

:where(.p-mrbd) .content-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--mid);
}

:where(.p-mrbd) .content-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

:where(.p-mrbd) .quote-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin: 3rem 0;
}

@media (min-width: 768px) {
  :where(.p-mrbd) .quote-grid {
    grid-template-columns: 1fr 1fr;
  }
  :where(.p-mrbd) .pull-quote:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

:where(.p-mrbd) .pull-quote {
  padding: 2rem;
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-left: 4px solid var(--accent);
  border-radius: 0 12px 12px 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

:where(.p-mrbd) .pull-quote:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

:where(.p-mrbd) .pull-quote p {
  font-size: 1.15rem;
  color: #fff;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-style: italic;
}

:where(.p-mrbd) .pull-quote .author {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.2rem;
  color: var(--accent);
  letter-spacing: 1px;
  text-transform: uppercase;
}

:where(.p-mrbd) .video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 2.5rem;
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  background: var(--bg);
}

:where(.p-mrbd) .video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

:where(.p-mrbd) .video-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

:where(.p-mrbd) .video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  transition: background 0.3s;
}

:where(.p-mrbd) .video-container:hover .video-overlay {
  background: rgba(0, 0, 0, 0.2);
}

:where(.p-mrbd) .comparison-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  padding: 1rem 0;
  margin-bottom: 2rem;
}

:where(.p-mrbd) .comparison-card {
  background: var(--glass);
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid var(--border);
}

:where(.p-mrbd) .comparison-card.accent {
  background: rgba(82, 128, 255, 0.1);
  border-color: var(--accent);
}

:where(.p-mrbd) .comparison-card h4 {
  font-family: "Bebas Neue", sans-serif;
  color: var(--mid);
  font-size: 0.9rem;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

:where(.p-mrbd) .comparison-card.accent h4 {
  color: var(--accent);
}

:where(.p-mrbd) .comparison-card p {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
}

:where(.p-mrbd) .comparison-card.accent p {
  font-weight: 400;
  font-style: italic;
  font-size: 1.05rem;
}

@media (max-width: 820px) {
  :where(.p-mrbd) .comparison-grid {
    grid-template-columns: 1fr;
  }
  :where(.p-mrbd) .quote-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  :where(.p-mrbd) .content-list li {
    font-size: 1rem;
  }
  :where(.p-mrbd) .pull-quote {
    padding: 1.5rem;
  }
  :where(.p-mrbd) .pull-quote p {
    font-size: 1rem;
  }
  :where(.p-mrbd) .comparison-card {
    padding: 1.2rem;
  }
  :where(.p-mrbd) .comparison-card p {
    font-size: 1rem;
  }
}

:where(.p-mrbd) .video-container[role="button"] {
  cursor: pointer;
}

:where(.p-mrbd) .video-container.is-playing {
  cursor: default;
}

:where(.p-mrbd) .yt-play-icon {
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

/* ══════ Page: rbm.html (.p-rbm) ══════ */
:where(.p-rbm) .rite-cycle {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 3rem 0;
  position: relative;
}

:where(.p-rbm) .rite-step {
  flex: 1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
  position: relative;
}

:where(.p-rbm) .rite-step h5 {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.1rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
}

:where(.p-rbm) .rite-step p {
  font-size: 0.85rem;
  line-height: 1.4;
  margin: 0;
}

:where(.p-rbm) .pivot-container {
  margin: 3rem 0;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

:where(.p-rbm) .pivot-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

:where(.p-rbm) .pivot-col h5 {
  font-family: "Bebas Neue", sans-serif;
  font-size: 0.9rem;
  letter-spacing: 1px;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

:where(.p-rbm) .pivot-col.assumption h5 {
  color: var(--mid);
}

:where(.p-rbm) .pivot-col.reality h5 {
  color: var(--accent);
}

:where(.p-rbm) .pivot-col p {
  font-size: 1rem;
  line-height: 1.5;
  margin: 0;
}

:where(.p-rbm) .stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin: 3rem 0;
}

:where(.p-rbm) .stat-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
}

:where(.p-rbm) .stat-number {
  font-family: "Bebas Neue", sans-serif;
  font-size: 3rem;
  letter-spacing: 0.04em;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}

:where(.p-rbm) .stat-label {
  font-size: 0.78rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--mid);
  line-height: 1.5;
}

@media (max-width: 820px) {
  :where(.p-rbm) .pivot-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

@media (max-width: 600px) {
  :where(.p-rbm) .rite-cycle {
    flex-direction: column;
  }
  :where(.p-rbm) .rite-step {
    padding: 1.2rem;
  }
  :where(.p-rbm) .pivot-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  :where(.p-rbm) .stat-row {
    grid-template-columns: 1fr;
  }
}

/* ══════ Page: trueplay.html (.p-trueplay) ══════ */
:where(.p-trueplay) .rite-cycle {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 3rem 0;
}

:where(.p-trueplay) .rite-step {
  flex: 1;
  background: var(--glass);
  border: 1px solid var(--border);
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
}

:where(.p-trueplay) .rite-step h5 {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.1rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
}

:where(.p-trueplay) .rite-step p {
  font-size: 0.85rem;
  line-height: 1.4;
  margin: 0;
}

:where(.p-trueplay) .pivot-container {
  margin: 3rem 0;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

:where(.p-trueplay) .pivot-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

:where(.p-trueplay) .pivot-col h5 {
  font-family: "Bebas Neue", sans-serif;
  font-size: 0.9rem;
  letter-spacing: 1px;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

:where(.p-trueplay) .pivot-col.assumption h5 {
  color: var(--mid);
}

:where(.p-trueplay) .pivot-col.reality h5 {
  color: var(--accent);
}

:where(.p-trueplay) .pivot-col p {
  font-size: 1rem;
  line-height: 1.5;
  margin: 0;
}

:where(.p-trueplay) .video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  border-radius: 12px;
  overflow: hidden;
  margin: 4rem 0 2.5rem 0;
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  background: var(--bg);
}

:where(.p-trueplay) .video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

:where(.p-trueplay) .video-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

:where(.p-trueplay) .video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  transition: background 0.3s;
}

:where(.p-trueplay) .video-container:hover .video-overlay {
  background: rgba(0, 0, 0, 0.2);
}

:where(.p-trueplay) .stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin: 3rem 0;
}

:where(.p-trueplay) .stat-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
}

:where(.p-trueplay) .stat-number {
  font-family: "Bebas Neue", sans-serif;
  font-size: 3rem;
  letter-spacing: 0.04em;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}

:where(.p-trueplay) .stat-label {
  font-size: 0.78rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--mid);
  line-height: 1.5;
}

@media (max-width: 820px) {
  :where(.p-trueplay) .pivot-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

@media (max-width: 600px) {
  :where(.p-trueplay) .rite-cycle {
    flex-direction: column;
  }
  :where(.p-trueplay) .rite-step {
    padding: 1.2rem;
  }
  :where(.p-trueplay) .pivot-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

:where(.p-trueplay) .video-container[role="button"] {
  cursor: pointer;
}

:where(.p-trueplay) .video-container.is-playing {
  cursor: default;
}

:where(.p-trueplay) .yt-play-icon {
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

/* ══════ Page: musecharm.html (.p-musecharm) ══════ */
:where(.p-musecharm) .rite-cycle {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 3rem 0;
  position: relative;
}

:where(.p-musecharm) .rite-step {
  flex: 1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
  position: relative;
}

:where(.p-musecharm) .rite-step h5 {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.1rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
}

:where(.p-musecharm) .rite-step p {
  font-size: 0.85rem;
  line-height: 1.4;
  margin: 0;
}

:where(.p-musecharm) .pivot-container {
  margin: 3rem 0;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

:where(.p-musecharm) .pivot-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

:where(.p-musecharm) .pivot-col h5 {
  font-family: "Bebas Neue", sans-serif;
  font-size: 0.9rem;
  letter-spacing: 1px;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

:where(.p-musecharm) .pivot-col.assumption h5 {
  color: var(--mid);
}

:where(.p-musecharm) .pivot-col.reality h5 {
  color: var(--accent);
}

:where(.p-musecharm) .pivot-col p {
  font-size: 1rem;
  line-height: 1.5;
  margin: 0;
}

:where(.p-musecharm) .stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin: 3rem 0;
}

:where(.p-musecharm) .stat-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
}

:where(.p-musecharm) .stat-number {
  font-family: "Bebas Neue", sans-serif;
  font-size: 3rem;
  letter-spacing: 0.04em;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}

:where(.p-musecharm) .stat-label {
  font-size: 0.78rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--mid);
  line-height: 1.5;
}

@media (max-width: 820px) {
  :where(.p-musecharm) .pivot-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

@media (max-width: 600px) {
  :where(.p-musecharm) .rite-cycle {
    flex-direction: column;
  }
  :where(.p-musecharm) .rite-step {
    padding: 1.2rem;
  }
  :where(.p-musecharm) .pivot-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  :where(.p-musecharm) .stat-row {
    grid-template-columns: 1fr;
  }
}

/* ══════ Animations ══════ */
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeUp-grid { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeUp-hero { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-8px); } 40% { transform: translateX(8px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(5px); } }
