/* ==========================================================================
   Isolophilia WordPress Theme — Master Stylesheet
   Frameless AAA Dark UI · Borderless Acrylic Blur · Mobile-First & SEO-Ready
   ========================================================================== */

:root {
  /* MANDATORY: Support both light & dark themes, defaulting to system preference */
  color-scheme: light dark;

  /* Progressive color-space interpolation tokens (fallback to sRGB) */
  --in-oklab: ;
  --in-oklch: ;

  /* Raw Light & Dark palette tokens */
  --bg-page-light: #f2f1ed;
  --bg-page-dark: #000000;
  --bg-surface-light: #ffffff;
  --bg-surface-dark: #0d1014;
  --ink-primary-light: #13161b;
  --ink-primary-dark: #f4f6f9;
  --ink-secondary-light: #474f5c;
  --ink-secondary-dark: #bcc2cc;
  --ink-muted-light: #646d7b;
  --ink-muted-dark: #939ba8;
  --accent-ice-light: #2b3c54;
  --accent-ice-dark: #dce5f2;
  --acrylic-tint-light: rgb(255 255 255 / 0.68);
  --acrylic-tint-dark: rgb(18 20 24 / 0.5);
  --acrylic-fallback-light: rgb(255 255 255 / 0.94);
  --acrylic-fallback-dark: rgb(14 16 20 / 0.92);
  --acrylic-header-light: rgb(245 244 240 / 0.72);
  --acrylic-header-dark: rgb(10 12 15 / 0.56);
  --tile-bg-light: rgb(19 22 27 / 0.065);
  --tile-bg-dark: rgb(255 255 255 / 0.065);
  --tile-bg-hover-light: rgb(19 22 27 / 0.12);
  --tile-bg-hover-dark: rgb(255 255 255 / 0.13);
  --tile-bg-active-light: rgb(19 22 27 / 0.09);
  --tile-bg-active-dark: rgb(255 255 255 / 0.09);
  --card-bg-light: rgb(255 255 255 / 0.72);
  --card-bg-dark: rgb(20 23 28 / 0.52);
  --card-bg-hover-light: rgb(255 255 255 / 0.92);
  --card-bg-hover-dark: rgb(28 32 39 / 0.66);
  --focus-ring-light: #1d3557;
  --focus-ring-dark: #e4ebf5;
  --map-sea-light-l: #dfe5ed;
  --map-sea-light-d: #141922;
  --map-sea-dark-l: #cfd7e3;
  --map-sea-dark-d: #07090d;

  /* Default (Light) fallback values for browsers without light-dark() */
  --bg-obsidian: var(--bg-page-light);
  --bg-surface: var(--bg-surface-light);
  --ink-primary: var(--ink-primary-light);
  --ink-secondary: var(--ink-secondary-light);
  --ink-muted: var(--ink-muted-light);
  --accent-ice: var(--accent-ice-light);
  --acrylic-tint: var(--acrylic-tint-light);
  --acrylic-tint-fallback: var(--acrylic-fallback-light);
  --acrylic-header: var(--acrylic-header-light);
  --tile-bg: var(--tile-bg-light);
  --tile-bg-hover: var(--tile-bg-hover-light);
  --tile-bg-active: var(--tile-bg-active-light);
  --card-bg: var(--card-bg-light);
  --card-bg-hover: var(--card-bg-hover-light);
  --focus-ring: var(--focus-ring-light);
  --map-sea-light: var(--map-sea-light-l);
  --map-sea-dark: var(--map-sea-dark-l);

  /* Layout metrics */
  --container-max: 74rem;
  --container-narrow: 48rem;
  --header-height: 4.5rem;

  /* Ambient moonlight parallax coordinates (updated by isolophilia.js) */
  --stage-x: 0px;
  --stage-y: 0px;
}

/* Reflect explicit <meta name="color-scheme"> override back into CSS */
:root:has(> head > meta[name="color-scheme"][content="dark"]) {
  color-scheme: dark;
}

:root:has(> head > meta[name="color-scheme"][content="light"]) {
  color-scheme: light;
}

/* Fallback dark tokens for browsers lacking light-dark() */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-obsidian: var(--bg-page-dark);
    --bg-surface: var(--bg-surface-dark);
    --ink-primary: var(--ink-primary-dark);
    --ink-secondary: var(--ink-secondary-dark);
    --ink-muted: var(--ink-muted-dark);
    --accent-ice: var(--accent-ice-dark);
    --acrylic-tint: var(--acrylic-tint-dark);
    --acrylic-tint-fallback: var(--acrylic-fallback-dark);
    --acrylic-header: var(--acrylic-header-dark);
    --tile-bg: var(--tile-bg-dark);
    --tile-bg-hover: var(--tile-bg-hover-dark);
    --tile-bg-active: var(--tile-bg-active-dark);
    --card-bg: var(--card-bg-dark);
    --card-bg-hover: var(--card-bg-hover-dark);
    --focus-ring: var(--focus-ring-dark);
    --map-sea-light: var(--map-sea-light-d);
    --map-sea-dark: var(--map-sea-dark-d);
  }
}

/* Modern light-dark() automatically tracks both system & explicit meta override */
@supports (color: light-dark(white, black)) {
  :root {
    --bg-obsidian: light-dark(var(--bg-page-light), var(--bg-page-dark));
    --bg-surface: light-dark(var(--bg-surface-light), var(--bg-surface-dark));
    --ink-primary: light-dark(var(--ink-primary-light), var(--ink-primary-dark));
    --ink-secondary: light-dark(var(--ink-secondary-light), var(--ink-secondary-dark));
    --ink-muted: light-dark(var(--ink-muted-light), var(--ink-muted-dark));
    --accent-ice: light-dark(var(--accent-ice-light), var(--accent-ice-dark));
    --acrylic-tint: light-dark(var(--acrylic-tint-light), var(--acrylic-tint-dark));
    --acrylic-tint-fallback: light-dark(var(--acrylic-fallback-light), var(--acrylic-fallback-dark));
    --acrylic-header: light-dark(var(--acrylic-header-light), var(--acrylic-header-dark));
    --tile-bg: light-dark(var(--tile-bg-light), var(--tile-bg-dark));
    --tile-bg-hover: light-dark(var(--tile-bg-hover-light), var(--tile-bg-hover-dark));
    --tile-bg-active: light-dark(var(--tile-bg-active-light), var(--tile-bg-active-dark));
    --card-bg: light-dark(var(--card-bg-light), var(--card-bg-dark));
    --card-bg-hover: light-dark(var(--card-bg-hover-light), var(--card-bg-hover-dark));
    --focus-ring: light-dark(var(--focus-ring-light), var(--focus-ring-dark));
    --map-sea-light: light-dark(var(--map-sea-light-l), var(--map-sea-light-d));
    --map-sea-dark: light-dark(var(--map-sea-dark-l), var(--map-sea-dark-d));
  }
}

@supports (linear-gradient(in oklab, white, black)) {
  :root {
    --in-oklab: in oklab;
    --in-oklch: in oklch;
  }
}

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

html {
  background-color: var(--bg-obsidian);
  color: var(--ink-primary);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.55;
  scroll-padding-top: calc(var(--header-height) + 1.5rem);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  min-block-size: 100svh;
  min-block-size: 100dvh;
  background-color: var(--bg-obsidian);
  color: var(--ink-primary);
  overflow-x: clip;
  position: relative;
  isolation: isolate;
}

img,
picture,
video,
iframe {
  max-inline-size: 100%;
}

img {
  height: auto;
}

a {
  color: var(--accent-ice);
  text-underline-offset: 0.2em;
}

:where(a, button, input, textarea, select, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
}

.iso-sr-only {
  position: absolute;
  clip-path: inset(50%);
  overflow: hidden;
  inline-size: 1px;
  block-size: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  white-space: nowrap;
}

.iso-skip-link {
  position: fixed;
  inset-block-start: -100%;
  inset-inline-start: 1rem;
  z-index: 9999;
  padding: 0.75rem 1.25rem;
  border-radius: 0.75rem;
  background-color: var(--ink-primary);
  color: #050608;
  font-weight: 600;
  text-decoration: none;
}

.iso-skip-link:focus {
  inset-block-start: 1rem;
}

/* ==========================================================================
   Cool Volumetric Moonlight Stage (Refracted through Acrylic Layers)
   ========================================================================== */

.iso-ambient-stage {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  isolation: isolate;
}

.iso-ambient-beam {
  position: absolute;
  inset-block-start: -16%;
  inset-inline-start: 50%;
  inline-size: min(96vw, 64rem);
  block-size: 92svh;
  translate: calc(-50% + var(--stage-x)) var(--stage-y);
  background: radial-gradient(
    ellipse 52% 60% at 50% 18% var(--in-oklab),
    rgb(var(--ambient-glow-rgb, 218 228 242) / 0.28) 0%,
    rgb(var(--ambient-halo-rgb, 142 154 170) / 0.14) 40%,
    rgb(56 64 74 / 0.04) 68%,
    transparent 100%
  );
  filter: blur(36px);
}

.iso-ambient-halo {
  position: absolute;
  border-radius: 50%;
  filter: blur(88px);
  mix-blend-mode: screen;
}

.iso-ambient-halo--left {
  inset-block-start: 8%;
  inset-inline-start: max(-10rem, calc(50% - 34rem));
  inline-size: clamp(16rem, 34vw, 32rem);
  block-size: clamp(16rem, 34vw, 32rem);
  translate: calc(var(--stage-x) * -0.5) calc(var(--stage-y) * -0.45);
  background: radial-gradient(
    circle at center var(--in-oklch),
    rgb(var(--ambient-halo-rgb, 174 192 216) / 0.22) 0%,
    rgb(86 98 114 / 0.06) 54%,
    transparent 78%
  );
}

.iso-ambient-halo--right {
  inset-block-start: 20%;
  inset-inline-end: max(-10rem, calc(50% - 34rem));
  inline-size: clamp(14rem, 28vw, 28rem);
  block-size: clamp(14rem, 28vw, 28rem);
  translate: calc(var(--stage-x) * 0.55) calc(var(--stage-y) * 0.5);
  background: radial-gradient(
    circle at center var(--in-oklch),
    rgb(148 164 178 / 0.14) 0%,
    rgb(70 80 90 / 0.05) 56%,
    transparent 78%
  );
}

.iso-ambient-grain {
  position: absolute;
  inset: 0;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

/* ==========================================================================
   Site Shell & Containers
   ========================================================================== */

.iso-site-shell {
  min-block-size: 100svh;
  min-block-size: 100dvh;
  display: flex;
  flex-direction: column;
}

.iso-main {
  flex: 1 0 auto;
  padding-block-start: clamp(1.5rem, 3.5vw, 2.75rem);
  padding-block-end: clamp(2.5rem, 6vw, 4.5rem);
}

.iso-container {
  inline-size: 100%;
  max-inline-size: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

.iso-container--narrow {
  max-inline-size: var(--container-narrow);
}

/* ==========================================================================
   Borderless Floating Acrylic Header
   ========================================================================== */

.iso-site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 40;
  padding-block-start: env(safe-area-inset-top);
  background-color: rgb(8 10 13 / 0.88);
  box-shadow: 0 10px 32px rgb(0 0 0 / 0.45);
}

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .iso-site-header {
    background-color: var(--acrylic-header);
    -webkit-backdrop-filter: blur(28px) saturate(155%);
    backdrop-filter: blur(28px) saturate(155%);
  }
}

.admin-bar .iso-site-header {
  inset-block-start: 32px;
}

@media (max-width: 782px) {
  .admin-bar .iso-site-header {
    inset-block-start: 46px;
  }
}

.iso-header-inner {
  max-inline-size: var(--container-max);
  margin-inline: auto;
  min-block-size: var(--header-height);
  padding-inline: clamp(1rem, 4vw, 2rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.iso-brand-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  padding-block: 0.4rem;
}

.iso-brand-img {
  display: block;
  inline-size: clamp(7.25rem, 16vw, 9.5rem);
  block-size: auto;
  filter: drop-shadow(0 2px 10px rgb(0 0 0 / 0.7));
}

.iso-brand-img--sm {
  inline-size: 7.5rem;
}

.iso-desktop-nav {
  display: flex;
  align-items: center;
}

.iso-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.iso-nav-list a {
  display: inline-flex;
  align-items: center;
  min-block-size: 2.6rem;
  padding-block: 0.45rem;
  padding-inline: 0.95rem;
  border-radius: 0.7rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-secondary);
  text-decoration: none;
  transition: background-color 180ms ease-out, color 180ms ease-out;
}

.iso-nav-list a:hover,
.iso-nav-list .current-menu-item > a,
.iso-nav-list .current_page_item > a,
.iso-nav-list .current_page_parent > a {
  color: var(--ink-primary);
  background-color: var(--tile-bg);
}

.iso-header-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.iso-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-inline-size: 2.85rem;
  min-block-size: 2.85rem;
  padding: 0;
  border: 0;
  border-radius: 0.8rem;
  background-color: var(--tile-bg);
  color: var(--ink-primary);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 180ms ease-out, scale 280ms ease-out;
  transition-timing-function: ease-out, linear(0, 0.4 18%, 1.06 50%, 1);
}

.iso-icon-btn:hover {
  background-color: var(--tile-bg-hover);
}

.iso-icon-btn:active {
  scale: 0.94;
}

.iso-menu-trigger {
  display: none;
}

@media (max-width: 52rem) {
  .iso-desktop-nav {
    display: none;
  }

  .iso-menu-trigger {
    display: inline-flex;
  }
}

/* ==========================================================================
   Native Top-Layer Swipeable Mobile Navigation Drawer
   (modern-web-guidance: navigation-drawer)
   ========================================================================== */

.iso-drawer {
  --drawer-width: min(20.5rem, 84dvw, 100dvw - 24px);
  --drawer-backdrop: 0;
  inset: 0;
  inline-size: auto;
  block-size: auto;
  max-inline-size: none;
  max-block-size: none;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  overflow: visible;
}

.iso-drawer::backdrop {
  background: #000000;
  opacity: calc(var(--drawer-backdrop) * 0.68);
}

