/* ================================================================
   HARIHARAN R — PORTFOLIO  |  styles.css
   All styles: reset, design tokens, layout, components,
   cinematic intro, admin panel, responsive media queries
================================================================ */

#protect-toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(30px);
    background: linear-gradient(135deg, #1a1206, #2a1f08);
    border: 1px solid rgba(232,197,71,0.45);
    color: #e8c547;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    padding: 0.75rem 1.6rem;
    border-radius: 4px;
    z-index: 999999;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.6), 0 0 0 1px rgba(232,197,71,0.1);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
  }
  #protect-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  #protect-toast .toast-icon {
    font-size: 1rem;
    flex-shrink: 0;
  }

/* ─────────────── Block 2 (intro + scroll + misc) ─────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  :root {
    --black: #080808;
    --dark:  #0f0f0f;
    --dark2: #161616;
    --dark3: #1e1e1e;
    --border: rgba(255,255,255,0.07);
    --text:   #f5f0e8;
    --muted:  #7a7570;
    --accent: #e8c547;   /* film gold */
    --accent2: #c0392b;  /* cinematic red */
    --accent3: #3498db;  /* grade blue */
    --font-display: 'Playfair Display', serif;
    --font-body: 'Space Grotesk', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
  }

  html { scroll-behavior: smooth; }
  body { background: var(--black); color: var(--text); font-family: var(--font-body); overflow-x: hidden; cursor: none; }

  /* ── CONNECT WITH US ── */
  .connect-section {
    display: flex; flex-direction: column; align-items: center; gap: 1.4rem;
    padding: 3.5rem 2rem 2.5rem;
    background: var(--dark2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }
  .connect-label {
    font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.22em;
    text-transform: uppercase; color: var(--accent);
    display: flex; align-items: center; gap: 1rem;
  }
  .connect-label::before, .connect-label::after {
    content: ''; display: block; width: 48px; height: 1px;
    background: var(--accent); opacity: 0.4;
  }
  .connect-icons {
    display: flex; gap: 1.4rem; flex-wrap: wrap; justify-content: center;
  }
  .connect-btn {
    display: inline-flex; align-items: center; gap: 0.75rem;
    padding: 0.75rem 1.8rem; border-radius: 3px; font-family: var(--font-mono);
    font-size: 0.82rem; font-weight: 500; letter-spacing: 0.08em;
    text-decoration: none; border: 1px solid; transition: all 0.25s ease;
    cursor: pointer;
  }
  .connect-insta {
    background: rgba(225,48,108,0.08);
    color: #e1306c;
    border-color: rgba(225,48,108,0.35);
  }
  .connect-insta:hover {
    background: rgba(225,48,108,0.18);
    border-color: rgba(225,48,108,0.75);
    transform: translateY(-3px);
    box-shadow: 0 6px 24px rgba(225,48,108,0.25);
  }
  .connect-whatsapp {
    background: rgba(37,211,102,0.08);
    color: #25d366;
    border-color: rgba(37,211,102,0.35);
  }
  .connect-whatsapp:hover {
    background: rgba(37,211,102,0.18);
    border-color: rgba(37,211,102,0.75);
    transform: translateY(-3px);
    box-shadow: 0 6px 24px rgba(37,211,102,0.25);
  }
  .connect-gmail {
    background: rgba(234,67,53,0.08);
    color: #EA4335;
    border-color: rgba(234,67,53,0.35);
  }
  .connect-gmail:hover {
    background: rgba(234,67,53,0.15);
    border-color: rgba(234,67,53,0.75);
    transform: translateY(-3px);
    box-shadow: 0 6px 24px rgba(234,67,53,0.22);
  }

  /* ── CUSTOM CURSOR ── */
  .cursor { position: fixed; pointer-events: none; z-index: 9999; mix-blend-mode: difference; }
  .cursor-dot { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; transform: translate(-50%,-50%); transition: transform 0.1s; }
  .cursor-ring { width: 36px; height: 36px; border: 1px solid var(--accent); border-radius: 50%; transform: translate(-50%,-50%); transition: transform 0.15s, width 0.2s, height 0.2s; }
  .cursor-ring.expand { width: 56px; height: 56px; }

  /* ── TOP PROGRESS BAR ── */
  #top-progress-bar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 99999;
    height: 3px;
    background: rgba(232,197,71,0.12);
    pointer-events: none;
    opacity: 0; transition: opacity 0.5s ease;
  }
  #top-progress-bar.visible { opacity: 1; }
  #top-progress-fill {
    height: 100%; width: 0%;
    background: linear-gradient(90deg, #e8c547 0%, #f5d76e 60%, #fff9d0 100%);
    box-shadow: 0 0 10px rgba(232,197,71,0.8), 0 0 4px #fff;
    border-radius: 0 2px 2px 0;
    transition: width 0.2s ease;
  }

  /* ── SITE HEADER (big logo + title on top) ── */
  #site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 102;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.6rem 3rem;
    background: rgba(8,8,8,0.97); backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(232,197,71,0.2);
    min-height: 90px;
  }
  #site-header-brand {
    display: flex; align-items: center; gap: 1rem;
  }
  #site-header-logo-img {
    height: 72px; width: auto; object-fit: contain;
  }
  #site-header-title {
    display: flex; flex-direction: column; gap: 0.1rem;
  }
  #site-header-title .brand-main {
    font-family: var(--font-display); font-size: 1.9rem; font-weight: 900;
    color: var(--accent); letter-spacing: 0.05em; line-height: 1;
    text-transform: uppercase;
  }
  #site-header-title .brand-sub {
    font-family: var(--font-mono); font-size: 0.65rem; font-weight: 400;
    color: var(--muted); letter-spacing: 0.2em; text-transform: uppercase;
  }
  #freelance-bar {
    display: flex; align-items: center; gap: 0.5rem;
    font-family: var(--font-mono); font-size: 0.55rem;
    color: var(--accent); letter-spacing: 0.12em; text-transform: uppercase;
    background: rgba(232,197,71,0.08); border: 1px solid rgba(232,197,71,0.25);
    padding: 0.35rem 0.85rem; border-radius: 2px;
  }

  /* ── HEADER SOCIAL ICONS ── */
  #header-right {
    display: flex; align-items: center; gap: 1.2rem;
  }
  #header-social {
    display: flex; align-items: center; gap: 0.55rem;
    padding-right: 1.2rem;
    border-right: 1px solid rgba(255,255,255,0.1);
  }
  #header-connect-label {
    font-family: var(--font-mono); font-size: 0.62rem;
    letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--muted); white-space: nowrap;
    padding-right: 0.3rem;
  }
  .hsocial-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    flex-shrink: 0;
  }
  .hsocial-btn:hover { transform: translateY(-3px); }
  .hsocial-btn.hs-insta:hover {
    background: rgba(225,48,108,0.15);
    border-color: rgba(225,48,108,0.5);
    box-shadow: 0 6px 20px rgba(225,48,108,0.25);
  }
  .hsocial-btn.hs-whatsapp:hover {
    background: rgba(37,211,102,0.15);
    border-color: rgba(37,211,102,0.5);
    box-shadow: 0 6px 20px rgba(37,211,102,0.25);
  }
  .hsocial-btn.hs-gmail:hover {
    background: rgba(234,67,53,0.15);
    border-color: rgba(234,67,53,0.5);
    box-shadow: 0 6px 20px rgba(234,67,53,0.25);
  }
  #freelance-bar .fbar-dot {
    width: 6px; height: 6px; background: var(--accent); border-radius: 50%;
    animation: pulse 2s infinite; flex-shrink: 0;
  }

  /* ── NAV (sits below the site header) ── */
  nav {
    position: fixed; top: 90px; left: 0; right: 0; z-index: 100;
    display: flex; justify-content: center; align-items: center; gap: 0.5rem;
    padding: 0rem 3rem;
    background: rgba(12,12,12,0.95); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
  }
  .nav-links { display: flex; gap: 0; list-style: none; }
  .nav-links a { color: var(--muted); text-decoration: none; font-size: 0.78rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; transition: color 0.2s, background 0.2s; padding: 0.85rem 1.3rem; display: block; }
  .nav-links a:hover { color: var(--accent); background: rgba(232,197,71,0.05); }
  .nav-cta {
    position: relative; overflow: hidden;
    background: linear-gradient(135deg, #e8c547 0%, #f0a500 100%);
    color: #080808; border: none;
    padding: 0.55rem 1.6rem; border-radius: 20px;
    font-family: var(--font-mono); font-weight: 700;
    font-size: 0.78rem; cursor: pointer; letter-spacing: 0.1em;
    text-transform: uppercase;
    box-shadow: 0 0 16px rgba(232,197,71,0.45), 0 2px 8px rgba(0,0,0,0.4);
    transition: all 0.25s ease;
    display: flex; align-items: center; gap: 0.45rem;
    white-space: nowrap;
  }
  .nav-cta::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.25) 0%, transparent 60%);
    border-radius: inherit; pointer-events: none;
  }
  .nav-cta:hover {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 0 28px rgba(232,197,71,0.7), 0 4px 16px rgba(0,0,0,0.5);
    background: linear-gradient(135deg, #f5d76e 0%, #e8a800 100%);
  }
  .nav-cta:active { transform: translateY(0) scale(0.98); }

  /* ── HERO ── */
  .hero {
    min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr;
    align-items: center; padding: 0; position: relative; overflow: hidden;
  }
  .hero-left {
    padding: 11rem 4rem 4rem 4rem; position: relative; z-index: 2;
  }
  .hero-right {
    height: 100vh; position: relative; overflow: hidden;
    background: var(--dark2);
  }
  .film-strip {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; gap: 0;
    overflow: hidden;
  }
  .film-row {
    display: flex; gap: 3px; flex: 1;
    animation: filmScroll 20s linear infinite;
  }
  .film-row:nth-child(even) { animation-direction: reverse; animation-duration: 25s; }
  @keyframes filmScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-33.33%); }
  }
  .film-frame {
    flex-shrink: 0; aspect-ratio: 16/10;
    width: 220px; border-radius: 2px; overflow: hidden;
    position: relative;
  }
  .film-frame-inner {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; font-family: var(--font-mono);
    color: rgba(255,255,255,0.12); font-weight: 300;
  }
  .f1 { background: linear-gradient(135deg, #1a1206, #3d2b0c); }
  .f2 { background: linear-gradient(135deg, #0c1a0c, #1a3d1a); }
  .f3 { background: linear-gradient(135deg, #0c0c1a, #1a1a3d); }
  .f4 { background: linear-gradient(135deg, #1a0c0c, #3d1a1a); }
  .f5 { background: linear-gradient(135deg, #1a1a0c, #3d3d0c); }
  .f6 { background: linear-gradient(135deg, #0c1a1a, #0c3d3d); }
  .hero-right::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to right, var(--black) 0%, transparent 30%, transparent 70%, var(--black) 100%);
    pointer-events: none; z-index: 1;
  }
  .hero-right::before {
    content: ''; position: absolute; inset: 0;
    background: rgba(8,8,8,0.45); z-index: 1;
  }

  .hero-badge { display: none; }
  .badge-dot { display: none; }
  @keyframes pulse { 0%,100%{opacity:1;} 50%{opacity:0.3;} }

  .hero h1 {
    font-family: var(--font-display); font-size: clamp(3rem,5.5vw,5.5rem);
    font-weight: 900; line-height: 1.0; letter-spacing: -0.02em; margin-bottom: 2rem;
  }
  .hero h1 em { font-style: italic; color: var(--accent); }
  .hero h1 .line { display: block; }

  .hero p { font-size: 1rem; line-height: 1.75; color: var(--muted); max-width: 440px; margin-bottom: 2.5rem; font-weight: 300; }
  .hero-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 3rem; }
  .tag {
    padding: 0.3rem 0.85rem; font-family: var(--font-mono); font-size: 0.72rem;
    letter-spacing: 0.06em; border-radius: 2px;
  }
  .tag-gold { background: rgba(232,197,71,0.1); color: var(--accent); border: 1px solid rgba(232,197,71,0.25); }
  .tag-red  { background: rgba(192,57,43,0.1);  color: #e74c3c;     border: 1px solid rgba(192,57,43,0.25); }
  .tag-blue { background: rgba(52,152,219,0.1); color: var(--accent3); border: 1px solid rgba(52,152,219,0.25); }
  .tag-white{ background: rgba(255,255,255,0.05); color: var(--muted); border: 1px solid var(--border); }

  .hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }
  .btn-primary {
    background: var(--accent); color: var(--black); border: none;
    padding: 0.9rem 2.2rem; border-radius: 2px; font-family: var(--font-body);
    font-size: 0.88rem; font-weight: 600; cursor: pointer; transition: all 0.2s;
    text-decoration: none; display: inline-block; letter-spacing: 0.04em;
  }
  .btn-primary:hover { background: #f0d060; transform: translateY(-2px); }
  .btn-secondary {
    background: transparent; color: var(--text); border: 1px solid var(--border);
    padding: 0.9rem 2.2rem; border-radius: 2px; font-family: var(--font-body);
    font-size: 0.88rem; cursor: pointer; transition: all 0.2s;
    text-decoration: none; display: inline-block;
  }
  .btn-secondary:hover { border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.04); }

  .hero-stats {
    display: flex; gap: 3rem; margin-top: 4rem; padding-top: 3rem;
    border-top: 1px solid var(--border);
  }
  .stat-num {
    font-family: var(--font-display); font-size: 2.4rem; font-weight: 700;
    color: var(--accent);
  }
  .stat-label { font-size: 0.75rem; color: var(--muted); margin-top: 0.2rem; text-transform: uppercase; letter-spacing: 0.08em; font-family: var(--font-mono); }

  /* ── SECTIONS ── */
  section { padding: 7rem 4rem; max-width: 1300px; margin: 0 auto; }
  .section-eyebrow {
    font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase;
    letter-spacing: 0.14em; color: var(--accent); margin-bottom: 1rem;
    display: flex; align-items: center; gap: 0.8rem;
  }
  .section-eyebrow::after { content:''; flex: 0 0 40px; height: 1px; background: var(--accent); opacity: 0.4; }
  .section-title {
    font-family: var(--font-display); font-size: clamp(2.2rem,4vw,3.2rem);
    font-weight: 900; letter-spacing: -0.03em; margin-bottom: 1rem; line-height: 1.1;
  }
  .section-sub { color: var(--muted); font-size: 1rem; max-width: 520px; line-height: 1.75; margin-bottom: 4rem; font-weight: 300; }

  /* ── ABOUT ── */
  .about-grid { display: grid; grid-template-columns: 380px 1fr; gap: 5rem; align-items: center; }
  .about-visual {
    position: relative; aspect-ratio: 3/4; border-radius: 4px; overflow: hidden;
    background: linear-gradient(135deg, #1a1206 0%, #2a1f08 40%, #1a1206 100%);
    display: flex; align-items: center; justify-content: center;
  }
  .about-visual-inner {
    font-size: 8rem; position: relative; z-index: 2;
  }
  .about-visual::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(8,8,8,0.7));
  }
  .about-visual-label {
    position: absolute; bottom: 1.5rem; left: 1.5rem; right: 1.5rem;
    z-index: 3; font-family: var(--font-mono); font-size: 0.72rem;
    letter-spacing: 0.1em; color: var(--muted); text-transform: uppercase;
  }
  .about-text h2 { font-family: var(--font-display); font-size: 2rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 1.5rem; }
  .about-text p { color: var(--muted); line-height: 1.85; margin-bottom: 1.2rem; font-weight: 300; font-size: 0.97rem; }
  .about-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2.5rem; }
  .pill {
    background: var(--dark3); border: 1px solid var(--border);
    padding: 0.35rem 0.9rem; border-radius: 2px; font-size: 0.75rem;
    color: var(--muted); font-family: var(--font-mono); letter-spacing: 0.04em;
  }

  /* ── SKILLS ── */
  .skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); }
  .skill-card {
    background: var(--dark); padding: 2.5rem 2rem; transition: background 0.3s;
    position: relative; overflow: hidden;
  }
  .skill-card:hover { background: var(--dark2); }
  .skill-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    opacity: 0; transition: opacity 0.3s;
  }
  .skill-card:hover::before { opacity: 1; }
  .skill-card.s1::before { background: var(--accent); }
  .skill-card.s2::before { background: var(--accent2); }
  .skill-card.s3::before { background: var(--accent3); }
  .skill-card.s4::before { background: #9b59b6; }
  .skill-num { font-family: var(--font-mono); font-size: 0.7rem; color: var(--muted); letter-spacing: 0.1em; margin-bottom: 1.5rem; }
  .skill-icon { font-size: 2rem; margin-bottom: 1rem; }
  .skill-title { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; margin-bottom: 0.7rem; }
  .skill-desc { font-size: 0.85rem; color: var(--muted); line-height: 1.7; margin-bottom: 1.5rem; font-weight: 300; }
  .skill-items { display: flex; flex-wrap: wrap; gap: 0.4rem; }
  .skill-item { font-size: 0.72rem; padding: 0.2rem 0.65rem; border-radius: 2px; background: rgba(255,255,255,0.04); color: var(--muted); border: 1px solid var(--border); font-family: var(--font-mono); }

  /* ── PROJECTS ── */
  .projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 1.5rem; }
  .project-card {
    background: var(--dark2); border: 1px solid var(--border);
    border-radius: 4px; overflow: hidden; transition: transform 0.3s, border-color 0.3s;
    position: relative;
  }
  .project-card:hover { transform: translateY(-6px); border-color: rgba(232,197,71,0.2); }
  .project-thumb {
    height: 200px; display: flex; align-items: center; justify-content: center;
    font-size: 4rem; position: relative; overflow: hidden;
  }
  .project-thumb.t1 { background: linear-gradient(135deg, #1a1206, #3d2b0c); }
  .project-thumb.t2 { background: linear-gradient(135deg, #12060c, #3d0c20); }
  .project-thumb.t3 { background: linear-gradient(135deg, #060c1a, #0c203d); }
  .project-thumb.t4 { background: linear-gradient(135deg, #0c1a06, #203d0c); }
  .project-thumb-label {
    position: absolute; bottom: 0.8rem; left: 0.8rem;
    font-family: var(--font-mono); font-size: 0.65rem; color: rgba(255,255,255,0.3); letter-spacing: 0.1em;
  }
  .project-body { padding: 1.8rem; }
  .project-cat { font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); margin-bottom: 0.6rem; }
  .project-title { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; margin-bottom: 0.6rem; }
  .project-desc { font-size: 0.84rem; color: var(--muted); line-height: 1.65; margin-bottom: 1.2rem; font-weight: 300; }
  .project-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
  .project-tag { font-family: var(--font-mono); font-size: 0.68rem; padding: 0.2rem 0.6rem; border-radius: 2px; background: rgba(255,255,255,0.04); color: var(--muted); border: 1px solid var(--border); }


  /* ── VIDEOS SECTION ── */
  .videos-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.5rem; }
  .video-card {
    background: var(--dark2); border: 1px solid var(--border);
    border-radius: 4px; overflow: hidden; cursor: pointer;
    transition: transform 0.3s, border-color 0.3s; position: relative;
  }
  .video-card:hover { transform: translateY(-6px); border-color: rgba(232,197,71,0.3); }
  .video-thumb {
    position: relative; aspect-ratio: 16/9; background: var(--dark3);
    display: flex; align-items: center; justify-content: center; overflow: hidden;
  }
  .video-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .video-thumb-placeholder {
    width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
    font-size: 3rem; background: linear-gradient(135deg, #1a1206, #2a1f08);
  }
  .video-play-btn {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,0.4); transition: background 0.2s;
  }
  .video-card:hover .video-play-btn { background: rgba(0,0,0,0.2); }
  .video-play-icon {
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--accent); display: flex; align-items: center; justify-content: center;
    transition: transform 0.2s; box-shadow: 0 4px 20px rgba(232,197,71,0.4);
  }
  .video-card:hover .video-play-icon { transform: scale(1.12); }
  .video-play-icon svg { width: 22px; height: 22px; fill: var(--black); margin-left: 3px; }
  .video-info { padding: 1.4rem; }
  .video-cat { font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); margin-bottom: 0.4rem; }
  .video-title { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; margin-bottom: 0.4rem; }
  .video-desc { font-size: 0.82rem; color: var(--muted); line-height: 1.6; margin-bottom: 0.8rem; font-weight: 300; }
  .video-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
  .video-tag { font-family: var(--font-mono); font-size: 0.68rem; padding: 0.2rem 0.6rem; border-radius: 2px; background: rgba(255,255,255,0.04); color: var(--muted); border: 1px solid var(--border); }

  /* ── VIDEO LIGHTBOX ── */
  .video-lightbox {
    display: none; position: fixed; inset: 0; z-index: 5000;
    background: rgba(0,0,0,0.95); align-items: center; justify-content: center;
    padding: 2rem;
  }
  .video-lightbox.open { display: flex; }
  .video-lightbox-inner {
    position: relative; width: 100%; max-width: 960px;
  }
  .video-lightbox-close {
    position: absolute; top: -2.8rem; right: 0;
    background: rgba(255,255,255,0.08); border: 1px solid var(--border);
    color: var(--text); font-size: 1rem; width: 2.2rem; height: 2.2rem;
    border-radius: 50%; cursor: pointer; display: flex; align-items: center;
    justify-content: center; line-height: 1; transition: background 0.2s, color 0.2s;
  }
  .video-lightbox-close:hover { background: var(--accent); color: var(--black); border-color: var(--accent); }
  /* Before / After tab bar — always visible ABOVE the video */
  .lb-tab-bar {
    display: none; gap: 0; border-radius: 4px 4px 0 0; overflow: hidden;
    border: 1px solid var(--border); border-bottom: none;
  }
  .lb-tab-bar.visible { display: flex; }
  .lb-tab-btn {
    flex: 1; padding: 0.7rem 1rem; border: none; cursor: pointer;
    font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.08em;
    font-weight: 600; transition: background 0.2s, color 0.2s;
  }
  .lb-tab-btn.active { background: var(--accent); color: var(--black); }
  .lb-tab-btn.inactive { background: var(--dark3); color: var(--muted); }
  .lb-tab-btn.inactive:hover { background: var(--dark2); color: var(--text); }
  .video-lightbox-frame {
    position: relative; width: 100%; aspect-ratio: 16/9;
    background: #000; border-radius: 0 0 4px 4px; overflow: hidden;
    border: 1px solid var(--border); cursor: pointer;
    contain: layout;
  }
  /* When no tab bar, round all corners */
  .video-lightbox-frame:first-child {
    border-radius: 4px;
  }
  .video-lightbox-frame iframe,
  .video-lightbox-frame video {
    width: 100%; height: 100%; border: none; display: block;
  }
  .video-lightbox-title {
    margin-top: 1rem; font-family: var(--font-display); font-size: 1.1rem;
    font-weight: 700; color: var(--text); text-align: center;
  }


  /* ── VIDEO UPLOAD AREA ── */
  .vid-upload-area {
    border: 2px dashed rgba(232,197,71,0.3); border-radius: 4px;
    padding: 1.2rem 1rem; text-align: center; cursor: pointer;
    color: var(--muted); font-family: var(--font-mono); font-size: 0.78rem;
    letter-spacing: 0.04em; transition: border-color 0.2s, background 0.2s;
    background: rgba(232,197,71,0.02);
  }
  .vid-upload-area:hover { border-color: rgba(232,197,71,0.6); background: rgba(232,197,71,0.05); }
  /* ── ADMIN VIDEO TAB ── */
  .video-upload-note {
    font-family: var(--font-mono); font-size: 0.73rem; color: var(--muted);
    background: var(--dark3); border: 1px solid var(--border);
    padding: 0.9rem 1.1rem; border-radius: 4px; margin-bottom: 1.2rem;
    line-height: 1.7; letter-spacing: 0.03em;
  }
  .video-upload-note strong { color: var(--accent); }

  /* ── EXPERIENCE ── */
  .exp-list { display: flex; flex-direction: column; }
  .exp-item {
    display: grid; grid-template-columns: 180px 1fr;
    gap: 2rem; padding: 2.5rem 0; border-bottom: 1px solid var(--border);
    position: relative;
  }
  .exp-year { font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); padding-top: 0.3rem; letter-spacing: 0.06em; }
  .exp-role { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; margin-bottom: 0.3rem; }
  .exp-company { font-family: var(--font-mono); font-size: 0.8rem; color: var(--accent); margin-bottom: 0.8rem; letter-spacing: 0.04em; }
  .exp-desc { font-size: 0.87rem; color: var(--muted); line-height: 1.75; font-weight: 300; }

  /* ── EDUCATION ── */
  .edu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }
  .edu-card { background: var(--dark2); border: 1px solid var(--border); border-radius: 4px; padding: 2rem; }
  .edu-degree { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; margin-bottom: 0.5rem; }
  .edu-school { font-family: var(--font-mono); font-size: 0.8rem; color: var(--accent); margin-bottom: 0.4rem; }
  .edu-year { font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); }

  /* ── TESTIMONIALS ── */
  .testi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
  .testi-card { background: var(--dark2); border: 1px solid var(--border); border-radius: 4px; padding: 2.5rem; position: relative; }
  .testi-card::before { content: '"'; position: absolute; top: 1.2rem; left: 2rem; font-family: var(--font-display); font-size: 4rem; color: var(--accent); opacity: 0.15; line-height: 1; }
  .testi-text { font-size: 0.92rem; color: var(--muted); line-height: 1.75; margin-bottom: 1.5rem; font-style: italic; font-weight: 300; }
  .testi-author { display: flex; align-items: center; gap: 0.8rem; }
  .testi-avatar { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600; flex-shrink: 0; background: rgba(232,197,71,0.12); border: 1px solid rgba(232,197,71,0.25); color: var(--accent); }
  .testi-name { font-size: 0.88rem; font-weight: 600; }
  .testi-role { font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted); }

  /* ── CONTACT ── */
  .contact-wrap {
    background: var(--dark2); border: 1px solid var(--border); border-radius: 4px;
    padding: 4rem; display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start;
  }
  .contact-left h2 { font-family: var(--font-display); font-size: 2.5rem; font-weight: 900; letter-spacing: -0.03em; margin-bottom: 1rem; }
  .contact-left p { color: var(--muted); line-height: 1.75; font-weight: 300; margin-bottom: 2rem; }
  .contact-info { display: flex; flex-direction: column; gap: 1rem; }
  .contact-row { display: flex; align-items: center; gap: 0.8rem; font-size: 0.88rem; color: var(--muted); font-family: var(--font-mono); font-size: 0.8rem; }
  .contact-icon { width: 36px; height: 36px; border-radius: 2px; background: rgba(255,255,255,0.05); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 0.95rem; flex-shrink: 0; }
  .contact-form { display: flex; flex-direction: column; gap: 1rem; }
  .contact-form input, .contact-form textarea {
    background: rgba(255,255,255,0.03); border: 1px solid var(--border);
    border-radius: 2px; padding: 0.9rem 1.2rem; color: var(--text);
    font-family: var(--font-body); font-size: 0.88rem; outline: none;
    transition: border-color 0.2s; resize: none; width: 100%;
  }
  .contact-form input:focus, .contact-form textarea:focus { border-color: var(--accent); }
  .contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--muted); }
  .form-error { display: none; background: rgba(192,57,43,0.1); border: 1px solid rgba(192,57,43,0.3); color: #e74c3c; padding: 0.8rem 1rem; border-radius: 2px; font-size: 0.84rem; }
  .form-success { display: none; background: rgba(46,204,113,0.1); border: 1px solid rgba(46,204,113,0.3); color: #2ecc71; padding: 0.8rem 1rem; border-radius: 2px; font-size: 0.84rem; }

  /* ── TERMS & CONDITIONS ── */
  .tnc-wrap {
    margin: 0.8rem 0 1rem;
  }
  .tnc-label {
    display: flex; align-items: center; gap: 0.75rem; cursor: pointer;
    user-select: none;
  }
  .tnc-label input[type="checkbox"] { display: none; }
  .tnc-custom-check {
    width: 20px; height: 20px; flex-shrink: 0;
    border: 2px solid rgba(232,197,71,0.4); border-radius: 4px;
    background: rgba(232,197,71,0.05);
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
  }
  .tnc-custom-check svg { opacity: 0; transition: opacity 0.15s; }
  .tnc-label input:checked ~ .tnc-custom-check {
    background: var(--accent); border-color: var(--accent);
  }
  .tnc-label input:checked ~ .tnc-custom-check svg { opacity: 1; }
  .tnc-text { font-size: 0.83rem; color: var(--muted); font-family: var(--font-mono); }
  .tnc-link {
    background: none; border: none; cursor: pointer; padding: 0;
    color: var(--accent); font-family: var(--font-mono); font-size: 0.83rem;
    text-decoration: underline; text-underline-offset: 3px; transition: color 0.2s;
  }
  .tnc-link:hover { color: #f5d76e; }

  /* ── SEND BUTTON ── */
  .send-btn-styled {
    width: 100%; padding: 1rem 1.5rem;
    display: flex; align-items: center; justify-content: center; gap: 0.7rem;
    border: none; border-radius: 4px; cursor: pointer;
    font-family: var(--font-body); font-size: 0.95rem; font-weight: 600;
    letter-spacing: 0.04em; transition: all 0.3s ease;
    position: relative; overflow: hidden;
  }
  .send-btn-styled:disabled {
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.25);
    border: 1px solid rgba(255,255,255,0.08);
    cursor: not-allowed; box-shadow: none;
  }
  .send-btn-styled:disabled .send-btn-icon { opacity: 0.3; }
  .send-btn-styled:disabled .send-btn-lock { display: inline; }
  .send-btn-styled:not(:disabled) {
    background: linear-gradient(135deg, #e8c547 0%, #f0a500 100%);
    color: #080808;
    box-shadow: 0 0 20px rgba(232,197,71,0.5), 0 4px 15px rgba(0,0,0,0.3);
  }
  .send-btn-styled:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 0 32px rgba(232,197,71,0.7), 0 6px 20px rgba(0,0,0,0.4);
  }
  .send-btn-styled:not(:disabled) .send-btn-lock { display: none; }
  .send-btn-lock { font-size: 0.85rem; }
  .send-btn-styled::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 60%);
    pointer-events: none; border-radius: inherit;
  }

  /* ── T&C MODAL ── */
  .tnc-modal-overlay {
    display: none; position: fixed; inset: 0; z-index: 9000;
    background: rgba(0,0,0,0.85); backdrop-filter: blur(6px);
    align-items: center; justify-content: center; padding: 1.5rem;
  }
  .tnc-modal-overlay.open { display: flex; }
  .tnc-modal-box {
    background: #111; border: 1px solid rgba(232,197,71,0.25);
    border-radius: 8px; width: 100%; max-width: 560px;
    max-height: 82vh; display: flex; flex-direction: column;
    box-shadow: 0 0 60px rgba(232,197,71,0.1), 0 20px 60px rgba(0,0,0,0.8);
    animation: modalIn 0.25s ease;
  }
  @keyframes modalIn {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
  }
  .tnc-modal-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid rgba(232,197,71,0.15);
    flex-shrink: 0;
  }
  .tnc-modal-title {
    display: flex; align-items: center; gap: 0.6rem;
    font-family: var(--font-display); font-size: 1.1rem; font-weight: 700;
    color: var(--text);
  }
  .tnc-modal-close {
    background: rgba(255,255,255,0.06); border: 1px solid var(--border);
    color: var(--muted); width: 2rem; height: 2rem; border-radius: 50%;
    cursor: pointer; font-size: 0.85rem; display: flex; align-items: center;
    justify-content: center; transition: all 0.2s; flex-shrink: 0;
  }
  .tnc-modal-close:hover { background: rgba(232,197,71,0.12); color: var(--accent); border-color: rgba(232,197,71,0.3); }
  .tnc-modal-body {
    padding: 1.5rem; overflow-y: auto; flex: 1;
    scrollbar-width: thin; scrollbar-color: rgba(232,197,71,0.2) transparent;
  }
  .tnc-updated {
    font-family: var(--font-mono); font-size: 0.68rem; color: var(--muted);
    letter-spacing: 0.1em; margin-bottom: 1.5rem;
  }
  .tnc-section { margin-bottom: 1.4rem; }
  .tnc-section h4 {
    font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase;
    letter-spacing: 0.1em; color: var(--accent); margin-bottom: 0.45rem;
  }
  .tnc-section p {
    font-size: 0.85rem; color: var(--muted); line-height: 1.75; font-weight: 300;
  }
  .tnc-modal-footer {
    padding: 1rem 1.5rem; border-top: 1px solid rgba(232,197,71,0.12);
    display: flex; gap: 0.75rem; flex-shrink: 0;
  }
  .tnc-accept-btn {
    flex: 1; padding: 0.75rem 1.2rem;
    background: linear-gradient(135deg, #e8c547, #f0a500);
    color: #080808; border: none; border-radius: 4px; cursor: pointer;
    font-family: var(--font-body); font-weight: 700; font-size: 0.88rem;
    transition: all 0.2s;
  }
  .tnc-accept-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(232,197,71,0.4); }
  .tnc-decline-btn {
    padding: 0.75rem 1.2rem;
    background: transparent; border: 1px solid var(--border);
    color: var(--muted); border-radius: 4px; cursor: pointer;
    font-family: var(--font-mono); font-size: 0.8rem; transition: all 0.2s;
  }
  .tnc-decline-btn:hover { border-color: rgba(255,255,255,0.2); color: var(--text); }

  /* ── FOOTER ── */
  footer { text-align: center; padding: 3rem 4rem; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.8rem; }
  footer .footer-logo { font-family: var(--font-display); font-size: 1.6rem; font-weight: 900; margin-bottom: 1rem; color: var(--text); }
  footer .footer-mono { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; margin-top: 0.5rem; }

  /* ── ANIMATIONS ── */
  .fade-up { opacity: 0; transform: translateY(28px); transition: opacity 0.65s ease, transform 0.65s ease; }
  .fade-up.visible { opacity: 1; transform: translateY(0); }

  /* ── ADMIN PANEL ── */
  #admin-panel {
    display: none; position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,0.85); backdrop-filter: blur(8px); overflow-y: auto;
  }
  #admin-panel.open { display: flex; align-items: flex-start; justify-content: center; padding: 2rem 1rem; }
  .admin-box {
    background: #0f0f0f; border: 1px solid rgba(232,197,71,0.3);
    border-radius: 4px; width: 100%; max-width: 820px;
    padding: 2.5rem; color: var(--text); position: relative;
  }
  .admin-box h2 { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; margin-bottom: 0.4rem; color: var(--accent); }
  .admin-box .admin-sub { font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); margin-bottom: 2rem; letter-spacing: 0.06em; }
  .admin-close { position: absolute; top: 1.5rem; right: 1.5rem; background: rgba(255,255,255,0.05); border: 1px solid var(--border); color: var(--text); width: 36px; height: 36px; border-radius: 2px; cursor: pointer; font-size: 1rem; display: flex; align-items: center; justify-content: center; }
  .admin-close:hover { background: rgba(192,57,43,0.2); border-color: rgba(192,57,43,0.3); }
  .admin-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
  .admin-tab { background: rgba(255,255,255,0.04); border: 1px solid var(--border); color: var(--muted); padding: 0.4rem 1rem; border-radius: 2px; font-family: var(--font-mono); font-size: 0.75rem; cursor: pointer; letter-spacing: 0.06em; transition: all 0.2s; }
  .admin-tab.active, .admin-tab:hover { background: rgba(232,197,71,0.1); border-color: rgba(232,197,71,0.4); color: var(--accent); }
  .admin-section { display: none; }
  .admin-section.active { display: block; }
  .form-group { margin-bottom: 1.2rem; }
  .form-group label { display: block; font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 0.4rem; }
  .form-group input, .form-group textarea, .form-group select {
    width: 100%; background: rgba(255,255,255,0.03); border: 1px solid var(--border);
    border-radius: 2px; padding: 0.8rem 1rem; color: var(--text);
    font-family: var(--font-body); font-size: 0.88rem; outline: none; transition: border-color 0.2s; resize: vertical;
  }
  .form-group input:focus, .form-group textarea:focus { border-color: var(--accent); }
  .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
  .admin-card { background: rgba(255,255,255,0.02); border: 1px solid var(--border); border-radius: 2px; padding: 1.2rem; margin-bottom: 1rem; position: relative; }
  .admin-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.8rem; }
  .admin-card-title { font-family: var(--font-mono); font-size: 0.82rem; font-weight: 500; color: var(--accent); letter-spacing: 0.04em; }
  .admin-btn-remove { background: rgba(192,57,43,0.1); border: 1px solid rgba(192,57,43,0.3); color: #e74c3c; padding: 0.3rem 0.8rem; border-radius: 2px; font-family: var(--font-mono); font-size: 0.72rem; cursor: pointer; }
  .admin-btn-remove:hover { background: rgba(192,57,43,0.2); }
  .admin-btn-add { background: rgba(46,204,113,0.08); border: 1px solid rgba(46,204,113,0.3); color: #2ecc71; padding: 0.5rem 1.2rem; border-radius: 2px; font-family: var(--font-mono); font-size: 0.75rem; cursor: pointer; margin-top: 0.5rem; }
  .admin-btn-add:hover { background: rgba(46,204,113,0.15); }
  .admin-actions { display: flex; gap: 1rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border); flex-wrap: wrap; }
  .admin-save { background: var(--accent); color: var(--black); border: none; padding: 0.7rem 1.8rem; border-radius: 2px; font-family: var(--font-mono); font-size: 0.82rem; cursor: pointer; font-weight: 600; }
  .admin-export { background: transparent; border: 1px solid var(--accent); color: var(--accent); padding: 0.7rem 1.8rem; border-radius: 2px; font-family: var(--font-mono); font-size: 0.82rem; cursor: pointer; }
  .admin-export:hover { background: rgba(232,197,71,0.08); }

  /* ── PWD PROMPT ── */
  #pwd-prompt {
    display: none; position: fixed; inset: 0; z-index: 9998;
    background: rgba(0,0,0,0.92); backdrop-filter: blur(8px);
    align-items: center; justify-content: center;
  }
  #pwd-prompt.open { display: flex; }
  .pwd-box { background: var(--dark2); border: 1px solid rgba(232,197,71,0.3); border-radius: 4px; padding: 2.5rem; width: 360px; }
  .pwd-box h3 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; margin-bottom: 0.4rem; color: var(--accent); }
  .pwd-box p { font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); margin-bottom: 1.5rem; letter-spacing: 0.06em; }
  .pwd-box input { width: 100%; background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: 2px; padding: 0.8rem 1rem; color: var(--text); font-family: var(--font-mono); font-size: 0.88rem; outline: none; margin-bottom: 0.8rem; }
  .pwd-box input:focus { border-color: var(--accent); }
  #pwd-err { display: none; font-family: var(--font-mono); font-size: 0.75rem; color: #e74c3c; margin-bottom: 0.8rem; }
  .pwd-btns { display: flex; gap: 0.8rem; }
  .pwd-ok { background: var(--accent); color: var(--black); border: none; padding: 0.7rem 1.5rem; border-radius: 2px; font-family: var(--font-mono); font-size: 0.8rem; font-weight: 600; cursor: pointer; flex: 1; }
  .pwd-cancel { background: transparent; border: 1px solid var(--border); color: var(--muted); padding: 0.7rem 1rem; border-radius: 2px; font-family: var(--font-mono); font-size: 0.8rem; cursor: pointer; }

  /* ── HEADER ROW 3 (mobile only — Hire Me + Hamburger) ── */
  #header-row3 {
    display: none;
  }

  /* ── MOBILE NAV HAMBURGER ── */
  .nav-hamburger {
    display: none; flex-direction: column; justify-content: center; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 6px;
    z-index: 9999; position: relative;
  }
  .nav-hamburger span {
    display: block; width: 22px; height: 2px; background: var(--accent);
    border-radius: 2px; transition: all 0.3s ease;
  }
  .nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* ── MOBILE NAV DRAWER ── */
  .nav-drawer-overlay {
    display: none; position: fixed; inset: 0; z-index: 9000;
    background: rgba(0,0,0,0.6); backdrop-filter: blur(4px);
  }
  .nav-drawer-overlay.open { display: block; }
  .nav-drawer {
    position: fixed; top: 0; right: -100%; width: min(320px, 85vw); height: 100%;
    z-index: 9100; background: var(--dark2);
    border-left: 1px solid var(--border);
    display: flex; flex-direction: column;
    padding: 0; transition: right 0.35s cubic-bezier(0.4,0,0.2,1);
    box-shadow: -8px 0 40px rgba(0,0,0,0.6);
  }
  .nav-drawer.open { right: 0; }
  .nav-drawer-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid var(--border);
    background: var(--dark);
  }
  .nav-drawer-logo {
    font-family: var(--font-mono); font-size: 0.85rem; font-weight: 400;
    letter-spacing: 0.12em; color: var(--accent); text-transform: uppercase;
  }
  .nav-drawer-logo span { color: var(--muted); }
  .nav-drawer-close {
    background: rgba(255,255,255,0.06); border: 1px solid var(--border);
    color: var(--text); width: 32px; height: 32px; border-radius: 4px;
    cursor: pointer; font-size: 1rem; display: flex; align-items: center;
    justify-content: center; transition: all 0.2s;
  }
  .nav-drawer-close:hover { background: rgba(192,57,43,0.2); border-color: rgba(192,57,43,0.4); color: #e74c3c; }
  .nav-drawer-links {
    list-style: none; padding: 1.5rem 0; flex: 1; overflow-y: auto;
  }
  .nav-drawer-links li { border-bottom: 1px solid var(--border); }
  .nav-drawer-links li:last-child { border-bottom: none; }
  .nav-drawer-links a {
    display: flex; align-items: center; gap: 1rem;
    padding: 1.1rem 1.5rem; color: var(--muted); text-decoration: none;
    font-family: var(--font-mono); font-size: 0.82rem; letter-spacing: 0.1em;
    text-transform: uppercase; transition: all 0.2s;
  }
  .nav-drawer-links a:hover, .nav-drawer-links a:active {
    color: var(--accent); background: rgba(232,197,71,0.06);
    padding-left: 2rem;
  }
  .nav-drawer-links .link-num {
    font-size: 0.65rem; color: var(--muted); opacity: 0.5; min-width: 20px;
  }
  .nav-drawer-links a:hover .link-num { color: var(--accent); opacity: 0.8; }
  .nav-drawer-footer {
    padding: 1.5rem; border-top: 1px solid var(--border);
  }
  .nav-drawer-footer .btn-primary {
    width: 100%; text-align: center; display: block;
  }

  /* ── SHORTS VIDEO LAYOUT ── */
  .video-card.type-short { max-width: 280px; }
  .video-card.type-short .video-thumb { aspect-ratio: 9/16; }
  .videos-grid { display: flex; flex-wrap: wrap; gap: 1.5rem; }
  .videos-grid .video-card { flex: 1 1 320px; min-width: 280px; }
  .videos-grid .video-card.type-short { flex: 0 1 240px; }

  /* ── LIGHTBOX SHORTS SUPPORT ── */
  .video-lightbox-frame.type-short {
    aspect-ratio: 9/16 !important;
    max-height: 78vh;
    width: auto !important;
    margin: 0 auto;
  }
  .video-lightbox-inner.type-short {
    display: flex; flex-direction: column; align-items: center;
    max-width: 360px;
  }
  .video-lightbox-inner.type-short .lb-tab-bar { width: 100%; }
  /* Ensure the close button never overlaps the top of the frame */
  .video-lightbox-inner { padding-top: 0; }

  /* ── VIDEO FALLBACK BUTTON ── */
  .video-fallback-btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    margin-top: 0.8rem; padding: 0.6rem 1.4rem;
    background: transparent; color: var(--accent); border: 1px solid var(--accent);
    border-radius: 2px; font-family: var(--font-mono); font-size: 0.75rem;
    letter-spacing: 0.08em; cursor: pointer; text-decoration: none;
    transition: all 0.2s;
  }
  .video-fallback-btn:hover { background: var(--accent); color: var(--black); }

  @media (max-width: 900px) {
    /* ── RESTORE CURSOR & TOUCH ON MOBILE ── */
    body { cursor: auto; }
    .cursor { display: none !important; }
    .nav-hamburger { cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: rgba(232,197,71,0.2); }
    .nav-drawer-links a { cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: rgba(232,197,71,0.1); }
    a, button { touch-action: manipulation; }

    /* ── MOBILE HEADER: 2-row stacked layout ── */
    #site-header {
      position: fixed;
      top: 0; left: 0; right: 0;
      z-index: 102;
      padding: 0;
      min-height: auto;
      flex-direction: column;
      flex-wrap: nowrap;
      gap: 0;
      align-items: stretch;
      background: rgba(8,8,8,0.97);
      backdrop-filter: blur(16px);
      border-bottom: 1px solid rgba(232,197,71,0.18);
    }

    /* ROW 1 — Logo + Brand name */
    #site-header-brand {
      display: flex;
      align-items: center;
      gap: 0.65rem;
      padding: 0.55rem 1rem 0.4rem;
      width: 100%;
    }
    #site-header-logo-img { height: 40px; }
    #site-header-title .brand-main {
      font-size: 1.15rem;
      letter-spacing: 0.06em;
    }
    #site-header-title .brand-sub {
      font-size: 0.52rem;
      letter-spacing: 0.14em;
      display: block;
    }

    /* ROW 2 — Social icons + Freelance badge + Hamburger */
    #header-right {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 0.5rem;
      padding: 0.4rem 1rem 0.55rem;
      width: 100%;
      border-top: 1px solid rgba(232,197,71,0.1);
      background: rgba(8,8,8,0.6);
      margin-left: 0;
    }
    #header-social {
      display: flex;
      align-items: center;
      gap: 0.45rem;
      padding-right: 0;
      border-right: none;
      flex-shrink: 0;
    }
    #header-connect-label {
      display: inline-block;
      font-size: 0.48rem;
      letter-spacing: 0.12em;
      color: var(--muted);
      white-space: nowrap;
      padding-right: 0.2rem;
    }
    .hsocial-btn { width: 34px; height: 34px; border-radius: 7px; }

    /* Freelance badge — fully visible text */
    #freelance-bar {
      font-size: 0.52rem;
      padding: 0.3rem 0.6rem;
      letter-spacing: 0.07em;
      white-space: nowrap;
      flex: 1;
      justify-content: center;
    }
    #freelance-bar #freelance-bar-text { display: inline; }

    /* ROW 3 — Hire Me + Hamburger (mobile only) */
    #header-row3 {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0.4rem 1rem 0.55rem;
      width: 100%;
      border-top: 1px solid rgba(232,197,71,0.1);
      background: rgba(8,8,8,0.8);
      gap: 0.5rem;
    }
    #header-row3 .nav-cta {
      flex: 1;
      justify-content: center;
      padding: 0.5rem 1rem;
      font-size: 0.72rem;
      border-radius: 16px;
      gap: 0.3rem;
      letter-spacing: 0.07em;
    }
    #header-row3 .nav-cta svg { width: 11px; height: 11px; }

    /* Hamburger always visible in row 3 */
    #header-row3 .nav-hamburger {
      display: flex !important;
      flex-shrink: 0;
      padding: 8px;
      background: rgba(232,197,71,0.1);
      border: 1px solid rgba(232,197,71,0.35) !important;
      border-radius: 6px;
      cursor: pointer;
      touch-action: manipulation;
    }

    /* Hide the nav bar completely on mobile */
    nav { display: none !important; }

    /* push page body below the 3-row fixed header */
    body { padding-top: 152px; }
    /* Hide desktop nav on mobile */
    nav { display: none !important; }
    .nav-cta-desktop { display: none !important; }

    /* ── MOBILE HERO: film strip as full background ── */
    .hero {
      grid-template-columns: 1fr;
      position: relative;
      min-height: 100vh;
    }
    /* Show the film strip as an absolute background layer */
    .hero-right {
      display: block !important;
      position: absolute;
      inset: 0;
      height: 100%;
      width: 100%;
      z-index: 0;
      opacity: 0.72;
    }
    /* Lighter dark overlay so film strip stays visible */
    .hero-right::before {
      background: rgba(8,8,8,0.40) !important;
      z-index: 2;
    }
    .hero-right::after {
      background: linear-gradient(to bottom, rgba(8,8,8,0.35) 0%, transparent 40%, transparent 60%, rgba(8,8,8,0.70) 100%) !important;
      z-index: 2;
    }
    .hero-left {
      position: relative;
      z-index: 2;
      padding: 5rem 1.5rem 4rem;
    }
    section { padding: 5rem 1.5rem 3rem; }
    .about-grid { grid-template-columns: 1fr; gap: 2rem; }
    .contact-wrap { grid-template-columns: 1fr; gap: 2.5rem; padding: 2rem; }
    .exp-item { grid-template-columns: 1fr; gap: 0.4rem; }
    .hero-stats { gap: 1.8rem; flex-wrap: wrap; }
    .form-row { grid-template-columns: 1fr; }
    /* ── MOBILE LIGHTBOX: true full-screen, video fills viewport ── */
    .video-lightbox {
      padding: 0;
      align-items: flex-start;
      justify-content: flex-start;
      overflow: hidden;
    }
    .video-lightbox-inner {
      max-width: 100vw;
      width: 100vw;
      display: flex;
      flex-direction: column;
      align-items: stretch;
      height: 100dvh;
      max-height: 100dvh;
      padding: 0;
      overflow: hidden;
      position: relative;
    }
    /* Tab bar: sits at top, full width, no rounding */
    .lb-tab-bar {
      border-radius: 0;
      border-left: none;
      border-right: none;
      border-top: none;
      flex-shrink: 0;
    }
    .lb-tab-bar.visible { display: flex; }
    /* ── SMALLER TAB CONTROLS ON MOBILE ── */
    .lb-tab-btn { padding: 0.45rem 0.5rem; font-size: 0.6rem; letter-spacing: 0.04em; }
    /* Close button: absolute top-right over video */
    .video-lightbox-close {
      position: absolute;
      top: 0.6rem;
      right: 0.6rem;
      z-index: 10;
      width: 2.2rem;
      height: 2.2rem;
      font-size: 0.9rem;
      background: rgba(8,8,8,0.8);
      border-color: rgba(232,197,71,0.5);
      flex-shrink: 0;
    }
    /* Video frame: grows to fill all remaining space */
    .video-lightbox-frame {
      flex: 1 1 auto;
      width: 100% !important;
      height: auto !important;
      max-height: none !important;
      aspect-ratio: 16/9;
      border-radius: 0 !important;
      border: none !important;
      overflow: hidden;
    }
    .video-lightbox-frame iframe,
    .video-lightbox-frame video {
      width: 100% !important;
      height: 100% !important;
    }
    /* Title hidden on mobile */
    .video-lightbox-title { display: none; }
    /* ── SHORTS: portrait fill ── */
    .video-lightbox-inner.type-short {
      max-width: 100vw;
    }
    .video-lightbox-frame.type-short {
      aspect-ratio: 9/16;
      max-height: calc(100dvh - 2.5rem) !important;
      width: 100% !important;
    }
  }

  @media (max-width: 480px) {
    #site-header-brand { padding: 0.5rem 0.75rem 0.35rem; }
    #header-right { padding: 0.35rem 0.75rem 0.5rem; }
    #site-header-title .brand-main { font-size: 1.05rem; }
    #site-header-title .brand-sub { font-size: 0.48rem; }
    #freelance-bar { font-size: 0.50rem; padding: 0.28rem 0.5rem; }
    .hsocial-btn { width: 31px; height: 31px; }
  }

  /* ══════════════════════════════════════════
     CINEMATIC INTRO — FILM COUNTDOWN EDITION
  ══════════════════════════════════════════ */
  #portfolio-intro {
    position: fixed; inset: 0; z-index: 999999;
    background: #000;
    overflow: hidden; cursor: pointer;
    font-family: 'JetBrains Mono', monospace;
  }

  /* Exit: whole screen fades to black then vanishes */
  #portfolio-intro.exit {
    animation: cinemaDrop 1s 0s cubic-bezier(0.76,0,0.24,1) forwards;
  }
  @keyframes cinemaDrop {
    0%   { opacity:1; transform: scale(1); }
    60%  { opacity:1; transform: scale(1.04); }
    100% { opacity:0; transform: scale(1.04); pointer-events:none; }
  }

  /* ── FILM GRAIN (full screen) ── */
  #ci-grain {
    position: absolute; inset: -60px;
    width: calc(100% + 120px); height: calc(100% + 120px);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.25'/%3E%3C/svg%3E");
    z-index: 2; pointer-events: none; mix-blend-mode: overlay; opacity: 0.4;
    animation: grainShift2 0.07s steps(1) infinite;
  }
  @keyframes grainShift2 {
    0%  { transform: translate(0,0); }      14%{ transform: translate(-5px,-3px); }
    28% { transform: translate(4px,5px); }  42%{ transform: translate(-3px,2px); }
    57% { transform: translate(5px,-5px); } 71%{ transform: translate(-4px,4px); }
    85% { transform: translate(3px,-2px); } 100%{ transform: translate(-2px,3px); }
  }

  /* ── SCANLINES ── */
  #ci-scanlines {
    position: absolute; inset: 0; z-index: 3; pointer-events: none;
    background: repeating-linear-gradient(to bottom,
      transparent 0px, transparent 3px,
      rgba(0,0,0,0.18) 3px, rgba(0,0,0,0.18) 4px);
  }

  /* ── CANVAS ── */
  #ci-canvas {
    position: absolute; inset: 0; z-index: 1;
    width: 100%; height: 100%;
  }

  /* ── LETTERBOX BARS ── */
  #ci-bar-t, #ci-bar-b {
    position: absolute; left: 0; right: 0;
    background: #000; z-index: 20; pointer-events: none;
  }
  #ci-bar-t { top: 0; height: 0; animation: barSlide 0.7s 0s cubic-bezier(0.16,1,0.3,1) forwards; border-bottom: 1px solid rgba(232,197,71,0.12); }
  #ci-bar-b { bottom: 0; height: 0; animation: barSlide 0.7s 0.06s cubic-bezier(0.16,1,0.3,1) forwards; border-top: 1px solid rgba(232,197,71,0.12); }
  @keyframes barSlide { to { height: clamp(44px, 8vh, 80px); } }

  /* ── HUD OVERLAYS ── */
  .ci-hud {
    position: absolute; z-index: 21;
    font-size: clamp(0.4rem, 1vw, 0.56rem);
    letter-spacing: 0.22em; text-transform: uppercase;
    color: rgba(232,197,71,0.45);
    opacity: 0; animation: fadeHud 0.5s ease forwards;
    display: flex; align-items: center; gap: 0.9rem;
  }
  .ci-hud-tl { top: 0; left: 0; height: clamp(44px, 8vh, 80px); padding: 0 1.6rem; align-items: center; animation-delay: 0.8s; }
  .ci-hud-tr { top: 0; right: 0; height: clamp(44px, 8vh, 80px); padding: 0 1.6rem; align-items: center; animation-delay: 0.9s; }
  .ci-hud-bl { bottom: 0; left: 0; height: clamp(44px, 8vh, 80px); padding: 0 1.6rem; align-items: center; animation-delay: 1s; }
  .ci-hud-br { bottom: 0; right: 0; height: clamp(44px, 8vh, 80px); padding: 0 1.6rem; align-items: center; animation-delay: 1.1s; }
  @keyframes fadeHud { to { opacity: 1; } }
  .ci-hud b { color: rgba(232,197,71,0.8); font-weight: 500; }
  .ci-hud-sep { color: rgba(232,197,71,0.18); }
  .ci-rec { width: 5px; height: 5px; border-radius: 50%; background: #e74c3c; box-shadow: 0 0 7px rgba(231,76,60,0.9); animation: recBlink2 1.1s ease-in-out infinite; }
  @keyframes recBlink2 { 0%,100%{opacity:1} 50%{opacity:0.15} }

  /* ── CORNER BRACKETS ── */
  .ci-corner {
    position: absolute; width: 46px; height: 46px; z-index: 22;
    opacity: 0; animation: cBracket 0.5s cubic-bezier(0.16,1,0.3,1) forwards;
  }
  .ci-corner svg { width: 100%; height: 100%; }
  .ci-corner.tl { top: clamp(44px, 8vh, 80px); left: 1.4rem; animation-delay: 0.75s; }
  .ci-corner.tr { top: clamp(44px, 8vh, 80px); right: 1.4rem; animation-delay: 0.82s; }
  .ci-corner.bl { bottom: clamp(44px, 8vh, 80px); left: 1.4rem; animation-delay: 0.82s; }
  .ci-corner.br { bottom: clamp(44px, 8vh, 80px); right: 1.4rem; animation-delay: 0.75s; }
  @keyframes cBracket { to { opacity: 1; } }

  /* ── MAIN CENTER STAGE ── */
  #ci-center {
    position: absolute; inset: clamp(44px, 8vh, 80px) 0;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    z-index: 13; text-align: center; padding: 0 2rem;
    overflow: hidden;
  }

  /* TITLE REVEAL */
  #ci-title {
    display: flex; flex-direction: column; align-items: center;
  }

  .ci-name-wrap {
    line-height: 0.92;
    margin-bottom: 0;
    display: flex;
    justify-content: center;
    white-space: nowrap;
    overflow: visible;
  }
  .ci-name-wrap.sub {
    margin-top: 0.6rem;
    justify-content: center;
  }

  .ci-director-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(0.48rem, 1.3vw, 0.65rem);
    letter-spacing: 0.55em; text-transform: uppercase;
    color: rgba(232,197,71,0.55);
    margin-bottom: 1rem;
    display: flex; align-items: center; gap: 1rem;
  }
  .ci-director-label::before, .ci-director-label::after {
    content: ''; flex: none; height: 1px; width: 48px;
    background: linear-gradient(90deg, transparent, rgba(232,197,71,0.45));
  }
  .ci-director-label::after { transform: scaleX(-1); }

  .ci-name-line {
    display: block;
    font-family: 'Playfair Display', serif; font-weight: 900;
    font-size: clamp(2rem, 8.5vw, 10rem);
    letter-spacing: -0.03em;
    min-height: 1em;
    white-space: nowrap;
    line-height: 1;
  }
  .ci-name-line.gold {
    font-style: italic;
    font-size: clamp(1.4rem, 5.5vw, 6rem);
    letter-spacing: 0.05em;
  }
  .ci-name-line:not(.gold) .ci-char {
    color: #ffffff;
    text-shadow:
      0 0 30px rgba(255,255,255,1),
      0 0 80px rgba(232,197,71,0.8),
      0 0 140px rgba(232,197,71,0.4),
      0 3px 0 rgba(0,0,0,0.5);
  }
  /* R. — shimmering gold gradient applied per-char */
  .ci-name-line.gold {
    font-style: italic;
  }
  .ci-name-line.gold .ci-char {
    background: linear-gradient(110deg,
      #b8941e 0%, #e8c547 18%, #fff5b4 38%,
      #f0c030 52%, #e8c547 68%, #fff5b4 82%, #b8941e 100%
    );
    background-size: 200% 100%;
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 22px rgba(232,197,71,0.95)) drop-shadow(0 0 10px rgba(255,220,80,0.7));
  }
  /* ── LOADING BAR (bottom area, above letterbox) ── */
  #ci-loader {
    position: absolute;
    bottom: calc(clamp(44px, 8vh, 80px) + 1.6rem);
    left: 50%; transform: translateX(-50%);
    z-index: 15;
    display: flex; flex-direction: column; align-items: center; gap: 0.7rem;
    opacity: 0; animation: fadeHud 0.5s 0.5s ease forwards;
    width: clamp(200px, 40vw, 380px);
  }
  #ci-loader-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.52rem; letter-spacing: 0.28em; text-transform: uppercase;
    color: rgba(232,197,71,0.4);
    display: flex; justify-content: space-between; width: 100%;
  }
  #ci-loader-pct { color: rgba(232,197,71,0.75); }
  #ci-loader-track {
    width: 100%; height: 2px;
    background: rgba(232,197,71,0.08);
    border-radius: 2px; overflow: hidden;
    position: relative;
  }
  #ci-loader-fill {
    position: absolute; inset: 0; left: 0;
    width: 0%;
    background: linear-gradient(90deg,
      rgba(232,197,71,0.3) 0%,
      rgba(232,197,71,0.9) 70%,
      #fff9d0 100%);
    box-shadow: 0 0 12px rgba(232,197,71,0.6), 0 0 4px #fff;
    border-radius: 2px;
    transition: width 0.12s linear;
  }
  /* Glint sweeper on top of fill */
  #ci-loader-fill::after {
    content: '';
    position: absolute; top: 0; right: 0;
    width: 40px; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.9));
    border-radius: 2px;
  }

  /* ══════════════════════════════════════════
     MASS CINEMATIC CHAR ANIMATION
  ══════════════════════════════════════════ */

  /* Base: each char explodes in — scale burst + blur flash then snaps to place */
  .ci-char {
    display: inline-block;
    opacity: 0;
    transform: translateY(45%) scale(0.75) skewY(6deg);
    animation: charMassStamp 0.72s cubic-bezier(0.16,1,0.3,1) forwards;
    will-change: transform, opacity, filter;
    transform: translateZ(0);
  }
  @keyframes charMassStamp {
    0%   { opacity: 0; transform: translateY(45%) scale(0.75) skewY(6deg); filter: brightness(4); }
    22%  { opacity: 1; transform: translateY(-10%) scale(1.15) skewY(-1.5deg); filter: brightness(2.5); }
    55%  { transform: translateY(4%) scale(0.96) skewY(0.5deg); filter: brightness(1.6); }
    80%  { transform: translateY(-2%) scale(1.02); filter: brightness(1.2); }
    100% { opacity: 1; transform: translateY(0) scale(1) skewY(0); filter: brightness(1); }
  }

  /* c0 — Cinema-white burst → brilliant warm white */
  .ci-char.c0 {
    color: #ffffff;
    text-shadow:
      0 0 18px rgba(255,255,255,1),
      0 0 50px rgba(232,197,71,1),
      0 0 110px rgba(232,197,71,0.6),
      0 0 200px rgba(200,160,40,0.3),
      0 3px 0 rgba(0,0,0,0.5);
    animation: charMassStamp 0.72s cubic-bezier(0.16,1,0.3,1) forwards,
               massGlow0 3.2s 0.8s ease-in-out infinite;
  }
  /* c1 — Electric gold flash */
  .ci-char.c1 {
    color: #ffe55c;
    text-shadow:
      0 0 16px rgba(255,229,92,1),
      0 0 45px rgba(232,197,71,1),
      0 0 100px rgba(200,150,0,0.7),
      0 0 180px rgba(180,130,0,0.35),
      0 3px 0 rgba(0,0,0,0.5);
    animation: charMassStamp 0.72s cubic-bezier(0.16,1,0.3,1) forwards,
               massGlow1 3.2s 0.25s ease-in-out infinite;
  }
  /* c2 — Blazing amber gold */
  .ci-char.c2 {
    color: #ffcc38;
    text-shadow:
      0 0 20px rgba(255,204,56,1),
      0 0 50px rgba(255,170,0,1),
      0 0 110px rgba(232,140,0,0.65),
      0 0 200px rgba(200,110,0,0.3),
      0 3px 0 rgba(0,0,0,0.5);
    animation: charMassStamp 0.72s cubic-bezier(0.16,1,0.3,1) forwards,
               massGlow2 3.2s 0.55s ease-in-out infinite;
  }
  /* c3 — Pure white flash → cream gold */
  .ci-char.c3 {
    color: #fffbf0;
    text-shadow:
      0 0 22px rgba(255,255,255,1),
      0 0 60px rgba(255,245,160,1),
      0 0 130px rgba(232,197,71,0.65),
      0 0 220px rgba(200,160,40,0.3),
      0 3px 0 rgba(0,0,0,0.5);
    animation: charMassStamp 0.72s cubic-bezier(0.16,1,0.3,1) forwards,
               massGlow3 3.2s 1.1s ease-in-out infinite;
  }
  /* c4 — Deep cinematic gold */
  .ci-char.c4 {
    color: #f0c030;
    text-shadow:
      0 0 18px rgba(240,192,48,1),
      0 0 48px rgba(220,170,30,1),
      0 0 105px rgba(190,130,0,0.65),
      0 0 190px rgba(160,110,0,0.3),
      0 3px 0 rgba(0,0,0,0.5);
    animation: charMassStamp 0.72s cubic-bezier(0.16,1,0.3,1) forwards,
               massGlow4 3.2s 0.85s ease-in-out infinite;
  }

  /* Glow pulse keyframes — dramatic swing between resting and peak brightness */
  @keyframes massGlow0 {
    0%,100% {
      text-shadow: 0 0 18px rgba(255,255,255,1), 0 0 50px rgba(232,197,71,1), 0 0 110px rgba(232,197,71,0.6), 0 0 200px rgba(200,160,40,0.3), 0 3px 0 rgba(0,0,0,0.5);
      color: #ffffff;
    }
    50% {
      text-shadow: 0 0 35px rgba(255,255,255,1), 0 0 90px rgba(255,245,160,1), 0 0 200px rgba(232,197,71,0.9), 0 0 350px rgba(200,160,40,0.5), 0 3px 0 rgba(0,0,0,0.5);
      color: #ffffff;
    }
  }
  @keyframes massGlow1 {
    0%,100% {
      text-shadow: 0 0 16px rgba(255,229,92,1), 0 0 45px rgba(232,197,71,1), 0 0 100px rgba(200,150,0,0.7), 0 0 180px rgba(180,130,0,0.35), 0 3px 0 rgba(0,0,0,0.5);
      color: #ffe55c;
    }
    50% {
      text-shadow: 0 0 30px rgba(255,248,160,1), 0 0 80px rgba(255,230,80,1), 0 0 180px rgba(232,197,71,0.9), 0 0 300px rgba(200,150,0,0.5), 0 3px 0 rgba(0,0,0,0.5);
      color: #fff5a0;
    }
  }
  @keyframes massGlow2 {
    0%,100% {
      text-shadow: 0 0 20px rgba(255,204,56,1), 0 0 50px rgba(255,170,0,1), 0 0 110px rgba(232,140,0,0.65), 0 0 200px rgba(200,110,0,0.3), 0 3px 0 rgba(0,0,0,0.5);
      color: #ffcc38;
    }
    50% {
      text-shadow: 0 0 38px rgba(255,224,100,1), 0 0 90px rgba(255,200,40,1), 0 0 200px rgba(255,170,0,0.85), 0 0 340px rgba(200,130,0,0.5), 0 3px 0 rgba(0,0,0,0.5);
      color: #ffe580;
    }
  }
  @keyframes massGlow3 {
    0%,100% {
      text-shadow: 0 0 22px rgba(255,255,255,1), 0 0 60px rgba(255,245,160,1), 0 0 130px rgba(232,197,71,0.65), 0 0 220px rgba(200,160,40,0.3), 0 3px 0 rgba(0,0,0,0.5);
      color: #fffbf0;
    }
    50% {
      text-shadow: 0 0 45px rgba(255,255,255,1), 0 0 110px rgba(255,255,200,1), 0 0 230px rgba(255,240,150,0.9), 0 0 380px rgba(232,197,71,0.5), 0 3px 0 rgba(0,0,0,0.5);
      color: #ffffff;
    }
  }
  @keyframes massGlow4 {
    0%,100% {
      text-shadow: 0 0 18px rgba(240,192,48,1), 0 0 48px rgba(220,170,30,1), 0 0 105px rgba(190,130,0,0.65), 0 0 190px rgba(160,110,0,0.3), 0 3px 0 rgba(0,0,0,0.5);
      color: #f0c030;
    }
    50% {
      text-shadow: 0 0 34px rgba(255,220,80,1), 0 0 85px rgba(245,200,50,1), 0 0 190px rgba(220,170,30,0.9), 0 0 320px rgba(190,130,0,0.5), 0 3px 0 rgba(0,0,0,0.5);
      color: #ffd860;
    }
  }

  /* R. — live animated shimmer sweep — MASS gold */
  .ci-name-line.gold .ci-char {
    background: linear-gradient(110deg,
      #9a7010 0%, #d4a820 12%,
      #fff0a0 28%, #ffe55c 40%,
      #f0c030 54%, #e8c547 66%,
      #fff5b4 80%, #b8941e 92%, #9a7010 100%
    );
    background-size: 250% 100%;
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    filter:
      drop-shadow(0 0 24px rgba(232,197,71,1))
      drop-shadow(0 0 12px rgba(255,220,80,0.8))
      drop-shadow(0 0 50px rgba(200,150,0,0.5));
    animation: charMassStamp 0.72s cubic-bezier(0.16,1,0.3,1) forwards,
               goldShimmerSweep 2.6s 1.6s linear infinite;
  }
  @keyframes goldShimmerSweep {
    0%   { background-position: 250% 0; }
    100% { background-position: -250% 0; }
  }
  @keyframes nameReveal { to { transform: translateY(0) skewY(0deg); } }
  @keyframes shimmer2 { to { background-position: -200% 0; } }

  /* ── MOBILE PERFORMANCE: strip heavy shadows + simplify glow ── */
  @media (max-width: 768px) {
    /* Increase intro logo size on phone */
    #ci-logo-wrap {
      width: clamp(100px, 22vw, 140px) !important;
      height: clamp(100px, 22vw, 140px) !important;
      margin-bottom: 1.6rem;
    }
    #ci-logo-inner {
      width: clamp(100px, 22vw, 140px) !important;
      height: clamp(100px, 22vw, 140px) !important;
    }
    /* Increase intro name text size on phone */
    .ci-name-line {
      font-size: clamp(3rem, 13vw, 6rem) !important;
    }
    .ci-name-line.gold {
      font-size: clamp(2rem, 8.5vw, 4rem) !important;
    }
    /* Simpler stamp — no filter on mobile (blur/brightness hit badly) */
    @keyframes charMassStamp {
      0%   { opacity: 0; transform: translateY(40%) scale(0.8) skewY(4deg); }
      30%  { opacity: 1; transform: translateY(-8%) scale(1.1) skewY(-1deg); }
      65%  { transform: translateY(3%) scale(0.97); }
      100% { opacity: 1; transform: translateY(0) scale(1) skewY(0); }
    }
    /* Reduce to 2-layer text-shadows on mobile */
    .ci-char.c0 { text-shadow: 0 0 18px rgba(255,255,255,0.9), 0 0 40px rgba(232,197,71,0.7); color: #ffffff; }
    .ci-char.c1 { text-shadow: 0 0 16px rgba(255,229,92,0.9), 0 0 36px rgba(232,197,71,0.8); color: #ffe55c; }
    .ci-char.c2 { text-shadow: 0 0 16px rgba(255,204,56,0.9), 0 0 36px rgba(255,170,0,0.7); color: #ffcc38; }
    .ci-char.c3 { text-shadow: 0 0 18px rgba(255,255,255,0.9), 0 0 40px rgba(255,240,150,0.7); color: #fffbf0; }
    .ci-char.c4 { text-shadow: 0 0 16px rgba(240,192,48,0.9), 0 0 36px rgba(220,170,30,0.7); color: #f0c030; }
    /* Pause heavy glow animation on mobile — static glow is enough */
    .ci-char.c0, .ci-char.c1, .ci-char.c2, .ci-char.c3, .ci-char.c4 {
      animation: charMassStamp 0.72s cubic-bezier(0.16,1,0.3,1) forwards;
    }
    /* Simpler R. on mobile */
    .ci-name-line.gold .ci-char {
      filter: drop-shadow(0 0 14px rgba(232,197,71,0.9));
      animation: charMassStamp 0.72s cubic-bezier(0.16,1,0.3,1) forwards,
                 goldShimmerSweep 3s 1.6s linear infinite;
    }
  }

  .ci-divider {
    width: 0; height: 1px; margin: 1rem 0 0.8rem;
    background: linear-gradient(90deg,
      transparent, rgba(232,197,71,0.7) 30%, #fff5b4 50%, rgba(232,197,71,0.7) 70%, transparent);
    box-shadow: 0 0 14px rgba(232,197,71,0.35);
    transition: width 1s cubic-bezier(0.16,1,0.3,1) 1.4s, opacity 0.4s ease 1.4s;
    opacity: 0;
  }
  .ci-divider.grow { width: min(380px, 55vw); opacity: 1; }

  .ci-tagline {
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(0.58rem, 1.8vw, 0.82rem);
    letter-spacing: 0.32em; text-transform: uppercase;
    color: rgba(245,240,232,0.3);
    opacity: 0; transform: translateY(10px);
    transition: opacity 0.7s ease 2s, transform 0.7s ease 2s;
  }
  .ci-tagline.show { opacity: 1; transform: translateY(0); }

  /* ── SKIP HINT ── */
  #ci-skip {
    position: absolute; bottom: calc(clamp(44px, 8vh, 80px) + 0.6rem); left: 50%;
    transform: translateX(-50%);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.48rem; letter-spacing: 0.24em; text-transform: uppercase;
    color: rgba(245,240,232,0.15); z-index: 14; white-space: nowrap;
    opacity: 0; animation: fadeHud 0.4s 2.2s ease forwards;
  }

  /* ── FLICKER: random camera gate stutter ── */
  @keyframes gateFlicker {
    0%,100% { opacity:1; }
    8%  { opacity:0.6; }
    9%  { opacity:1; }
    45% { opacity:0.85; }
    46% { opacity:1; }
  }
  #ci-center { animation: gateFlicker 4s 0.5s steps(1) infinite; }

  /* ══════════════════════════════════════════
     SCROLL TO TOP BUTTON
  ══════════════════════════════════════════ */
  #scroll-top-btn {
    position: fixed; bottom: 2rem; right: 2rem; z-index: 9000;
    width: 48px; height: 48px;
    background: rgba(8,8,8,0.85); border: 1px solid rgba(232,197,71,0.4);
    border-radius: 50%; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s, transform 0.3s, border-color 0.25s, background 0.25s;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.5), 0 0 0 0 rgba(232,197,71,0);
  }
  #scroll-top-btn.visible {
    opacity: 1; pointer-events: auto;
  }
  #scroll-top-btn:hover {
    background: var(--accent, #e8c547);
    border-color: var(--accent, #e8c547);
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(232,197,71,0.35), 0 0 0 4px rgba(232,197,71,0.1);
  }
  #scroll-top-btn:hover .stt-arrow { stroke: #080808; }
  #scroll-top-btn:active { transform: translateY(-1px); }
  .stt-arrow { stroke: rgba(232,197,71,0.9); stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; transition: stroke 0.2s; }
  /* pulse ring */
  #scroll-top-btn::after {
    content: ''; position: absolute; inset: -4px; border-radius: 50%;
    border: 1px solid rgba(232,197,71,0.2);
    animation: sttPulse 2.5s ease-in-out infinite;
  }
  /* ── INTRO LOGO ── */
  #ci-logo-wrap {
    position: relative;
    width: clamp(70px, 10vw, 100px); height: clamp(70px, 10vw, 100px);
    margin: 0 auto 1.2rem;
    display: flex; align-items: center; justify-content: center;
    opacity: 0;
    animation: logoReveal 1s cubic-bezier(0.16,1,0.3,1) 0.2s forwards;
  }
  @keyframes logoReveal {
    0%   { opacity: 0; transform: scale(0.4) rotate(-15deg); filter: brightness(4) blur(12px); }
    40%  { opacity: 1; transform: scale(1.12) rotate(3deg);  filter: brightness(2.5) blur(2px); }
    65%  { transform: scale(0.95) rotate(-1deg); filter: brightness(1.4); }
    85%  { transform: scale(1.03) rotate(0.5deg); filter: brightness(1.1); }
    100% { opacity: 1; transform: scale(1) rotate(0deg); filter: brightness(1); }
  }
  /* outer spinning ring */
  #ci-logo-ring {
    position: absolute; inset: -8px;
    border-radius: 50%;
    border: 1.5px solid transparent;
    border-top-color: rgba(232,197,71,0.9);
    border-right-color: rgba(232,197,71,0.4);
    animation: logoSpin 2.8s linear infinite;
  }
  /* inner counter-spinning ring */
  #ci-logo-ring2 {
    position: absolute; inset: -16px;
    border-radius: 50%;
    border: 1px dashed rgba(232,197,71,0.25);
    animation: logoSpin 6s linear infinite reverse;
  }
  @keyframes logoSpin {
    to { transform: rotate(360deg); }
  }
  /* golden glow pulse behind logo */
  #ci-logo-inner {
    width: clamp(70px, 10vw, 100px); height: clamp(70px, 10vw, 100px);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232,197,71,0.12) 0%, rgba(232,197,71,0.04) 60%, transparent 100%);
    border: 1.5px solid rgba(232,197,71,0.35);
    display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
    animation: logoPulse 3s ease-in-out 1.2s infinite;
    box-shadow:
      0 0 30px rgba(232,197,71,0.25),
      0 0 60px rgba(232,197,71,0.1),
      inset 0 0 20px rgba(232,197,71,0.06);
  }
  @keyframes logoPulse {
    0%,100% {
      box-shadow: 0 0 30px rgba(232,197,71,0.25), 0 0 60px rgba(232,197,71,0.1), inset 0 0 20px rgba(232,197,71,0.06);
      border-color: rgba(232,197,71,0.35);
    }
    50% {
      box-shadow: 0 0 55px rgba(232,197,71,0.55), 0 0 110px rgba(232,197,71,0.25), inset 0 0 35px rgba(232,197,71,0.12);
      border-color: rgba(232,197,71,0.75);
    }
  }
  /* sweep glint across the logo */
  #ci-logo-inner::after {
    content: '';
    position: absolute; top: -50%; left: -80%;
    width: 60%; height: 200%;
    background: linear-gradient(105deg, transparent 30%, rgba(255,245,180,0.18) 50%, transparent 70%);
    animation: logoGlint 3.5s ease-in-out 1.5s infinite;
  }
  @keyframes logoGlint {
    0%   { left: -80%; opacity: 0; }
    10%  { opacity: 1; }
    50%  { left: 130%; opacity: 1; }
    51%  { opacity: 0; }
    100% { left: 130%; opacity: 0; }
  }