/* ==========================================================================
   kp-dark-design-system.css
   Shared CSS for all dark Concept C templates — kharypenebaker.com
   Loaded via wp_enqueue_style through kp-dark-theme-assets.php MU-plugin.
   Page-specific CSS stays inline in each template file.
   Last updated: 2026-04-10
   ========================================================================== */


/* ==========================================================================
   1. DESIGN TOKENS
   ========================================================================== */

:root {
  /* Backgrounds */
  --bg-base:     #0A0A0F;
  --bg-surface:  #14141A;
  --bg-elevated: #1E1E26;

  /* Brand colors */
  --gold:      var(--pt-amber-bright, #E8A43A);
  --gold-dark: var(--pt-amber-graphical, #D4812A);
  --blue:      #3B82F6;
  --coral:     #FF6347;
  --green:     #22C55E;

  /* Text */
  --text-primary:   #F5F3EF;
  --text-secondary: #8B8B92;

  /* Borders */
  --border:       rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);

  /* Glows */
  --glow-gold: rgba(232, 164, 58, 0.4);
  --glow-blue: rgba(59, 130, 246, 0.3);

  /* Easing */
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-expo:   cubic-bezier(0.19, 1, 0.22, 1);
  --ease-snappy: cubic-bezier(0.16, 1, 0.3, 1);

  /* Type scale */
  --type-hero:  clamp(2.8rem, 5.5vw, 6rem);
  --type-h2:    clamp(2rem, 4.5vw, 4.5rem);
  --type-body:  clamp(1rem, 1.5vw, 1.125rem);
  --type-label: clamp(0.6875rem, 0.9vw, 0.8125rem);

  /* Layout */
  --nav-h: 72px;
}


/* ==========================================================================
   2. REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration:       0.01ms;
    animation-iteration-count: 1;
    transition-duration:      0.01ms;
    scroll-behavior:          auto;
  }
}


/* ==========================================================================
   3. RESET
   ========================================================================== */

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

html {
  scroll-behavior: auto;
  background-color: var(--bg-base) !important;
}


/* ==========================================================================
   4. BODY
   ========================================================================== */

body {
  font-family:      "Source Sans 3", "Source Sans Pro", sans-serif;
  background-color: var(--bg-base) !important;
  color:            var(--text-primary);
  overflow-x:       hidden;
  cursor:           none;
}

@media (hover: none) {
  body {
    cursor: auto;
  }
}


/* ==========================================================================
   5. BASE ELEMENTS
   ========================================================================== */

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

ul {
  list-style: none;
}


/* ==========================================================================
   6. NOISE TEXTURE OVERLAY
   ========================================================================== */

body::before {
  content:         "";
  position:        fixed;
  inset:           0;
  z-index:         9998;
  pointer-events:  none;
  opacity:         0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}


/* ==========================================================================
   7. LIQUID GLASS SYSTEM
   ========================================================================== */

/* Level 1: Subtle — nav, filter bars */
.glass-subtle {
  background:         rgba(255, 255, 255, 0.03);
  backdrop-filter:    blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  border:             1px solid rgba(255, 255, 255, 0.06);
}

/* Level 2: Standard — cards, panels */
.glass {
  background:         rgba(255, 255, 255, 0.05);
  backdrop-filter:    blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border:             1px solid rgba(255, 255, 255, 0.10);
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.4),
    0 1px 0 rgba(255, 255, 255, 0.06) inset;
}

/* Level 3: Heavy — hero panels, featured cards */
.glass-heavy {
  background:         rgba(255, 255, 255, 0.08);
  backdrop-filter:    blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);
  border:             1px solid rgba(255, 255, 255, 0.15);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.5),
    0 24px 64px rgba(0, 0, 0, 0.3),
    0 1px 0 rgba(255, 255, 255, 0.10) inset;
}

/* Gold-tinted glass */
.glass-gold {
  background:         rgba(232, 164, 58, 0.08);
  backdrop-filter:    blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border:             1px solid rgba(232, 164, 58, 0.20);
  box-shadow:         0 4px 24px rgba(232, 164, 58, 0.10);
}

/* Blue-tinted glass */
.glass-blue {
  background:         rgba(59, 130, 246, 0.08);
  backdrop-filter:    blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border:             1px solid rgba(59, 130, 246, 0.20);
  box-shadow:         0 4px 24px rgba(59, 130, 246, 0.10);
}

/* Standard glass hover enhancement */
.glass:hover {
  background:  rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.5),
    0 1px 0 rgba(255, 255, 255, 0.10) inset;
}

/* Top-edge light streak */
.glass-refraction::before {
  content:    "";
  position:   absolute;
  top:        0;
  left:       10%;
  right:      10%;
  height:     1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.25) 50%,
    transparent
  );
  pointer-events: none;
}

/* Conic glow on hover — requires @property support */
@property --angle {
  syntax:         "<angle>";
  initial-value:  0deg;
  inherits:       false;
}

@keyframes glowRotate {
  to { --angle: 360deg; }
}

.glass-glow {
  position: relative;
}

