/* ═══════════════════════════════════════════════════════════════
   LUXURY LAYER — personal portfolio / digital CV
   Additive only. Loaded AFTER style.css / premium-gsap.css.
   No content, CMS, routes, or form logic is changed here.
   Palette: near-black + champagne gold. The existing orange/amber
   accent is kept and shifted toward champagne where it reads
   more luxurious. Light mode keeps working.
   ═══════════════════════════════════════════════════════════════ */
:root {
  --luxury-gold: hsl(42, 72%, 58%);
  --luxury-gold-soft: hsl(42, 65%, 72%);
  --luxury-gold-line: hsla(42, 70%, 58%, 0.45);
  --luxury-gold-line-faint: hsla(42, 70%, 58%, 0.18);
  --luxury-ink: hsl(220, 30%, 3%);
  --luxury-card-glass: hsla(220, 25%, 10%, 0.55);
  --luxury-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.55);
  --luxury-shadow-sm: 0 12px 32px -16px rgba(0, 0, 0, 0.45);
}
html.light {
  --luxury-gold: hsl(40, 68%, 42%);
  --luxury-gold-soft: hsl(42, 60%, 55%);
  --luxury-gold-line: hsla(40, 65%, 42%, 0.4);
  --luxury-gold-line-faint: hsla(40, 65%, 42%, 0.16);
  --luxury-card-glass: hsla(40, 20%, 97%, 0.7);
}

/* ── Section breathing room + editorial hierarchy ── */
.section { padding-top: 7.5rem; padding-bottom: 7.5rem; }
.section-alt { border-top: 1px solid var(--luxury-gold-line-faint); border-bottom: 1px solid var(--luxury-gold-line-faint); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.75rem;
  color: var(--luxury-gold);
}
.eyebrow::before {
  content: ""; width: 2.25rem; height: 1px;
  background: linear-gradient(to right, var(--luxury-gold), transparent);
  display: inline-block;
}
 /* that row already has its own line 
.section-title, .section-title-xl, .about-h3 { letter-spacing: -0.03em; }
.section-header { margin-bottom: 3.5rem; }

/* Gold gradient eyebrow rule under section headers */
.luxury-portfolio-hdr::after { display: none; } /* guide row carries its own spacing */

/* ── Glassmorphism + soft layered shadows on cards ── */
.project-card, .skill-card, .tl-card, .edu-card, .quote-card, .bento-tile {
  background: linear-gradient(180deg, var(--luxury-card-glass), color-mix(in srgb, var(--card) 82%, transparent));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid color-mix(in srgb, var(--luxury-gold-line-faint) 65%, var(--border));
  box-shadow: var(--luxury-shadow-sm);
}
.project-card:hover, .skill-card:hover, .tl-card:hover, .edu-card:hover, .bento-tile:hover {
  border-color: color-mix(in srgb, var(--luxury-gold-line) 70%, var(--border));
  box-shadow: var(--luxury-shadow);
}

/* Project cards: hover lift + image zoom + gold border glow + spotlight.
   Spotlight position comes from --mx / --my, set by luxury.js on mousemove.
   The premium layer already draws a soft spotlight via :before; this adds
   the gold edge glow without duplicating the spotlight. */
.project-card {
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s, box-shadow 0.45s;
}
.project-card:hover { transform: translateY(-6px); }
.project-card .proj-img { transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s; }
.project-card:hover .proj-img { transform: scale(1.06); }
.project-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  pointer-events: none; z-index: 3; opacity: 0; transition: opacity 0.4s;
  box-shadow: inset 0 0 0 1px var(--luxury-gold-line);
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), hsla(42, 75%, 60%, 0.14), transparent 62%);
}
.project-card:hover::after { opacity: 1; }

/* ── Refined buttons: shine + border glow ── */
.btn-primary {
  background: linear-gradient(135deg, var(--primary), hsl(38, 95%, 52%));
  border: 1px solid hsla(42, 80%, 65%, 0.55);
  box-shadow: 0 12px 32px -12px hsla(28, 95%, 55%, 0.65), inset 0 1px 0 hsla(0, 0%, 100%, 0.25);
}
.btn-primary:hover {
  box-shadow: 0 18px 44px -12px hsla(28, 95%, 55%, 0.75), 0 0 0 1px var(--luxury-gold-line), inset 0 1px 0 hsla(0, 0%, 100%, 0.3);
}
.btn-ghost:hover {
  border-color: var(--luxury-gold-line);
  box-shadow: 0 0 0 1px var(--luxury-gold-line-faint), 0 10px 28px -16px rgba(0, 0, 0, 0.5);
}

