/*
 * ============================================================
 *  WHYASMEK — Brand Stylesheet
 *  Play. Laugh. Repeat.
 *  whyasmek.digital
 * ============================================================
 *
 *  HOW TO USE
 *  ----------
 *  1. Link this file in your <head> BEFORE your page styles:
 *       <link rel="stylesheet" href="whyasmek-brand.css">
 *
 *  2. Also add the Google Fonts link (required for typography):
 *       <link rel="preconnect" href="https://fonts.googleapis.com">
 *       <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
 *       <link href="https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Space+Mono:ital,wght@0,400;0,700;1,400&family=Syne:wght@400;700;800&display=swap" rel="stylesheet">
 *
 *  3. For social icons, add Ionicons before </body>:
 *       <script type="module" src="https://unpkg.com/ionicons@7.1.0/dist/ionicons/ionicons.esm.js"></script>
 *       <script nomodule src="https://unpkg.com/ionicons@7.1.0/dist/ionicons/ionicons.js"></script>
 *
 *  4. Use the CSS variables and utility classes freely in your
 *     page-specific stylesheet — override anything you need.
 * ============================================================
 */


/* ── RESET ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}


/* ══════════════════════════════════════════
   1. DESIGN TOKENS
   ══════════════════════════════════════════ */

:root {

  /* — Colors — */

  /* Gold (primary accent) */
  --gold:        #e8c420;
  --gold-bright: #f5d832;
  --gold-dim:    #b89a10;

  /* Crimson (secondary accent) */
  --crimson:        #9b1a2a;
  --crimson-bright: #c42038;
  --crimson-dim:    #6b1020;

  /* Bone (text / light surfaces) */
  --bone:     #e8e0d0;
  --bone-dim: #b8b0a0;

  /* Dark surfaces */
  --void:      #0d0a09;   /* page background */
  --surface-1: #130e0c;   /* cards, sections */
  --surface-2: #1c1410;   /* elevated cards */
  --surface-3: #261c16;   /* hover states */

  /* Borders */
  --border:        #2e2018;
  --border-bright: #3e2e20;

  /* Text */
  --text-primary:   #e8e0d0;   /* bone */
  --text-secondary: #8a7a6a;
  --text-muted:     #8c7a64;   /* was #4a3a2e (1.82:1, failed AA); now ~4.6:1 on --void */

  /* — Typography — */
  --font-display: 'Bebas Neue', sans-serif;   /* headlines, titles */
  --font-ui:      'Syne', sans-serif;         /* body, UI copy */
  --font-mono:    'Space Mono', monospace;    /* labels, tags, captions */

  /* — Layout — */
  --header-h:    64px;
  --container-w: 1300px;
  --section-pad: clamp(4rem, 8vw, 7rem);

  /* — Motion — */
  --ease:        cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast:    0.15s;
  --dur-base:    0.25s;
  --dur-slow:    0.5s;
}


/* ══════════════════════════════════════════
   2. BASE
   ══════════════════════════════════════════ */

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font-ui);
  background: var(--void);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Subtle grain texture overlay — paste onto any page */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  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='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
  opacity: 0.7;
}

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

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


/* ══════════════════════════════════════════
   3. TYPOGRAPHY SCALE
   ══════════════════════════════════════════ */

/* Display / Hero titles — Bebas Neue */
.t-display-xl {
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 13vw, 11rem);
  line-height: 0.88;
  letter-spacing: 0.025em;
}

.t-display-lg {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 0.93;
  letter-spacing: 0.02em;
}

.t-display-md {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1;
  letter-spacing: 0.03em;
}

.t-display-sm {
  font-family: var(--font-display);
  font-size: 1.65rem;
  line-height: 1.1;
  letter-spacing: 0.02em;
}

/* UI body — Syne */
.t-body-lg {
  font-family: var(--font-ui);
  font-size: clamp(0.88rem, 1.4vw, 1.05rem);
  line-height: 1.75;
}

.t-body {
  font-family: var(--font-ui);
  font-size: 0.96rem;
  line-height: 1.8;
}

.t-body-sm {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* Labels & captions — Space Mono */
.t-label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.t-label-sm {
  font-family: var(--font-mono);
  font-size: 0.60rem;
  letter-spacing: 0.20em;
  text-transform: uppercase;
}

.t-mono {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.13em;
}

/* Color helpers */
.text-gold    { color: var(--gold); }
.text-crimson { color: var(--crimson-bright); }
.text-bone    { color: var(--bone); }
.text-muted   { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }


/* ══════════════════════════════════════════
   4. LAYOUT UTILITIES
   ══════════════════════════════════════════ */

.container {
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: clamp(1.5rem, 5vw, 3rem);
}

.section {
  padding-block: var(--section-pad);
  position: relative;
  z-index: 2;
}

.section--dark    { background: var(--void); }
.section--surface { background: var(--surface-1); }

/* Grid helpers */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4vw, 4rem); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 2rem); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2vw, 1.5rem); }