.iso-drawer-scroller {
  position: relative;
  display: grid;
  grid-template-columns: var(--drawer-width) 100%;
  overflow-x: scroll;
  overscroll-behavior: none;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
}

.iso-drawer-scroller::-webkit-scrollbar {
  display: none;
}

@media (prefers-reduced-motion: no-preference) {
  .iso-drawer-scroller {
    scroll-behavior: smooth;
  }
}

.iso-drawer-scroller::after {
  content: '';
  scroll-snap-align: end;
  scroll-initial-target: nearest;
}

.iso-drawer-sheet {
  display: grid;
  grid-template-rows: auto 1fr auto;
  block-size: 100svh;
  padding-block-start: max(1rem, env(safe-area-inset-top));
  padding-block-end: max(1.25rem, env(safe-area-inset-bottom));
  padding-inline: 1.25rem;
  background-color: rgb(14 16 20 / 0.94);
  color: var(--ink-primary);
  overflow-y: auto;
  scroll-snap-align: start;
  scrollbar-width: none;
  box-shadow: 16px 0 48px rgb(0 0 0 / 0.72);
}

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .iso-drawer-sheet {
    background-color: var(--modal-bg);
    -webkit-backdrop-filter: blur(var(--acrylic-blur, 34px)) saturate(170%);
    backdrop-filter: blur(var(--acrylic-blur, 34px)) saturate(170%);
  }
}

@supports (animation-timeline: scroll()) {
  .iso-drawer {
    timeline-scope: --iso-drawer-fade;
    animation: iso-fade-drawer-backdrop linear both;
    animation-timeline: --iso-drawer-fade;
  }

  .iso-drawer-scroller {
    scroll-timeline: --iso-drawer-fade x;
  }

  @property --drawer-backdrop {
    syntax: '<number>';
    inherits: true;
    initial-value: 0;
  }

  @keyframes iso-fade-drawer-backdrop {
    0% { --drawer-backdrop: 1; }
    100% { --drawer-backdrop: 0; }
  }
}

.iso-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-block-end: 1.5rem;
}

.iso-drawer-body {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.iso-drawer-nav-list,
.iso-drawer-fallback .iso-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.iso-drawer-nav-list a,
.iso-drawer-fallback .iso-nav-list a {
  display: flex;
  align-items: center;
  min-block-size: 3.1rem;
  padding-inline: 1rem;
  border-radius: 0.85rem;
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--ink-primary);
  text-decoration: none;
  background-color: transparent;
  transition: background-color 160ms ease-out;
}

.iso-drawer-nav-list a:hover,
.iso-drawer-nav-list .current-menu-item > a,
.iso-drawer-fallback .iso-nav-list a:hover {
  background-color: var(--tile-bg-hover);
}

.iso-drawer-socials {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.iso-social-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-inline-size: 3rem;
  min-block-size: 3rem;
  border-radius: 0.85rem;
  background-color: var(--tile-bg);
  color: var(--ink-primary);
  text-decoration: none;
}

/* ==========================================================================
   Borderless Acrylic Panels & Buttons
   ========================================================================== */

.iso-acrylic-panel {
  position: relative;
  border-radius: clamp(1.25rem, 3vw, 1.75rem);
  border: 0;
  overflow: hidden;
  isolation: isolate;
  background-color: var(--acrylic-tint-fallback);
  box-shadow:
    0 12px 32px rgb(0 0 0 / 0.45),
    0 32px 84px rgb(0 0 0 / 0.72);
}

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .iso-acrylic-panel {
    background-color: var(--acrylic-tint);
    background-image: linear-gradient(
      165deg var(--in-oklab),
      rgb(255 255 255 / 0.08) 0%,
      rgb(210 220 234 / 0.025) 46%,
      rgb(10 12 15 / 0.22) 100%
    );
    -webkit-backdrop-filter: blur(40px) saturate(160%) brightness(1.04);
    backdrop-filter: blur(40px) saturate(160%) brightness(1.04);
  }
}

.iso-acrylic-noise {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.048;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.05' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  background-size: 140px 140px;
}

.iso-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-block-size: 3.1rem;
  padding-block: 0.75rem;
  padding-inline: 1.5rem;
  border: 0;
  border-radius: 0.9rem;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 180ms ease-out,
    box-shadow 220ms ease-out,
    scale 360ms ease-out,
    translate 360ms ease-out;
  transition-timing-function:
    ease-out,
    ease-out,
    linear(0, 0.36 16%, 0.96 36%, 1.05 54%, 1),
    linear(0, 0.36 16%, 0.96 36%, 1.05 54%, 1);
}

.iso-btn--primary {
  background-color: var(--ink-primary);
  color: #050608;
  box-shadow: 0 8px 26px rgb(0 0 0 / 0.45);
}

.iso-btn--primary:hover {
  background-color: #ffffff;
  translate: 0 -2px;
  scale: 1.015;
  box-shadow: 0 14px 32px rgb(0 0 0 / 0.58);
}

.iso-btn--ghost {
  background-color: var(--tile-bg);
  color: var(--ink-primary);
}

.iso-btn--ghost:hover {
  background-color: var(--tile-bg-hover);
  translate: 0 -2px;
  scale: 1.015;
}

.iso-btn:active {
  scale: 0.96;
  translate: 0 0;
}

.iso-btn--full {
  inline-size: 100%;
}

/* ==========================================================================
   Homepage Hero & Sections
   ========================================================================== */

.iso-hero {
  padding-block: clamp(1rem, 3vw, 2.5rem) clamp(2rem, 5vw, 3.5rem);
}

.iso-hero-panel {
  padding-block: clamp(2.25rem, 6vw, 4.25rem);
  padding-inline: clamp(1.35rem, 5vw, 3.75rem);
  text-align: center;
}

.iso-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-block: 0 clamp(1.25rem, 3vw, 1.75rem);
  font-size: clamp(0.75rem, 0.7rem + 0.2vw, 0.85rem);
  font-weight: 500;
  letter-spacing: 0.09em;
  color: var(--ink-muted);
}

.iso-kicker-diamond {
  inline-size: 0.3rem;
  block-size: 0.3rem;
  flex-shrink: 0;
  rotate: 45deg;
  background-color: rgb(228 234 244 / 0.55);
}

.iso-hero-brand {
  display: flex;
  justify-content: center;
  margin-block-end: clamp(1rem, 2.5vw, 1.5rem);
}

.iso-hero-logo {
  display: block;
  inline-size: min(88%, 25rem);
  block-size: auto;
  filter:
    drop-shadow(0 4px 16px rgb(0 0 0 / 0.75))
    drop-shadow(0 0 28px rgb(226 234 246 / 0.16));
}

.iso-hero-title {
  margin: 0;
  font-weight: 700;
  font-size: clamp(1.75rem, 1.2rem + 2.2vw, 3rem);
  line-height: 1.14;
  letter-spacing: -0.025em;
  text-wrap: balance;
  color: var(--ink-primary);
}

.iso-hero-desc {
  margin-block: clamp(0.95rem, 2.2vw, 1.35rem) clamp(1.6rem, 3.5vw, 2.25rem);
  margin-inline: auto;
  max-inline-size: 52ch;
  font-size: clamp(0.95rem, 0.9rem + 0.3vw, 1.1rem);
  line-height: 1.65;
  color: var(--ink-secondary);
  text-wrap: pretty;
}

.iso-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.iso-section {
  padding-block: clamp(1.75rem, 4.5vw, 3.25rem);
}

.iso-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-block-end: clamp(1.25rem, 3vw, 2rem);
}

.iso-eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}

.iso-section-title {
  margin: 0;
  font-size: clamp(1.45rem, 1.15rem + 1.2vw, 2.15rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
  text-wrap: balance;
  color: var(--ink-primary);
}

.iso-section-title--sm {
  font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.7rem);
  margin-block-end: 1.15rem;
}

.iso-text-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--accent-ice);
  text-decoration: none;
  padding-block: 0.35rem;
  transition: color 160ms ease-out, translate 220ms ease-out;
}

.iso-text-link:hover {
  color: #ffffff;
  translate: 3px 0;
}

/* ==========================================================================
   Responsive Grids & Borderless Acrylic Cards
   ========================================================================== */

.iso-grid {
  display: grid;
  gap: clamp(1rem, 2.4vw, 1.5rem);
}

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

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

.iso-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 64rem) {
  .iso-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 38rem) {
  .iso-grid--2,
  .iso-grid--3,
  .iso-grid--4 {
    grid-template-columns: 1fr;
  }
}

.iso-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 1.25rem;
  border: 0;
  overflow: hidden;
  background-color: var(--card-bg);
  box-shadow: 0 10px 30px rgb(0 0 0 / 0.42);
  transition:
    background-color 200ms ease-out,
    box-shadow 240ms ease-out,
    translate 360ms ease-out;
  transition-timing-function:
    ease-out,
    ease-out,
    linear(0, 0.36 16%, 0.96 38%, 1.04 56%, 1);
}

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .iso-card {
    -webkit-backdrop-filter: blur(26px) saturate(150%);
    backdrop-filter: blur(26px) saturate(150%);
  }
}

.iso-card:hover {
  background-color: var(--card-bg-hover);
  translate: 0 -4px;
  box-shadow: 0 20px 48px rgb(0 0 0 / 0.62);
}

.iso-card[hidden] {
  display: none;
}

.iso-card-media,
.iso-lore-media,
.iso-media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  background-color: #080a0d;
  aspect-ratio: 16 / 10;
}

.iso-lore-media {
  aspect-ratio: 4 / 5;
}

.iso-card-img {
  display: block;
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  transition: scale 520ms cubic-bezier(0.16, 1, 0.3, 1);
}

.iso-card:hover .iso-card-img {
  scale: 1.04;
}

.iso-card-placeholder {
  inline-size: 100%;
  block-size: 100%;
  display: grid;
  place-items: center;
  padding: 2rem;
  background: radial-gradient(
    ellipse at 50% 35% var(--in-oklab),
    rgb(180 194 214 / 0.14) 0%,
    rgb(10 12 16 / 0.95) 75%
  );
}

.iso-card-placeholder img {
  inline-size: min(68%, 11rem);
  opacity: 0.42;
}

.iso-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: clamp(1.1rem, 2.5vw, 1.4rem);
  text-align: start;
}

.iso-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8125rem;
  color: var(--ink-muted);
}

.iso-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent-ice);
  background-color: rgb(255 255 255 / 0.08);
  text-decoration: none;
}

.iso-card-title {
  margin: 0;
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--ink-primary);
}

.iso-card-title a {
  color: inherit;
  text-decoration: none;
}

.iso-card-title a::after {
  content: '';
  position: absolute;
  inset: 0;
}

.iso-lore-role {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent-ice);
}

.iso-card-excerpt {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--ink-secondary);
  text-wrap: pretty;
}

/* Media Card Trigger */
.iso-media-trigger {
  display: flex;
  flex-direction: column;
  inline-size: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: start;
  cursor: pointer;
}

.iso-play-badge {
  position: absolute;
  inset-block-start: 50%;
  inset-inline-start: 50%;
  translate: -50% -50%;
  inline-size: 3.75rem;
  block-size: 3.75rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background-color: rgb(10 12 16 / 0.72);
  color: var(--ink-primary);
  box-shadow: 0 8px 28px rgb(0 0 0 / 0.55);
  transition: scale 280ms ease-out, background-color 180ms ease-out;
}

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .iso-play-badge {
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
  }
}

.iso-media-trigger:hover .iso-play-badge {
  scale: 1.1;
  background-color: rgb(244 246 249 / 0.92);
  color: #050608;
}

/* ==========================================================================
   Breadcrumbs, Page Headers, Filters, Search & Pagination
   ========================================================================== */

.iso-breadcrumbs {
  margin-block-end: 1.25rem;
}

.iso-breadcrumbs ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.875rem;
  color: var(--ink-muted);
}

.iso-breadcrumbs li + li::before {
  content: '/';
  margin-inline-end: 0.45rem;
  opacity: 0.45;
}

.iso-breadcrumbs a {
  color: var(--ink-secondary);
  text-decoration: none;
}

.iso-breadcrumbs a:hover {
  color: var(--ink-primary);
}

.iso-page-header {
  margin-block-end: clamp(1.75rem, 4vw, 2.75rem);
}

.iso-page-title {
  margin: 0;
  font-size: clamp(1.85rem, 1.35rem + 2vw, 3rem);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.iso-page-lead {
  margin-block: 0.85rem 0;
  max-inline-size: 56ch;
  font-size: clamp(0.975rem, 0.92rem + 0.25vw, 1.1rem);
  line-height: 1.65;
  color: var(--ink-secondary);
  text-wrap: pretty;
}

.iso-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-block-start: 1.5rem;
}

.iso-filter-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-block-start: 1.25rem;
}

.iso-toolbar .iso-filter-nav {
  margin-block-start: 0;
}

.iso-filter-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-block-size: 2.75rem;
  padding-block: 0.45rem;
  padding-inline: 1.05rem;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-secondary);
  background-color: var(--tile-bg);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 180ms ease-out, color 180ms ease-out, scale 220ms ease-out;
}

.iso-filter-pill:hover {
  background-color: var(--tile-bg-hover);
  color: var(--ink-primary);
}

.iso-filter-pill.is-active,
.iso-filter-pill[aria-pressed='true'] {
  background-color: var(--ink-primary);
  color: #050608;
}

.iso-filter-pill:active {
  scale: 0.96;
}

.iso-inline-search {
  inline-size: min(100%, 20rem);
}

.iso-inline-search--wide {
  margin-block-start: 1.25rem;
  inline-size: min(100%, 30rem);
}

.iso-search-form {
  position: relative;
  display: flex;
  align-items: center;
}

.iso-search-form input[type='search'] {
  inline-size: 100%;
  min-block-size: 3rem;
  padding-block: 0.65rem;
  padding-inline: 1rem 3.25rem;
  border: 0;
  border-radius: 0.85rem;
  background-color: var(--tile-bg);
  color: var(--ink-primary);
  font: inherit;
  font-size: max(1rem, 1em);
}

.iso-search-form input[type='search']::placeholder {
  color: var(--ink-muted);
}