.glass-glow::after {
  content:         "";
  position:        absolute;
  inset:           -1px;
  border-radius:   inherit;
  background:      conic-gradient(
    from var(--angle),
    transparent 0deg,
    var(--gold) 60deg,
    transparent 120deg
  );
  opacity:         0;
  z-index:         -1;
  transition:      opacity 0.4s var(--ease-snappy);
  pointer-events:  none;
}

.glass-glow:hover::after {
  opacity:   0.6;
  animation: glowRotate 3s linear infinite;
}


/* ==========================================================================
   8. SCROLL PROGRESS BAR
   ========================================================================== */

#scroll-progress {
  position:   fixed;
  top:        0;
  left:       0;
  width:      0%;
  height:     3px;
  background: var(--gold);
  z-index:    10000;
  box-shadow: 0 0 8px var(--glow-gold);
  transition: width 0.05s linear;
}


/* ==========================================================================
   9. CUSTOM CURSOR
   ========================================================================== */

.cursor-ring {
  position:         fixed;
  top:              0;
  left:             0;
  width:            40px;
  height:           40px;
  border-radius:    50%;
  background:       rgba(255, 255, 255, 0.04);
  backdrop-filter:  blur(8px);
  border:           1.5px solid rgba(255, 255, 255, 0.20);
  pointer-events:   none;
  z-index:          99999;
  will-change:      transform;
  mix-blend-mode:   normal;
  transform:        translate(-50%, -50%);
  transition:
    width  0.3s var(--ease-snappy),
    height 0.3s var(--ease-snappy),
    border-color 0.3s var(--ease-snappy),
    background   0.3s var(--ease-snappy),
    backdrop-filter 0.3s var(--ease-snappy);
}

.cursor-dot {
  position:       fixed;
  top:            0;
  left:           0;
  width:          5px;
  height:         5px;
  border-radius:  50%;
  background:     var(--gold);
  pointer-events: none;
  z-index:        100000;
  will-change:    transform;
  transform:      translate(-50%, -50%);
}

/* Ghost trail elements */
.cursor-ghost {
  position:        fixed;
  top:             0;
  left:            0;
  width:           20px;
  height:          20px;
  border-radius:   50%;
  background:      rgba(232, 164, 58, 0.06);
  backdrop-filter: blur(4px);
  border:          1px solid rgba(232, 164, 58, 0.12);
  pointer-events:  none;
  z-index:         99990;
  will-change:     transform;
  transform:       translate(-50%, -50%);
}

/* Hover state — enlarged with gold glow */
.cursor-ring.is-hovering {
  width:           80px;
  height:          80px;
  border-color:    var(--gold);
  background:      rgba(232, 164, 58, 0.06);
  backdrop-filter: none;
  box-shadow:      0 0 20px var(--glow-gold);
}

/* Text cursor — thin bar */
.cursor-ring.is-text {
  width:      2px;
  height:     24px;
  border-radius: 1px;
  border-color: var(--text-primary);
}

/* Click state */
.cursor-ring.is-clicking {
  transform: translate(-50%, -50%) scale(0.75);
}

/* Hide all cursor elements on touch devices */
@media (hover: none) {
  .cursor-ring,
  .cursor-dot,
  .cursor-ghost {
    display: none;
  }
}


/* ==========================================================================
   10. NAVIGATION
   ========================================================================== */

.site-nav {
  position:         fixed;
  top:              0;
  left:             0;
  right:            0;
  z-index:          9000;
  height:           var(--nav-h);
  display:          flex;
  align-items:      center;
  justify-content:  space-between;
  padding:          0 clamp(1.5rem, 4vw, 3rem);
  padding-top:      env(safe-area-inset-top, 0); /* notched device: nav top */
  padding-left:     max(clamp(1.5rem, 4vw, 3rem), env(safe-area-inset-left, 0)); /* landscape safe-area */
  padding-right:    max(clamp(1.5rem, 4vw, 3rem), env(safe-area-inset-right, 0)); /* landscape safe-area */
  transition:
    background   0.4s var(--ease-snappy),
    border-color 0.4s var(--ease-snappy),
    box-shadow   0.4s var(--ease-snappy);
}

.site-nav.scrolled {
  background:      rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom:   1px solid var(--border);
  box-shadow:      0 4px 24px rgba(0, 0, 0, 0.4);
}

.nav-logo {
  font-family:    "Playfair Display", Georgia, serif;
  font-weight:    900;
  font-size:      1.1rem;
  letter-spacing: 0.02em;
  color:          var(--text-primary);
}

.nav-links {
  display:     flex;
  align-items: center;
  gap:         2rem;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
}

.nav-links a {
  font-family:    "Source Sans 3", sans-serif;
  font-size:      0.85rem;
  font-weight:    600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color:          var(--text-secondary);
  transition:     color 0.25s var(--ease-snappy);
}

.nav-links a:hover {
  color: var(--gold);
}

.nav-cta {
  display:        inline-flex;
  align-items:    center;
  padding:        0.5rem 1.25rem;
  font-family:    "Source Sans 3", sans-serif;
  font-size:      0.8rem;
  font-weight:    700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color:          var(--gold);
  background:     rgba(232, 164, 58, 0.12);
  border:         1px solid rgba(232, 164, 58, 0.35);
  border-radius:  4px;
  transition:
    background   0.25s var(--ease-snappy),
    border-color 0.25s var(--ease-snappy),
    box-shadow   0.25s var(--ease-snappy);
}