@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
@media (min-width: 600px) and (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
}


/* ══════════════════════════════════════════
   5. SECTION LABEL & TITLE PATTERN
   ══════════════════════════════════════════ */

/* Gold eyebrow line — use above section headings */
.section-label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1rem;
}

.section-label::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

/* Hero-style eyebrow (longer rule) */
.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1.2rem;
}

.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 36px;
  height: 1px;
  background: var(--gold);
}


/* ══════════════════════════════════════════
   6. BUTTONS
   ══════════════════════════════════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 13px 26px;
  border: none;
  cursor: pointer;
  transition: all var(--dur-base) var(--ease);
  position: relative;
  overflow: hidden;
}

/* Gold filled — primary CTA */
.btn-gold {
  background: var(--gold);
  color: var(--void);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}
.btn-gold:hover {
  background: var(--gold-bright);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232, 196, 32, 0.25);
}

/* Ghost / outline — secondary CTA */
.btn-ghost {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 2px;
}
.btn-ghost:hover {
  background: var(--gold);
  color: var(--void);
}

/* Crimson filled — accent CTA */
.btn-crimson {
  background: var(--crimson);
  color: var(--bone);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}
.btn-crimson:hover {
  background: var(--crimson-bright);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(155, 26, 42, 0.35);
}

/* Small variant */
.btn-sm {
  font-size: 0.65rem;
  padding: 10px 20px;
}

/* Button arrow icon (use inside .btn) */
.btn svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}


/* ══════════════════════════════════════════
   7. CARDS
   ══════════════════════════════════════════ */

/* Standard content card */
.card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: border-color var(--dur-base);
}

/* Crimson-to-gold top bar on hover */
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--crimson), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.card:hover { border-color: var(--border-bright); }
.card:hover::before { transform: scaleX(1); }

/* Stat / metric cell */
.stat-cell {
  background: var(--surface-2);
  padding: 2rem 1.5rem;
  position: relative;
  overflow: hidden;
  transition: background var(--dur-base);
}
.stat-cell::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--gold);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.3s var(--ease);
}
.stat-cell:hover { background: var(--surface-3); }
.stat-cell:hover::before { transform: scaleY(1); }

.stat-num {
  font-family: var(--font-display);
  font-size: 3.2rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.3rem;
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 0.63rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Image card (gallery / game cover style) */
.img-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--surface-2);
}
.img-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease), filter 0.3s;
  filter: grayscale(40%) brightness(0.8) sepia(10%);
}
.img-card:hover img {
  transform: scale(1.08);
  filter: grayscale(0) brightness(0.95);
}
/* Red corner accent on hover */
.img-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 16px;
  height: 16px;
  border-bottom: 2px solid var(--crimson-bright);
  border-right: 2px solid var(--crimson-bright);
  z-index: 2;
  opacity: 0;
  transition: opacity var(--dur-base);
}
.img-card:hover::before { opacity: 1; }

/* Overlay label inside .img-card */
.img-card-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem 0.7rem 0.6rem;
  background: linear-gradient(to top, rgba(13, 10, 9, 0.95), transparent);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transform: translateY(3px);
  transition: color var(--dur-base), transform var(--dur-base);
}
.img-card:hover .img-card-label {
  color: var(--gold);
  transform: translateY(0);
}