.iso-search-submit {
  position: absolute;
  inset-inline-end: 0.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-inline-size: 2.6rem;
  min-block-size: 2.6rem;
  border: 0;
  border-radius: 0.65rem;
  background: transparent;
  color: var(--ink-secondary);
  cursor: pointer;
}

.iso-search-submit:hover {
  color: var(--ink-primary);
}

.iso-empty-panel {
  padding: 2rem 1.5rem;
  border-radius: 1.25rem;
  background-color: var(--card-bg);
  color: var(--ink-secondary);
  text-align: center;
}

.iso-pagination {
  margin-block-start: 2.5rem;
}

.iso-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.iso-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-inline-size: 2.85rem;
  min-block-size: 2.85rem;
  padding-inline: 0.9rem;
  border-radius: 0.8rem;
  background-color: var(--tile-bg);
  color: var(--ink-primary);
  text-decoration: none;
  font-weight: 500;
}

.iso-pagination .page-numbers.current {
  background-color: var(--ink-primary);
  color: #050608;
}

/* ==========================================================================
   Single Article & Lore Dossier Reader
   ========================================================================== */

.iso-article-header {
  margin-block-end: clamp(1.5rem, 3.5vw, 2.25rem);
}

.iso-article-title {
  margin: 0.65rem 0 0;
  font-size: clamp(1.85rem, 1.35rem + 2vw, 2.85rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.iso-article-lead {
  margin: 1rem 0 0;
  font-size: clamp(1.05rem, 0.98rem + 0.35vw, 1.225rem);
  line-height: 1.6;
  color: var(--ink-secondary);
  text-wrap: pretty;
}

.iso-article-cover {
  margin: 0 0 clamp(1.75rem, 4vw, 2.5rem);
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 16px 48px rgb(0 0 0 / 0.58);
}

.iso-cover-img {
  display: block;
  inline-size: 100%;
  block-size: auto;
}

.iso-codex-facts {
  padding: clamp(1.15rem, 3vw, 1.65rem);
  margin-block-end: clamp(1.75rem, 4vw, 2.5rem);
}

.iso-facts-grid {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 1rem 1.5rem;
}

.iso-fact-item dt {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  margin-block-end: 0.25rem;
}

.iso-fact-item dd {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink-primary);
}

/* Editorial Long-Form Prose (Gutenberg Ready) */
.iso-prose {
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0875rem);
  line-height: 1.78;
  color: #d6dce6;
  overflow-wrap: break-word;
}

.iso-prose > * {
  max-inline-size: 66ch;
}

.iso-prose > .alignwide,
.iso-prose > .alignfull,
.iso-prose > .wp-block-gallery,
.iso-prose > figure.wp-block-image {
  max-inline-size: none;
}

.iso-prose h2,
.iso-prose h3,
.iso-prose h4 {
  color: var(--ink-primary);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-block: 2.2rem 0.85rem;
  text-wrap: balance;
}

.iso-prose h2 {
  font-size: clamp(1.4rem, 1.15rem + 0.9vw, 1.85rem);
}

.iso-prose h3 {
  font-size: clamp(1.15rem, 1rem + 0.5vw, 1.4rem);
}

.iso-prose p,
.iso-prose ul,
.iso-prose ol {
  margin-block: 0 1.25rem;
  text-wrap: pretty;
}

.iso-prose blockquote {
  margin-block: 1.75rem;
  margin-inline: 0;
  padding: 1.25rem 1.5rem;
  border-radius: 1rem;
  background-color: var(--tile-bg);
  color: var(--ink-primary);
  font-size: 1.1rem;
}

.iso-prose figure {
  margin-block: 1.75rem;
  margin-inline: 0;
}

.iso-prose figure img {
  border-radius: 1rem;
  display: block;
}

.iso-prose figcaption {
  margin-block-start: 0.65rem;
  font-size: 0.875rem;
  color: var(--ink-muted);
  text-align: center;
}

.iso-prose .wp-block-gallery img {
  cursor: zoom-in;
}

.iso-article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-block-start: 2.25rem;
}

.iso-post-nav {
  margin-block-start: 3rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

@media (max-width: 38rem) {
  .iso-post-nav {
    grid-template-columns: 1fr;
  }
}

.iso-post-nav-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.15rem 1.35rem;
  border-radius: 1rem;
  background-color: var(--card-bg);
}

.iso-post-nav-item--next {
  text-align: end;
}

.iso-post-nav-item a {
  font-weight: 600;
  color: var(--ink-primary);
  text-decoration: none;
}

.iso-post-nav-item a:hover {
  text-decoration: underline;
}

.iso-related {
  margin-block-start: 3.5rem;
}

/* ==========================================================================
   About Page: Native FAQ Accordion, Social Grid & Accessible Contact Form
   ========================================================================== */

.iso-about-block {
  margin-block-start: clamp(2.5rem, 6vw, 4rem);
}

.iso-faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.iso-faq-item {
  border-radius: 1.1rem;
  background-color: var(--card-bg);
  overflow: hidden;
}

.iso-faq-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-block-size: 3.4rem;
  padding: 1rem 1.35rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink-primary);
  cursor: pointer;
  list-style: none;
}

.iso-faq-summary::-webkit-details-marker {
  display: none;
}

.iso-faq-summary::after {
  content: '+';
  flex-shrink: 0;
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--ink-muted);
  transition: rotate 240ms ease-out;
}

.iso-faq-item[open] .iso-faq-summary::after {
  rotate: 45deg;
  color: var(--ink-primary);
}

.iso-faq-content {
  padding: 0 1.35rem 1.25rem;
  color: var(--ink-secondary);
  line-height: 1.65;
}

.iso-faq-content p {
  margin: 0;
}

.iso-social-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
  gap: 0.75rem;
}

.iso-social-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  inline-size: 100%;
  min-block-size: 3.1rem;
  padding-block: 0.65rem;
  padding-inline: 0.9rem;
  border-radius: 0.9rem;
  border: 0;
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-primary);
  background-color: var(--tile-bg);
  box-shadow: 0 4px 14px rgb(0 0 0 / 0.28);
  transition:
    background-color 200ms ease-out,
    box-shadow 220ms ease-out,
    scale 360ms ease-out,
    translate 360ms ease-out;
  transition-timing-function:
    ease-out,
    ease-out,
    linear(0, 0.36 16%, 0.96 36%, 1.05 54%, 1),
    linear(0, 0.36 16%, 0.96 36%, 1.05 54%, 1);
}

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .iso-social-tile {
    -webkit-backdrop-filter: blur(18px) saturate(145%);
    backdrop-filter: blur(18px) saturate(145%);
  }
}

.iso-social-icon {
  flex-shrink: 0;
  color: #dbe2ed;
  transition: color 180ms ease-out, scale 320ms ease-out;
}

.iso-social-tile:hover,
.iso-social-pill:hover {
  background-color: var(--tile-bg-hover);
  translate: 0 -3px;
  scale: 1.02;
  box-shadow: 0 12px 28px rgb(0 0 0 / 0.48);
}

.iso-social-tile:hover .iso-social-icon,
.iso-social-pill:hover .iso-social-icon {
  scale: 1.12;
}

