/* ==========================================================================
   DYLAN WAINMAN // WEB DESIGN PORTFOLIO SHOWCASE
   Aesthetic: Matte Dark Carbon, Apple 3D Cover Flow, James Williams Design Style
   ========================================================================== */

:root {
  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-dyslexia: 'Atkinson Hyperlegible', sans-serif;

  /* Matte Dark Carbon Theme (James Williams Design) */
  --bg-page: #151516;
  --bg-surface: #1c1c1f;
  --bg-card: #202024;
  --bg-card-hover: #26262b;
  --bg-overlay: rgba(18, 18, 20, 0.92);

  --text-white: #ffffff;
  --text-primary: #f2f2f4;
  --text-secondary: #9a9aa4;
  --text-muted: #6e6e78;
  --text-glow: #f5ebe6;

  --accent-blush: #f4ded4;
  --accent-orange: #ff5500;
  --accent-orange-soft: rgba(255, 85, 0, 0.15);

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.16);
  --border-focus: rgba(255, 255, 255, 0.4);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;

  --shadow-card: 0 20px 50px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 35px rgba(245, 235, 230, 0.18);

  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   UK ACCESSIBILITY CONTRAST THEMES
   ========================================================================== */
body.theme-high-contrast-yellow {
  --bg-page: #000000 !important;
  --bg-surface: #0a0a00 !important;
  --bg-card: #000000 !important;
  --text-white: #ffff00 !important;
  --text-primary: #ffff00 !important;
  --text-secondary: #ffff55 !important;
  --text-muted: #ffff88 !important;
  --text-glow: #ffff00 !important;
  --border-subtle: #ffff00 !important;
  --border-light: #ffff00 !important;
}

body.theme-white-orange {
  --bg-page: #ffffff !important;
  --bg-surface: #faf9f6 !important;
  --bg-card: #ffffff !important;
  --text-white: #0a0a0c !important;
  --text-primary: #111111 !important;
  --text-secondary: #4a4a54 !important;
  --text-muted: #737380 !important;
  --text-glow: #ff4d00 !important;
  --border-subtle: #e5e5ea !important;
  --border-light: #d0d0d8 !important;
}

body.theme-monochrome {
  filter: grayscale(100%) !important;
}

/* Base Document Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

html.zoom-120 { font-size: 19.2px !important; }
html.zoom-140 { font-size: 22.4px !important; }

body {
  width: 100%;
  min-height: 100%;
  background: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.dyslexia-font {
  font-family: var(--font-dyslexia) !important;
  letter-spacing: 0.07em !important;
  word-spacing: 0.14em !important;
}

/* Reading Ruler */
.a11y-reading-ruler {
  position: fixed;
  left: 0;
  width: 100vw;
  height: 38px;
  background: rgba(255, 85, 0, 0.15);
  border-top: 2px solid var(--accent-orange);
  border-bottom: 2px solid var(--accent-orange);
  pointer-events: none;
  z-index: 999999;
  display: none;
  transform: translateY(-50%);
}
.a11y-reading-ruler.active { display: block; }

body.highlight-links a,
body.highlight-links button {
  outline: 3px solid var(--accent-orange) !important;
  outline-offset: 3px !important;
}

/* ==========================================================================
   1. MINIMALIST AGENCY HEADER (JAMES WILLIAMS STYLE)
   ========================================================================== */
.jw-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(21, 21, 22, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 16px 32px;
}

.jw-header-inner {
  max-width: 1380px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.jw-avatar-link {
  display: flex;
  align-items: center;
}

.jw-mini-avatar {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #25252a;
  object-fit: cover;
  border: 1px solid var(--border-light);
  transition: transform var(--transition-fast);
}

.jw-mini-avatar:hover {
  transform: scale(1.06);
}

.jw-header-center {
  display: flex;
  align-items: center;
}

.jw-a11y-pill-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

.jw-a11y-pill-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.jw-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.jw-contact-icon-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-light);
  color: #ffffff;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.jw-contact-icon-btn:hover {
  background: #ffffff;
  color: #000000;
  transform: translateY(-1px);
}

