:root {
    --bg: #050507;
    --surface: #0c0c10;
    --border: rgba(255,255,255,0.07);
    --text: #e8e8f0;
    --muted: #6b6b80;
    --accent: #c8ff00;
    --accent2: #ff4d6d;
    --accent3: #00d4ff;
    --glow: rgba(200,255,0,0.15);
  }

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

  html { scroll-behavior: smooth; }

  body {
    background: var(--bg);
    color: var(--text);
    font-family: 'DM Mono', monospace;
    font-weight: 300;
    overflow-x: hidden;

  }



  /* ── NOISE OVERLAY ─────────────────────── */
  body::before {
    content: '';
    position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 9990;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    opacity: 0.4;
  }

  /* ── NAV ──────────────────────────────── */
  nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.5rem 3rem;
    background: rgba(5,5,7,0.7);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
  }
  .logo {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: 0.3em;
    color: var(--accent);
    text-decoration: none;
  }
  .logo span { color: var(--text); }
  .nav-links { display: flex; gap: 2.5rem; list-style: none; }
  .nav-links a {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.3s;
  }
  .nav-links a:hover { color: var(--accent); }
  .nav-cta {
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--bg);
    background: var(--accent);
    padding: 0.6rem 1.4rem;
    text-decoration: none;
    font-weight: 400;
    transition: transform 0.2s, box-shadow 0.2s;
  }
  .nav-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 24px var(--glow); }

  /* ── HERO ─────────────────────────────── */
  #hero {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 8rem 3rem 4rem;
    position: relative;
    overflow: hidden;
  }

  .hero-grid-line {
    position: absolute;
    background: var(--border);
    pointer-events: none;
  }
  .hero-grid-line.v { width: 1px; height: 100%; top: 0; }
  .hero-grid-line.h { height: 1px; width: 100%; left: 0; }
  .hero-grid-line:nth-child(1) { left: 20%; }
  .hero-grid-line:nth-child(2) { left: 80%; }
  .hero-grid-line:nth-child(3) { top: 30%; }
  .hero-grid-line:nth-child(4) { top: 70%; }

  .hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
  }
  .orb1 { width: 500px; height: 500px; background: rgba(200,255,0,0.06); top: -100px; right: -100px; }
  .orb2 { width: 400px; height: 400px; background: rgba(0,212,255,0.05); bottom: 0; left: -100px; }
  .orb3 { width: 300px; height: 300px; background: rgba(255,77,109,0.04); top: 50%; left: 50%; transform: translate(-50%,-50%); }

  .hero-content { position: relative; z-index: 2; max-width: 900px; }
  .hero-tag {
    display: inline-flex; align-items: center; gap: 0.6rem;
    font-size: 0.65rem; letter-spacing: 0.25em; text-transform: uppercase;
    color: var(--accent); margin-bottom: 2rem;
    border: 1px solid rgba(200,255,0,0.25);
    padding: 0.4rem 1rem;
  }
  .hero-tag::before { content: '●'; font-size: 0.5rem; animation: blink 1.5s infinite; }
  @keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

  h1 {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: clamp(3.5rem, 9vw, 8rem);
    line-height: 0.95;
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeUp 1s 0.3s forwards;
  }
  h1 em {
    font-style: normal;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255,255,255,0.3);
  }
  h1 .accent-word { color: var(--accent); }

  @keyframes fadeUp {
    from { opacity:0; transform: translateY(30px); }
    to   { opacity:1; transform: translateY(0); }
  }

  .hero-desc {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    font-style: italic;
    color: var(--muted);
    max-width: 520px;
    line-height: 1.7;
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeUp 1s 0.6s forwards;
  }

  .hero-actions {
    display: flex; gap: 1.2rem; flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 1s 0.9s forwards;
  }

  .btn-primary {
    display: inline-flex; align-items: center; gap: 0.6rem;
    background: var(--accent);
    color: var(--bg);
    font-family: 'DM Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 1rem 2rem;
    text-decoration: none;
    font-weight: 400;
    transition: transform 0.2s, box-shadow 0.3s;
  }
  .btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 32px var(--glow); }
  .btn-secondary {
    display: inline-flex; align-items: center; gap: 0.6rem;
    border: 1px solid var(--border);
    color: var(--text);
    font-family: 'DM Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 1rem 2rem;
    text-decoration: none;
    transition: border-color 0.3s, color 0.3s;
  }
  .btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

  .hero-stats {
    position: absolute;
    right: 3rem; bottom: 3rem;
    display: flex; flex-direction: column; gap: 1.5rem;
    opacity: 0;
    animation: fadeUp 1s 1.2s forwards;
  }
  .stat { text-align: right; }
  .stat-num {
    font-family: 'Syne', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
  }
  .stat-label {
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
  }

  /* ── MARQUEE ──────────────────────────── */
  .marquee-section {
    padding: 1.5rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
  }
  .marquee-track {
    display: flex; gap: 4rem;
    animation: marquee 20s linear infinite;
    white-space: nowrap;
  }
  .marquee-item {
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--muted);
    flex-shrink: 0;
    display: flex; align-items: center; gap: 1.5rem;
  }
  .marquee-dot { width: 4px; height: 4px; background: var(--accent); border-radius: 50%; flex-shrink: 0; }
  @keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

  /* ── SECTIONS ─────────────────────────── */
  section { padding: 8rem 3rem; }
  .section-label {
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
    display: flex; align-items: center; gap: 1rem;
  }
  .section-label::after { content: ''; flex: 1; max-width: 60px; height: 1px; background: var(--accent); opacity: 0.4; }
  h2 {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
  }
  .section-subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    font-style: italic;
    color: var(--muted);
    max-width: 500px;
    line-height: 1.7;
    margin-bottom: 4rem;
  }

  /* ── PORTFOLIO GRID ───────────────────── */
  #work { background: var(--bg); }
  .portfolio-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto;
    gap: 1.5rem;
  }

  .pitem {
    position: relative;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
  }
  .pitem:nth-child(1) { grid-column: span 7; grid-row: span 2; }
  .pitem:nth-child(2) { grid-column: span 5; }
  .pitem:nth-child(3) { grid-column: span 5; }
  .pitem:nth-child(4) { grid-column: span 4; }
  .pitem:nth-child(5) { grid-column: span 4; }
  .pitem:nth-child(6) { grid-column: span 4; }
  
  /* Dynamic Video Layout Classes */
  .pitem-horizontal { grid-column: span 12 !important; grid-row: span 1 !important; max-width: 720px; margin: 0 auto; border: none !important; }
  .pitem-horizontal .pitem-video-wrapper { aspect-ratio: 16/9; }
  .pitem-vertical { grid-column: span 3 !important; grid-row: span 1 !important; }

  .pitem-canvas {
    width: 100%;
    aspect-ratio: 16/10;
    display: block;
  }
  .pitem:nth-child(1) .pitem-canvas { aspect-ratio: 16/12; }

  .pitem-overlay {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(5,5,7,0.95) 0%, rgba(5,5,7,0.2) 60%, transparent 100%);
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.4s;
  }
  .pitem:hover .pitem-overlay { opacity: 1; }
  .pitem-tag {
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.4rem;
  }
  .pitem-title {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 0.3rem;
  }
  .pitem-meta {
    font-size: 0.65rem;
    color: var(--muted);
    letter-spacing: 0.1em;
  }
  .pitem-arrow {
    position: absolute; top: 1.2rem; right: 1.2rem;
    width: 36px; height: 36px;
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.4s;
    color: var(--accent);
    font-size: 1rem;
  }
  .pitem:hover .pitem-arrow { opacity: 1; }

  /* ── TEAM ──────────────────────────────── */
  #about {
    display: block;
    background: var(--bg);
  }
  .team-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .team-header .section-subtitle {
    margin-bottom: 0;
  }
  .team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
  .team-card {
    background: var(--surface);
    border: 1px solid var(--border);
    transition: transform 0.3s, border-color 0.3s;
    overflow: hidden;
  }
  .team-card:hover {
    border-color: rgba(200,255,0,0.3);
    transform: translateY(-5px);
  }
  .team-img {
    width: 100%;
    aspect-ratio: 4/5;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid var(--border);
  }
  .team-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.1);
    transition: filter 0.5s, transform 0.5s;
  }
  .team-card:hover .team-img img {
    filter: grayscale(0%) contrast(1.1);
    transform: scale(1.05);
  }
  .team-info {
    padding: 1.5rem;
    text-align: center;
  }
  .team-info h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1.2rem;
    color: var(--text);
    margin-bottom: 0.4rem;
  }
  .team-role {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: var(--accent);
    text-transform: uppercase;
  }

  /* ── SERVICES ─────────────────────────── */
  #services {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }
  .services-header { max-width: 700px; margin-bottom: 4rem; }
  .services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border: 1px solid var(--border);
  }
  .service-card {
    padding: 2.5rem;
    border-right: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    transition: background 0.3s;
  }
  .service-card:last-child { border-right: none; }
  .service-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s;
  }
  .service-card:hover::before { transform: scaleX(1); }
  .service-card:hover { background: rgba(200,255,0,0.03); }
  .service-num {
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    color: var(--accent);
    margin-bottom: 2rem;
    display: block;
  }
  .service-icon {
    width: 48px; height: 48px;
    margin-bottom: 1.5rem;
    opacity: 0.6;
  }
  .service-title {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text);
  }
  .service-desc {
    font-size: 0.8rem;
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 1.5rem;
  }
  .service-list {
    list-style: none;
    display: flex; flex-direction: column; gap: 0.4rem;
  }
  .service-list li {
    font-size: 0.68rem;
    letter-spacing: 0.05em;
    color: var(--muted);
    display: flex; align-items: center; gap: 0.5rem;
  }
  .service-list li::before { content: '—'; color: var(--accent); opacity: 0.6; }

  /* ── PROCESS ──────────────────────────── */
  #process { background: var(--bg); }
  .process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin-top: 4rem;
    border: 1px solid var(--border);
  }
  .process-step {
    padding: 2.5rem;
    border-right: 1px solid var(--border);
    position: relative;
  }
  .process-step:last-child { border-right: none; }
  .step-num {
    font-family: 'Syne', sans-serif;
    font-size: 4rem;
    font-weight: 800;
    color: transparent;
    -webkit-text-stroke: 1px rgba(200,255,0,0.2);
    line-height: 1;
    margin-bottom: 1rem;
  }
  .step-title {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.8rem;
    color: var(--text);
  }
  .step-desc { font-size: 0.78rem; color: var(--muted); line-height: 1.8; }

  /* ── TESTIMONIALS ─────────────────────── */
  #testimonials {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }
  .testi-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    margin-top: 3rem;
    border: 1px solid var(--border);
    background: var(--border);
  }
  .testi-card {
    background: var(--surface);
    padding: 2rem;
  }
  .testi-stars {
    font-size: 0.85rem;
    color: var(--accent);
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
  }
  .testi-text {
    font-size: 0.9rem;
    color: var(--text);
    line-height: 1.7;
    margin-bottom: 1.5rem;
  }
  .testi-author {
    display: flex; align-items: center; gap: 0.8rem;
  }
  .testi-avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: rgba(200,255,0,0.1);
    border: 1px solid rgba(200,255,0,0.2);
    display: flex; align-items: center; justify-content: center;
    font-family: 'DM Mono', monospace;
    font-size: 0.6rem;
    color: var(--accent);
  }
  .testi-name {
    font-family: 'DM Mono', monospace;
    font-size: 0.75rem;
    color: var(--text);
  }
  .testi-meta {
    font-size: 0.6rem;
    color: var(--accent);
    letter-spacing: 0.1em;
    opacity: 0.7;
  }
  .testi-role { font-size: 0.65rem; color: var(--muted); letter-spacing: 0.05em; margin-top: 0.15rem; }

  /* ── PRICING ──────────────────────────── */
  #pricing { background: var(--bg); }
  .pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
  }
  .price-card {
    border: 1px solid var(--border);
    padding: 2.5rem;
    position: relative;
    transition: border-color 0.3s;
  }
  .price-card.featured {
    border-color: var(--accent);
    background: rgba(200,255,0,0.03);
  }
  .price-card.featured::before {
    content: 'MOST POPULAR';
    position: absolute; top: -1px; left: 50%; transform: translateX(-50%);
    background: var(--accent);
    color: var(--bg);
    font-size: 0.55rem;
    letter-spacing: 0.2em;
    padding: 0.3rem 0.8rem;
  }
  .price-tier {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
  }
  .price-amount {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 3rem;
    color: var(--text);
    line-height: 1;
    margin-bottom: 0.3rem;
  }
  .price-amount sup { font-size: 1.2rem; vertical-align: super; }
  .price-desc { font-size: 0.75rem; color: var(--muted); margin-bottom: 2rem; }
  .price-features { list-style: none; display: flex; flex-direction: column; gap: 0.8rem; margin-bottom: 2.5rem; }
  .price-features li {
    font-size: 0.78rem; color: var(--muted);
    display: flex; align-items: flex-start; gap: 0.7rem; line-height: 1.5;
  }
  .price-features li::before { content: '✓'; color: var(--accent); flex-shrink: 0; }
  .price-features li.unavailable { opacity: 0.35; }
  .price-features li.unavailable::before { content: '×'; color: var(--muted); }
  .btn-price {
    display: block; text-align: center;
    padding: 0.9rem;
    font-family: 'DM Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid var(--border);
    color: var(--text);
    transition: all 0.3s;
  }
  .price-card.featured .btn-price {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg);
  }
  .btn-price:hover { border-color: var(--accent); color: var(--accent); }
  .price-card.featured .btn-price:hover { background: transparent; color: var(--accent); }

  /* ── CONTACT ──────────────────────────── */
  #contact {
    background: var(--surface);
    border-top: 1px solid var(--border);
  }
  .contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: start;
  }
  .contact-info h2 { margin-bottom: 1rem; }
  .contact-tagline {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    font-style: italic;
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 3rem;
  }
  .contact-details { display: flex; flex-direction: column; gap: 1rem; }
  .contact-item {
    display: flex; align-items: center; gap: 1rem;
    font-size: 0.8rem;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.3s;
  }
  .contact-item:hover { color: var(--accent); }
  .contact-item-icon {
    width: 36px; height: 36px;
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
  }
  .contact-form { display: flex; flex-direction: column; gap: 1.2rem; }
  .form-group { display: flex; flex-direction: column; gap: 0.4rem; }
  .form-label { font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
  .form-input, .form-select, .form-textarea {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    color: var(--text);
    font-family: 'DM Mono', monospace;
    font-size: 0.8rem;
    padding: 0.9rem 1rem;
    outline: none;
    transition: border-color 0.3s;
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
  }
  .form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b6b80' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
  }
  .form-select option {
    background: #0c0c10;
    color: #e8e8f0;
    padding: 0.6rem;
    font-family: 'DM Mono', monospace;
    font-size: 0.8rem;
  }
  .form-select option:hover,
  .form-select option:checked {
    background: rgba(200,255,0,0.15);
    color: #c8ff00;
  }
  .form-input:focus, .form-select:focus, .form-textarea:focus { border-color: rgba(200,255,0,0.4); }
  .form-textarea { resize: vertical; min-height: 120px; }
  .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
  .form-submit {
    background: var(--accent);
    border: none;
    color: var(--bg);
    font-family: 'DM Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 1rem 2rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.3s;
    width: 100%;
    font-weight: 400;
  }
  .form-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 24px var(--glow); }
  .form-note { font-size: 0.65rem; color: var(--muted); text-align: center; letter-spacing: 0.05em; }

  /* ── FOOTER ───────────────────────────── */
  footer {
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
  }
  .footer-brand {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: 0.3em;
    color: var(--accent);
  }
  .footer-copy { font-size: 0.65rem; color: var(--muted); letter-spacing: 0.1em; }
  .footer-links { display: flex; gap: 2rem; }
  .footer-links a {
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.3s;
  }
  .footer-links a:hover { color: var(--accent); }

  /* ── SCROLL REVEAL ────────────────────── */
  .reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s, transform 0.8s; }
  .reveal.visible { opacity: 1; transform: translateY(0); }
  /* ── SHOWREEL ─────────────────────────── */
  #showreel {
    padding: 6rem 3rem;
    background: var(--bg);
    overflow: hidden;
  }
  .showreel-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
  }
  .showreel-info h2 { margin-bottom: 1.5rem; }
  .showreel-desc {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    font-style: italic;
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 2.5rem;
    max-width: 380px;
  }
  .showreel-stats {
    display: flex;
    gap: 2.5rem;
  }
  .showreel-stat-num {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 2rem;
    color: var(--accent);
    line-height: 1;
  }
  .showreel-stat-label {
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 0.3rem;
  }
  .showreel-frame {
    display: flex;
    justify-content: center;
    position: relative;
  }
  .showreel-device {
    position: relative;
    width: 280px;
    background: #111;
    border-radius: 28px;
    padding: 10px;
    border: 1.5px solid rgba(200,255,0,0.15);
    box-shadow:
      0 0 40px rgba(200,255,0,0.06),
      0 20px 60px rgba(0,0,0,0.5),
      inset 0 1px 0 rgba(255,255,255,0.05);
  }
  .showreel-notch {
    width: 80px;
    height: 6px;
    background: #222;
    border-radius: 3px;
    margin: 4px auto 8px;
  }
  .showreel-player {
    position: relative;
    width: 100%;
    aspect-ratio: 9/16;
    overflow: hidden;
    background: #000;
    border-radius: 18px;
    cursor: pointer;
  }
  .showreel-thumb {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.4s;
  }
  .showreel-player.playing .showreel-thumb {
    opacity: 0;
    pointer-events: none;
  }
  .showreel-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(200,255,0,0.08) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: -1;
  }

  .reveal-delay-1 { transition-delay: 0.1s; }
  .reveal-delay-2 { transition-delay: 0.2s; }
  .reveal-delay-3 { transition-delay: 0.3s; }

  /* ── MOBILE ───────────────────────────── */
  @media (max-width: 900px) {
    nav { padding: 1rem 1.2rem; }
    .nav-links { display: none; }
    .nav-cta { font-size: 0.6rem; padding: 0.5rem 1rem; }
    section { padding: 4rem 1.2rem; }
    #hero { padding: 6rem 1.2rem 3rem; min-height: auto; }
    h1 { font-size: clamp(2.5rem, 10vw, 4rem); }
    .hero-desc { font-size: 1rem; }
    .hero-actions { flex-direction: column; gap: 0.8rem; }
    .hero-actions a { text-align: center; justify-content: center; width: 100%; }
    .hero-stats { display: none; }

    #showreel { padding: 3rem 1.2rem; }
    .showreel-layout { grid-template-columns: 1fr; gap: 2.5rem; text-align: center; }
    .showreel-info { order: 1; }
    .showreel-frame { order: 2; }
    .showreel-desc { margin: 0 auto 2rem; }
    .showreel-stats { justify-content: center; }
    .showreel-device { width: 240px; }
    .showreel-player { max-height: 70vh; }

    .portfolio-grid { grid-template-columns: 1fr; }
    .pitem:nth-child(n), .pitem-horizontal, .pitem-vertical { grid-column: span 1 !important; grid-row: span 1 !important; }
    .pitem-video-wrapper.vertical { aspect-ratio: 9/16; max-height: 60vh; }

    .contact-layout { grid-template-columns: 1fr; gap: 3rem; }
    .team-grid { grid-template-columns: 1fr; gap: 2rem; }

    .services-grid, .process-steps, .pricing-grid, .testi-grid { grid-template-columns: 1fr; }
    .service-card, .process-step { border-right: none; border-bottom: 1px solid var(--border); }
    .process-steps { grid-template-columns: 1fr 1fr; }

    .price-card { padding: 2rem; }
    .price-amount { font-size: 2.2rem; }

    .testi-card { padding: 1.5rem; }
    .testi-text { font-size: 0.85rem; }

    .form-row { grid-template-columns: 1fr; }
    .contact-tagline { font-size: 1rem; }
    .contact-layout { gap: 2.5rem; }

    footer { flex-direction: column; text-align: center; padding: 2rem 1.2rem; }
    .footer-links { flex-wrap: wrap; justify-content: center; gap: 1rem; }

    /* Improve touch targets */
    .btn-primary, .btn-secondary { padding: 0.9rem 1.5rem; font-size: 0.7rem; }
    .btn-price { padding: 0.8rem; }
    .form-submit { padding: 0.9rem; }
    .play-circle { width: 56px; height: 56px; }
    .play-circle svg { width: 22px; height: 22px; }
    .video-fs-btn { width: 30px; height: 30px; font-size: 0.9rem; }

    h2 { font-size: clamp(1.8rem, 6vw, 2.5rem); }
    .section-subtitle { font-size: 1rem; margin-bottom: 2.5rem; }
    .section-label { font-size: 0.6rem; }


  }

  @media (max-width: 480px) {
    section { padding: 3rem 1rem; }
    #hero { padding: 5rem 1rem 2.5rem; }
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.6rem; }
    .hero-desc { font-size: 0.9rem; }
    .hero-tag { font-size: 0.55rem; padding: 0.3rem 0.8rem; }
    nav { padding: 0.8rem 1rem; }
    .logo { font-size: 1.1rem; }
    .nav-cta { font-size: 0.55rem; padding: 0.45rem 0.8rem; }
    #showreel { padding: 0 1rem 2rem; }
    .process-steps { grid-template-columns: 1fr; }
    .step-num { font-size: 2.5rem; }
    .service-card { padding: 1.8rem; }
  }

  /* ── VIDEO PORTFOLIO ITEM ───────────────── */
  .pitem-video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: #000;
    cursor: pointer;
  }
  .pitem-horizontal .pitem-video-wrapper { aspect-ratio: 16/9; }
  .pitem-video-wrapper.vertical { aspect-ratio: 9/16; }

  .pitem-video-wrapper .video-thumbnail {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.4s;
  }
  .pitem-video-wrapper.playing .video-thumbnail { opacity: 0; pointer-events: none; }

  /* Hide YouTube branding by scaling the iframe to uniformly crop edges without altering aspect ratio */
  .yt-iframe-wrap {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 2;
    pointer-events: auto;
    overflow: hidden;
  }
  .yt-iframe-wrap iframe {
    position: absolute;
    top: -20%; left: -5%;
    width: 110%;
    height: 140%;
    border: none;
  }
  .pitem-video-wrapper.vertical .yt-iframe-wrap iframe {
    top: -30%; left: -15%;
    width: 130%;
    height: 160%;
  }
  /* Block YouTube's red play watermark and prevent iframe click-through */
  .yt-iframe-wrap::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 3;
    background: transparent;
  }
  .yt-click-blocker {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 4;
    background: transparent;
  }

  /* Center play/pause overlay */
  .video-play-overlay {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    display: flex; align-items: center; justify-content: center;
    z-index: 6;
    pointer-events: none;
    transition: opacity 0.4s;
  }
  .video-play-overlay .play-circle {
    width: 72px; height: 72px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(5,5,7,0.6);
    backdrop-filter: blur(8px);
    transition: transform 0.3s, box-shadow 0.3s;
    pointer-events: auto;
    cursor: pointer;
  }
  .pitem-video-wrapper:hover .play-circle {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(200,255,0,0.2);
  }
  .play-circle svg { fill: var(--accent); width: 28px; height: 28px; margin-left: 3px; }
  .play-circle .pause-icon { margin-left: 0; }

  /* Fullscreen button (bottom-right) */
  .video-fs-btn {
    position: absolute;
    bottom: 12px; right: 12px;
    z-index: 6;
    background: rgba(5,5,7,0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(200,255,0,0.3);
    color: var(--accent);
    font-size: 1.1rem;
    cursor: pointer;
    width: 34px; height: 34px;
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.4s, background 0.2s, border-color 0.2s;
  }
  .video-fs-btn:hover {
    background: rgba(200,255,0,0.15);
    border-color: var(--accent);
  }

  /* Auto-hide controls */
  .pitem-video-wrapper.controls-hidden .video-play-overlay,
  .pitem-video-wrapper.controls-hidden .video-fs-btn,
  .showreel-player.controls-hidden .video-play-overlay,
  .showreel-player.controls-hidden .video-fs-btn { opacity: 0; pointer-events: none; }

  /* ── VIDEO LIGHTBOX ────────────────────── */
  .lightbox {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s, visibility 0.4s;
  }
  .lightbox.active {
    opacity: 1;
    visibility: visible;
  }
  .lightbox-backdrop {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }
  .lightbox-close {
    position: absolute;
    top: 1.5rem; right: 2rem;
    z-index: 10;
    background: none;
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    font-size: 1.2rem;
    width: 44px; height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.3s, color 0.3s;
    border-radius: 50%;
  }
  .lightbox-close:hover {
    border-color: var(--accent);
    color: var(--accent);
  }
  .lightbox-content {
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    max-width: 90vw;
    max-height: 90vh;
  }
  .lightbox-video {
    border-radius: 8px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 20px 80px rgba(0,0,0,0.6);
  }
  .lb-iframe-crop {
    position: relative;
    overflow: hidden;
  }
  .lightbox-video.lb-horizontal .lb-iframe-crop {
    width: 80vw;
    max-width: 960px;
    aspect-ratio: 16/9;
  }
  .lightbox-video.lb-vertical .lb-iframe-crop {
    width: 340px;
    max-height: 75vh;
    aspect-ratio: 9/16;
  }
  .lb-iframe-crop iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
  }
  .lb-click-blocker {
    display: none;
  }
  .lightbox-info {
    text-align: center;
  }
  .lightbox-title {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 0.3rem;
  }
  .lightbox-meta {
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted);
  }

  @media (max-width: 900px) {
    .lightbox-video.lb-horizontal .lb-iframe-crop {
      width: 92vw;
    }
    .lightbox-video.lb-vertical .lb-iframe-crop {
      width: 70vw;
      max-height: 75vh;
    }
    .lightbox-close {
      top: 1rem; right: 1rem;
      width: 38px; height: 38px;
      font-size: 1rem;
    }
  }

  /* ── FLOATING CTA ──────────────────────── */
  .floating-cta {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9000;
    background: var(--accent);
    color: var(--bg);
    font-family: 'DM Mono', monospace;
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 0.85rem 1.6rem;
    border-radius: 50px;
    box-shadow: 0 8px 32px rgba(200,255,0,0.25);
    transform: translateY(100px);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.16,1,0.3,1), opacity 0.5s, box-shadow 0.3s;
  }
  .floating-cta.visible {
    transform: translateY(0);
    opacity: 1;
  }
  .floating-cta:hover {
    box-shadow: 0 12px 40px rgba(200,255,0,0.35);
    transform: translateY(-2px);
  }
  .floating-cta-pulse {
    position: absolute;
    top: 50%; left: 50%;
    width: 100%; height: 100%;
    transform: translate(-50%, -50%);
    border-radius: 50px;
    background: var(--accent);
    opacity: 0;
    animation: ctaPulse 2.5s ease-out infinite;
    pointer-events: none;
  }
  @keyframes ctaPulse {
    0% { transform: translate(-50%,-50%) scale(1); opacity: 0.4; }
    100% { transform: translate(-50%,-50%) scale(1.5); opacity: 0; }
  }

  @media (max-width: 480px) {
    .floating-cta {
      bottom: 1rem; right: 1rem;
      font-size: 0.6rem;
      padding: 0.7rem 1.2rem;
    }
  }

  /* ── SOCIAL PROOF ANIMATIONS ───────────── */
  .stat-num, .showreel-stat-num {
    transition: transform 0.6s cubic-bezier(0.16,1,0.3,1), opacity 0.6s;
  }
  .stat.animate-in .stat-num {
    animation: statPop 0.6s cubic-bezier(0.16,1,0.3,1) forwards;
  }
  @keyframes statPop {
    0% { transform: scale(0.5); opacity: 0; }
    60% { transform: scale(1.15); }
    100% { transform: scale(1); opacity: 1; }
  }