.iso-social--youtube:hover .iso-social-icon { color: #ff6666; }
.iso-social--facebook:hover .iso-social-icon { color: #6ea8fe; }
.iso-social--instagram:hover .iso-social-icon { color: #f48fb1; }
.iso-social--x:hover .iso-social-icon { color: #ffffff; }
.iso-social--discord:hover .iso-social-icon { color: #8b9eff; }
.iso-social--moddb:hover .iso-social-icon { color: #9ad1b0; }

.iso-social-tile:active,
.iso-social-pill:active {
  background-color: var(--tile-bg-active);
  scale: 0.96;
  translate: 0 0;
}

/* Contact Form (modern-web-guidance: forms) */
.iso-contact-panel {
  padding: clamp(1.5rem, 4.5vw, 2.75rem);
}

.iso-contact-lead {
  margin: 0 0 1.5rem;
  color: var(--ink-secondary);
}

.iso-contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.iso-hp-field {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.iso-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.iso-form-group label {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-primary);
}

.iso-form-group input,
.iso-form-group textarea {
  inline-size: 100%;
  min-block-size: 48px;
  padding: 0.8rem 1rem;
  border: 0;
  border-radius: 0.85rem;
  background-color: rgb(255 255 255 / 0.075);
  color: var(--ink-primary);
  font: inherit;
  font-size: max(1rem, 1em);
  line-height: 1.5;
  transition: background-color 180ms ease-out, box-shadow 180ms ease-out;
}

@media (pointer: coarse) {
  .iso-form-group input,
  .iso-form-group textarea {
    min-block-size: 52px;
  }
}

.iso-form-group textarea {
  resize: vertical;
  min-block-size: 8.5rem;
}

.iso-form-group input:focus,
.iso-form-group textarea:focus {
  background-color: rgb(255 255 255 / 0.11);
}

.iso-form-group :is(input, textarea):user-invalid,
.iso-form-group [aria-invalid='true'] {
  box-shadow: inset 0 0 0 2px #f28b82;
}

.iso-field-hint {
  font-size: 0.8125rem;
  color: var(--ink-muted);
}

.iso-form-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.95rem 1.15rem;
  margin-block-end: 1.5rem;
  border-radius: 0.9rem;
  font-size: 0.9375rem;
  font-weight: 500;
}

.iso-form-alert--success {
  background-color: rgb(62 152 104 / 0.22);
  color: #c8f5dc;
}

.iso-form-alert--error {
  background-color: rgb(214 78 78 / 0.22);
  color: #ffd0ce;
}

.iso-404-panel {
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 4vw, 3rem);
  text-align: center;
}

/* ==========================================================================
   Bottom Footer Image & Borderless Legal Copy
   ========================================================================== */

.iso-site-footer {
  position: relative;
  inline-size: 100%;
  background-color: transparent;
  z-index: 1;
}

.iso-footer-artwork-wrap {
  position: relative;
  inline-size: 100%;
  max-inline-size: 68rem;
  margin-inline: auto;
  overflow: hidden;
  line-height: 0;
}

.iso-footer-artwork {
  display: block;
  inline-size: 100%;
  block-size: auto;
  max-block-size: min(46svh, 28rem);
  object-fit: cover;
  object-position: center 20%;
  user-select: none;
  -webkit-mask-image:
    linear-gradient(to bottom, transparent 0%, #000 22%, #000 100%),
    linear-gradient(to right, transparent 0%, #000 14%, #000 86%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to bottom, transparent 0%, #000 22%, #000 100%),
    linear-gradient(to right, transparent 0%, #000 14%, #000 86%, transparent 100%);
  mask-composite: intersect;
}

.iso-footer-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom var(--in-oklab),
    transparent 0%,
    transparent 52%,
    rgb(0 0 0 / 0.74) 84%,
    rgb(0 0 0 / 0.96) 100%
  );
}

.iso-footer-meta {
  position: absolute;
  inset-inline: 0;
  inset-block-end: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  padding-block-start: 1.5rem;
  padding-block-end: max(0.95rem, env(safe-area-inset-bottom));
  padding-inline: clamp(1rem, 4vw, 2rem);
  border: 0;
  text-align: center;
}

.iso-footer-socials {
  list-style: none;
  margin: 0 0 0.35rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
}

.iso-social-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-block-size: 2.5rem;
  padding-block: 0.35rem;
  padding-inline: 0.85rem;
  border-radius: 999px;
  border: 0;
  background-color: rgb(255 255 255 / 0.08);
  color: var(--ink-primary);
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 180ms ease-out, scale 280ms ease-out, translate 280ms ease-out;
}

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .iso-social-pill {
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    backdrop-filter: blur(16px) saturate(140%);
  }
}

.iso-footer-copyright {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgb(244 246 249 / 0.9);
  text-shadow: 0 2px 10px rgb(0 0 0 / 0.95);
}

.iso-footer-disclaimer {
  margin: 0;
  max-inline-size: 58ch;
  font-size: 0.75rem;
  line-height: 1.45;
  color: rgb(188 194 204 / 0.84);
  text-wrap: pretty;
  text-shadow: 0 2px 10px rgb(0 0 0 / 0.95);
}

/* ==========================================================================
   Built-in Coming Soon Gate Layout
   ========================================================================== */

.iso-cs-shell {
  min-block-size: 100svh;
  min-block-size: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.iso-cs-stage {
  flex: 1 0 auto;
  display: grid;
  place-items: center;
  padding-block-start: max(clamp(1.25rem, 4vh, 2.75rem), env(safe-area-inset-top));
  padding-block-end: clamp(0.5rem, 1.5vh, 1.25rem);
  padding-inline: clamp(0.875rem, 4vw, 2rem);
  position: relative;
  z-index: 2;
}

.iso-cs-panel {
  inline-size: 100%;
  max-inline-size: 40rem;
  padding-block: clamp(1.75rem, 4.2vw, 2.75rem);
  padding-inline: clamp(1.25rem, 4.5vw, 2.85rem);
  text-align: center;
}

.iso-cs-lockup {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.95rem, 2.4vw, 1.35rem);
}

.iso-cs-logo-wrap {
  display: inline-flex;
  justify-content: center;
  inline-size: min(90%, 23.5rem);
}

.iso-cs-logo {
  display: block;
  inline-size: 100%;
  block-size: auto;
  filter:
    drop-shadow(0 4px 16px rgb(0 0 0 / 0.75))
    drop-shadow(0 0 26px rgb(226 234 246 / 0.16));
}

.iso-cs-title {
  display: block;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 700;
  font-size: clamp(1.75rem, 1.35rem + 1.85vw, 2.625rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  text-wrap: balance;
  color: var(--ink-primary);
}

.iso-cs-desc {
  margin-block: clamp(0.85rem, 2.2vw, 1.15rem) clamp(1.5rem, 3.6vw, 2.1rem);
  margin-inline: auto;
  max-inline-size: 44ch;
  font-size: clamp(0.9375rem, 0.89rem + 0.25vw, 1.05rem);
  line-height: 1.65;
  color: var(--ink-secondary);
  text-wrap: pretty;
}

.iso-cs-social-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(7.4rem, 1fr));
  gap: 0.65rem;
}

.iso-site-footer--cs {
  margin-block-start: clamp(-1.25rem, -2vh, 0rem);
}

/* ==========================================================================
   Native Fullscreen Lightbox Dialog (modern-web-guidance: light-dismiss-a-dialog)
   ========================================================================== */

.iso-lightbox {
  inline-size: min(94vw, 68rem);
  max-inline-size: 68rem;
  max-block-size: 92svh;
  padding: 0;
  border: 0;
  border-radius: 1.4rem;
  background-color: var(--modal-fallback);
  color: var(--ink-primary);
  box-shadow:
    inset 0 1px 0 var(--acrylic-top-sheen),
    0 24px 80px rgb(0 0 0 / 0.42);
  overflow: hidden;
}

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .iso-lightbox {
    background-color: var(--modal-bg);
    -webkit-backdrop-filter: blur(var(--acrylic-blur, 34px)) saturate(175%);
    backdrop-filter: blur(var(--acrylic-blur, 34px)) saturate(175%);
  }
}

.iso-lightbox::backdrop {
  background-color: var(--modal-backdrop);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
}

.iso-lightbox-shell {
  display: flex;
  flex-direction: column;
  max-block-size: 92svh;
  padding: clamp(0.85rem, 2.5vw, 1.35rem);
  gap: 0.85rem;
}

.iso-lightbox-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.iso-lightbox-title {
  margin: 0;
  font-size: clamp(1rem, 0.92rem + 0.4vw, 1.2rem);
  font-weight: 600;
  color: var(--ink-primary);
}

.iso-lightbox-controls {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.iso-lightbox-stage {
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 0.9rem;
  background-color: #000000;
}

.iso-lightbox-stage img {
  display: block;
  max-block-size: 70svh;
  inline-size: auto;
  max-inline-size: 100%;
  object-fit: contain;
}

.iso-lightbox-video {
  inline-size: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  display: block;
}

.iso-lightbox-caption {
  margin: 0;
  font-size: 0.875rem;
  color: var(--ink-secondary);
  text-align: center;
}

.iso-lightbox-caption:empty {
  display: none;
}

/* ==========================================================================
   Cinematic One-Shot Entrance Animations (Opt-in via prefers-reduced-motion)
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
  .iso-ambient-beam {
    animation: iso-beam-in 1.4s cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .iso-acrylic-panel {
    animation: iso-panel-in 0.85s ease-out both;
    animation-timing-function: linear(0, 0.24 12%, 0.68 28%, 0.94 46%, 1.02 64%, 1);
  }

  .iso-reveal {
    animation: iso-fade-up 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .iso-reveal--1 { animation-delay: 110ms; }
  .iso-reveal--2 { animation-delay: 200ms; }
  .iso-reveal--3 { animation-delay: 310ms; }
  .iso-reveal--4 { animation-delay: 410ms; }
  .iso-reveal--5 { animation-delay: 500ms; }

  .iso-cs-social-item {
    animation: iso-fade-up 0.6s ease-out both;
    animation-delay: calc(560ms + var(--stagger, 0ms));
  }
}

@keyframes iso-beam-in {
  from { opacity: 0; scale: 0.92 0.86; }
  to { opacity: 1; scale: 1 1; }
}

@keyframes iso-panel-in {
  from { opacity: 0; translate: 0 1.25rem; scale: 0.97; }
  to { opacity: 1; translate: 0 0; scale: 1; }
}

@keyframes iso-fade-up {
  from { opacity: 0; translate: 0 0.75rem; }
  to { opacity: 1; translate: 0 0; }
}

/* ==========================================================================
   Mobile Polish
   ========================================================================== */

@media (max-width: 40rem) {
  .iso-cs-social-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .iso-footer-artwork {
    min-block-size: 17.5rem;
    max-block-size: 24rem;
    object-position: center 16%;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 18%, #000 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 18%, #000 100%);
  }

  .iso-footer-socials {
    gap: 0.35rem;
  }

  .iso-social-pill {
    padding-inline: 0.7rem;
    font-size: 0.75rem;
  }

  .iso-footer-copyright {
    font-size: 0.75rem;
  }

  .iso-footer-disclaimer {
    font-size: 0.6875rem;
  }
}

@media (max-width: 22rem) {
  .iso-cs-social-list {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Accessibility: Reduced Motion, High Contrast & Forced Colors Mode
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .iso-btn,
  .iso-card,
  .iso-card-img,
  .iso-social-tile,
  .iso-social-pill,
  .iso-icon-btn {
    transition: background-color 150ms ease-out, color 150ms ease-out;
  }

  .iso-btn:hover,
  .iso-card:hover,
  .iso-social-tile:hover,
  .iso-social-pill:hover {
    translate: none;
    scale: 1;
  }

  .iso-card:hover .iso-card-img {
    scale: 1;
  }
}

@media (prefers-contrast: more) {
  :root {
    --acrylic-tint: rgb(10 12 15 / 0.88);
    --card-bg: rgb(14 16 20 / 0.92);
    --tile-bg: rgb(255 255 255 / 0.14);
    --tile-bg-hover: rgb(255 255 255 / 0.24);
    --ink-secondary: #e2e7ef;
    --ink-muted: #cfd6e1;
  }
}

@media (forced-colors: active) {
  .iso-ambient-stage,
  .iso-acrylic-noise,
  .iso-footer-vignette {
    display: none;
  }

  .iso-acrylic-panel,
  .iso-card,
  .iso-btn,
  .iso-social-tile,
  .iso-social-pill,
  .iso-faq-item,
  .iso-form-group input,
  .iso-form-group textarea {
    outline: 1px solid CanvasText;
    box-shadow: none;
    background: Canvas;
  }

  .iso-footer-artwork {
    -webkit-mask-image: none;
    mask-image: none;
  }
}


/* ==========================================================================
   Isolophilia v2.0.0 — Elevated AAA UI Modules
   Status Pill · Reading Progress · YouTube Theater · Featured News ·
   Call to Arms Chips · Supporters Hall of Honor · CLS-Safe AdSense Slots
   ========================================================================== */

/* Pure CSS Scroll-Driven Reading Progress Bar on Single Articles & Lore */
.iso-reading-progress {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  block-size: 2px;
  z-index: 60;
  pointer-events: none;
  background: linear-gradient(to right var(--in-oklab), rgb(186 202 224 / 0.45), #f4f6f9);
  transform-origin: 0 50%;
  scale: 0 1;
}

@supports (animation-timeline: scroll()) {
  .iso-reading-progress {
    animation: iso-read-progress linear both;
    animation-timeline: scroll(root);
  }

  @keyframes iso-read-progress {
    from { scale: 0 1; }
    to { scale: 1 1; }
  }
}

/* Development Status Pill (Borderless Acrylic) */
.iso-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin: 0 auto 0.9rem;
  padding: 0.38rem 0.95rem;
  border-radius: 999px;
  background-color: rgb(255 255 255 / 0.075);
  color: var(--accent-ice);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.iso-status-dot {
  inline-size: 0.45rem;
  block-size: 0.45rem;
  border-radius: 50%;
  background-color: #9ce6b9;
  box-shadow: 0 0 10px rgb(156 230 185 / 0.75);
}

/* YouTube Channel Theater */
.iso-yt-theater {
  padding: clamp(1.35rem, 4vw, 2.75rem);
}

.iso-yt-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  margin-block-end: clamp(1.35rem, 3vw, 2rem);
}

.iso-yt-subtitle {
  margin: 0.55rem 0 0;
  max-inline-size: 56ch;
  color: var(--ink-secondary);
  font-size: 0.96875rem;
  line-height: 1.6;
}

.iso-btn--youtube {
  background-color: rgb(255 255 255 / 0.1);
  color: var(--ink-primary);
}

.iso-btn--youtube svg {
  color: #ff5b5b;
}

.iso-btn--youtube:hover {
  background-color: rgb(255 255 255 / 0.17);
  translate: 0 -2px;
  scale: 1.02;
}

.iso-yt-spotlight-btn,
.iso-yt-channel-card {
  position: relative;
  display: block;
  inline-size: 100%;
  border-radius: 1.15rem;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink-primary);
  box-shadow: 0 16px 48px rgb(0 0 0 / 0.55);
}

.iso-yt-spotlight-frame,
.iso-yt-channel-card {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background-color: #050608;
}

.iso-yt-spotlight-frame::after,
.iso-yt-channel-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top var(--in-oklab),
    rgb(0 0 0 / 0.86) 0%,
    rgb(0 0 0 / 0.25) 45%,
    transparent 100%
  );
  pointer-events: none;
}

.iso-play-badge--lg {
  inline-size: 4.75rem;
  block-size: 4.75rem;
  z-index: 2;
}

.iso-yt-spotlight-meta {
  position: absolute;
  inset-inline: clamp(1rem, 3vw, 2rem);
  inset-block-end: clamp(1rem, 3vw, 1.85rem);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.iso-yt-spotlight-meta strong {
  font-size: clamp(1.1rem, 0.95rem + 0.9vw, 1.65rem);
  line-height: 1.25;
  color: var(--ink-primary);
  text-shadow: 0 4px 16px rgb(0 0 0 / 0.85);
}

.iso-yt-row {
  margin-block-start: clamp(1rem, 2.5vw, 1.5rem);
}

/* Featured News & Devlogs Split Showcase */
.iso-news-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(1rem, 2.4vw, 1.5rem);
  align-items: start;
}

.iso-card-media--featured {
  aspect-ratio: 16 / 10;
}

.iso-card-title--lg {
  font-size: clamp(1.3rem, 1.1rem + 0.85vw, 1.75rem);
}

.iso-news-stack {
  display: flex;
  flex-direction: column;
  gap: clamp(0.85rem, 2vw, 1.15rem);
}

.iso-news-stack .iso-card {
  flex-direction: row;
  align-items: stretch;
}

.iso-news-stack .iso-card-media {
  flex: 0 0 38%;
  aspect-ratio: auto;
  min-block-size: 8.5rem;
}

.iso-news-stack .iso-card-body {
  padding: 1rem 1.15rem;
  justify-content: center;
}

.iso-news-stack .iso-card-excerpt {
  display: none;
}

@media (max-width: 58rem) {
  .iso-news-showcase {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 34rem) {
  .iso-news-stack .iso-card {
    flex-direction: column;
  }

  .iso-news-stack .iso-card-media {
    flex: none;
    aspect-ratio: 16 / 10;
  }
}

/* Call to Arms Recruitment Banner & Form Chips */
.iso-cta-banner {
  padding: clamp(1.75rem, 5vw, 3.5rem);
}

.iso-cta-banner-content {
  max-inline-size: 52rem;
}

.iso-cta-intro {
  margin-block-end: 2rem;
}

.iso-cta-roles-section {
  margin-block: 1.75rem 2.25rem;
}

.iso-role-pills {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.iso-role-pills--banner {
  margin-block: 1.5rem 1.85rem;
}

.iso-role-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.48rem 0.95rem;
  border-radius: 999px;
  background-color: rgb(255 255 255 / 0.08);
  color: var(--ink-primary);
  font-size: 0.875rem;
  font-weight: 500;
}

.iso-role-fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

.iso-role-fieldset legend {
  padding: 0;
  margin-block-end: 0.65rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-primary);
}

.iso-role-check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(13.5rem, 1fr));
  gap: 0.6rem;
}

.iso-role-chip-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-block-size: 3rem;
  padding: 0.6rem 0.95rem;
  border-radius: 0.85rem;
  background-color: rgb(255 255 255 / 0.065);
  color: var(--ink-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 160ms ease-out, color 160ms ease-out, scale 220ms ease-out;
}

.iso-role-chip-label:hover {
  background-color: rgb(255 255 255 / 0.12);
  color: var(--ink-primary);
}

.iso-role-check-dot {
  inline-size: 0.95rem;
  block-size: 0.95rem;
  flex-shrink: 0;
  border-radius: 0.3rem;
  background-color: rgb(255 255 255 / 0.14);
  display: inline-grid;
  place-items: center;
  transition: background-color 160ms ease-out;
}

.iso-role-choice input:checked + .iso-role-chip-label {
  background-color: var(--ink-primary);
  color: #050608;
}

.iso-role-choice input:checked + .iso-role-chip-label .iso-role-check-dot {
  background-color: #050608;
}

.iso-role-choice input:focus-visible + .iso-role-chip-label {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
}

/* Supporters Banner & Hall of Honor */
.iso-section--tight {
  padding-block: clamp(1rem, 2.5vw, 1.75rem);
}

.iso-supporters-banner {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.iso-supporters-banner > div:not(.iso-acrylic-noise) {
  max-inline-size: 42rem;
}

.iso-donate-card {
  text-decoration: none;
  color: inherit;
}

.iso-tier-block {
  margin-block-end: 2.25rem;
}

.iso-tier-heading {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--accent-ice);
}

.iso-supporters-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: 0.85rem;
}

.iso-supporters-grid--patron {
  grid-template-columns: repeat(auto-fill, minmax(17.5rem, 1fr));
}

.iso-supporter-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.15rem 1.3rem;
  border-radius: 1.1rem;
  background-color: var(--card-bg);
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.35);
}

.iso-supporter-card--patron {
  background-image: linear-gradient(
    145deg var(--in-oklab),
    rgb(230 238 250 / 0.14) 0%,
    rgb(20 23 28 / 0.65) 100%
  );
}

.iso-supporter-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink-primary);
  text-decoration: none;
}

a.iso-supporter-name:hover {
  text-decoration: underline;
}

.iso-supporter-note {
  font-size: 0.8125rem;
  color: var(--ink-muted);
}

/* CLS-Safe Google AdSense Slots */
.iso-ad-slot {
  margin-block: clamp(1.5rem, 3.5vw, 2.5rem);
  padding: 0.85rem;
  border-radius: 1rem;
  background-color: rgb(255 255 255 / 0.03);
  text-align: center;
}

.iso-ad-label {
  display: block;
  margin-block-end: 0.5rem;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
}

.iso-ad-inner {
  min-block-size: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}


/* ==========================================================================
   Isolophilia v3.0.0 — Dark/Light Theme Polish, Interactive Calradia Map,
   Crowbar Collective Roadmap & Before/After Visual Comparison Slider
   ========================================================================== */

/* Two-State Theme Toggle Option Visibility (CSS-driven, zero AT desync) */
.iso-theme-opt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