.contact-label { display: none; }

.jw-exit-studio-btn {
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

.jw-exit-studio-btn:hover {
  background: #fee2e2;
  border-color: #ef4444;
  color: #b91c1c;
}

.exit-kbd {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 1px 4px;
  border-radius: 4px;
}

/* ==========================================================================
   2. HERO BANNER & HUGE OVERLAPPING NAME (JAMES WILLIAMS STYLE)
   ========================================================================== */
.jw-hero-section {
  max-width: 1180px;
  margin: 32px auto 64px;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.jw-hero-card {
  width: 100%;
  position: relative;
  background: #1b1b1e;
  border-radius: 28px;
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 24px;
}

.jw-portrait-wrapper {
  width: 100%;
  max-width: 480px;
  height: 340px;
  display: flex;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.jw-hero-photo {
  height: 100%;
  object-fit: contain;
  filter: grayscale(100%) contrast(110%);
  opacity: 0.95;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
}

.jw-hero-card:hover .jw-hero-photo {
  transform: scale(1.03);
  filter: grayscale(30%) contrast(110%);
}

.jw-photo-gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(27, 27, 30, 0.95) 100%);
  pointer-events: none;
}

/* Giant Overlapping Typographic Name */
.jw-hero-huge-name {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 9vw, 8rem);
  font-weight: 900;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  color: var(--text-glow);
  text-shadow: var(--shadow-glow);
  line-height: 0.9;
  text-align: center;
  margin-top: -48px;
  margin-bottom: 24px;
  position: relative;
  z-index: 2;
  user-select: none;
}

/* Subtitle & Get in Touch Row */
.jw-hero-sub-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  padding: 0 8px;
}

.jw-hero-role {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.jw-btn-get-in-touch {
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-white);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

.jw-btn-get-in-touch:hover {
  background: #ffffff;
  border-color: #ffffff;
  color: #000000;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.2);
}

.arrow-glyph {
  font-size: 1.1rem;
  transition: transform 0.2s ease;
}

.jw-btn-get-in-touch:hover .arrow-glyph {
  transform: translateX(4px);
}

/* Minimalist Mouse Scroll Indicator */
.jw-scroll-indicator {
  margin-top: 48px;
  cursor: pointer;
}

.scroll-mouse-pill {
  width: 24px;
  height: 40px;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  display: flex;
  justify-content: center;
  padding-top: 6px;
  transition: border-color var(--transition-fast);
}

.jw-scroll-indicator:hover .scroll-mouse-pill {
  border-color: #ffffff;
}

.scroll-wheel-dot {
  width: 4px;
  height: 8px;
  background: #ffffff;
  border-radius: 2px;
  animation: mouseWheel 2s infinite ease-in-out;
}

@keyframes mouseWheel {
  0% { transform: translateY(0); opacity: 1; }
  60% { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ==========================================================================
   3. INTRO STATEMENT SECTION (JAMES WILLIAMS SCREENSHOT 1 STYLE)
   ========================================================================== */
.jw-intro-section {
  max-width: 1180px;
  margin: 0 auto 96px;
  padding: 0 24px;
}

.jw-intro-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: start;
}

.jw-intro-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text-white);
}

.jw-intro-body {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.jw-client-types-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.client-type-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
}

.arrow-box {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   4. LATEST WORK: 3D APPLE COVER FLOW SECTION (SCREENSHOT 3 STYLE)
   ========================================================================== */
.jw-coverflow-section {
  max-width: 1380px;
  margin: 0 auto 120px;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.coverflow-title-wrap {
  text-align: center;
  margin-bottom: 36px;
}

.coverflow-main-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6.5vw, 5.5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--text-glow);
  text-shadow: 0 0 35px rgba(245, 235, 230, 0.28);
  user-select: none;
}