/* ══════════════════════════════════════════
   8. HEADER
   ══════════════════════════════════════════ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
  background: rgba(13, 10, 9, 0.88);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 500;
  transition: border-color 0.3s;
}
.site-header.scrolled { border-bottom-color: var(--crimson-dim); }

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-link img {
  width: 38px;
  height: 38px;
  border-radius: 6px;
}

.logo-wordmark {
  font-family: var(--font-display);
  font-size: 1.7rem;
  letter-spacing: 0.06em;
  color: var(--bone);
  line-height: 1;
}
.logo-wordmark .accent-gold { color: var(--gold); }
.logo-wordmark .accent-red  { color: var(--crimson-bright); }

.nav-menu {
  display: flex;
  gap: 2px;
  list-style: none;
}
.nav-link {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 6px 13px;
  border: 1px solid transparent;
  border-radius: 2px;
  transition: all var(--dur-base) var(--ease);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 13px;
  right: 13px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-base) var(--ease);
}
.nav-link:hover { color: var(--gold); }
.nav-link:hover::after { transform: scaleX(1); }
.nav-link.active { color: var(--gold); }

/* Mobile toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text-primary);
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 2px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.hamburger-line {
  width: 18px;
  height: 1.5px;
  background: currentColor;
  transition: all var(--dur-base) var(--ease);
}
.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) { opacity: 0; }
.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

@media (max-width: 768px) {
  .mobile-menu-toggle { display: flex; }
  .nav-menu {
    position: fixed;
    top: var(--header-h);
    right: -280px;
    width: 280px;
    height: calc(100vh - var(--header-h));
    flex-direction: column;
    justify-content: flex-start;
    padding: 2rem 1.5rem;
    gap: 0;
    background: rgba(13, 10, 9, 0.98);
    border-left: 1px solid var(--border);
    backdrop-filter: blur(20px);
    transition: right 0.3s var(--ease);
    z-index: 200;
  }
  .nav-menu.open { right: 0; }
  .nav-menu li { width: 100%; }
  .nav-link {
    display: block;
    padding: 14px 0;
    font-size: 0.75rem;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
  }
  .nav-link::after { display: none; }
  .nav-link:hover { color: var(--gold); padding-left: 8px; }
}


/* ══════════════════════════════════════════
   9. FOOTER
   ══════════════════════════════════════════ */

.site-footer {
  background: var(--surface-1);
  border-top: 1px solid var(--border);
  padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 5vw, 3rem) 2rem;
  position: relative;
  z-index: 2;
}
/* Crimson-gold gradient top bar */
.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--crimson-dim), var(--gold), var(--crimson-dim));
}

.footer-inner {
  max-width: var(--container-w);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-bottom: 3rem;
}

.footer-wordmark {
  font-family: var(--font-display);
  font-size: 2.2rem;
  letter-spacing: 0.06em;
  line-height: 1;
  margin-bottom: 1rem;
  display: block;
}
.footer-tagline {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.7;
  max-width: 300px;
}

.footer-links h4 {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}
.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 1.1rem;
  transition: all var(--dur-base) var(--ease);
}
.social-link svg {
  width: 1.1em;
  height: 1.1em;
  fill: currentColor;
}
.social-link:hover {
  color: var(--gold);
  border-color: var(--gold);
  transform: translateY(-3px);
}

.footer-bottom {
  max-width: var(--container-w);
  margin-inline: auto;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 480px) {
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}


/* ══════════════════════════════════════════
   10. DECORATIVE ELEMENTS
   ══════════════════════════════════════════ */

/* Animated gold/crimson rule — place between sections */
.gold-rule {
  height: 1px;
  background: var(--border);
  position: relative;
  overflow: hidden;
}
.gold-rule::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 60px;
  background: linear-gradient(90deg, var(--crimson), var(--gold));
  animation: ruleSlide 4s ease-in-out infinite;
}
@keyframes ruleSlide {
  0%, 100% { transform: translateX(0); opacity: 1; }
  50%       { transform: translateX(120px); opacity: 0.6; }
}

/* Live badge (streaming / new content) */
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--crimson-bright);
  border: 1px solid var(--crimson-dim);
  padding: 4px 10px;
  border-radius: 2px;
}
.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--crimson-bright);
  animation: livePulse 1.5s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.25; }
}

/* Tag / filter pill */
.tag {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-block;
}