/* Default Light: show Moon ("Switch to dark"), hide Sun */
.iso-theme-opt--to-light {
  display: none;
}

.iso-theme-opt--to-dark {
  display: inline-flex;
}

/* System Dark (when not pinned to light) OR Pinned Dark: show Sun ("Switch to light") */
@media (prefers-color-scheme: dark) {
  :root:not(:has(> head > meta[name="color-scheme"][content="light"])) .iso-theme-opt--to-light {
    display: inline-flex;
  }

  :root:not(:has(> head > meta[name="color-scheme"][content="light"])) .iso-theme-opt--to-dark {
    display: none;
  }
}

:root:has(> head > meta[name="color-scheme"][content="dark"]) .iso-theme-opt--to-light {
  display: inline-flex;
}

:root:has(> head > meta[name="color-scheme"][content="dark"]) .iso-theme-opt--to-dark {
  display: none;
}

/* Light Mode Refinements (Keep white logo razor-sharp by inverting to dark ink) */
@media (prefers-color-scheme: light) {
  :root:not(:has(> head > meta[name="color-scheme"][content="dark"])) body:not(.iso-coming-soon-mode) .iso-brand-img,
  :root:not(:has(> head > meta[name="color-scheme"][content="dark"])) body:not(.iso-coming-soon-mode) .iso-hero-logo {
    filter: invert(1) drop-shadow(0 2px 10px rgb(0 0 0 / 0.08));
  }

  :root:not(:has(> head > meta[name="color-scheme"][content="dark"])) body:not(.iso-coming-soon-mode) .iso-acrylic-panel {
    box-shadow:
      0 8px 24px rgb(19 22 27 / 0.07),
      0 24px 64px rgb(19 22 27 / 0.11);
  }

  :root:not(:has(> head > meta[name="color-scheme"][content="dark"])) body:not(.iso-coming-soon-mode) .iso-card {
    box-shadow: 0 8px 26px rgb(19 22 27 / 0.08);
  }

  :root:not(:has(> head > meta[name="color-scheme"][content="dark"])) body:not(.iso-coming-soon-mode) .iso-site-header {
    box-shadow: 0 6px 24px rgb(19 22 27 / 0.08);
  }

  :root:not(:has(> head > meta[name="color-scheme"][content="dark"])) body:not(.iso-coming-soon-mode) .iso-prose {
    color: #2c333f;
  }

  :root:not(:has(> head > meta[name="color-scheme"][content="dark"])) body:not(.iso-coming-soon-mode) .iso-btn--primary,
  :root:not(:has(> head > meta[name="color-scheme"][content="dark"])) body:not(.iso-coming-soon-mode) .iso-filter-pill.is-active,
  :root:not(:has(> head > meta[name="color-scheme"][content="dark"])) body:not(.iso-coming-soon-mode) .iso-role-choice input:checked + .iso-role-chip-label {
    background-color: #13161b;
    color: #f4f6f9;
  }

  :root:not(:has(> head > meta[name="color-scheme"][content="dark"])) body:not(.iso-coming-soon-mode) .iso-drawer-sheet {
    background-color: rgb(246 245 241 / 0.92);
    color: #13161b;
  }

  :root:not(:has(> head > meta[name="color-scheme"][content="dark"])) body:not(.iso-coming-soon-mode) .iso-social-icon {
    color: #364152;
  }

  :root:not(:has(> head > meta[name="color-scheme"][content="dark"])) body:not(.iso-coming-soon-mode) .iso-site-footer {
    background-color: #050608;
    margin-block-start: 2rem;
  }
}

:root:has(> head > meta[name="color-scheme"][content="light"]) body:not(.iso-coming-soon-mode) .iso-brand-img,
:root:has(> head > meta[name="color-scheme"][content="light"]) body:not(.iso-coming-soon-mode) .iso-hero-logo {
  filter: invert(1) drop-shadow(0 2px 10px rgb(0 0 0 / 0.08));
}

:root:has(> head > meta[name="color-scheme"][content="light"]) body:not(.iso-coming-soon-mode) .iso-acrylic-panel {
  box-shadow:
    0 8px 24px rgb(19 22 27 / 0.07),
    0 24px 64px rgb(19 22 27 / 0.11);
}

:root:has(> head > meta[name="color-scheme"][content="light"]) body:not(.iso-coming-soon-mode) .iso-card {
  box-shadow: 0 8px 26px rgb(19 22 27 / 0.08);
}

:root:has(> head > meta[name="color-scheme"][content="light"]) body:not(.iso-coming-soon-mode) .iso-site-header {
  box-shadow: 0 6px 24px rgb(19 22 27 / 0.08);
}

:root:has(> head > meta[name="color-scheme"][content="light"]) body:not(.iso-coming-soon-mode) .iso-prose {
  color: #2c333f;
}

:root:has(> head > meta[name="color-scheme"][content="light"]) body:not(.iso-coming-soon-mode) .iso-btn--primary,
:root:has(> head > meta[name="color-scheme"][content="light"]) body:not(.iso-coming-soon-mode) .iso-filter-pill.is-active,
:root:has(> head > meta[name="color-scheme"][content="light"]) body:not(.iso-coming-soon-mode) .iso-role-choice input:checked + .iso-role-chip-label {
  background-color: #13161b;
  color: #f4f6f9;
}

:root:has(> head > meta[name="color-scheme"][content="light"]) body:not(.iso-coming-soon-mode) .iso-drawer-sheet {
  background-color: rgb(246 245 241 / 0.92);
  color: #13161b;
}

:root:has(> head > meta[name="color-scheme"][content="light"]) body:not(.iso-coming-soon-mode) .iso-social-icon {
  color: #364152;
}

:root:has(> head > meta[name="color-scheme"][content="light"]) body:not(.iso-coming-soon-mode) .iso-site-footer {
  background-color: #050608;
  margin-block-start: 2rem;
}

/* Keep Footer Artwork & Credit Crisp Dark Always */
.iso-site-footer .iso-social-pill {
  background-color: rgb(255 255 255 / 0.1);
  color: #f4f6f9;
}

.iso-site-footer .iso-social-icon {
  color: #dbe2ed;
}

/* ==========================================================================
   Interactive Calradia Map (Mount & Blade: Warband Lore)
   ========================================================================== */

.iso-calradia-widget {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.iso-map-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.iso-map-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-block-size: 2.85rem;
  padding: 0.45rem 0.95rem;
  border: 0;
  border-radius: 0.85rem;
  background-color: var(--tile-bg);
  color: var(--ink-secondary);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 180ms ease-out, color 180ms ease-out, scale 260ms ease-out;
}

.iso-map-tab .iso-ico {
  font-size: 1.2rem;
}

.iso-map-tab:hover {
  background-color: var(--tile-bg-hover);
  color: var(--ink-primary);
}

.iso-map-tab.is-active,
.iso-map-tab[aria-selected='true'] {
  background-color: var(--ink-primary);
  color: var(--bg-obsidian);
}

.iso-map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(1rem, 2.4vw, 1.5rem);
  align-items: stretch;
}

@media (max-width: 60rem) {
  .iso-map-layout {
    grid-template-columns: 1fr;
  }
}

.iso-map-canvas-wrap {
  padding: 0;
  display: flex;
  align-items: center;
}

.iso-calradia-svg {
  display: block;
  inline-size: 100%;
  block-size: auto;
  color: var(--ink-primary);
  user-select: none;
}

.iso-map-region {
  cursor: pointer;
  stroke: rgb(255 255 255 / 0.16);
  stroke-width: 1.75;
  transition: opacity 200ms ease-out, filter 220ms ease-out;
  opacity: 0.72;
}

.iso-map-region:hover,
.iso-map-region:focus-visible {
  opacity: 0.94;
  outline: none;
}

.iso-map-region.is-active {
  opacity: 1;
  stroke: rgb(255 255 255 / 0.78);
  stroke-width: 2.5;
  filter: brightness(1.18);
}

/* Lore-authentic muted cartographic faction fills */
.iso-region--swadia   { fill: #8f3934; }
.iso-region--sarranid { fill: #9c7a38; }
.iso-region--nord     { fill: #3b5978; }
.iso-region--vaegir   { fill: #5e6d7d; }
.iso-region--khergit  { fill: #6b5278; }
.iso-region--rhodok   { fill: #3d6b52; }

.iso-city-pin {
  cursor: pointer;
}

.iso-city-pin circle {
  fill: #f4f6f9;
  stroke: #050608;
  stroke-width: 2;
  transition: scale 220ms ease-out;
}

.iso-city-pin text {
  fill: #f4f6f9;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  paint-order: stroke;
  stroke: rgb(0 0 0 / 0.8);
  stroke-width: 3px;
  stroke-linejoin: round;
}

.iso-city-pin--capital text {
  font-size: 13.5px;
  font-weight: 700;
}

.iso-city-pin.is-active circle {
  fill: #ffffff;
  r: 8.5;
}

.iso-map-sea-label {
  fill: currentColor;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.25em;
}

.iso-map-dossier {
  padding: clamp(1.35rem, 3.2vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  justify-content: space-between;
}

.iso-map-dossier[hidden] {
  display: none;
}

.iso-dossier-head {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.iso-faction-emblem {
  inline-size: 3.75rem;
  block-size: 3.75rem;
  flex-shrink: 0;
  border-radius: 1rem;
  display: grid;
  place-items: center;
  font-size: 2rem;
  background-color: var(--tile-bg);
  color: var(--ink-primary);
}

.iso-faction-emblem--swadia   { background-color: rgb(143 57 52 / 0.28); }
.iso-faction-emblem--sarranid { background-color: rgb(156 122 56 / 0.28); }
.iso-faction-emblem--nord     { background-color: rgb(59 89 120 / 0.28); }
.iso-faction-emblem--vaegir   { background-color: rgb(94 109 125 / 0.28); }
.iso-faction-emblem--khergit  { background-color: rgb(107 82 120 / 0.28); }
.iso-faction-emblem--rhodok   { background-color: rgb(61 107 82 / 0.28); }

.iso-dossier-title {
  margin: 0;
  font-size: clamp(1.2rem, 1rem + 0.7vw, 1.55rem);
  font-weight: 700;
  line-height: 1.2;
}

.iso-dossier-lore {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--ink-secondary);
  text-wrap: pretty;
}

.iso-dossier-stats {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1rem;
  padding: 1rem;
  border-radius: 0.95rem;
  background-color: var(--tile-bg);
}

.iso-dossier-stats dt {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  margin-block-end: 0.15rem;
}

.iso-dossier-stats dd {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-primary);
}

/* ==========================================================================
   Crowbar Collective / Black Mesa Roadmap & Visual Comparison Slider
   ========================================================================== */

.iso-roadmap-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.9rem, 2.2vw, 1.35rem);
}

@media (max-width: 60rem) {
  .iso-roadmap-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 36rem) {
  .iso-roadmap-grid {
    grid-template-columns: 1fr;
  }
}

.iso-milestone-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.iso-milestone-badge--completed {
  background-color: rgb(62 152 104 / 0.24);
  color: #9ce6b9;
}

.iso-milestone-badge--in-progress {
  background-color: rgb(96 146 218 / 0.24);
  color: #b7d3ff;
}

.iso-milestone-pct {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ink-primary);
  font-variant-numeric: tabular-nums;
}

.iso-milestone-num {
  display: inline-block;
  margin-inline-end: 0.45rem;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
}

.iso-progress-track {
  margin-block-start: auto;
  padding-block-start: 0.5rem;
}

.iso-progress-track::before {
  content: '';
  display: block;
}

.iso-progress-fill {
  position: relative;
  inline-size: 100%;
  block-size: 0.42rem;
  border-radius: 999px;
  background-color: var(--tile-bg);
  overflow: hidden;
}

.iso-progress-fill::after {
  content: '';
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  inline-size: var(--pct, 0%);
  border-radius: 999px;
  background: linear-gradient(to right var(--in-oklab), var(--accent-ice), var(--ink-primary));
}

.iso-home-compare-wrap {
  margin-block-start: clamp(1.5rem, 3.5vw, 2.5rem);
}

/* Before / After Comparison Slider (Zero-Bloat CSS clip-path) */
.iso-compare {
  margin: 0;
}

.iso-compare-stage {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background-color: #050608;
  box-shadow: 0 18px 54px rgb(0 0 0 / 0.55);
  user-select: none;
}

.iso-compare-img {
  position: absolute;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.iso-compare-img--before {
  clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0);
}

.iso-compare-divider {
  position: absolute;
  inset-block: 0;
  inset-inline-start: var(--pos, 50%);
  inline-size: 2px;
  translate: -50% 0;
  background-color: rgb(255 255 255 / 0.88);
  pointer-events: none;
  z-index: 3;
}

.iso-compare-knob {
  position: absolute;
  inset-block-start: 50%;
  inset-inline-start: 50%;
  translate: -50% -50%;
  inline-size: 2.75rem;
  block-size: 2.75rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background-color: rgb(15 18 24 / 0.85);
  color: #ffffff;
  font-size: 1.05rem;
  box-shadow: 0 6px 20px rgb(0 0 0 / 0.55);
}

.iso-compare-badge {
  position: absolute;
  inset-block-start: 1rem;
  z-index: 2;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background-color: rgb(8 10 14 / 0.72);
  color: #f4f6f9;
  font-size: 0.75rem;
  font-weight: 600;
  pointer-events: none;
}

.iso-compare-badge--before { inset-inline-start: 1rem; }
.iso-compare-badge--after  { inset-inline-end: 1rem; }

.iso-compare-range {
  position: absolute;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  z-index: 4;
}

/* Collective Pillars (Black Mesa Community Blueprint) */
.iso-collective-pillars {
  margin-block: 1.75rem 2rem;
}

.iso-pillar-box {
  padding: 1.35rem;
  border-radius: 1.05rem;
  background-color: var(--tile-bg);
}

.iso-pillar-box .iso-ico {
  font-size: 1.65rem;
  color: var(--accent-ice);
  margin-block-end: 0.65rem;
}

.iso-pillar-box h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink-primary);
}

.iso-pillar-box p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--ink-secondary);
}