/* 3D Viewport Stage */
.coverflow-viewport-stage {
  width: 100%;
  height: 520px;
  position: relative;
  perspective: 1400px;
  perspective-origin: 50% 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

/* Navigation Arrow Overlays */
.cf-nav-arrow {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  z-index: 100;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-light);
  color: #ffffff;
  font-size: 2rem;
  font-weight: 300;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.cf-nav-arrow:hover {
  background: #ffffff;
  color: #000000;
  transform: translateY(-50%) scale(1.08);
}

.cf-prev { left: 32px; }
.cf-next { right: 32px; }

/* The 3D Track */
.coverflow-3d-track {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Individual Cover Flow Card */
.cf-card {
  position: absolute;
  width: min(620px, 86vw);
  height: 380px;
  background: #1e1e23;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85);
  cursor: pointer;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform-origin: center center;
  transition: transform 0.48s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease, filter 0.4s ease, box-shadow 0.4s ease;
  user-select: none;
  
  /* Apple Cover Flow Real Reflection Effect */
  -webkit-box-reflect: below 14px linear-gradient(transparent 58%, rgba(0, 0, 0, 0.45));
}

.cf-card:hover {
  border-color: rgba(255, 255, 255, 0.35);
}

.cf-card.is-active {
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.95), 0 0 40px rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Card Top Browser Chrome */
.cf-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: #25252b;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cf-card-title-line {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cf-card-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
}

.cf-card-ext-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-light);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.cf-card:hover .cf-card-ext-btn {
  background: #ffffff;
  color: #000000;
}

/* Card Preview Stage */
.cf-card-preview {
  flex: 1;
  position: relative;
  background: #111114;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cf-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.cf-card:hover .cf-card-img {
  transform: scale(1.02);
}

/* Floating Click to Open Pill on Center Card */
.cf-open-pill {
  position: absolute;
  bottom: 20px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: transform var(--transition-fast), background var(--transition-fast);
}

.cf-card:hover .cf-open-pill {
  background: #ffffff;
  color: #000000;
  transform: translateY(-2px);
}

/* Cover Flow Bottom Controller */
.coverflow-controls-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 56px;
}

.cf-active-info {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cf-proj-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
}

.cf-proj-tag {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Scrubber Slider */
.cf-scrubber-wrap {
  width: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.cf-scrubber-slider {
  width: 100%;
  accent-color: #ffffff;
  cursor: pointer;
}

.cf-dots-row {
  display: flex;
  gap: 8px;
}

.cf-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.cf-dot.active {
  background: #ffffff;
  transform: scale(1.3);
}

.cf-hint-pill {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==========================================================================
   5. SPAN-OPEN CASE STUDY MODAL OVERLAY (SCREENSHOTS 2 & 5 STYLE)
   ========================================================================== */
.case-study-expand-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 32px 16px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s;
  overflow-y: auto;
}

.case-study-expand-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.cs-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 12, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.cs-modal-container {
  position: relative;
  width: 100%;
  max-width: 1100px;
  background: #17171a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.9);
  overflow: hidden;
  transform: scale(0.92) translateY(30px);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  margin-bottom: 48px;
}

.case-study-expand-overlay.open .cs-modal-container {
  transform: scale(1) translateY(0);
}

/* Modal Top Bar */
.cs-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #1c1c20;
}

.cs-btn-back {
  background: transparent;
  border: 1px solid var(--border-light);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

.cs-btn-back:hover {
  background: #ffffff;
  color: #000000;
}

.kbd-esc {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  background: rgba(255, 255, 255, 0.12);
  padding: 2px 6px;
  border-radius: 4px;
}

.cs-top-right-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cs-btn-close-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-light);
  color: #ffffff;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.cs-btn-close-icon:hover {
  background: #ffffff;
  color: #000000;
}