/* ── Hero: gold frame + glow behind the real photo, refined stats/badge ── */
.hero-photo-col { position: relative; }
.hero-photo-col::before {
  content: ""; position: absolute; inset: 1.25rem 1.25rem 1.25rem 2.5rem;
  border: 1px solid var(--luxury-gold-line);
  border-radius: 4px; pointer-events: none; z-index: 2;
}
.hero-photo { filter: saturate(1.04) contrast(1.03); }
.hero-left .status-badge {
  border-color: var(--luxury-gold-line);
  background: hsla(42, 70%, 58%, 0.08);
  color: var(--luxury-gold-soft);
  box-shadow: inset 0 1px 0 hsla(0, 0%, 100%, 0.06);
}
.stat-sep { background: linear-gradient(to bottom, transparent, var(--luxury-gold-line), transparent); }
.hero-rule .rule-amber { background: linear-gradient(to right, var(--luxury-gold), var(--primary)); }
.hero-accent-line { background: linear-gradient(to bottom, transparent, var(--luxury-gold-line), transparent); }
.float-badge { border-color: color-mix(in srgb, var(--luxury-gold-line-faint) 70%, var(--border)); box-shadow: var(--luxury-shadow-sm); }

/* ── Marquee + footer refinement ── */
.marquee-strip {
  border-top: 1px solid var(--luxury-gold-line-faint);
  border-bottom: 1px solid var(--luxury-gold-line-faint);
  background: linear-gradient(180deg, hsla(42, 70%, 58%, 0.05), transparent);
}
.marquee-track { animation-duration: 38s; animation-timing-function: linear; }
.mq-dot { background: var(--luxury-gold); box-shadow: 0 0 10px hsla(42, 75%, 60%, 0.7); }
.footer { border-top: 1px solid var(--luxury-gold-line-faint); }

/* ── Custom cursor: subtler. Label removed entirely (it overlapped buttons).
   The premium layer still moves the dot/ring; this only resizes + hides label. ── */
.mm-cursor { width: 6px; height: 6px; }
.mm-cursor-ring { width: 36px; height: 36px; }
.mm-cursor-label { display: none !important; }

/* ── 3D character guides — desktop only, decorative, never interactive ── */
.luxury-guide { display: none; margin: 0; pointer-events: none; position: relative; z-index: 5; }
.luxury-guide img {
  display: block; width: 100%; height: auto;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.45));
}
.luxury-guide figcaption {
  text-align: center; font: 600 10px var(--font-mono, ui-monospace, monospace);
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted-fg); margin-top: 0.25rem;
}
.luxury-speech {
  display: block; max-width: 13rem; margin: 0 auto 0.35rem;
  padding: 0.55rem 0.8rem; text-align: center;
  font-size: 0.78rem; font-weight: 600; line-height: 1.35; color: var(--fg);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border: 1px solid var(--luxury-gold-line-faint); border-radius: 1rem;
  box-shadow: var(--luxury-shadow-sm);
  position: relative;
}
.luxury-speech::after {
  content: ""; position: absolute; left: 50%; bottom: -5px;
  width: 9px; height: 9px; transform: translateX(-50%) rotate(45deg);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-right: 1px solid var(--luxury-gold-line-faint);
  border-bottom: 1px solid var(--luxury-gold-line-faint);
}

/* Hero guide: bottom-left empty padding zone of the hero, clear of the
   photo (right 44%) and of the CTAs / scroll indicator (centred). */
@media (min-width: 1280px) {
  .hero-left { padding-bottom: 7.5rem; }
  .luxury-guide-hero {
    display: block; position: absolute;
    left: 6rem; bottom: 0.25rem; width: 158px;
    z-index: 4; /* below hero-left text (z-10) so it can never cover copy */
  }
  .luxury-guide-hero img { max-height: 210px; object-fit: contain; object-position: bottom; }
}

/* About guide: beside the quote card, in normal flow. */
@media (min-width: 1024px) {
  .luxury-about-row { display: flex; align-items: flex-end; gap: 1.5rem; }
  .luxury-about-row .quote-card { flex: 1 1 auto; min-width: 0; }
  .luxury-guide-about { display: block; flex: 0 0 200px; width:200px; }
  .luxury-guide-about img { max-height: 200px; object-fit: contain; }
}

/* Work guide: in the portfolio header row, beside the heading text. */
@media (min-width: 1024px) {
  .luxury-portfolio-hdr { display: flex; align-items: flex-end; gap: 2rem; flex-wrap: wrap; }
  .luxury-portfolio-hdr > div, .luxury-portfolio-hdr > .portfolio-sub { flex: 1 1 280px; min-width: 0; }
  .luxury-guide-work { display: block; flex: 0 0 168px; width: 168px; margin-left: auto; }
  .luxury-guide-work img { max-height: 188px; object-fit: contain; }
}