/* ==========================================================================
   Isolophilia v4.0.0 — Fluent Acrylic Optical Material, 100% Light/Dark Parity,
   Mobile Hero Slider, Acrylic Live Search Modal, Lore Dossier v2 & Share Bar
   ========================================================================== */

:root {
  --acrylic-blur: 34px;

  /* Complete Light & Dark token parity for Modals, Inputs, Tags & Badges */
  --modal-bg-l: rgb(248 248 250 / 0.84);
  --modal-bg-d: rgb(15 18 24 / 0.78);
  --modal-fallback-l: rgb(248 248 250 / 0.97);
  --modal-fallback-d: rgb(14 17 22 / 0.96);
  --modal-backdrop-l: rgb(218 223 232 / 0.62);
  --modal-backdrop-d: rgb(0 0 0 / 0.78);
  --acrylic-sheen-l: rgb(255 255 255 / 0.72);
  --acrylic-sheen-d: rgb(255 255 255 / 0.14);
  --input-bg-l: rgb(19 22 27 / 0.065);
  --input-bg-d: rgb(255 255 255 / 0.075);
  --input-bg-focus-l: rgb(19 22 27 / 0.1);
  --input-bg-focus-d: rgb(255 255 255 / 0.12);
  --tag-bg-l: rgb(19 22 27 / 0.08);
  --tag-bg-d: rgb(255 255 255 / 0.09);
  --badge-ok-bg-l: rgb(24 128 72 / 0.14);
  --badge-ok-bg-d: rgb(62 152 104 / 0.24);
  --badge-ok-ink-l: #13683a;
  --badge-ok-ink-d: #9ce6b9;
  --badge-info-bg-l: rgb(32 96 184 / 0.14);
  --badge-info-bg-d: rgb(96 146 218 / 0.24);
  --badge-info-ink-l: #194f99;
  --badge-info-ink-d: #b7d3ff;
  --badge-err-bg-l: rgb(196 42 42 / 0.14);
  --badge-err-bg-d: rgb(214 78 78 / 0.24);
  --badge-err-ink-l: #991b1b;
  --badge-err-ink-d: #ffd0ce;

  --modal-bg: var(--modal-bg-l);
  --modal-fallback: var(--modal-fallback-l);
  --modal-backdrop: var(--modal-backdrop-l);
  --acrylic-top-sheen: var(--acrylic-sheen-l);
  --input-bg: var(--input-bg-l);
  --input-bg-focus: var(--input-bg-focus-l);
  --tag-bg: var(--tag-bg-l);
  --badge-ok-bg: var(--badge-ok-bg-l);
  --badge-ok-ink: var(--badge-ok-ink-l);
  --badge-info-bg: var(--badge-info-bg-l);
  --badge-info-ink: var(--badge-info-ink-l);
  --badge-err-bg: var(--badge-err-bg-l);
  --badge-err-ink: var(--badge-err-ink-l);
}

@media (prefers-color-scheme: dark) {
  :root {
    --modal-bg: var(--modal-bg-d);
    --modal-fallback: var(--modal-fallback-d);
    --modal-backdrop: var(--modal-backdrop-d);
    --acrylic-top-sheen: var(--acrylic-sheen-d);
    --input-bg: var(--input-bg-d);
    --input-bg-focus: var(--input-bg-focus-d);
    --tag-bg: var(--tag-bg-d);
    --badge-ok-bg: var(--badge-ok-bg-d);
    --badge-ok-ink: var(--badge-ok-ink-d);
    --badge-info-bg: var(--badge-info-bg-d);
    --badge-info-ink: var(--badge-info-ink-d);
    --badge-err-bg: var(--badge-err-bg-d);
    --badge-err-ink: var(--badge-err-ink-d);
  }
}

@supports (color: light-dark(white, black)) {
  :root {
    --modal-bg: light-dark(var(--modal-bg-l), var(--modal-bg-d));
    --modal-fallback: light-dark(var(--modal-fallback-l), var(--modal-fallback-d));
    --modal-backdrop: light-dark(var(--modal-backdrop-l), var(--modal-backdrop-d));
    --acrylic-top-sheen: light-dark(var(--acrylic-sheen-l), var(--acrylic-sheen-d));
    --input-bg: light-dark(var(--input-bg-l), var(--input-bg-d));
    --input-bg-focus: light-dark(var(--input-bg-focus-l), var(--input-bg-focus-d));
    --tag-bg: light-dark(var(--tag-bg-l), var(--tag-bg-d));
    --badge-ok-bg: light-dark(var(--badge-ok-bg-l), var(--badge-ok-bg-d));
    --badge-ok-ink: light-dark(var(--badge-ok-ink-l), var(--badge-ok-ink-d));
    --badge-info-bg: light-dark(var(--badge-info-bg-l), var(--badge-info-bg-d));
    --badge-info-ink: light-dark(var(--badge-info-ink-l), var(--badge-info-ink-d));
    --badge-err-bg: light-dark(var(--badge-err-bg-l), var(--badge-err-bg-d));
    --badge-err-ink: light-dark(var(--badge-err-ink-l), var(--badge-err-ink-d));
  }
}

/* Fluent Design Optical Specular Top Edge & GPU-Friendly Acrylic Discipline */
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .iso-acrylic-panel {
    -webkit-backdrop-filter: blur(var(--acrylic-blur, 34px)) saturate(var(--acrylic-sat, 170%)) brightness(1.03);
    backdrop-filter: blur(var(--acrylic-blur, 34px)) saturate(var(--acrylic-sat, 170%)) brightness(1.03);
    box-shadow:
      inset 0 1px 0 var(--acrylic-top-sheen),
      0 14px 36px rgb(0 0 0 / 0.24),
      0 32px 84px rgb(0 0 0 / 0.34);
  }

  .iso-site-header {
    -webkit-backdrop-filter: blur(var(--acrylic-blur, 34px)) saturate(var(--acrylic-sat, 170%));
    backdrop-filter: blur(var(--acrylic-blur, 34px)) saturate(var(--acrylic-sat, 170%));
  }

  /* Avoid recursive nested backdrop-filter inside already-blurred panels for 60fps mobile */
  .iso-acrylic-panel .iso-card,
  .iso-acrylic-panel .iso-social-tile {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

/* Full Light & Dark Parity on All Secondary Surfaces, Badges, Forms & Modals */
.iso-tag,
.iso-role-pill,
.iso-status-pill {
  background-color: var(--tag-bg);
}

.iso-form-group input,
.iso-form-group textarea,
.iso-role-chip-label,
.iso-btn--youtube {
  background-color: var(--input-bg);
}

.iso-form-group input:focus,
.iso-form-group textarea:focus,
.iso-role-chip-label:hover,
.iso-btn--youtube:hover {
  background-color: var(--input-bg-focus);
}

.iso-milestone-badge--completed,
.iso-form-alert--success {
  background-color: var(--badge-ok-bg);
  color: var(--badge-ok-ink);
}

.iso-milestone-badge--in-progress {
  background-color: var(--badge-info-bg);
  color: var(--badge-info-ink);
}

.iso-form-alert--error {
  background-color: var(--badge-err-bg);
  color: var(--badge-err-ink);
}

.iso-ad-slot {
  background-color: var(--tile-bg);
}

.iso-lightbox-stage {
  background-color: var(--bg-surface);
}

.iso-drawer::backdrop {
  background: var(--modal-backdrop);
}

/* ==========================================================================
   Sleek Mobile-Friendly Hero Slider (modern-web-guidance: carousel)
   ========================================================================== */

.iso-main--home {
  padding-block-start: clamp(1rem, 2.5vw, 1.75rem);
}

.iso-slider-section {
  padding-block: 0 clamp(1.25rem, 3vw, 2rem);
}

.iso-slider-shell {
  position: relative;
  border-radius: clamp(1.25rem, 3vw, 1.75rem);
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 var(--acrylic-top-sheen),
    0 20px 60px rgb(0 0 0 / 0.35);
}

.iso-slider-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  touch-action: manipulation;
  overscroll-behavior-x: contain;
}

.iso-slider-track::-webkit-scrollbar {
  display: none;
}

@media (prefers-reduced-motion: no-preference) {
  .iso-slider-track {
    scroll-behavior: smooth;
  }
}

.iso-slide {
  position: relative;
  flex: 0 0 100%;
  scroll-snap-align: center;
  min-block-size: clamp(24rem, 58svh, 36rem);
  display: flex;
  align-items: flex-end;
  isolation: isolate;
  background-color: #06080b;
}

.iso-slide-bg {
  position: absolute;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  object-position: center 26%;
  z-index: -2;
  user-select: none;
}

.iso-slide-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(
      to top var(--in-oklab),
      rgb(4 6 9 / 0.9) 0%,
      rgb(4 6 9 / 0.45) 45%,
      rgb(4 6 9 / 0.14) 100%
    ),
    linear-gradient(
      to right var(--in-oklab),
      rgb(4 6 9 / 0.65) 0%,
      transparent 65%
    );
}

.iso-slide-content {
  inline-size: 100%;
  max-inline-size: 50rem;
  /* Generous desktop inline padding so left/right slider arrows NEVER overlap the Title */
  padding-block-start: clamp(4.5rem, 8vw, 5.5rem);
  padding-block-end: clamp(3.6rem, 6vw, 4.5rem);
  padding-inline: clamp(1.35rem, 6.5vw, 5.75rem);
  color: #f4f6f9;
}

.iso-slide-eyebrow {
  margin: 0 0 0.65rem;
  font-size: clamp(0.75rem, 0.7rem + 0.18vw, 0.85rem);
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #cfd8e8;
}

.iso-slide-title {
  margin: 0;
  font-size: clamp(1.75rem, 1.25rem + 2.2vw, 3.1rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
  text-wrap: balance;
  color: #ffffff;
  text-shadow: 0 4px 24px rgb(0 0 0 / 0.55);
}

.iso-slide-subtitle {
  margin: 0.85rem 0 0;
  max-inline-size: 48ch;
  font-size: clamp(0.95rem, 0.9rem + 0.25vw, 1.125rem);
  line-height: 1.6;
  color: rgb(236 240 247 / 0.88);
  text-wrap: pretty;
}

.iso-slide-actions {
  margin-block-start: 1.4rem;
}

.iso-slide-actions .iso-btn--primary {
  background-color: #f4f6f9;
  color: #050608;
}

.iso-slider-controls {
  position: absolute;
  inset-block-start: 50%;
  inset-inline: clamp(0.65rem, 2vw, 1.25rem);
  translate: 0 -50%;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.iso-slider-arrow {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-inline-size: 2.9rem;
  min-block-size: 2.9rem;
  border: 0;
  border-radius: 50%;
  background-color: rgb(12 15 20 / 0.55);
  color: #ffffff;
  cursor: pointer;
  touch-action: manipulation;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.2), 0 6px 20px rgb(0 0 0 / 0.4);
  transition: background-color 180ms ease-out, scale 260ms ease-out;
}

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .iso-slider-arrow {
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    backdrop-filter: blur(16px) saturate(150%);
  }
}

.iso-slider-arrow:hover {
  background-color: rgb(20 25 34 / 0.82);
  scale: 1.06;
}

.iso-slider-arrow:active {
  scale: 0.94;
}

@media (max-width: 40rem) {
  .iso-slider-controls {
    display: none;
  }

  .iso-slide {
    min-block-size: 24.5rem;
  }
}

.iso-slider-footer {
  position: absolute;
  inset-block-end: 1.25rem;
  inset-inline: clamp(1.35rem, 6.5vw, 5.75rem);
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  pointer-events: none;
}

.iso-slider-markers {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  pointer-events: auto;
}

.iso-slider-dot {
  inline-size: 0.55rem;
  block-size: 0.55rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background-color: rgb(255 255 255 / 0.38);
  cursor: pointer;
  touch-action: manipulation;
  transition: inline-size 260ms ease-out, background-color 180ms ease-out;
}

.iso-slider-dot[aria-current='true'] {
  inline-size: 1.85rem;
  background-color: #ffffff;
}

.iso-slider-pause {
  pointer-events: auto;
  min-block-size: 2rem;
  padding: 0.25rem 0.75rem;
  border: 0;
  border-radius: 999px;
  background-color: rgb(12 15 20 / 0.55);
  color: #f4f6f9;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}

.iso-home-status-wrap {
  display: flex;
  justify-content: center;
  margin-block-end: 0.5rem;
}

/* ==========================================================================
   Acrylic Blur Live Search Modal (Full Light & Dark Parity)
   ========================================================================== */

.iso-search-modal {
  inline-size: min(94vw, 44rem);
  max-inline-size: 44rem;
  max-block-size: 82svh;
  margin-block-start: clamp(3.5rem, 10vh, 7rem);
  margin-inline: auto;
  padding: 0;
  border: 0;
  border-radius: 1.4rem;
  background-color: var(--modal-fallback);
  color: var(--ink-primary);
  box-shadow:
    inset 0 1px 0 var(--acrylic-top-sheen),
    0 24px 84px rgb(0 0 0 / 0.42);
  overflow: hidden;
}

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .iso-search-modal {
    background-color: var(--modal-bg);
    -webkit-backdrop-filter: blur(var(--acrylic-blur, 34px)) saturate(180%);
    backdrop-filter: blur(var(--acrylic-blur, 34px)) saturate(180%);
  }
}

.iso-search-modal::backdrop {
  background-color: var(--modal-backdrop);
  -webkit-backdrop-filter: blur(16px) saturate(145%);
  backdrop-filter: blur(16px) saturate(145%);
}

.iso-search-modal-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  max-block-size: 82svh;
  isolation: isolate;
}

.iso-search-modal-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.15rem;
  background-color: var(--tile-bg);
}

.iso-modal-search-wrap {
  flex: 1 1 auto;
}

.iso-modal-search-form {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.iso-modal-search-ico {
  flex-shrink: 0;
  color: var(--ink-muted);
}

.iso-modal-search-form input[type='search'] {
  inline-size: 100%;
  min-block-size: 2.85rem;
  border: 0;
  background: transparent;
  color: var(--ink-primary);
  font: inherit;
  font-size: max(1rem, 1.0625rem);
  outline: none;
}

.iso-modal-search-form input[type='search']::placeholder {
  color: var(--ink-muted);
}

.iso-search-results {
  overflow-y: auto;
  padding: 0.75rem 1.15rem 1rem;
  min-block-size: 8rem;
}

.iso-search-hint {
  margin: 1.25rem 0;
  text-align: center;
  font-size: 0.9375rem;
  color: var(--ink-muted);
}

.iso-search-result-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.iso-search-result-item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.75rem 0.9rem;
  border-radius: 0.95rem;
  text-decoration: none;
  color: var(--ink-primary);
  background-color: transparent;
  transition: background-color 150ms ease-out;
}