/* Modal Scrollable Body */
.cs-modal-scrollable {
  padding: 48px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* Huge Project Title with Link Icon (Screenshot 2 Style) */
.cs-title-header {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cs-title-line {
  display: flex;
  align-items: center;
  gap: 18px;
}

.cs-project-heading {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6.5vw, 5.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: #ffffff;
}

.cs-external-icon-link {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 700;
  transition: all var(--transition-fast);
}

.cs-external-icon-link:hover {
  background: #ffffff;
  color: #000000;
  transform: translateY(-2px);
}

/* Narrative Box */
.cs-role-text {
  font-size: 1.35rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 920px;
}

/* Tag Pills (Screenshot 2 Style) */
.cs-tag-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cs-pill {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
}

/* Direct View Live Website Button */
.btn-view-live-website {
  background: #ffffff;
  color: #000000;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all var(--transition-fast);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

.btn-view-live-website:hover {
  background: var(--accent-blush);
  transform: translateY(-2px);
}

/* Screenshots Showcase (Screenshot 5 Style) */
.cs-screenshots-showcase {
  display: flex;
  flex-direction: column;
  gap: 36px;
  margin-top: 12px;
}

.cs-browser-frame {
  width: 100%;
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.cs-browser-bar {
  height: 40px;
  background: #eeeeef;
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 8px;
  border-bottom: 1px solid #dddde2;
}

.cs-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.cs-dot.red { background: #ff5f56; }
.cs-dot.yellow { background: #ffbd2e; }
.cs-dot.green { background: #27c93f; }

.cs-url-text {
  margin-left: 12px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #666677;
}

.cs-shot-img {
  width: 100%;
  height: auto;
  display: block;
}

/* Secondary Screenshot Strip */
.cs-secondary-shots-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.cs-sub-shot-card {
  background: #1c1c20;
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  overflow: hidden;
}

/* ==========================================================================
   6. 2026 UK ACCESSIBILITY DRAWER & CONTACT MODAL
   ========================================================================== */
.a11y-drawer-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  justify-content: flex-end;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.a11y-drawer-modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.a11y-panel-container {
  width: min(500px, 92vw);
  height: 100%;
  background: #1c1c20;
  border-left: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  padding: 28px;
  gap: 20px;
}

.a11y-drawer-modal.open .a11y-panel-container {
  transform: translateX(0);
}

.a11y-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 16px;
}

.a11y-badge-uk {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--accent-orange);
  font-weight: 700;
}

.a11y-main-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffffff;
}

.a11y-control-card {
  background: #232328;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.a11y-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: #ffffff;
}

.contrast-options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.contrast-btn {
  background: #19191c;
  border: 1px solid var(--border-subtle);
  padding: 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
}

.contrast-btn.active {
  border-color: #ffffff;
}

.contrast-swatch {
  width: 18px;
  height: 18px;
  border-radius: 4px;
}
.swatch-dark { background: #151516; border: 1px solid #444; }
.swatch-yellow { background: #ffff00; }
.swatch-white { background: #ffffff; }
.swatch-mono { background: #888888; }

.contrast-label {
  font-size: 0.72rem;
  color: var(--text-primary);
}

.zoom-stepper-row {
  display: flex;
  gap: 8px;
}

.zoom-btn {
  width: 40px;
  height: 34px;
  background: #19191c;
  border: 1px solid var(--border-light);
  color: #ffffff;
  border-radius: 6px;
  cursor: pointer;
}

.zoom-preset-pills {
  display: flex;
  flex: 1;
  background: #19191c;
  padding: 2px;
  border-radius: 6px;
}

.zoom-preset {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.zoom-preset.active {
  background: #ffffff;
  color: #000000;
  border-radius: 4px;
}

.voice-controls-row {
  display: flex;
  gap: 8px;
}

.voice-action-btn {
  flex: 1;
  background: #19191c;
  border: 1px solid var(--border-light);
  color: #ffffff;
  padding: 8px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
}

.voice-action-btn.primary {
  background: #ffffff;
  color: #000000;
}

.toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
}

.toggle-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: #ffffff;
}

.toggle-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
}
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute; cursor: pointer; inset: 0;
  background-color: #444; transition: .25s; border-radius: 22px;
}
.slider:before {
  position: absolute; content: ""; height: 16px; width: 16px;
  left: 3px; bottom: 3px; background-color: white; transition: .25s; border-radius: 50%;
}
input:checked + .slider { background-color: #ffffff; }
input:checked + .slider:before { transform: translateX(18px); background-color: #000000; }

.btn-a11y-reset {
  width: 100%;
  background: transparent;
  border: 1px dashed var(--border-light);
  color: var(--text-secondary);
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.82rem;
}

/* Contact Modal */
.jw-contact-modal {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-panel {
  position: relative;
  background: #1c1c20;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  max-width: 500px;
  width: 90%;
  padding: 32px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8);
}

.contact-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.contact-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
}

.contact-close {
  background: transparent;
  border: none;
  font-size: 1.2rem;
  color: var(--text-muted);
  cursor: pointer;
}

.contact-lead {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.c-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.9rem;
}

.c-key { color: var(--text-muted); }
.c-val { color: #ffffff; font-weight: 600; text-decoration: none; }

/* Footer */
.jw-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 40px 24px;
}

.jw-footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.btn-back-top {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}

.btn-back-top:hover { color: #ffffff; }

/* Responsive adjustments */
@media (max-width: 960px) {
  .jw-intro-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .coverflow-viewport-stage {
    height: 440px;
  }
  .cf-card {
    width: 92vw;
    height: 320px;
  }
  .cs-modal-scrollable {
    padding: 28px 20px;
  }
  .cs-secondary-shots-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   NAVIGATION BAR LINKS
   ========================================================================== */
.jw-header-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.jw-nav-item {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.jw-nav-item:hover,
.jw-nav-item.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

#nav-blog-link.pulse-target {
  box-shadow: 0 0 0 2px var(--accent-orange), 0 0 20px rgba(255, 85, 0, 0.5);
  background: rgba(255, 85, 0, 0.2);
  color: #ffffff;
}

/* ==========================================================================
   BLOG & TECHNICAL INSIGHTS SECTION (World-Class Editorial System)
   ========================================================================== */
.jw-blog-section {
  max-width: 1380px;
  margin: 90px auto 80px;
  padding: 0 32px;
  position: relative;
}

.jw-blog-header {
  margin-bottom: 36px;
}

.blog-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  color: var(--accent-orange);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.blog-eyebrow .live-beacon {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-orange);
  box-shadow: 0 0 10px var(--accent-orange);
  animation: pulseBeacon 2s infinite;
}

@keyframes pulseBeacon {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

.blog-main-heading {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  font-weight: 800;
  color: var(--text-white);
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin-bottom: 14px;
}

.blog-subheading {
  font-size: 1.08rem;
  color: var(--text-secondary);
  max-width: 720px;
  line-height: 1.65;
  margin-bottom: 0;
}

/* ==========================================================================
   FEATURED STORY SPOTLIGHT (Hero Card)
   ========================================================================== */
.blog-spotlight-card {
  margin: 36px 0 44px;
  background: linear-gradient(135deg, rgba(32, 32, 36, 0.95) 0%, rgba(24, 24, 27, 0.98) 100%);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.55);
  transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
  cursor: pointer;
  position: relative;
}

.blog-spotlight-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 85, 0, 0.5);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.65), 0 0 35px rgba(255, 85, 0, 0.16);
}

.spotlight-content {
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.spotlight-badge-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.spotlight-tag-pill {
  background: rgba(255, 85, 0, 0.15);
  border: 1px solid rgba(255, 85, 0, 0.4);
  color: var(--accent-orange);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
}

.spotlight-meta-info {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.spotlight-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  font-weight: 800;
  color: var(--text-white);
  line-height: 1.22;
  letter-spacing: -0.015em;
  margin-bottom: 16px;
  transition: color var(--transition-fast);
}

.blog-spotlight-card:hover .spotlight-title {
  color: var(--accent-orange);
}

.spotlight-excerpt {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 28px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.spotlight-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 20px;
  margin-top: auto;
}

.spotlight-author-pill {
  display: flex;
  align-items: center;
  gap: 10px;
}

.spotlight-author-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--accent-orange);
  object-fit: cover;
}

.spotlight-author-name {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-primary);
}

.spotlight-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-light);
  color: var(--text-white);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.86rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.blog-spotlight-card:hover .spotlight-cta-btn {
  background: var(--accent-orange);
  border-color: var(--accent-orange);
  color: #ffffff;
  gap: 12px;
}

.spotlight-media-wrap {
  position: relative;
  background: #101012;
  overflow: hidden;
  min-height: 280px;
}

.spotlight-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.blog-spotlight-card:hover .spotlight-img {
  transform: scale(1.04);
}

.spotlight-overlay-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(28, 28, 31, 0.6) 0%, transparent 60%);
  pointer-events: none;
}