.nav-cta:hover {
  background:   rgba(232, 164, 58, 0.22);
  border-color: rgba(232, 164, 58, 0.60);
  box-shadow:   0 0 12px rgba(232, 164, 58, 0.20);
  color:        var(--gold);
}

/* Mobile hamburger */
.nav-hamburger {
  display:         none;
  flex-direction:  column;
  justify-content: center;
  gap:             5px;
  width:           48px;
  height:          48px;
  min-width:       48px;
  min-height:      48px;
  box-sizing:      border-box;
  background:      none;
  border:          none;
  cursor:          none;
  padding:         12px;
}

@media (max-width: 768px) {
  .nav-hamburger {
    display: flex;
  }
}

.nav-hamburger span {
  display:          block;
  width:            24px;
  height:           1.5px;
  background:       var(--text-primary);
  border-radius:    1px;
  transition:       transform 0.3s var(--ease-snappy), opacity 0.3s;
  transform-origin: center;
}

.nav-hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}


/* ==========================================================================
   11. FLOATING SOCIAL ICONS
   ========================================================================== */

.social-float {
  position:       fixed;
  left:           20px;
  top:            50%;
  transform:      translateY(-50%);
  z-index:        500;
  display:        flex;
  flex-direction: column;
  align-items:    center;
  gap:            8px;
  padding:        12px 6px;
  background:     rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border:         1px solid rgba(255, 255, 255, 0.08);
  border-radius:  40px;
}

.social-float a {
  display:         flex;
  align-items:     center;
  justify-content: center;
  width:           36px;
  height:          36px;
  border-radius:   50%;
  background:      rgba(255, 255, 255, 0.05);
  border:          1px solid rgba(255, 255, 255, 0.06);
  color:           var(--text-secondary);
  transition:
    background   0.25s var(--ease-snappy),
    border-color 0.25s var(--ease-snappy),
    color        0.25s var(--ease-snappy),
    transform    0.25s var(--ease-spring);
}

.social-float a:hover {
  background:   rgba(232, 164, 58, 0.12);
  border-color: rgba(232, 164, 58, 0.30);
  color:        var(--gold);
  transform:    scale(1.15);
}

.social-float svg {
  width:  16px;
  height: 16px;
  fill:   currentColor;
}

@media (max-width: 768px) {
  .social-float {
    display: none;
  }
}


/* ==========================================================================
   12. VERTICAL MARQUEE
   ========================================================================== */

.v-marquee {
  position:     fixed;
  right:        12px;
  top:          0;
  bottom:       0;
  width:        16px;
  z-index:      80;
  overflow:     hidden;
  display:      flex;
  align-items:  center;
  pointer-events: none;
}

.v-marquee-track {
  writing-mode:     vertical-rl;
  text-orientation: mixed;
  font-size:        0.625rem;
  font-weight:      600;
  text-transform:   uppercase;
  letter-spacing:   0.15em;
  color:            rgba(255, 255, 255, 0.45);
  white-space:      nowrap;
  animation:        vMarqueeScroll 30s linear infinite;
}

@keyframes vMarqueeScroll {
  from { transform: translateY(0); }
  to   { transform: translateY(-50%); }
}