.iso-search-result-item:hover,
.iso-search-result-item:focus-visible {
  background-color: var(--tile-bg-hover);
}

.iso-search-thumb {
  inline-size: 3.5rem;
  block-size: 3.5rem;
  flex-shrink: 0;
  border-radius: 0.65rem;
  object-fit: cover;
}

.iso-search-item-body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-inline-size: 0;
}

.iso-search-item-title {
  font-size: 0.96875rem;
  font-weight: 600;
  color: var(--ink-primary);
}

.iso-search-item-desc {
  margin: 0;
  font-size: 0.84rem;
  color: var(--ink-secondary);
  line-height: 1.45;
}

.iso-search-all-link {
  display: block;
  margin-block-start: 0.75rem;
  padding: 0.75rem;
  border-radius: 0.85rem;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  background-color: var(--tile-bg);
  color: var(--ink-primary);
  text-decoration: none;
}

.iso-search-all-link:hover {
  background-color: var(--tile-bg-hover);
}

.iso-search-modal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 1.15rem;
  font-size: 0.75rem;
  color: var(--ink-muted);
  background-color: var(--tile-bg);
}

.iso-search-modal-foot kbd {
  padding: 0.12rem 0.42rem;
  border-radius: 0.35rem;
  background-color: var(--tile-bg-hover);
  font-family: inherit;
  font-weight: 600;
}

/* ==========================================================================
   Upgraded Lore Codex Dossier, Card Emblem Badge, Share Bar & Back-to-Top
   ========================================================================== */

.iso-lore-title-row {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.iso-card-emblem-badge {
  position: absolute;
  inset-block-start: 0.75rem;
  inset-inline-end: 0.75rem;
  inline-size: 2.35rem;
  block-size: 2.35rem;
  border-radius: 0.75rem;
  display: grid;
  place-items: center;
  background-color: rgb(10 12 16 / 0.72);
  color: #f4f6f9;
  font-size: 1.25rem;
}

.iso-placeholder-ico {
  font-size: 4rem;
  color: var(--ink-muted);
  opacity: 0.45;
}

/* Balanced symmetric Lore Codex Attributes grid (4-col desktop, 2x2 tablet/mobile) */
.iso-facts-grid {
  grid-template-columns: repeat(var(--fact-cols, 4), minmax(0, 1fr));
}

@media (max-width: 44rem) {
  .iso-facts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 24rem) {
  .iso-facts-grid {
    grid-template-columns: 1fr;
  }
}

.iso-fact-item {
  padding: 0.85rem 1rem;
  border-radius: 0.85rem;
  background-color: var(--tile-bg);
}

.iso-epigraph {
  margin: 0 0 clamp(1.75rem, 4vw, 2.5rem);
  padding: 1.35rem 1.65rem;
  border-radius: 1.15rem;
  background-color: var(--tile-bg);
  font-size: clamp(1.05rem, 0.98rem + 0.35vw, 1.25rem);
  font-style: italic;
  line-height: 1.6;
  color: var(--ink-primary);
}

.iso-epigraph p {
  margin: 0;
}

/* Share Bar */
.iso-share-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  margin-block-start: 2.5rem;
  padding: 1rem 1.25rem;
  border-radius: 1.05rem;
  background-color: var(--card-bg);
}

.iso-share-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.iso-share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.iso-share-btn {
  display: inline-flex;
  align-items: center;
  min-block-size: 2.5rem;
  padding: 0.35rem 0.9rem;
  border: 0;
  border-radius: 0.7rem;
  background-color: var(--tile-bg);
  color: var(--ink-primary);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms ease-out;
}

.iso-share-btn:hover {
  background-color: var(--tile-bg-hover);
}

/* Floating Back-to-Top Frosted Button */
.iso-back-to-top {
  position: fixed;
  inset-block-end: max(1.25rem, env(safe-area-inset-bottom));
  inset-inline-end: 1.25rem;
  z-index: 35;
  inline-size: 3rem;
  block-size: 3rem;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background-color: var(--modal-bg);
  color: var(--ink-primary);
  box-shadow:
    inset 0 1px 0 var(--acrylic-top-sheen),
    0 10px 28px rgb(0 0 0 / 0.32);
  cursor: pointer;
  transition: scale 240ms ease-out, background-color 180ms ease-out;
}

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .iso-back-to-top {
    -webkit-backdrop-filter: blur(22px) saturate(160%);
    backdrop-filter: blur(22px) saturate(160%);
  }
}

.iso-back-to-top[hidden] {
  display: none;
}

.iso-back-to-top:hover {
  scale: 1.08;
}

.iso-back-to-top:active {
  scale: 0.94;
}

/* Ensure Realm Accent ambient wash softly refracts behind Acrylic in Light Mode too */
@media (prefers-color-scheme: light) {
  :root:not(:has(> head > meta[name="color-scheme"][content="dark"])) .iso-ambient-halo {
    mix-blend-mode: normal;
    opacity: 0.45;
  }
}

:root:has(> head > meta[name="color-scheme"][content="light"]) .iso-ambient-halo {
  mix-blend-mode: normal;
  opacity: 0.45;
}


/* ==========================================================================
   Isolophilia v4.1.1 — Slider Top Status Pill, Autoplay Progress Bar,
   YouTube Over-Media Contrast Fix, Homepage FAQ, Changelog & Press Kit
   ========================================================================== */

/* Integrated Top-Left Status Badge inside Hero Slider (never orphaned below) */
.iso-slider-top-badge {
  position: absolute;
  inset-block-start: clamp(1rem, 2.5vw, 1.5rem);
  inset-inline-start: clamp(1.35rem, 6.5vw, 5.75rem);
  z-index: 4;
  pointer-events: none;
}

.iso-status-pill--overlay {
  margin: 0;
  background-color: rgb(10 13 18 / 0.62);
  color: #f4f6f9;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.18), 0 6px 20px rgb(0 0 0 / 0.35);
}

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .iso-status-pill--overlay {
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    backdrop-filter: blur(16px) saturate(150%);
  }
}

/* Autoplay Interval Progress Fill Bar synced to --iso-auto-ms */
.iso-slider-progress {
  position: absolute;
  inset-block-end: 0;
  inset-inline: 0;
  block-size: 3px;
  z-index: 5;
  background-color: rgb(255 255 255 / 0.14);
  overflow: hidden;
  pointer-events: none;
}

.iso-slider-progress-fill {
  display: block;
  inline-size: 100%;
  block-size: 100%;
  background: linear-gradient(to right var(--in-oklab), rgb(255 255 255 / 0.55), #ffffff);
  transform-origin: 0 50%;
  scale: 0 1;
}

@media (prefers-reduced-motion: no-preference) {
  .iso-slider-progress-fill.is-running {
    animation: iso-slide-fill var(--iso-auto-ms, 6000ms) linear forwards;
  }

  .iso-slider-progress-fill[data-paused='1'] {
    animation-play-state: paused;
  }
}

@keyframes iso-slide-fill {
  from { scale: 0 1; }
  to { scale: 1 1; }
}

/* IMAGE 2 FIX: Bulletproof High-Contrast White Text & Play Badge Over Dark Video Scrim
   in BOTH Light Mode AND Dark Mode! */
.iso-yt-spotlight-frame::after,
.iso-yt-channel-card::after {
  background: linear-gradient(
    to top var(--in-oklab),
    rgb(0 0 0 / 0.92) 0%,
    rgb(0 0 0 / 0.52) 42%,
    rgb(0 0 0 / 0.12) 75%,
    transparent 100%
  );
}

.iso-yt-spotlight-meta strong {
  color: #ffffff !important;
  text-shadow: 0 2px 14px rgb(0 0 0 / 0.95), 0 4px 26px rgb(0 0 0 / 0.8);
}

.iso-yt-spotlight-meta .iso-tag {
  background-color: rgb(255 255 255 / 0.18) !important;
  color: #ffffff !important;
  text-shadow: 0 1px 6px rgb(0 0 0 / 0.6);
}

.iso-play-badge {
  background-color: rgb(10 12 16 / 0.78) !important;
  color: #ffffff !important;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.22), 0 10px 28px rgb(0 0 0 / 0.55);
}

.iso-media-trigger:hover .iso-play-badge,
.iso-yt-channel-card:hover .iso-play-badge {
  background-color: #ffffff !important;
  color: #050608 !important;
}

/* Homepage Collapsible FAQ Section (Above Footer) */
.iso-faq-section {
  padding-block: clamp(2rem, 5vw, 3.75rem);
}

.iso-faq-head {
  margin-block-end: 1.5rem;
}

/* Public Build Changelog */
.iso-changelog-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.iso-changelog-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

.iso-changelog-type {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent-ice);
}

.iso-changelog-type--added   { color: var(--badge-ok-ink); }
.iso-changelog-type--changed { color: var(--badge-info-ink); }
.iso-changelog-type--fixed   { color: var(--ink-primary); }

.iso-changelog-date {
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--ink-muted);
}

/* Press Kit Brand Asset Cards */
.iso-press-asset-preview {
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  overflow: hidden;
  background-color: #06080b;
}

.iso-press-asset-preview--dark {
  padding: 2rem;
}

.iso-press-asset-preview--dark img {
  max-inline-size: 76%;
  height: auto;
}


/* ==========================================================================
   Isolophilia v4.1.2 — Fullscreen Acrylic Blur Search Overlay (Reference Match)
   & Top-Right Circular Countdown Ring on Hero Slider
   ========================================================================== */

/* Fullscreen Acrylic Blur Search Modal */
.iso-search-modal {
  inset: 0;
  inline-size: 100vw;
  inline-size: 100dvw;
  block-size: 100vh;
  block-size: 100dvh;
  max-inline-size: none;
  max-block-size: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background-color: var(--modal-fallback);
  color: var(--ink-primary);
  box-shadow: none;
  overflow: hidden;
}

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .iso-search-modal {
    background-color: var(--modal-backdrop);
    -webkit-backdrop-filter: blur(44px) saturate(175%);
    backdrop-filter: blur(44px) saturate(175%);
  }
}

.iso-search-modal::backdrop {
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.iso-search-overlay-shell {
  position: relative;
  inline-size: 100%;
  block-size: 100%;
  display: grid;
  place-items: center;
  padding-block: max(2rem, env(safe-area-inset-top)) max(2rem, env(safe-area-inset-bottom));
  padding-inline: clamp(1rem, 5vw, 2.5rem);
  overflow-y: auto;
  isolation: isolate;
}

.iso-search-center {
  inline-size: 100%;
  max-inline-size: 42rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.iso-search-close-row {
  display: flex;
  justify-content: flex-end;
}

.iso-search-close-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-inline-size: 2.75rem;
  min-block-size: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: 0.75rem;
  background: transparent;
  color: var(--ink-primary);
  opacity: 0.85;
  cursor: pointer;
  transition: opacity 160ms ease-out, scale 220ms ease-out, background-color 160ms ease-out;
}

.iso-search-close-btn:hover {
  opacity: 1;
  background-color: var(--tile-bg);
  scale: 1.06;
}

.iso-modal-search-bar {
  display: flex;
  align-items: stretch;
  border-radius: 0.65rem;
  overflow: hidden;
  background-color: var(--input-bg);
  box-shadow:
    inset 0 1px 0 var(--acrylic-top-sheen),
    0 12px 38px rgb(0 0 0 / 0.28);
}

.iso-modal-search-bar input[type='search'] {
  flex: 1 1 auto;
  min-block-size: 3.35rem;
  padding-block: 0.75rem;
  padding-inline: 1.15rem;
  border: 0;
  background: transparent;
  color: var(--ink-primary);
  font: inherit;
  font-size: max(1rem, 1.05rem);
  outline: none;
}

.iso-modal-search-bar input[type='search']::placeholder {
  color: var(--ink-muted);
}

.iso-modal-search-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-inline-size: 3.5rem;
  min-block-size: 3.35rem;
  padding: 0;
  border: 0;
  background-color: var(--tile-bg-hover);
  color: var(--ink-primary);
  cursor: pointer;
  transition: background-color 160ms ease-out;
}

.iso-modal-search-btn:hover {
  background-color: var(--ink-primary);
  color: var(--bg-obsidian);
}

.iso-search-results {
  padding: 0;
  min-block-size: 0;
  max-block-size: 52svh;
  overflow-y: auto;
}

.iso-search-results:empty {
  display: none;
}

.iso-search-result-list {
  padding: 0.55rem;
  border-radius: 1rem;
  background-color: var(--modal-bg);
  box-shadow:
    inset 0 1px 0 var(--acrylic-top-sheen),
    0 16px 48px rgb(0 0 0 / 0.25);
}

/* Top-Right Circular Countdown Ring on Hero Slider */
.iso-slider-countdown {
  position: absolute;
  inset-block-start: clamp(0.95rem, 2.4vw, 1.45rem);
  inset-inline-end: clamp(1.1rem, 3vw, 2rem);
  z-index: 5;
  inline-size: 2.75rem;
  block-size: 2.75rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background-color: rgb(10 13 18 / 0.56);
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.18),
    0 6px 20px rgb(0 0 0 / 0.35);
  pointer-events: none;
}

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .iso-slider-countdown {
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    backdrop-filter: blur(16px) saturate(150%);
  }
}

.iso-ring-svg {
  grid-area: 1 / 1;
  display: block;
  rotate: -90deg;
}

.iso-ring-track {
  stroke: rgb(255 255 255 / 0.2);
}

/* Circumference = 2 * pi * 18 = 113.097 */
.iso-ring-progress {
  stroke: #ffffff;
  stroke-dasharray: 113.1;
  stroke-dashoffset: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .iso-ring-progress.is-running {
    animation: iso-ring-countdown var(--iso-auto-ms, 6000ms) linear forwards;
  }

  .iso-ring-progress[data-paused='1'] {
    animation-play-state: paused;
  }
}