/* ==========================================================================
   BLOG TOOLBAR (Search Bar, Categories, View Mode Switcher)
   ========================================================================== */
.blog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
  flex-wrap: wrap;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.toolbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1 1 360px;
}

.blog-search-box {
  position: relative;
  flex: 1;
  max-width: 440px;
}

.blog-search-input {
  width: 100%;
  background: rgba(15, 15, 17, 0.85);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  color: var(--text-white);
  padding: 9px 40px 9px 38px;
  font-size: 0.88rem;
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.blog-search-input:focus {
  border-color: var(--accent-orange);
  box-shadow: 0 0 0 3px rgba(255, 85, 0, 0.2);
}

.search-icon-left {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  font-size: 0.85rem;
  pointer-events: none;
}

.search-shortcut-badge {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 2px 6px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-secondary);
  pointer-events: none;
}

.search-clear-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 0.9rem;
  display: none;
}

.search-clear-btn:hover {
  color: #ffffff;
}

.toolbar-center {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.blog-filter-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.blog-filter-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.blog-filter-btn.active {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
}

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.view-mode-toggle {
  display: inline-flex;
  background: rgba(15, 15, 17, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 3px;
}

.view-mode-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all var(--transition-fast);
}

.view-mode-btn:hover {
  color: #ffffff;
}

.view-mode-btn.active {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.blog-results-counter {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ==========================================================================
   VIEW MODE: MAGAZINE GRID
   ========================================================================== */
.jw-blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 28px;
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
  cursor: pointer;
}

.blog-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 85, 0, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(255, 85, 0, 0.12);
}

.blog-card-thumb-wrap {
  width: 100%;
  height: 210px;
  background: #19191c;
  overflow: hidden;
  position: relative;
}

.blog-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.blog-card:hover .blog-card-thumb {
  transform: scale(1.05);
}

.blog-card-badge-overlay {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  gap: 8px;
}

.blog-tag-pill {
  background: rgba(18, 18, 20, 0.88);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--accent-orange);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
}