/* Contact guide: beside the contact heading, in normal flow. */
@media (min-width: 1024px) {
  .luxury-contact-head-row { display: flex; align-items: flex-end; gap: 1.5rem; }
  .luxury-contact-head-row .contact-heading { flex: 1 1 auto; min-width: 0; }
  .luxury-guide-contact { display: block; flex: 0 0 150px; width: 380px; padding-top:10%; }
  .luxury-guide-contact img { max-height: 500px; object-fit: contain; }
}

/* Never show guides on touch / coarse pointers / small screens. */
@media (hover: none), (pointer: coarse), (max-width: 1023px) {
  .luxury-guide { display: none !important; }
}

/* ── Reduced motion: no luxury animation, no cursor, no guides ── */
@media (prefers-reduced-motion: reduce) {
  .luxury-guide, .mm-cursor, .mm-cursor-ring, .mm-cursor-label { display: none !important; }
  .marquee-track { animation: none !important; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/*testimonials*/

      :root {
        color-scheme: light dark;
        --page-bg: #101013;
        --page-ink: #eceae4;
        --page-dim: #8f8f96;
        --bar-bg: rgba(16, 16, 19, .92);
        --bar-line: rgba(255, 255, 255, .10);
        --chip-bg: rgba(255, 255, 255, .06);
        --chip-line: rgba(255, 255, 255, .16);
        --gold: #d4af37;
        --gold-dim: rgba(212, 175, 55, .5);
        --ctx-ink: #55555c;
      }
      @media (prefers-color-scheme: light) {
        :root {
          --page-bg: #e9e7e1;
          --page-ink: #1c1c1f;
          --page-dim: #6d6d72;
          --bar-bg: rgba(244, 242, 238, .94);
          --bar-line: rgba(0, 0, 0, .10);
          --chip-bg: rgba(0, 0, 0, .05);
          --chip-line: rgba(0, 0, 0, .16);
          --ctx-ink: #a3a099;
        }
      }

      /* ================================================================
         THE SECTION — exactly as it will ship (dark luxury palette)
         ================================================================ */
      .client-highlights {
        --ink: #f0ede6;
        --dim: #9a9a9a;
        --fan-shift: 72px; /* how far each side card tucks behind the centre card */
        padding: 7rem 0;
        background: #08080a;
        color: var(--ink);
        border-top: 1px solid rgba(212,175,55,.22);
        border-bottom: 1px solid rgba(212,175,55,.22);
        overflow: hidden;
      }
      .ch-inner { max-width: 1180px; margin: 0 auto; padding: 0 2rem; }
      .stage.phone .ch-inner { padding: 0 1.4rem; }
      .stage.phone .client-highlights { padding: 4rem 0; --fan-shift: 46px; }

      .ch-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 2rem; }
      .section-eyebrow {
        display: inline-flex; align-items: center; gap: .7rem;
        font-size: .78rem; font-weight: 700; letter-spacing: .32em; text-transform: uppercase; color: var(--gold);
      }
      .section-eyebrow::before { content: ""; width: 2.2rem; height: 1px; background: var(--gold); }
      .ch-inner h2 {
        font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1.05; letter-spacing: -0.02em;
        margin: .6rem 0 0; font-weight: 800;
      }
      .stage.phone .ch-inner h2 { font-size: 2.2rem; }

      .ch-controls { display: flex; align-items: center; gap: .7rem; flex-shrink: 0; }
      .ch-count { color: var(--dim); font-size: .95rem; margin-right: .4rem; font-variant-numeric: tabular-nums; }
      .ch-count b { color: var(--gold); font-weight: 700; }
      .ch-controls button {
        width: 48px; height: 48px; border-radius: 50%; cursor: pointer;
        background: transparent; color: var(--gold);
        border: 1px solid var(--gold-dim); font-size: 1.2rem; line-height: 1;
        transition: background .25s, color .25s, transform .15s;
      }
      .ch-controls button:hover { background: var(--gold); color: #000; }
      .ch-controls button:active { transform: scale(.94); }
      .ch-controls button:focus-visible, .ch-dots button:focus-visible, .tb-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

      /* ---------- Coverflow: 3 cards visible, centre in sharp focus ---------- */
      .ch-viewport { overflow: hidden; padding: 1.6rem 0 1.3rem; }
      .ch-track {
        display: flex; gap: 1.6rem; align-items: stretch;
        transition: transform .6s cubic-bezier(.22,.8,.3,1);
        will-change: transform;
      }
      .ch-slide {
        flex: 0 0 min(470px, 76%);
        display: flex; flex-direction: column;
        background: linear-gradient(165deg, #151518, #0d0d10);
        border: 1px solid rgba(212,175,55,.20);
        border-radius: 20px;
        padding: 2rem 2.1rem 1.8rem;
        opacity: .22; filter: blur(3px); transform: scale(.82);
        transition: opacity .55s ease, filter .55s ease, transform .55s cubic-bezier(.22,.8,.3,1),
          border-color .55s ease, box-shadow .55s ease;
      }
      .ch-slide.is-side { opacity: .7; filter: blur(2px); transform: scale(.9); cursor: pointer; position: relative; z-index: 1; }
      /* Fanned deck: side cards slide in behind the centre card and tilt slightly */
      .ch-slide.is-side.is-left { transform: translateX(var(--fan-shift)) rotate(-3deg) scale(.9); }
      .ch-slide.is-side.is-right { transform: translateX(calc(-1 * var(--fan-shift))) rotate(3deg) scale(.9); }
      .ch-slide.is-active {
        position: relative; z-index: 2;
        opacity: 1; filter: none; transform: scale(1.05);
        border-color: rgba(212,175,55,.65);
        box-shadow: 0 30px 60px rgba(0,0,0,.55), 0 0 0 1px rgba(212,175,55,.12), 0 18px 45px rgba(212,175,55,.07);
      }
      .ch-slide.is-far { pointer-events: none; }
      .ch-quote-chip {
        width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
        display: flex; align-items: center; justify-content: center;
        background: rgba(212,175,55,.12);
        border: 1px solid var(--gold-dim);
        color: var(--gold); font-size: 1.45rem; line-height: 1; font-weight: 800;
        padding-top: .55rem;
        margin-bottom: 1.25rem;
      }
      .ch-slide blockquote {
        font-size: 1.16rem;
        line-height: 1.6; margin: 0 0 1.6rem; font-weight: 500; color: var(--ink);
        flex: 1;
      }
      .ch-divider {
        height: 1px; margin-bottom: 1.3rem;
        background: linear-gradient(90deg, rgba(212,175,55,.45), rgba(212,175,55,.06));
      }
      .stage.phone .ch-track { gap: 1rem; }
      .stage.phone .ch-slide { flex-basis: 88%; padding: 1.6rem 1.4rem 1.4rem; }
      .stage.phone .ch-slide blockquote { font-size: 1.08rem; }

      .ch-meta { display: flex; align-items: center; gap: 1rem; }
      .ch-avatar {
        width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0;
        display: flex; align-items: center; justify-content: center;
        font-weight: 800; font-size: 1.05rem; color: var(--gold);
        background: rgba(212,175,55,.10);
        border: 1px solid var(--gold-dim);
      }
      .ch-meta strong { display: block; font-size: 1.05rem; }
      .ch-meta span { color: var(--dim); font-size: .92rem; }
      .ch-rating { margin-left: auto; display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }
      .ch-rating span { font-weight: 700; font-size: 1.1rem; }
      .ch-rating em { color: var(--gold); font-style: normal; font-size: 1.2rem; }

      .ch-dots { display: flex; gap: .6rem; justify-content: center; margin-top: 2.2rem; }
      .ch-dots button {
        width: 8px; height: 8px; border-radius: 50%; border: none; padding: 0; cursor: pointer;
        background: rgba(255,255,255,.25); transition: .25s;
      }
      .ch-dots button.active { background: var(--gold); transform: scale(1.4); }
      .ch-hint { text-align: center; color: #666; font-size: .85rem; margin: 1rem 0 0; }

      /* Instant repositioning after a wrap-around jump */
      .client-highlights.no-anim .ch-track, .client-highlights.no-anim .ch-slide { transition: none !important; }

      /* Toggles driven from the preview toolbar */
      .client-highlights.no-dots .ch-dots, .client-highlights.no-dots .ch-hint { display: none; }
      .client-highlights.no-rating .ch-rating { display: none; }

      @media (max-width: 640px) {
        .client-highlights { --fan-shift: 46px; }
        .ch-slide { flex-basis: 86%; padding: 1.7rem 1.5rem 1.5rem; }
        .ch-track { gap: 1rem; }
        .ch-slide blockquote { font-size: 1.08rem; }
      }
      @media (max-width: 560px) {
        .ch-head { flex-direction: column; align-items: flex-start; margin-bottom: 1.4rem; }
        .ch-controls { align-self: flex-start; margin-top: 1rem; }
        .ch-rating span { font-size: 1rem; }
        .client-highlights { padding: 4.5rem 0; }
      }
      @media (prefers-reduced-motion: reduce) {
        .ch-track { transition: none; }
        .ch-slide { transition: none; }
        .stage { transition: none; }
      }