@media (max-width: 768px) {
  .v-marquee {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .v-marquee {
    display: none;
  }
}



/* ==========================================================================
   12b. CUSTOM CURSOR
   ========================================================================== */

.cursor-ring,
.cursor-dot,
.cursor-ghost {
  display: block !important;
}

.cursor-ring {
  position:       fixed;
  top:            0;
  left:           0;
  width:          40px;
  height:         40px;
  border-radius:  50%;
  background:     rgba(255,255,255,0.04);
  backdrop-filter: blur(8px);
  border:         1px solid rgba(255,255,255,0.08);
  pointer-events: none;
  z-index:        99999;
  transition:     width 0.3s, height 0.3s, background 0.3s, border-color 0.3s;
  transform:      translate(-50%, -50%);
  will-change:    transform;
  opacity:        0;
}

.cursor-dot {
  position:      fixed;
  top:           0;
  left:          0;
  width:         5px;
  height:        5px;
  border-radius: 50%;
  background:    var(--gold, #E8A43A);
  pointer-events: none;
  z-index:       100000;
  transform:     translate(-50%, -50%);
  will-change:   transform;
  opacity:       0;
}

.cursor-ghost {
  position:      fixed;
  top:           0;
  left:          0;
  width:         20px;
  height:        20px;
  border-radius: 50%;
  background:    rgba(232,164,58,0.06);
  pointer-events: none;
  z-index:       99998;
  transform:     translate(-50%, -50%);
  will-change:   transform;
  opacity:       0;
}

.cursor-ring.is-hovering {
  width:        80px;
  height:       80px;
  border-color: var(--gold, #E8A43A);
  background:   rgba(232,164,58,0.06);
  box-shadow:   0 0 20px rgba(232,164,58,0.15);
}

.cursor-ring.is-text {
  width:        2px;
  height:       24px;
  border-radius: 1px;
  border-color: var(--text-primary, #F5F3EF);
}

.cursor-ring.is-clicking {
  transform: translate(-50%, -50%) scale(0.75);
}

@media (hover: none) {
  .cursor-ring, .cursor-dot, .cursor-ghost { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .cursor-ring, .cursor-dot, .cursor-ghost { display: none !important; }
}

@media (hover: hover) and (min-width: 769px) {
  .cursor-ring, .cursor-dot { opacity: 1; }
}

@media (pointer: fine) and (min-width: 769px) {
  .cursor-ring, .cursor-dot { opacity: 1; }
}
/* ==========================================================================
   13. BUTTON SYSTEM
   ========================================================================== */

@property --btn-angle {
  syntax:        "<angle>";
  initial-value: 0deg;
  inherits:      false;
}

@keyframes btnGlowRotate {
  to { --btn-angle: 360deg; }
}

.btn-primary,
.btn-ghost,
.btn-text {
  display:         inline-flex;
  align-items:     center;
  gap:             0.5rem;
  font-family:     "Source Sans 3", sans-serif;
  font-weight:     700;
  text-transform:  uppercase;
  letter-spacing:  0.08em;
  border-radius:   4px;
  cursor:          none;
  transition:
    background   0.3s var(--ease-snappy),
    box-shadow   0.3s var(--ease-snappy),
    border-color 0.3s var(--ease-snappy),
    transform    0.2s var(--ease-spring);
}

.btn-primary,
.btn-ghost {
  padding: 0.875rem 2rem;
  font-size: 0.875rem;
}

.btn-text {
  padding:   0;
  font-size: 0.875rem;
}

/* Primary — gold fill, dark text */
.btn-primary {
  background:   var(--gold);
  color:        #0A0A0F;
  border:       1px solid transparent;
  position:     relative;
  overflow:     hidden;
}

.btn-primary::after {
  content:    "";
  position:   absolute;
  inset:      -1px;
  border-radius: inherit;
  background: conic-gradient(
    from var(--btn-angle),
    transparent 0deg,
    rgba(255, 255, 255, 0.5) 60deg,
    transparent 120deg
  );
  opacity:    0;
  z-index:    -1;
  transition: opacity 0.3s;
}

.btn-primary:hover {
  background:  var(--gold-dark);
  box-shadow:  0 0 24px rgba(232, 164, 58, 0.35);
  transform:   translateY(-2px);
}

.btn-primary:hover::after {
  opacity:   0.5;
  animation: btnGlowRotate 2s linear infinite;
}

/* Ghost — transparent, gold border */
.btn-ghost {
  background:   transparent;
  color:        var(--gold);
  border:       1px solid rgba(232, 164, 58, 0.45);
}

.btn-ghost:hover {
  background:   rgba(232, 164, 58, 0.10);
  border-color: rgba(232, 164, 58, 0.70);
  box-shadow:   0 0 16px rgba(232, 164, 58, 0.20);
  transform:    translateY(-2px);
}

/* Text — no border, arrow indicator */
.btn-text {
  background:   transparent;
  color:        var(--gold);
  border:       none;
}

.btn-text::after {
  content:    " →";
  transition: transform 0.25s var(--ease-snappy);
  display:    inline-block;
}

.btn-text:hover::after {
  transform: translateX(4px);
}

/* Active press state for all buttons */
.btn-primary:active,
.btn-ghost:active,
.btn-text:active {
  transform: translateY(0) scale(0.97);
}


/* ==========================================================================
   14. FOCUS VISIBLE
   ========================================================================== */

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

/* Remove default focus outline when focus-visible is supported */
:focus:not(:focus-visible) {
  outline: none;
}


/* ==========================================================================
   15. SKIP NAV
   ========================================================================== */

.skip-nav {
  position:   absolute;
  top:        -100%;
  left:       1rem;
  z-index:    100001;
  padding:    0.75rem 1.5rem;
  background: var(--gold);
  color:      #0A0A0F;
  font-weight: 700;
  font-size:  0.875rem;
  border-radius: 0 0 4px 4px;
  transition: top 0.2s var(--ease-snappy);
}

.skip-nav:focus {
  top: 0;
}


/* ==========================================================================
   16. ACCESSIBILITY AND MAIN LANDMARK
   ========================================================================== */

main {
  display: block;
  outline: none;
}

/* Visually hidden utility (screen reader only) */
.sr-only {
  position:   absolute;
  width:      1px;
  height:     1px;
  padding:    0;
  margin:     -1px;
  overflow:   hidden;
  clip:       rect(0, 0, 0, 0);
  white-space: nowrap;
  border:     0;
}

/* aria-hidden is for screen readers only, not visual hiding.
   Removed global display:none rule that was hiding SVGs, marquee, orbs. */

/* Respect reduced motion for cursor elements */
@media (prefers-reduced-motion: reduce) {
  .cursor-ring,
  .cursor-dot,
  .cursor-ghost {
    display: none;
  }

  .btn-primary::after,
  .glass-glow::after {
    animation: none;
  }

  .v-marquee-track {
    animation: none;
  }
}

/* ── Force-show cursor + marquee on desktop (override hover:none false positive) ── */
@media (hover: hover) and (min-width: 769px) {
  .cursor-ring,
  .cursor-dot {
    display: block !important;
  }
  .v-marquee {
    display: flex !important;
  }
}

/* Fallback: if hover detection is wrong but pointer is fine, still show */
@media (pointer: fine) and (min-width: 769px) {
  .cursor-ring,
  .cursor-dot {
    display: block !important;
  }
  .v-marquee {
    display: flex !important;
  }
}


/* ══════════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════════ */

.site-footer {
  background: var(--bg-surface, #14141A);
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: auto;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem clamp(1.25rem, 6vw, 3rem);
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

@media (max-width: 768px) {
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
}

.footer-logo {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 900;
  font-size: 1.25rem;
  color: var(--text-primary, #F5F3EF);
  text-decoration: none;
  display: block;
  margin-bottom: 0.5rem;
}

.footer-tagline {
  font-size: 0.9rem;
  color: var(--text-secondary, #8B8B92);
  line-height: 1.6;
  max-width: 360px;
  margin: 0;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer-nav a {
  font-size: 0.875rem;
  color: var(--text-secondary, #8B8B92);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-nav a:hover { color: var(--gold, #E8A43A); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy {
  font-size: 0.8125rem;
  color: var(--text-secondary, #8B8B92);
  margin: 0;
}

.footer-socials {
  display: flex;
  gap: 12px;
  align-items: center;
}

.footer-socials a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary, #8B8B92);
  transition: all 0.25s ease;
}

.footer-socials a:hover {
  border-color: rgba(232,164,58,0.4);
  background: rgba(232,164,58,0.08);
  color: var(--gold, #E8A43A);
}

.footer-socials a svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.footer-socials a:hover svg { fill: var(--gold, #E8A43A); }


/* Mobile performance 2026-04-26: disable decorative backdrop-filter on small screens
   to reduce GPU compositing cost on Android mid-range devices.
   The glass-refraction nav keeps its backdrop-filter via override below. */
@media (max-width: 768px) {
  .spk-card,
  .blog-card,
  .feat-card,
  .topic-card,
  .info-card,
  .glass-elevated,
  .glass-subtle:not(.site-nav) {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background-color: rgba(20, 20, 26, 0.92) !important;
  }
  /* Keep nav glass effect (canonical brand element) */
  .site-nav.glass-subtle.glass-refraction {
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
  }
}


/* === Tier 1: Focus rings === */
input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid #E8A43A;outline-offset:2px;border-color:#E8A43A;transition:border-color .2s ease,outline-color .2s ease}
@media(prefers-reduced-motion:reduce){input:focus-visible,textarea:focus-visible,select:focus-visible{transition:none}}

/* === Tier 1: Blog card hover === */
.kp-blog-card,article.kp-blog-card,.blog-grid-item{transition:transform .35s cubic-bezier(.16,1,.3,1),box-shadow .35s cubic-bezier(.16,1,.3,1)}
.kp-blog-card:hover,article.kp-blog-card:hover,.blog-grid-item:hover{transform:translateY(-5px);box-shadow:0 20px 48px rgba(11,14,26,.14)}
.kp-blog-card:hover .kp-blog-card-link,.kp-blog-card:hover h2 a,.blog-grid-item:hover h2 a{color:#A85F1B !important;transition:color .25s ease}
.kp-blog-card .post-thumbnail,.kp-blog-card figure{overflow:hidden}
.kp-blog-card:hover .post-thumbnail img,.kp-blog-card:hover figure img{transform:scale(1.04);transition:transform .55s cubic-bezier(.16,1,.3,1)}
@media(prefers-reduced-motion:reduce){.kp-blog-card{transition:none}.kp-blog-card:hover{transform:none;box-shadow:none}}

/* === Tier 1: Hero portrait reveal === */
@keyframes kp-hero-portrait-reveal{from{filter:blur(14px);opacity:0;transform:scale(1.04)}to{filter:blur(0);opacity:1;transform:scale(1)}}
.home-hero .hero-headshot,.home-hero img:not([class*="kp-"]){animation:kp-hero-portrait-reveal 1.1s cubic-bezier(.16,1,.3,1) forwards;animation-delay:.2s;opacity:0;will-change:filter,opacity,transform}
@media(prefers-reduced-motion:reduce){.home-hero .hero-headshot,.home-hero img:not([class*="kp-"]){animation:none;opacity:1}}


/* ==========================================================================
   EDITORIAL ELEVATION v8 (2026-06-09)
   Additive layer. Global refinements + opt-in .kp-ed-* utilities consumed
   by the Concept C templates. Amber per DESIGN.md: --pt-amber-bright text
   on dark, --pt-amber-wcag text on light, --pt-amber-graphical decorative.
   ========================================================================== */

/* --- Selection: amber over ink, sitewide signature --- */
::selection {
  background: var(--gold, #E8A43A);
  color:      var(--bg-base, #0A0A0F);
}

/* --- Scrollbar: thin ink rail with amber thumb --- */
html {
  scrollbar-width: thin;
  scrollbar-color: rgba(232, 164, 58, 0.55) var(--bg-base, #0A0A0F);
}
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-base, #0A0A0F); }
::-webkit-scrollbar-thumb {
  background: rgba(232, 164, 58, 0.45);
  border: 2px solid var(--bg-base, #0A0A0F);
  border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(232, 164, 58, 0.7); }

/* --- Keyboard focus: visible everywhere, not just inputs --- */
a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--gold, #E8A43A);
  outline-offset: 3px;
  border-radius: 2px;
}

/* --- Heading rag control --- */
h1, h2, h3 { text-wrap: balance; font-kerning: normal; }
p { text-wrap: pretty; }

/* --- .kp-ed-kicker: editorial eyebrow with amber dash lead --- */
.kp-ed-kicker {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: "Source Sans 3", "Source Sans Pro", sans-serif;
  font-size: var(--type-label, 0.75rem);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold, #E8A43A);
}
.kp-ed-kicker::before {
  content: "";
  width: 36px;
  height: 2px;
  background: var(--gold, #E8A43A);
  flex: none;
}

/* --- .kp-ed-rule: section divider, amber segment + hairline --- */
.kp-ed-rule {
  display: flex;
  align-items: center;
  border: 0;
  height: 2px;
  margin: 0;
  background: linear-gradient(90deg,
    var(--gold, #E8A43A) 0, var(--gold, #E8A43A) 64px,
    var(--border, rgba(255,255,255,0.08)) 64px, var(--border, rgba(255,255,255,0.08)) 100%);
}

/* --- .kp-ed-num: oversized ghost chapter numeral --- */
.kp-ed-num {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 900;
  font-style: normal;
  font-size: clamp(4.5rem, 11vw, 10rem);
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1px rgba(232, 164, 58, 0.28);
  user-select: none;
  pointer-events: none;
}
@supports not (-webkit-text-stroke: 1px black) {
  .kp-ed-num { color: rgba(245, 243, 239, 0.06); }
}

/* --- .kp-ed-frame: photo with offset amber frame --- */
.kp-ed-frame { position: relative; }
.kp-ed-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translate(14px, 14px);
  border: 1px solid rgba(232, 164, 58, 0.45);
  pointer-events: none;
  z-index: -1;
  transition: transform 0.45s var(--ease-snappy, cubic-bezier(0.16,1,0.3,1));
}
.kp-ed-frame:hover::after { transform: translate(8px, 8px); }

/* --- .kp-ed-link: animated underline for inline links on dark --- */
.kp-ed-link {
  background-image: linear-gradient(var(--gold, #E8A43A), var(--gold, #E8A43A));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1px;
  transition: background-size 0.35s var(--ease-snappy, cubic-bezier(0.16,1,0.3,1));
  padding-bottom: 2px;
}
.kp-ed-link:hover,
.kp-ed-link:focus-visible { background-size: 100% 1px; }

/* --- .kp-ed-pull: editorial pull quote, oversized mark, no side stripe --- */
.kp-ed-pull {
  position: relative;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  line-height: 1.35;
  color: var(--text-primary, #F5F3EF);
  padding-top: 2.6rem;
}
.kp-ed-pull::before {
  content: "\201C";
  position: absolute;
  top: 0;
  left: -0.06em;
  font-size: 4.4rem;
  line-height: 1;
  color: var(--gold, #E8A43A);
  opacity: 0.85;
}

@media (prefers-reduced-motion: reduce) {
  .kp-ed-frame::after,
  .kp-ed-link { transition: none; }
}


/* ==========================================================================
   10K ELEMENTS v9  (added 2026-06-20)
   Item 1: complete fluid type scale (additive — extends --type-* semantics).
   Item 3: static ambient amber glow on interior page heroes (CSS-only).
   Homepage hero excluded on purpose: KP3D WebGL already supplies atmosphere.
   ========================================================================== */

/* --- Item 1: full fluid numeric type scale (no existing token changed) --- */
:root {
  --text-xs:  clamp(0.75rem, 0.9vw, 0.8125rem);
  --text-sm:  clamp(0.875rem, 1.2vw, 0.9375rem);
  --text-base: clamp(1rem, 1.5vw, 1.125rem);
  --text-lg:  clamp(1.2rem, 2vw, 1.4rem);
  --text-xl:  clamp(1.5rem, 3vw, 2rem);
  --text-2xl: clamp(2rem, 4.5vw, 3.25rem);
  --text-3xl: clamp(2.6rem, 6vw, 5rem);
}

/* --- Item 3: static ambient glow behind interior hero content ---
   Live-DOM targeting (verified 2026-06-20): About body carries .kp-dark-about and
   its hero is .hero, so .kp-dark-about .hero hits only About. Experience hero is
   .exp-hero. Homepage <body> has NO class and its hero is .hero, so neither selector
   can reach it (KP3D owns the homepage atmosphere). Contact/Media/Book use a generic
   .hero with no atmosphere class, Speaking has a bare body + .hero, and Resilience has
   no hero element, so they cannot be targeted homepage-safely from CSS alone and are
   deferred to the spec-005 atmosphere consolidation (T010A), not glowed here. */
.kp-dark-about .hero,
.exp-hero {
  position: relative;
}
.kp-dark-about .hero::before,
.exp-hero::before {
  content: "";
  position: absolute;
  top: -8%;
  left: 50%;
  width: min(560px, 82vw);
  height: min(560px, 82vw);
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(232, 164, 58, 0.16), transparent 70%);
  filter: blur(72px);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}
@media (max-width: 600px) {
  .kp-dark-about .hero::before,
  .exp-hero::before {
    filter: blur(56px);
    background: radial-gradient(circle, rgba(232, 164, 58, 0.12), transparent 70%);
  }
}


/* ==========================================================================
   DEVELOPED NEGATIVE v10 (2026-07-03)
   Shared "darkroom" wow layer. Carries the homepage direction to interior
   templates (About / Experience / Advocacy / Speaking) as opt-in utilities.
   Additive only. No rule above this banner is modified. One amber safelight.
   Every animation resolves to a final resting state under reduced-motion.
   Amber tokens: #E8A43A text/UI on dark (AAA on #0A0A0F), #A85F1B on light
   islands, #D4812A graphical-accent-on-dark only. The WCAG-failing graphical
   value is never used as text here.
   ========================================================================== */

/* --- S1: activated chapter spine, opt-in for interior templates ---
   Interior pages add the markup (a .kp-film-rail with .kp-film-tick children)
   and one small IntersectionObserver to toggle .is-active per section. Same
   look as the homepage rail. Hidden < 900px, pointer-events:none, z-90 (below
   the header z-1000 and overlay menu z-100000). Consolidated 2026-07-03: the
   homepage's inline copy was removed from kp-templates/home.php; this bundle
   is the single source of truth for S1/S2. Rail markup and JS stay in the
   templates that use them. */
.kp-film-rail {
  position: fixed;
  left: clamp(10px, 2vw, 28px);
  top: 0; bottom: 0;
  width: 2px;
  z-index: 90;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent, rgba(232,164,58,0.42) 12%, rgba(232,164,58,0.42) 88%, transparent);
  opacity: 0;
  transition: opacity 0.5s var(--ease-snappy, cubic-bezier(0.16,1,0.3,1));
}
.kp-film-rail.is-lit { opacity: 1; }
.kp-film-rail__head {
  position: absolute;
  left: -1px;
  top: 0;
  width: 4px;
  height: 64px;
  border-radius: 2px;
  background: linear-gradient(to bottom, transparent, #E8A43A, transparent);
  box-shadow: 0 0 10px rgba(232,164,58,0.55);
  transform: translateY(calc(var(--rail, 0) * (100vh - 64px)));
  will-change: transform;
}
.kp-film-tick {
  position: absolute;
  left: -3px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(232,164,58,0.28);
  border: 1px solid rgba(232,164,58,0.5);
  transition: background 0.3s var(--ease-snappy, cubic-bezier(0.16,1,0.3,1));
}
.kp-film-tick.is-active {
  background: #E8A43A;
  box-shadow: 0 0 8px rgba(232,164,58,0.6);
}
.kp-film-rail__label {
  position: absolute;
  left: 14px;
  transform: translateY(-50%);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.5625rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(232,164,58,0.55);
  white-space: nowrap;
  opacity: 0;
  transition: color 0.3s ease, opacity 0.4s ease;
}
.kp-film-rail.is-lit .kp-film-rail__label { opacity: 1; }
.kp-film-tick.is-active + .kp-film-rail__label { color: #E8A43A; }
@media (max-width: 899px) { .kp-film-rail { display: none !important; } }
@media (prefers-reduced-motion: reduce) {
  .kp-film-rail { opacity: 1; transition: none; }
  .kp-film-rail__head { transition: none; }
  /* labels rest visible instead of waiting on the is-lit transition
     (moved here 2026-07-03 from the homepage inline reduced-motion block) */
  .kp-film-rail__label { opacity: 0.7 !important; }
}

/* --- S2: shared grain-to-focus develop utility ---
   Add .kp-develop to any dark section, then toggle .kp-developed when it enters
   (wire to kp-scroll-animations v6.1 IO, or a one-line IO). Gated to fine-pointer
   >=768px; coarse / small viewports render fully developed (filter cost guard). */
.kp-develop { filter: grayscale(0.55) contrast(0.92); }
@media (min-width: 768px) and (pointer: fine) {
  .kp-develop {
    transition: filter 0.9s var(--ease-snappy, cubic-bezier(0.16,1,0.3,1));
  }
  .kp-develop.kp-developed { filter: none; }
}
@media (max-width: 767px), (pointer: coarse) {
  .kp-develop { filter: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  .kp-develop { filter: none !important; }
}

/* --- S3: extend the v9 interior-hero glow to Advocacy + Speaking, and give the
   glow a one-time entrance fade (opacity only, no size animation). Homepage stays
   excluded (KP3D owns its atmosphere; homepage <body> has no class so these
   selectors cannot reach it). Live hero classes: Advocacy body .kp-dark-advocacy
   with a generic .hero; Speaking body .kp-dark-speaking with .spk-hero (verify on
   the live pull before shipping interior; homepage build does not consume S3). */
.kp-dark-advocacy .hero,
.kp-dark-speaking .spk-hero { position: relative; }
.kp-dark-advocacy .hero::before,
.kp-dark-speaking .spk-hero::before {
  content: "";
  position: absolute;
  top: -8%;
  left: 50%;
  width: min(560px, 82vw);
  height: min(560px, 82vw);
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(232, 164, 58, 0.16), transparent 70%);
  filter: blur(72px);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}
@media (prefers-reduced-motion: no-preference) {
  .kp-dark-about .hero::before,
  .exp-hero::before,
  .kp-dark-advocacy .hero::before,
  .kp-dark-speaking .spk-hero::before {
    animation: kpSafelightRise 1.1s var(--ease-snappy, cubic-bezier(0.16,1,0.3,1)) 0.15s both;
  }
  @keyframes kpSafelightRise { from { opacity: 0; } to { opacity: 1; } }
}

/* --- S4: single shared grain texture token + utility (one SVG-noise data URI,
   reused by S2/H4 so grain is never duplicated). Static (reduced-motion safe). */
:root {
  --kp-grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='120' height='120' filter='url(%23n)' opacity='0.5'/></svg>");
}
.kp-grain { position: relative; }
.kp-grain::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--kp-grain);
  background-size: 160px 160px;
  opacity: 0.03;
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: overlay;
}

/* --- S5: amber-mono audit hook. When an interior template reaches for an accent
   on a DARK surface, default to this amber opacity ladder rather than --blue /
   --coral / --purple (those stay reserved for blog/faq/media taxonomy only). This
   keeps the single-safelight look and prevents rainbow drift on new interior work.
   Ladder (dark surfaces):
     rgba(232,164,58,0.06)  faint wash
     rgba(232,164,58,0.12)  hairline / border
     rgba(232,164,58,0.28)  ghost stroke
     #E8A43A                text / UI (AAA on #0A0A0F)
   Light islands: text uses #A85F1B (--pt-amber-wcag), graphical amber #D4812A. */

/* --- S6: chapter-numeral rhythm. .kp-ed-num (already live) is the canonical
   "frame index" device for interior chapter headers, so About / Experience /
   Advocacy / Speaking number their sections consistently (01, 02, ...). No new
   class; this is a placement helper for numerals set absolute inside a section. */
.kp-chapter { position: relative; }
.kp-chapter > .kp-ed-num { position: absolute; z-index: 0; top: 0.2em; left: 3vw; }
/* ==========================================================================
   DEVELOPED NEGATIVE v10.1 interiors (2026-07-03)
   Additive only; corrects dead S3 selectors and adds interior-scoped ledger +
   working hero glows. No rule above this banner is modified. Appended AFTER the
   v10 block (S1-S6), so ordering after every existing section is safe: each
   selector here is namespaced to a v10.1 body slug (kp-dark-advocacy /
   kp-dark-speaking / kp-dark-contact) or to the advocacy-only glass stat card.
   The dead v10 S3 rules (.kp-dark-advocacy .hero already partly correct;
   .kp-dark-speaking .spk-hero matches nothing) are superseded, never edited.
   One amber safelight. Amber tokens: #E8A43A text/UI on dark (AAA on #0A0A0F),
   #A85F1B on light islands, #D4812A graphical-accent-on-dark only. reduced-motion
   rests visible. No new fonts.
   ========================================================================== */

/* --- V1: working interior hero glows (supersede dead S3) ---
   Speaking's hero is .hero (NOT .spk-hero) on a body slugged kp-dark-speaking;
   advocacy and contact heroes are .hero on kp-dark-advocacy / kp-dark-contact.
   These are the live selectors the page agents key to. Glow is z-index:-1
   decoration behind the hero content; it never touches layout or the form. */
.kp-dark-advocacy .hero,
.kp-dark-speaking .hero,
.kp-dark-contact .hero {
  position: relative;
}
.kp-dark-advocacy .hero::before,
.kp-dark-speaking .hero::before,
.kp-dark-contact .hero::before {
  content: "";
  position: absolute;
  top: -8%;
  left: 50%;
  width: min(560px, 82vw);
  height: min(560px, 82vw);
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(232, 164, 58, 0.16), transparent 70%);
  filter: blur(72px);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}
/* Reuse the v10 S3 kpSafelightRise keyframe; do not redefine it here.
   The glow rests visible under reduced-motion (no animation applied). */
@media (prefers-reduced-motion: no-preference) {
  .kp-dark-advocacy .hero::before,
  .kp-dark-speaking .hero::before,
  .kp-dark-contact .hero::before {
    animation: kpSafelightRise 1.1s var(--ease-snappy, cubic-bezier(0.16, 1, 0.3, 1)) 0.15s both;
  }
}

/* --- V2: advocacy stat cards -> editorial ledger ---
   Advocacy is the sole page with .stat-card.glass, so this selector is unique to
   it (no page slug on the advocacy body is required for the ledger; the glass
   class scopes it). Strip the glassmorphism and give each card the hairline
   amber top-rule of the homepage H6 ledger. The GSAP count-up targets
   .stat-number / data-target and is untouched. --pt-amber-bright is defined in
   the bundle (DESIGN.md); the literal is a same-value fallback. */
.stats-section .stat-card.glass {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
  border-radius: 2px !important;
  background: transparent !important;
  border: 0 !important;
  border-top: 2px solid var(--pt-amber-bright, #E8A43A) !important;
}
.stats-section .stat-card.glass::before {
  display: none !important; /* kill the glass-refraction streak */
}
/* Ledger completion (code-review MEDIUM): the template hardcodes the big
   Playfair numeral and a radial wash to coral #FF6347; both must go amber-mono
   or the ledger reads half-converted. */
.stats-section .stat-card.glass .stat-number {
  color: var(--pt-amber-bright, #E8A43A) !important;
}
.stats-section .stat-card.glass::after {
  display: none !important; /* kill the coral radial wash */
}