.blog-read-badge {
  background: rgba(18, 18, 20, 0.88);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  font-size: 0.72rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.blog-card-content {
  padding: 26px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-card-date {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.blog-card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.35;
  margin-bottom: 12px;
  transition: color var(--transition-fast);
}

.blog-card:hover .blog-card-title {
  color: var(--accent-orange);
}

.blog-card-excerpt {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.blog-card-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: gap var(--transition-fast), color var(--transition-fast);
}

.blog-card:hover .blog-card-cta {
  color: var(--accent-orange);
  gap: 12px;
}

/* ==========================================================================
   VIEW MODE: EDITORIAL STREAM (High-Density List)
   ========================================================================== */
.jw-blog-stream {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.blog-stream-row {
  display: grid;
  grid-template-columns: 140px 150px 1fr 120px 40px;
  align-items: center;
  gap: 20px;
  padding: 18px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.blog-stream-row:hover {
  background: rgba(36, 36, 42, 0.9);
  border-color: rgba(255, 85, 0, 0.35);
  transform: translateX(4px);
}

.stream-date {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.stream-tag {
  display: inline-block;
  background: rgba(255, 85, 0, 0.12);
  border: 1px solid rgba(255, 85, 0, 0.25);
  color: var(--accent-orange);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  text-align: center;
  text-transform: uppercase;
}

.stream-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-white);
  transition: color var(--transition-fast);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.blog-stream-row:hover .stream-title {
  color: var(--accent-orange);
}

.stream-readtime {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-secondary);
  text-align: right;
}

.stream-arrow {
  color: var(--text-muted);
  font-size: 1.1rem;
  transition: transform var(--transition-fast), color var(--transition-fast);
}

.blog-stream-row:hover .stream-arrow {
  color: var(--accent-orange);
  transform: translateX(4px);
}

/* ==========================================================================
   WORLD-CLASS ARTICLE READER MODAL
   ========================================================================== */
.jw-article-modal {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: flex;
  justify-content: center;
  align-items: center;
}

.article-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 12, 0.88);
  backdrop-filter: blur(14px);
}

.article-modal-panel {
  position: relative;
  width: 92%;
  max-width: 880px;
  max-height: 90vh;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow-y: auto;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.85);
  z-index: 2;
  animation: articlePanelSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  scroll-behavior: smooth;
}