/* Video embed wrapper with gold corner accents */
.video-wrapper {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--surface-2);
  border: 1px solid var(--border);
  overflow: hidden;
}
.video-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid var(--gold);
  opacity: 0.15;
  z-index: 1;
  pointer-events: none;
}
.video-wrapper::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 8px;
  width: 20px;
  height: 20px;
  border-top: 2px solid var(--gold);
  border-left: 2px solid var(--gold);
  z-index: 2;
  pointer-events: none;
  opacity: 0.7;
}
.video-wrapper iframe,
.video-wrapper video {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Skip link (accessibility) */
.skip-link {
  position: absolute;
  top: -40px;
  left: 8px;
  background: var(--gold);
  color: var(--void);
  padding: 8px 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-decoration: none;
  z-index: 1000;
  transition: top 0.2s;
}
.skip-link:focus { top: 8px; }


/* ══════════════════════════════════════════
   11. ANIMATION UTILITIES
   ══════════════════════════════════════════ */

/* Scroll-triggered fade-in — add .fade-in to elements,
   then use IntersectionObserver to toggle .visible */
.fade-in {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in-delay-1 { transition-delay: 0.10s; }
.fade-in-delay-2 { transition-delay: 0.20s; }
.fade-in-delay-3 { transition-delay: 0.32s; }
.fade-in-delay-4 { transition-delay: 0.44s; }


/* ══════════════════════════════════════════
   12. CUSTOM CURSOR  (desktop only)
   ══════════════════════════════════════════ */

/* Hide the OS cursor ONLY where a custom one is actually drawn (fine pointer, page has #cursor). */
@media (hover: hover) and (pointer: fine) {
  body:has(#cursor) { cursor: none; }
}

.cursor {
  position: fixed;
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: background var(--dur-fast), transform var(--dur-fast);
  mix-blend-mode: screen;
}
.cursor-ring {
  position: fixed;
  width: 30px;
  height: 30px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, border-color 0.2s;
  mix-blend-mode: screen;
}
body.cursor-hover .cursor {
  background: var(--crimson-bright);
  transform: translate(-50%, -50%) scale(1.6);
}
body.cursor-hover .cursor-ring {
  width: 46px;
  height: 46px;
  border-color: var(--crimson-bright);
}

/* Touch / small screens / no hover: hide the bespoke cursor, use the OS cursor. */
@media (max-width: 768px), (pointer: coarse), (hover: none) {
  body:has(#cursor) { cursor: auto; }
  .cursor, .cursor-ring { display: none; }
}


/* ══════════════════════════════════════════
   13. ACCESSIBILITY
   ══════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* =====================================================================
   NEW (merged from AI-OS scaffold) — recolored to brand tokens
   1. Lightweight tab component (.tabs / [data-tabs]) — gallery, resources
   2. Custom cursor (site-wide, fine-pointer only)
   ===================================================================== */

/* 1 — Tab component (shared, accessible) */
.tabs { margin-top: 1.5rem; }
.tablist {
  display: flex; flex-wrap: wrap; gap: .5rem;
  border-bottom: 1px solid var(--border); margin-bottom: 1.25rem;
}
.tablist [role=tab] {
  appearance: none; background: none; border: 0;
  color: var(--text-secondary); font-family: var(--font-ui); font-weight: 700;
  letter-spacing: .02em; padding: .6rem .95rem;
  border-radius: 10px 10px 0 0; cursor: pointer;
  transition: color var(--dur-fast) var(--ease);
}
.tablist [role=tab]:hover { color: var(--bone); }
.tablist [role=tab][aria-selected=true] {
  color: var(--gold); box-shadow: inset 0 -2px 0 var(--gold);
}
.tabs [role=tabpanel][hidden] { display: none; }
.tabs [role=tabpanel] { animation: tabfade .25s var(--ease); }
@keyframes tabfade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* 2 — Shared custom cursor (ui.js). Distinct classes so it never clashes with the bespoke .cursor-ring. */
@media (hover: hover) and (pointer: fine) {
  body.has-cursor { cursor: none; }
  body.has-cursor a, body.has-cursor button, body.has-cursor [role=tab] { cursor: none; }
  .ui-cur-dot, .ui-cur-ring {
    position: fixed; top: 0; left: 0; border-radius: 50%;
    pointer-events: none; z-index: 9999; translate: -50% -50%;
  }
  .ui-cur-dot { width: 6px; height: 6px; background: var(--gold); }
  .ui-cur-ring {
    width: 34px; height: 34px; border: 1.5px solid var(--crimson-bright);
    transition: width .18s, height .18s, border-color .18s;
  }
  .ui-cur-ring.is-hover { width: 52px; height: 52px; border-color: var(--gold); }
}
@media (prefers-reduced-motion: reduce) {
  .cursor, .cursor-ring, .ui-cur-dot, .ui-cur-ring { display: none !important; }
  body.has-cursor, body.has-cursor a, body.has-cursor button { cursor: auto; }
  body:has(#cursor) { cursor: auto; }
  .tabs [role=tabpanel] { animation: none; }
}

/* Reading-progress bar (post pages — add <div class="read-progress"><span id="read-progress-bar">) */
.read-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px;
  z-index: 600; background: transparent; pointer-events: none;
}
#read-progress-bar {
  display: block; height: 100%; width: 100%;
  transform: scaleX(0); transform-origin: left;
  background: linear-gradient(90deg, var(--crimson-bright), var(--gold));
}