@keyframes iso-ring-countdown {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: 113.1; }
}

.iso-countdown-num {
  grid-area: 1 / 1;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
}


/* ==========================================================================
   Isolophilia v4.1.3 — Seam-Free Acrylic, Top-Right Play/Pause Icon + Ring,
   Per-Slide Status Pill, Tighter FAQ-to-Footer Portrait Framing, Icon-Only
   Social Mode & Responsive Inter .webp AdSense Placeholders
   ========================================================================== */

/* 1. Top-Right Hero Slider Controls (Play/Pause Circular Icon + Circular Countdown) */
.iso-slider-top-controls {
  position: absolute;
  inset-block-start: clamp(0.95rem, 2.4vw, 1.45rem);
  inset-inline-end: clamp(1.1rem, 3vw, 2rem);
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.iso-slider-top-controls .iso-slider-countdown {
  position: static;
  inset: auto;
  flex: 0 0 2.75rem;
  inline-size: 2.75rem;
  block-size: 2.75rem;
}

.iso-slider-pause-btn {
  flex: 0 0 2.75rem;
  inline-size: 2.75rem;
  block-size: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: rgb(10 13 18 / 0.56);
  color: #ffffff;
  cursor: pointer;
  touch-action: manipulation;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.18),
    0 6px 20px rgb(0 0 0 / 0.35);
  transition: background-color 180ms ease-out, scale 220ms ease-out;
}

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .iso-slider-pause-btn {
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    backdrop-filter: blur(16px) saturate(150%);
  }
}

.iso-slider-pause-btn:hover {
  background-color: rgb(20 25 34 / 0.85);
  scale: 1.06;
}

.iso-slider-pause-btn:active {
  scale: 0.94;
}

.iso-slider-pause-btn .iso-icon-play {
  display: none;
}

.iso-slider-pause-btn.is-paused .iso-icon-pause {
  display: none;
}

.iso-slider-pause-btn.is-paused .iso-icon-play {
  display: block;
}

/* 2. Per-Slide Top-Left Status Pill inside each .iso-slide */
.iso-slide-status-wrap {
  position: absolute;
  inset-block-start: clamp(0.95rem, 2.4vw, 1.45rem);
  inset-inline-start: clamp(1.35rem, 6.5vw, 5.75rem);
  inset-inline-end: 8.5rem;
  z-index: 4;
  pointer-events: none;
}

/* 3. Tighter FAQ-to-Footer Transition & Enhanced Portrait Visibility */
.iso-main {
  padding-block-end: clamp(1rem, 2.5vw, 1.75rem);
}

.iso-main--home {
  padding-block-end: 0.25rem;
}

.iso-faq-section {
  padding-block: clamp(1.75rem, 4vw, 2.75rem) 0.5rem;
}

.iso-site-footer {
  margin-block-start: -0.25rem;
}

.iso-footer-artwork-wrap {
  max-inline-size: 74rem;
}

.iso-footer-artwork {
  block-size: clamp(23rem, 52svh, 34rem);
  max-block-size: none;
  object-fit: cover;
  object-position: center var(--iso-footer-pos, 72%);
  -webkit-mask-image:
    linear-gradient(to bottom, transparent 0%, #000 10%, #000 100%),
    linear-gradient(to right, transparent 0%, #000 10%, #000 90%, transparent 100%);
  mask-image:
    linear-gradient(to bottom, transparent 0%, #000 10%, #000 100%),
    linear-gradient(to right, transparent 0%, #000 10%, #000 90%, transparent 100%);
}

.iso-footer--balanced .iso-footer-artwork {
  block-size: clamp(19rem, 42svh, 28rem);
}

.iso-footer--compact .iso-footer-artwork {
  block-size: clamp(15rem, 32svh, 22rem);
}

.iso-footer-vignette {
  background: linear-gradient(
    to bottom var(--in-oklab),
    transparent 0%,
    transparent 64%,
    rgb(0 0 0 / 0.56) 86%,
    rgb(0 0 0 / 0.9) 100%
  );
}

@media (max-width: 40rem) {
  .iso-footer-artwork {
    block-size: 24rem;
    min-block-size: 22rem;
    max-block-size: none;
    object-position: center var(--iso-footer-pos, 72%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 10%, #000 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 10%, #000 100%);
  }

  .iso-footer--compact .iso-footer-artwork {
    block-size: 18rem;
    min-block-size: 16rem;
  }
}

/* 4. Optional Icon-Only Social Mode (when "Show Social Network Names" is disabled) */
.iso-social-pill--icon-only {
  inline-size: 2.75rem;
  min-inline-size: 2.75rem;
  block-size: 2.75rem;
  min-block-size: 2.75rem;
  padding: 0;
  justify-content: center;
  border-radius: 50%;
}

.iso-social-grid--icon-only,
.iso-cs-social-list--icon-only {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
}

.iso-social-tile--icon-only {
  inline-size: 3.15rem;
  min-inline-size: 3.15rem;
  block-size: 3.15rem;
  min-block-size: 3.15rem;
  padding: 0;
  justify-content: center;
  border-radius: 50%;
}

/* 5. Optional Footer WP Navigation Links */
.iso-footer-nav-links {
  list-style: none;
  margin: 0.15rem 0 0.35rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.15rem;
}

.iso-footer-nav-links a {
  color: rgb(232 237 245 / 0.85);
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
  text-shadow: 0 2px 10px rgb(0 0 0 / 0.9);
  transition: color 160ms ease-out;
}

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

/* 6. Crisp Solid-Color Inter .webp AdSense Placeholder Banner */
.iso-ad-placeholder-img {
  display: block;
  inline-size: 100%;
  max-inline-size: 100%;
  block-size: auto;
  border-radius: 0.65rem;
  object-fit: contain;
}


/* ==========================================================================
   Isolophilia v4.1.4 — Homepage Block Backgrounds, Media Gallery Ratios,
   Global Typography, Announcement Bar, State-Aware Smart Sticky Header,
   Scrollspy Table of Contents, Related Articles & Native Cookie Banner
   ========================================================================== */

/* 1. WCAG 2.4.11 Focus Not Obscured + Global Heading Font Pairing */
html {
  scroll-padding-top: 5.5rem;
}

.iso-section-title,
.iso-slide-title,
.iso-article-title,
.iso-page-title {
  font-family: var(--font-heading, var(--font-sans));
}

/* 2. Per-Block Homepage Background Layer (Image, Solid Color, Scrim & Parallax) */
.iso-section--has-bg {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(2.75rem, 6vw, 4.75rem);
  background-color: var(--iso-sec-bg-color, transparent);
}

.iso-section-bg-wrap {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.iso-section-bg-img,
.iso-section-bg-fixed-img {
  position: absolute;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  object-position: center;
  background-size: cover;
  background-position: center;
  user-select: none;
}

@media (hover: hover) and (pointer: fine) {
  .iso-section-bg-fixed-img {
    background-attachment: fixed;
  }
}

.iso-section-bg-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to bottom var(--in-oklab),
      rgb(5 6 8 / 0.88) 0%,
      rgb(5 6 8 / var(--iso-sec-scrim, 0.72)) 16%,
      rgb(5 6 8 / var(--iso-sec-scrim, 0.72)) 84%,
      rgb(5 6 8 / 0.92) 100%
    );
}

/* Force crisp high-contrast headings/links over block background images in both Light & Dark modes */
.iso-section--has-bg-img .iso-section-head .iso-eyebrow,
.iso-section--has-bg-img .iso-faq-head .iso-eyebrow {
  color: #cfd9e8;
}

.iso-section--has-bg-img .iso-section-head .iso-section-title,
.iso-section--has-bg-img .iso-faq-head .iso-section-title {
  color: #ffffff;
  text-shadow: 0 2px 18px rgb(0 0 0 / 0.65);
}

.iso-section--has-bg-img .iso-section-head .iso-text-link,
.iso-section--has-bg-img .iso-faq-head .iso-page-lead {
  color: rgb(238 242 248 / 0.92);
}

/* 3. Media Gallery Card Aspect Ratio Presets */
.iso-media-frame--16-10 { aspect-ratio: 16 / 10; }
.iso-media-frame--16-9  { aspect-ratio: 16 / 9; }
.iso-media-frame--4-3   { aspect-ratio: 4 / 3; }
.iso-media-frame--1-1   { aspect-ratio: 1 / 1; }

/* 4. Top Announcement / Hype Bar with Live Countdown */
.iso-announce-bar {
  position: relative;
  z-index: 45;
  background-color: var(--bg-surface);
  color: var(--ink-primary);
  box-shadow: inset 0 -1px 0 var(--acrylic-top-sheen);
}

.iso-announce-bar[hidden] {
  display: none;
}

.iso-announce-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding-block: 0.55rem;
  min-block-size: 2.5rem;
}

.iso-announce-copy {
  flex: 1 1 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  line-height: 1.4;
  text-align: center;
}

.iso-announce-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.16rem 0.55rem;
  border-radius: 999px;
  background-color: var(--ink-primary);
  color: var(--bg-obsidian);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.iso-announce-timer {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--accent-ice);
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background-color: var(--tile-bg);
}

.iso-announce-link {
  font-weight: 600;
  color: var(--accent-ice);
  text-decoration: none;
  white-space: nowrap;
}

.iso-announce-link:hover {
  text-decoration: underline;
}

.iso-announce-close {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 2rem;
  block-size: 2rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink-muted);
  cursor: pointer;
  transition: background-color 160ms ease-out, color 160ms ease-out;
}

.iso-announce-close:hover {
  background-color: var(--tile-bg);
  color: var(--ink-primary);
}

/* 5. State-Aware Smart Sticky Header (modern-web-guidance: state-aware-sticky-headers) */
.iso-site-shell {
  overflow-anchor: none;
}

.iso-site-header {
  container-type: scroll-state;
  container-name: iso-site-nav;
  padding-block-start: 0;
  background-color: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  transition: translate 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.iso-site-header.iso-header--static {
  position: relative;
}

.iso-site-header.is-hidden-up {
  translate: 0 -105%;
}

.iso-header-surface {
  padding-block-start: env(safe-area-inset-top);
  background-color: var(--acrylic-header);
  box-shadow: 0 10px 32px rgb(0 0 0 / 0.32);
  transition: background-color 220ms ease-out, box-shadow 220ms ease-out;
}

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .iso-header-surface {
    -webkit-backdrop-filter: blur(28px) saturate(155%);
    backdrop-filter: blur(28px) saturate(155%);
  }
}

/* Native Scroll-State Query when stuck at top */
@container iso-site-nav scroll-state(stuck: top) {
  .iso-header-surface {
    box-shadow:
      inset 0 -1px 0 var(--acrylic-top-sheen),
      0 14px 40px rgb(0 0 0 / 0.48);
  }
}

/* IntersectionObserver Fallback when scroll-state is unsupported */
.iso-site-header.is-stuck .iso-header-surface {
  box-shadow:
    inset 0 -1px 0 var(--acrylic-top-sheen),
    0 14px 40px rgb(0 0 0 / 0.48);
}

/* 6. Auto Table of Contents with Native CSS Scrollspy (modern-web-guidance: scrollspy) */
.iso-toc-panel {
  margin-block: 0 2rem;
  padding: 1.1rem 1.35rem;
  border-radius: 1.15rem;
  background-color: var(--card-bg);
  box-shadow:
    inset 0 1px 0 var(--acrylic-top-sheen),
    0 10px 28px rgb(0 0 0 / 0.2);
}

.iso-toc-summary {
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink-primary);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.iso-toc-summary::-webkit-details-marker {
  display: none;
}

.iso-toc-summary::after {
  content: '+';
  font-size: 1.1rem;
  color: var(--ink-muted);
}

.iso-toc-panel[open] .iso-toc-summary::after {
  content: '−';
}

.iso-toc-nav {
  scroll-target-group: auto;
  margin-block-start: 0.85rem;
}

.iso-toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.iso-toc-list li.iso-toc-sub {
  padding-inline-start: 1rem;
}

.iso-toc-nav a {
  display: block;
  padding-block: 0.22rem;
  padding-inline-start: 0.75rem;
  border-inline-start: 2px solid transparent;
  font-size: 0.875rem;
  color: var(--ink-secondary);
  text-decoration: none;
  transition: color 150ms ease-out, border-color 150ms ease-out;
}

.iso-toc-nav a:hover {
  color: var(--ink-primary);
}

/* Combined with :is() so older browsers never drop the fallback rule */
.iso-toc-nav a:is(:target-current, .target-current) {
  color: var(--accent-ice);
  border-inline-start-color: var(--accent-ice);
  font-weight: 700;
}

/* 7. Related Articles Section on Single Posts */
.iso-related-section {
  margin-block-start: clamp(2.25rem, 5vw, 3.5rem);
}

/* 8. Lightweight Native Acrylic Cookie / Privacy Banner */
.iso-cookie-banner {
  position: fixed;
  inset-block-end: max(1rem, env(safe-area-inset-bottom));
  inset-inline-start: 1rem;
  z-index: 60;
  inline-size: min(calc(100vw - 2rem), 26rem);
  padding: 1.1rem 1.25rem;
  border-radius: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  overflow: hidden;
  isolation: isolate;
  background-color: var(--modal-fallback);
  color: var(--ink-primary);
  box-shadow:
    inset 0 1px 0 var(--acrylic-top-sheen),
    0 20px 48px rgb(0 0 0 / 0.45);
}

.iso-cookie-banner[hidden] {
  display: none;
}

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .iso-cookie-banner {
    background-color: var(--acrylic-tint);
    -webkit-backdrop-filter: blur(var(--acrylic-blur, 34px)) saturate(var(--acrylic-sat, 170%));
    backdrop-filter: blur(var(--acrylic-blur, 34px)) saturate(var(--acrylic-sat, 170%));
  }
}

.iso-cookie-text {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--ink-secondary);
}

.iso-cookie-text a {
  color: var(--accent-ice);
  font-weight: 600;
}

.iso-cookie-accept {
  align-self: flex-start;
  min-block-size: 2.35rem;
  padding-inline: 1.15rem;
  font-size: 0.8125rem;
}