/* Top Real-Time Reading Progress Bar */
.reader-reading-progress-bar {
  position: sticky;
  top: 0;
  left: 0;
  width: 0%;
  height: 3.5px;
  background: var(--accent-orange);
  box-shadow: 0 0 12px var(--accent-orange);
  z-index: 100;
  transition: width 0.1s ease-out;
}

.article-modal-header {
  position: sticky;
  top: 3.5px;
  z-index: 90;
  background: rgba(28, 28, 31, 0.95);
  backdrop-filter: blur(12px);
  padding: 16px 28px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.article-meta-badges {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.article-category-badge {
  background: rgba(255, 85, 0, 0.15);
  color: var(--accent-orange);
  border: 1px solid rgba(255, 85, 0, 0.3);
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.article-read-time, .article-date, .article-word-count {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.article-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-share-article {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all var(--transition-fast);
}

.btn-share-article:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.article-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.article-close-btn:hover {
  background: #ffffff;
  color: #000000;
}

.article-modal-body {
  padding: 40px 36px 48px;
}

.article-full-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  font-weight: 800;
  color: var(--text-white);
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}

.article-byline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 24px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border-subtle);
}

.byline-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.byline-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-orange);
}

.byline-name {
  font-weight: 700;
  color: var(--text-white);
  font-size: 0.98rem;
}

.byline-role {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   AUDIO NARRATION PLAYER WIDGET
   ========================================================================== */
.reader-audio-widget {
  background: rgba(18, 18, 20, 0.85);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.audio-widget-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.audio-play-toggle-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-orange);
  border: none;
  color: #ffffff;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-fast), background var(--transition-fast);
}

.audio-play-toggle-btn:hover {
  transform: scale(1.06);
  background: #ff6b00;
}

.audio-widget-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.audio-widget-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-white);
}

.audio-widget-status {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Sound Wave Equalizer animation */
.audio-equalizer-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 14px;
}

.audio-bar {
  width: 3px;
  background: var(--accent-orange);
  border-radius: 2px;
  height: 4px;
  transition: height 0.2s ease;
}

.reader-audio-widget.playing .audio-bar:nth-child(1) { animation: eqBounce 0.6s infinite ease-in-out alternate; }
.reader-audio-widget.playing .audio-bar:nth-child(2) { animation: eqBounce 0.45s infinite ease-in-out 0.1s alternate; }
.reader-audio-widget.playing .audio-bar:nth-child(3) { animation: eqBounce 0.7s infinite ease-in-out 0.2s alternate; }
.reader-audio-widget.playing .audio-bar:nth-child(4) { animation: eqBounce 0.5s infinite ease-in-out 0.15s alternate; }

@keyframes eqBounce {
  0% { height: 4px; }
  100% { height: 14px; }
}

.audio-widget-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.audio-speed-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.audio-speed-btn:hover {
  color: #ffffff;
  border-color: var(--border-light);
}

.audio-speed-btn.active {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
}

/* Table of Contents */
.reader-toc-box {
  background: rgba(24, 24, 28, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 32px;
}

.reader-toc-title {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.reader-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.reader-toc-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  border-radius: 4px;
}

.reader-toc-link:hover {
  color: var(--accent-orange);
  background: rgba(255, 85, 0, 0.08);
}

.reader-toc-link.active {
  color: var(--text-white);
  font-weight: 600;
  border-left: 2px solid var(--accent-orange);
  padding-left: 10px;
}

/* Article Rich Content Typography & Layout */
.article-rich-content {
  font-size: 1.08rem;
  line-height: 1.85;
  color: var(--text-primary);
}

.article-rich-content p {
  margin-bottom: 1.5em;
}

.article-rich-content h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-white);
  margin: 2.2em 0 0.8em 0;
  letter-spacing: -0.015em;
  scroll-margin-top: 80px;
}

.article-rich-content h3 {
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 700;
  color: var(--text-white);
  margin: 1.8em 0 0.7em 0;
  scroll-margin-top: 80px;
}

.article-rich-content ul, .article-rich-content ol {
  margin: 1em 0 1.6em 1.6em;
}

.article-rich-content li {
  margin-bottom: 0.6em;
}

.article-rich-content blockquote {
  border-left: 3px solid var(--accent-orange);
  padding-left: 18px;
  margin: 1.8em 0;
  color: var(--text-secondary);
  font-style: italic;
  font-size: 1.1rem;
}

/* Enhanced Code Blocks */
.article-code-wrapper {
  background: #111114;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  margin: 1.8em 0;
  overflow: hidden;
}

.code-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  background: #19191d;
  border-bottom: 1px solid var(--border-subtle);
}

.code-lang-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent-orange);
  text-transform: uppercase;
}

.code-copy-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 4px 10px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all var(--transition-fast);
}

.code-copy-btn:hover {
  background: #ffffff;
  color: #000000;
}

.code-copy-btn.copied {
  background: rgba(255, 85, 0, 0.2);
  border-color: var(--accent-orange);
  color: #ffffff;
}

.article-code-wrapper pre {
  padding: 18px;
  margin: 0;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  line-height: 1.6;
  color: #e2e2e8;
}

/* Next / Previous Article Duo Navigation */
.article-nav-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
}

.nav-card-article {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.nav-card-article:hover {
  border-color: var(--accent-orange);
  background: rgba(36, 36, 42, 0.9);
  transform: translateY(-3px);
}

.nav-card-direction {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--accent-orange);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.nav-card-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Article Modal Footer */
.article-modal-footer {
  margin-top: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.btn-back-to-blog {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-back-to-blog:hover {
  background: #ffffff;
  color: #000000;
}

/* Floating Confirmation Toast */
.blog-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #19191d;
  border: 1px solid var(--accent-orange);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 85, 0, 0.2);
  z-index: 999999;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.blog-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Responsive Tweaks */
@media (max-width: 900px) {
  .blog-spotlight-card {
    grid-template-columns: 1fr;
  }
  .spotlight-media-wrap {
    min-height: 200px;
    order: -1;
  }
  .blog-stream-row {
    grid-template-columns: 110px 1fr 40px;
  }
  .stream-tag, .stream-readtime {
    display: none;
  }
  .article-nav-duo {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   VIRTUAL GUIDE MOUSE CURSOR ANIMATION
   ========================================================================== */
.virtual-guide-cursor {
  position: fixed;
  top: 50%;
  left: 50%;
  pointer-events: none;
  z-index: 9999999;
  display: none;
  transform: translate(0, 0);
  transition: opacity 0.4s ease;
}

.virtual-guide-cursor.active {
  display: block;
}

.virtual-cursor-icon {
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.6));
  transform-origin: 4px 3px;
  transition: transform 0.15s ease;
}

.virtual-guide-cursor.clicking .virtual-cursor-icon {
  transform: scale(0.82);
}

.cursor-ripple {
  position: absolute;
  top: 3px;
  left: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-orange);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.5);
  pointer-events: none;
}

.virtual-guide-cursor.clicking .cursor-ripple {
  animation: cursorRippleWave 0.7s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
}

@keyframes cursorRippleWave {
  0% { opacity: 0.9; transform: translate(-50%, -50%) scale(0.5); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(4.5); }
}

.cursor-label {
  position: absolute;
  left: 28px;
  top: 14px;
  background: #000000;
  border: 1px solid var(--accent-orange);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}
