:root{
    --bg:#0c0c0d;
    --bg-alt:#141417;
    --paper:#f2efe6;
    --ink:#f4f2ea;
    --ink-dim:#a6a49b;
    --ink-dark:#141317;
    --cyan:#2ec6de;
    --amber:#f2a93b;
    --emerald:#1ecb73;
    --line: rgba(244,242,234,0.12);
    --maxw: 1240px;
  }
  *{box-sizing:border-box; margin:0; padding:0;}
  html{scroll-behavior:smooth;}
  @media (prefers-reduced-motion: reduce){
    html{scroll-behavior:auto;}
    *{animation-duration:0.01ms !important; animation-iteration-count:1 !important; transition-duration:0.01ms !important;}
  }
  body{
    background:var(--bg);
    color:var(--ink);
    font-family:'Inter', sans-serif;
    -webkit-font-smoothing:antialiased;
    overflow-x:hidden;
  }
  img{max-width:100%; display:block;}
  a{color:inherit; text-decoration:none;}
  .wrap{max-width:var(--maxw); margin:0 auto; padding:0 32px;}
  h1,h2,h3,.disp{
    font-family:'Space Grotesk', sans-serif;
    font-weight:700;
    letter-spacing:-0.01em;
    text-transform:uppercase;
    line-height:1.02;
  }
  .mono{ font-family:'IBM Plex Mono', monospace; letter-spacing:0.04em; text-transform:uppercase; }

  /* ---------- NAV ---------- */
  header.nav{
    position:fixed; top:0; left:0; right:0; z-index:100;
    display:flex; align-items:center; justify-content:space-between;
    padding:18px 32px;
    background:linear-gradient(to bottom, rgba(12,12,13,0.92), rgba(12,12,13,0));
    backdrop-filter:blur(2px);
  }
  header.nav .logo{ font-family:'Space Grotesk'; font-weight:700; font-size:22px; letter-spacing:0.02em; text-transform:uppercase;}
  header.nav .logo span{color:var(--cyan);}
  header.nav nav{display:flex; gap:24px; align-items:center;}
  header.nav nav a{ font-family:'IBM Plex Mono'; font-size:11px; letter-spacing:0.08em; text-transform:uppercase; color:var(--ink-dim); transition:color .2s;}
  header.nav nav a:hover{color:var(--cyan);}
  .nav-social{ display:flex; gap:14px; align-items:center; margin-left:6px; padding-left:20px; border-left:1px solid var(--line);}
  .nav-social a{ width:30px; height:30px; border:1px solid var(--line); border-radius:50%; display:flex; align-items:center; justify-content:center; transition:all .2s;}
  .nav-social a:hover{ border-color:var(--cyan); color:var(--cyan);}
  .nav-social svg{ width:14px; height:14px; fill:currentColor;}
  .nav-toggle{display:none; flex-direction:column; gap:5px; cursor:pointer; z-index:200;}
  .nav-toggle span{width:24px; height:2px; background:var(--ink);}

  /* ---------- WHATSAPP LIVE WIDGET ---------- */
  .wa-widget{ position:fixed; right:26px; bottom:26px; z-index:500; display:flex; flex-direction:column; align-items:flex-end; gap:14px;}
  .wa-float{
    position:relative; width:60px; height:60px; border-radius:50%; background:#25D366;
    display:flex; align-items:center; justify-content:center;
    box-shadow:0 6px 22px rgba(37,211,102,0.45);
    animation:waBounce 3.2s ease-in-out infinite;
  }
  .wa-float svg{ width:30px; height:30px; fill:#fff;}
  .wa-float::after{
    content:""; position:absolute; inset:0; border-radius:50%; border:2px solid #25D366;
    animation:waping 1.8s ease-out infinite;
  }
  @keyframes waping{ 0%{transform:scale(1); opacity:0.7;} 100%{transform:scale(1.7); opacity:0;} }
  @keyframes waBounce{ 0%,80%,100%{ transform:translateY(0) rotate(0);} 84%{ transform:translateY(-9px) rotate(-8deg);} 88%{ transform:translateY(0) rotate(6deg);} 92%{ transform:translateY(-4px) rotate(0);} }
  .wa-badge{
    position:absolute; top:-4px; right:-4px; width:20px; height:20px; border-radius:50%;
    background:var(--amber); color:#211200; font-family:'IBM Plex Mono'; font-size:11px; font-weight:700;
    display:flex; align-items:center; justify-content:center; box-shadow:0 0 0 2px var(--bg);
    animation:badgePop 2.5s ease-in-out infinite;
  }
  @keyframes badgePop{ 0%,70%,100%{ transform:scale(1);} 78%{ transform:scale(1.35);} 86%{ transform:scale(1);} }
  .wa-badge.hidden{ display:none;}

  .wa-bubble{
    width:290px; background:var(--bg-alt); border:1px solid var(--line); border-radius:14px;
    box-shadow:0 18px 40px rgba(0,0,0,0.45); padding:16px 16px 14px; position:relative;
    opacity:0; transform:translateY(16px) scale(0.96); pointer-events:none;
    transition:opacity .35s ease, transform .35s ease;
  }
  .wa-bubble.show{ opacity:1; transform:translateY(0) scale(1); pointer-events:auto;}
  .wa-bubble::after{
    content:""; position:absolute; bottom:-8px; right:26px; width:16px; height:16px;
    background:var(--bg-alt); border-right:1px solid var(--line); border-bottom:1px solid var(--line);
    transform:rotate(45deg);
  }
  .wa-bubble-close{
    position:absolute; top:8px; right:10px; background:none; border:none; color:var(--ink-dim);
    font-size:18px; cursor:pointer; line-height:1; padding:4px;
  }
  .wa-bubble-close:hover{ color:var(--ink);}
  .wa-bubble-head{ display:flex; align-items:center; gap:10px; margin-bottom:10px;}
  .wa-bubble-head img{ width:40px; height:40px; border-radius:50%; object-fit:cover; flex-shrink:0;}
  .wa-bubble-head strong{ display:block; font-size:13.5px; color:var(--ink);}
  .wa-status{ display:flex; align-items:center; gap:5px; font-family:'IBM Plex Mono'; font-size:10.5px; color:#25D366; text-transform:uppercase; letter-spacing:0.04em; margin-top:2px;}
  .wa-status i{ width:6px; height:6px; border-radius:50%; background:#25D366; display:inline-block; box-shadow:0 0 6px #25D366;}
  .wa-bubble-msg{
    background:var(--bg); border:1px solid var(--line); border-radius:10px; padding:10px 12px;
    font-size:13px; color:var(--ink-dim); line-height:1.5; margin-bottom:12px; min-height:20px;
  }
  .wa-typing{ display:inline-flex; gap:4px; align-items:center; height:14px;}
  .wa-typing i{ width:6px; height:6px; border-radius:50%; background:var(--ink-dim); animation:waTyping 1s infinite ease-in-out;}
  .wa-typing i:nth-child(2){ animation-delay:.15s;}
  .wa-typing i:nth-child(3){ animation-delay:.3s;}
  @keyframes waTyping{ 0%,60%,100%{ transform:translateY(0); opacity:.4;} 30%{ transform:translateY(-4px); opacity:1;} }
  .wa-bubble-cta{
    display:flex; align-items:center; justify-content:center; gap:8px; width:100%;
    background:#25D366; color:#04160c; font-family:'IBM Plex Mono'; font-size:12px; font-weight:700;
    text-transform:uppercase; letter-spacing:0.04em; padding:11px; border-radius:8px; transition:filter .2s;
  }
  .wa-bubble-cta:hover{ filter:brightness(1.08);}

  @media(max-width:640px){
    .wa-widget{ right:18px; bottom:18px;}
    .wa-bubble{ width:min(78vw, 290px);}
  }

  /* ---------- HERO ---------- */
  .hero{
    position:relative;
    min-height:100svh;
    display:grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items:stretch;
    border-bottom:1px solid var(--line);
  }
  .hero-copy{
    display:flex; flex-direction:column; justify-content:center;
    padding:120px 48px 80px 32px;
    position:relative; z-index:2;
  }
  .hero-eyebrow{ font-family:'IBM Plex Mono'; font-size:12px; color:var(--cyan); letter-spacing:0.15em; text-transform:uppercase; margin-bottom:22px; display:flex; align-items:center; gap:10px;}
  .hero-eyebrow::before{content:""; width:34px; height:1px; background:var(--cyan);}
  .hero h1{
    font-size: clamp(42px, 6.2vw, 92px);
    letter-spacing:-0.01em;
    color:var(--ink);
  }
  .hero h1 em{ font-style:normal; color:var(--cyan);}
  .hero .role{
    font-family:'Space Grotesk'; font-weight:600; font-size:clamp(20px,2.4vw,30px);
    color:var(--amber); text-transform:uppercase; letter-spacing:0.04em; margin-top:10px;
  }
  .hero p.lede{
    max-width:480px; margin-top:28px; color:var(--ink-dim); font-size:16px; line-height:1.65;
  }
  .hero-slider{
    position:relative; height:22px; overflow:hidden; margin-top:14px; max-width:480px;
  }
  .hero-slide-item{
    position:absolute; left:0; top:0; width:100%;
    font-family:'IBM Plex Mono'; font-size:13px; color:var(--cyan); letter-spacing:0.05em;
    opacity:0; transform:translateY(100%);
    transition:transform .55s cubic-bezier(.2,.8,.2,1), opacity .5s ease;
  }
  .hero-slide-item.active{ opacity:1; transform:translateY(0);}
  .hero-slide-item.exit{ opacity:0; transform:translateY(-100%);}
  .hero-cta{ display:flex; gap:16px; margin-top:38px; flex-wrap:wrap;}
  .btn{
    display:inline-flex; align-items:center; gap:10px;
    padding:14px 26px; font-family:'IBM Plex Mono'; font-size:12px; letter-spacing:0.08em; text-transform:uppercase;
    border:1px solid var(--ink); border-radius:2px; transition:all .25s;
  }
  .btn.primary{ background:var(--cyan); color:#08181b; border-color:var(--cyan); font-weight:600;}
  .btn.primary:hover{ background:var(--ink); border-color:var(--ink);}
  .btn.ghost:hover{ border-color:var(--cyan); color:var(--cyan);}

  .hero-photo{
    position:relative; overflow:hidden; height:100%; z-index:1;
  }
  .hero-photo img{
    width:100%; height:100%; object-fit:cover; object-position: top center;
    filter:grayscale(15%) contrast(1.05);
  }
  .hero-photo::after{
    content:""; position:absolute; inset:0;
    background:linear-gradient(100deg, var(--bg) 0%, rgba(12,12,13,0.15) 20%, rgba(12,12,13,0) 45%);
  }
  .hero-photo .tag{
    position:absolute; bottom:28px; right:28px; z-index:3;
    font-family:'IBM Plex Mono'; font-size:11px; color:var(--ink); letter-spacing:0.08em;
    background:rgba(12,12,13,0.55); border:1px solid var(--line); padding:8px 14px;
  }
  .scroll-cue{
    position:absolute; bottom:26px; left:32px; z-index:3;
    font-family:'IBM Plex Mono'; font-size:10px; color:var(--ink-dim); letter-spacing:0.1em;
    display:flex; align-items:center; gap:10px;
  }
  .scroll-cue .line{ width:1px; height:36px; background:var(--ink-dim); position:relative; overflow:hidden;}
  .scroll-cue .line::after{content:""; position:absolute; top:-100%; left:0; width:100%; height:100%; background:var(--cyan); animation:scrollcue 1.8s ease-in-out infinite;}
  @keyframes scrollcue{ 0%{top:-100%;} 60%{top:100%;} 100%{top:100%;} }

  /* ---------- SECTION HEADS ---------- */
  .section{ padding:110px 0; border-bottom:1px solid var(--line);}
  .section.alt{ background:var(--bg-alt); }
  .section-head{ display:flex; align-items:flex-end; justify-content:space-between; gap:40px; margin-bottom:56px; flex-wrap:wrap;}
  .section-num{ font-family:'IBM Plex Mono'; font-size:12px; color:var(--cyan); letter-spacing:0.1em; margin-bottom:14px; display:block;}
  .section-head h2{ font-size:clamp(32px,4.4vw,60px); }
  .section-head p{ max-width:360px; color:var(--ink-dim); font-size:15px; line-height:1.6; padding-bottom:8px;}

  /* ---------- ABOUT ---------- */
  .about-grid{ display:grid; grid-template-columns: 1fr 1fr; gap:64px;}
  .about-grid p{ color:var(--ink-dim); font-size:16.5px; line-height:1.75; margin-bottom:20px;}
  .about-grid p strong{ color:var(--ink); font-weight:600;}
  .facts{ list-style:none; border-top:1px solid var(--line);}
  .facts li{ display:flex; justify-content:space-between; padding:16px 0; border-bottom:1px solid var(--line); font-size:14.5px;}
  .facts li span:first-child{ font-family:'IBM Plex Mono'; color:var(--ink-dim); text-transform:uppercase; font-size:11.5px; letter-spacing:0.06em;}
  .skills-row{ display:flex; flex-wrap:wrap; gap:10px; margin-top:26px;}
  .pill{ border:1px solid var(--line); padding:8px 16px; font-family:'IBM Plex Mono'; font-size:11.5px; text-transform:uppercase; letter-spacing:0.05em; color:var(--ink-dim); border-radius:2px;}

  /* ---------- SKILL BADGES (Adobe/HTML icons) ---------- */
  .skill-badge{
    display:inline-flex; align-items:center; gap:9px; border:1px solid var(--line); background:var(--bg-alt);
    padding:7px 14px 7px 7px; border-radius:4px; font-family:'IBM Plex Mono'; font-size:11.5px;
    text-transform:uppercase; letter-spacing:0.04em; color:var(--ink-dim); transition:all .25s ease;
  }
  .skill-badge:hover{ border-color:var(--cyan); color:var(--ink); transform:translateY(-2px);}
  .badge-ico{
    display:flex; align-items:center; justify-content:center; width:26px; height:26px; border-radius:5px;
    font-family:'Space Grotesk'; font-weight:700; font-size:11px; font-style:normal; letter-spacing:0; flex-shrink:0;
  }
  .ico-ps{ background:#001E36; color:#31A8FF;}
  .ico-ai{ background:#FF9A00; color:#1a1100;}
  .ico-id{ background:#4B0E2F; color:#FF6BA6;}
  .ico-ae{ background:#00005B; color:#B4B4FF;}
  .ico-html{ background:#1c1c1c; color:var(--cyan); font-size:10px;}
  .ico-dev{ background:#1c1c1c; color:var(--amber); font-size:9.5px;}

  /* ---------- EXPERIENCE ---------- */
  .timeline{ border-top:1px solid var(--line);}
  .tl-item{
    display:grid; grid-template-columns: 130px 1fr 260px; gap:24px; align-items:center;
    padding:22px 0; border-bottom:1px solid var(--line);
    transition: background .2s;
  }
  .tl-item:hover{ background:rgba(46,198,222,0.04); }
  .tl-year{ font-family:'Space Grotesk'; font-weight:700; font-size:20px; color:var(--cyan);}
  .tl-role{ font-size:17px; font-weight:600; }
  .tl-role small{ display:block; font-family:'IBM Plex Mono'; font-weight:400; font-size:11.5px; color:var(--ink-dim); text-transform:uppercase; margin-top:6px; letter-spacing:0.04em;}
  .tl-mode{ font-family:'IBM Plex Mono'; font-size:11.5px; color:var(--ink-dim); text-align:right; text-transform:uppercase; letter-spacing:0.04em;}

  /* ---------- WORK / FILTERS ---------- */
  .filters{ display:flex; gap:10px; flex-wrap:wrap; margin-bottom:48px;}
  .filter-btn{
    font-family:'IBM Plex Mono'; font-size:11.5px; letter-spacing:0.06em; text-transform:uppercase;
    padding:11px 20px; border:1px solid var(--line); color:var(--ink-dim); cursor:pointer; background:transparent; border-radius:2px;
    transition:all .2s;
  }
  .filter-btn:hover{ color:var(--ink); border-color:var(--ink);}
  .filter-btn.active{ background:var(--cyan); color:#08181b; border-color:var(--cyan); font-weight:600;}

  .grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:26px;}
  .card{
    position:relative; border:1px solid var(--line); background:var(--bg-alt); cursor:pointer;
    overflow:hidden; display:flex; flex-direction:column;
  }
  .card .tab{
    position:absolute; top:0; left:0; width:6px; height:100%; z-index:2;
  }
  .card .thumb{ position:relative; aspect-ratio:4/3; overflow:hidden; background:#000;}
  .card .thumb img{ width:100%; height:100%; object-fit:cover; transition:transform .5s ease;}
  .card:hover .thumb img{ transform:scale(1.06);}
  .card .thumb .count{
    position:absolute; bottom:10px; right:10px; font-family:'IBM Plex Mono'; font-size:10.5px;
    background:rgba(12,12,13,0.7); padding:5px 9px; letter-spacing:0.05em;
  }
  .card .info{ padding:20px 22px 22px 26px;}
  .card .info .client{ font-family:'Space Grotesk'; font-weight:700; font-size:22px; text-transform:uppercase;}
  .card .info .proj{ font-family:'IBM Plex Mono'; font-size:11.5px; color:var(--ink-dim); text-transform:uppercase; letter-spacing:0.04em; margin-top:8px; line-height:1.5;}
  .card .info .meta{ display:flex; justify-content:space-between; margin-top:14px; font-family:'IBM Plex Mono'; font-size:10.5px; color:var(--ink-dim); text-transform:uppercase;}

  /* ---------- WORK CAROUSEL (featured, homepage) ---------- */
  .work-carousel{ position:relative; border:1px solid var(--line); overflow:hidden; background:#000;}
  .work-track{ display:flex; transition:transform .65s cubic-bezier(.2,.8,.2,1);}
  .work-slide{ flex:0 0 100%; position:relative; cursor:pointer; height:clamp(320px, 52vw, 520px);}
  .work-slide img{ width:100%; height:100%; object-fit:cover; display:block; filter:brightness(0.8) saturate(1.05); transition:filter .5s ease, transform 6s ease;}
  .work-slide:hover img{ filter:brightness(0.95) saturate(1.15); transform:scale(1.04);}
  .work-overlay{
    position:absolute; inset:0; display:flex; flex-direction:column; justify-content:flex-end;
    padding:28px 30px 30px; background:linear-gradient(180deg, transparent 35%, rgba(8,8,9,0.94) 100%);
  }
  .work-tag{ font-family:'IBM Plex Mono'; font-size:11.5px; text-transform:uppercase; letter-spacing:0.06em;}
  .work-overlay h3{ font-size:clamp(26px,4vw,42px); margin-top:8px; text-transform:uppercase;}
  .work-overlay p{ color:var(--ink-dim); max-width:560px; margin-top:6px; font-size:14px;}
  .work-arrow{
    position:absolute; top:50%; transform:translateY(-50%); z-index:3;
    width:46px; height:46px; border-radius:50%; border:1px solid rgba(244,242,234,0.3); background:rgba(12,12,13,0.5);
    color:#fff; font-family:'IBM Plex Mono'; font-size:16px; cursor:pointer; transition:all .2s; backdrop-filter:blur(4px);
  }
  .work-arrow:hover{ background:var(--cyan); border-color:var(--cyan); color:#08181b;}
  .work-arrow-prev{ left:18px;}
  .work-arrow-next{ right:18px;}
  .work-carousel-nav{ display:flex; justify-content:center; margin-top:22px;}
  .work-dots{ display:flex; gap:8px;}
  .work-dots span{ width:8px; height:8px; border-radius:50%; background:var(--line); cursor:pointer; transition:all .25s ease;}
  .work-dots span.active{ background:var(--cyan); transform:scale(1.35);}
  .work-cta{ display:flex; justify-content:center; margin-top:30px;}
  @media(max-width:640px){
    .work-arrow{ width:38px; height:38px; font-size:14px;}
  }

  /* ---------- LOGOS ---------- */
  .logo-wall{ border:1px solid var(--line); background:var(--bg-alt); padding:8px;}
  .logo-wall img{ filter:grayscale(0%);}

  /* ---------- SERVICES ---------- */
  .services-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:1px; background:var(--line); border:1px solid var(--line);}
  .service-card{ background:var(--bg); padding:38px 30px; transition:background .25s;}
  .service-card:hover{ background:var(--bg-alt);}
  .service-num{ font-family:'IBM Plex Mono'; font-size:11px; color:var(--cyan); letter-spacing:0.08em;}
  .service-card h3{ font-size:26px; margin-top:16px; margin-bottom:14px; text-transform:none; font-weight:700;}
  .service-card p{ color:var(--ink-dim); font-size:14.5px; line-height:1.65;}

  /* ---------- SKILLS ---------- */
  .skills-list{ display:flex; flex-direction:column; gap:26px;}
  .skill-row .skill-top{ display:flex; justify-content:space-between; margin-bottom:10px; font-family:'IBM Plex Mono'; font-size:12.5px; text-transform:uppercase; letter-spacing:0.04em;}
  .skill-top .pct{ color:var(--cyan);}
  .skill-bar{ height:6px; background:var(--line); position:relative; overflow:hidden;}
  .skill-bar i{ position:absolute; left:0; top:0; bottom:0; background:linear-gradient(90deg, var(--cyan), var(--amber)); width:0%; transition:width 1.2s cubic-bezier(.2,.8,.2,1);}

  /* ---------- WEB PROJECTS ---------- */
  .webproj-grid{ display:grid; grid-template-columns:repeat(auto-fit, minmax(280px,1fr)); gap:24px;}
  .webproj-card{
    position:relative; border:1px solid var(--line); background:var(--bg-alt); padding:32px;
    display:flex; flex-direction:column; justify-content:space-between; min-height:180px;
    overflow:hidden; transition:border-color .4s ease;
  }
  .webproj-card::before{
    content:""; position:absolute; inset:0; z-index:0;
    background:linear-gradient(125deg, var(--cyan) 0%, var(--amber) 100%);
    clip-path:polygon(0 100%, 0% 100%, 0% 100%, 0 100%);
    transition:clip-path .55s cubic-bezier(.2,.8,.2,1);
  }
  .webproj-card:hover::before{ clip-path:polygon(0 0, 100% 0, 100% 100%, 0% 100%);}
  .webproj-card:hover{ border-color:transparent;}
  .webproj-top, .webproj-card > div{ position:relative; z-index:1;}
  .webproj-top{ display:flex; justify-content:space-between; align-items:flex-start;}
  .webproj-top .url{ font-family:'IBM Plex Mono'; font-size:11px; color:var(--cyan); letter-spacing:0.04em; transition:color .45s ease;}
  .webproj-top .arrow{ font-size:20px; color:var(--ink-dim); transition:all .3s ease; position:relative; z-index:1;}
  .webproj-card:hover .arrow{ color:#0d0d0d; transform:translate(4px,-4px) rotate(45deg);}
  .webproj-card:hover .url{ color:#1c1300; font-weight:600;}
  .webproj-card h3{ font-size:28px; margin-top:22px; text-transform:none; font-weight:700; transition:color .45s ease; position:relative; z-index:1;}
  .webproj-card p{ color:var(--ink-dim); font-size:14px; margin-top:10px; line-height:1.6; transition:color .45s ease; position:relative; z-index:1;}
  .webproj-card:hover h3{ color:#0d0d0d;}
  .webproj-card:hover p{ color:#241a00;}

  /* ---------- PARTNERS CAROUSEL ---------- */
  .partners-carousel{ overflow:hidden; position:relative; border-top:1px solid var(--line); border-bottom:1px solid var(--line); padding:34px 0; mask-image:linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); -webkit-mask-image:linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);}
  .partners-track{ display:flex; gap:14px; width:max-content; animation:marquee 26s linear infinite;}
  .partners-carousel:hover .partners-track{ animation-play-state:paused;}
  @keyframes marquee{ from{ transform:translateX(0);} to{ transform:translateX(-50%);} }
  .partner-badge{
    border:1px solid var(--line); background:var(--bg-alt);
    display:flex; align-items:center; justify-content:center; text-align:center;
    padding:22px 30px; min-height:92px; min-width:180px; transition:all .2s; flex-shrink:0;
  }
  .partner-badge:hover{ border-color:var(--cyan); background:var(--bg);}
  .partner-badge span{ font-family:'Space Grotesk'; font-weight:700; font-size:17px; text-transform:uppercase; color:var(--ink-dim); letter-spacing:0.02em; white-space:nowrap;}
  .partner-badge:hover span{ color:var(--ink);}

  /* ---------- TESTIMONIALS CAROUSEL ---------- */
  .testi-carousel{ position:relative;}
  .testi-viewport{ overflow-x:auto; scroll-snap-type:x mandatory; display:flex; gap:22px; scrollbar-width:none; -ms-overflow-style:none; padding-bottom:6px;}
  .testi-viewport::-webkit-scrollbar{ display:none;}
  .testi-card{ scroll-snap-align:start; flex:0 0 calc(33.333% - 15px); border:1px solid var(--line); background:var(--bg-alt); padding:28px; display:flex; flex-direction:column;}
  .testi-quote{ color:var(--ink-dim); font-size:14.5px; line-height:1.7; flex:1;}
  .testi-quote::before{ content:"“"; color:var(--cyan); font-family:'Space Grotesk'; font-size:30px; display:block; line-height:0.6; margin-bottom:6px;}
  .testi-person{ display:flex; align-items:center; gap:14px; margin-top:22px; padding-top:18px; border-top:1px solid var(--line);}
  .testi-person img{ width:46px; height:46px; border-radius:50%; object-fit:cover; flex-shrink:0;}
  .testi-person .name{ font-weight:700; font-size:14.5px;}
  .testi-person .role{ font-family:'IBM Plex Mono'; font-size:10.5px; color:var(--ink-dim); text-transform:uppercase; margin-top:3px;}
  .testi-nav{ display:flex; justify-content:flex-end; gap:12px; margin-top:26px;}
  .testi-nav button{
    width:46px; height:46px; border-radius:50%; border:1px solid var(--line); background:transparent; color:var(--ink);
    font-family:'IBM Plex Mono'; font-size:16px; cursor:pointer; transition:all .2s;
  }
  .testi-nav button:hover{ border-color:var(--cyan); color:var(--cyan);}
  @media(max-width:900px){ .testi-card{ flex-basis:calc(50% - 11px);} }
  @media(max-width:640px){ .testi-card{ flex-basis:88%;} }

  /* ---------- CONTACT ---------- */
  .contact-grid{ display:grid; grid-template-columns:0.9fr 1.1fr; gap:50px; text-align:left; margin-top:56px;}
  .contact-info{ display:flex; flex-direction:column; gap:22px;}
  .contact-item{ border:1px solid var(--line); padding:22px 24px;}
  .contact-item .label{ font-family:'IBM Plex Mono'; font-size:11px; color:var(--cyan); text-transform:uppercase; letter-spacing:0.06em;}
  .contact-item .val{ font-size:19px; font-weight:600; margin-top:8px;}
  .contact-social{ display:flex; gap:12px; margin-top:6px;}
  .contact-social a{ width:44px; height:44px; border:1px solid var(--line); border-radius:50%; display:flex; align-items:center; justify-content:center; transition:all .2s;}
  .contact-social a:hover{ border-color:var(--cyan); color:var(--cyan);}
  .contact-social svg{ width:18px; height:18px; fill:currentColor;}
  .map-frame{ border:1px solid var(--line); overflow:hidden; min-height:320px; filter:grayscale(60%) invert(92%) contrast(90%);}
  .map-frame iframe{ width:100%; height:100%; min-height:320px; border:0; display:block;}

  /* ---------- CONTACT ---------- */
  .contact{
    padding:130px 0 90px;
    text-align:center;
  }
  .contact h2{ font-size:clamp(34px,5.6vw,76px); }
  .contact h2 span{ color:var(--cyan);}
  .contact p{ color:var(--ink-dim); margin-top:22px; font-size:16px;}
  .contact-links{ display:flex; justify-content:center; gap:18px; flex-wrap:wrap; margin-top:44px;}
  footer{ padding:30px 0; border-top:1px solid var(--line); }
  footer .wrap{ display:flex; justify-content:space-between; align-items:center; font-family:'IBM Plex Mono'; font-size:11px; color:var(--ink-dim); letter-spacing:0.05em; flex-wrap:wrap; gap:12px;}

  /* ---------- LIGHTBOX ---------- */
  .lightbox{
    position:fixed; inset:0; background:rgba(8,8,9,0.96); z-index:1000;
    display:none; align-items:center; justify-content:center; flex-direction:column; padding:40px;
  }
  .lightbox.open{ display:flex; }
  .lb-head{ width:100%; max-width:1000px; display:flex; justify-content:space-between; align-items:flex-start; margin-bottom:18px; gap:20px;}
  .lb-head h3{ font-size:26px; color:var(--ink);}
  .lb-head .meta{ font-family:'IBM Plex Mono'; font-size:11.5px; color:var(--ink-dim); margin-top:8px; text-transform:uppercase;}
  .lb-close{ cursor:pointer; font-family:'IBM Plex Mono'; font-size:12px; border:1px solid var(--line); padding:10px 16px; letter-spacing:0.06em; text-transform:uppercase; flex-shrink:0;}
  .lb-close:hover{ border-color:var(--cyan); color:var(--cyan);}
  .lb-stage{ position:relative; max-width:1000px; width:100%; display:flex; align-items:center; justify-content:center; gap:14px;}
  .lb-stage img{ max-height:74svh; width:auto; margin:0 auto; border:1px solid var(--line);}
  .lb-arrow{ font-family:'IBM Plex Mono'; font-size:22px; padding:14px; cursor:pointer; color:var(--ink-dim); flex-shrink:0;}
  .lb-arrow:hover{ color:var(--cyan);}
  .lb-dots{ display:flex; gap:8px; margin-top:20px;}
  .lb-dots span{ width:7px; height:7px; border-radius:50%; background:var(--line); cursor:pointer;}
  .lb-dots span.active{ background:var(--cyan);}

  /* ---------- PRELOADER ---------- */
  #preloader{
    position:fixed; inset:0; z-index:2000; background:var(--bg);
    display:flex; flex-direction:column; align-items:center; justify-content:center; gap:22px;
    transition:opacity .6s ease, visibility .6s ease;
  }
  #preloader.hidden{ opacity:0; visibility:hidden; pointer-events:none;}
  .pre-logo{ font-family:'Space Grotesk'; font-weight:700; font-size:34px; text-transform:uppercase; letter-spacing:0.04em;}
  .pre-logo span{ color:var(--cyan);}
  .pre-bar{ width:220px; height:2px; background:var(--line); overflow:hidden; position:relative;}
  .pre-bar i{ position:absolute; left:-40%; top:0; bottom:0; width:40%; background:linear-gradient(90deg, transparent, var(--cyan), var(--amber), transparent); animation:preload 1.1s ease-in-out infinite;}
  @keyframes preload{ 0%{left:-40%;} 100%{left:100%;} }
  .pre-pct{ font-family:'IBM Plex Mono'; font-size:11px; color:var(--ink-dim); letter-spacing:0.1em;}

  /* ---------- BACK TO TOP ---------- */
  .top-btn{
    position:fixed; left:26px; bottom:26px; z-index:500;
    width:52px; height:52px; border-radius:50%; border:1px solid var(--line); background:var(--bg-alt);
    display:flex; align-items:center; justify-content:center; color:var(--ink);
    opacity:0; visibility:hidden; transform:translateY(10px);
    transition:all .3s ease; cursor:pointer;
  }
  .top-btn.show{ opacity:1; visibility:visible; transform:translateY(0);}
  .top-btn:hover{ border-color:var(--cyan); color:var(--cyan); background:var(--bg);}
  .top-btn svg{ width:18px; height:18px; fill:currentColor;}
  @media(max-width:640px){
    .top-btn{ width:46px; height:46px; left:18px; bottom:18px;}
  }
  @media(max-width:980px){
    .hero{ grid-template-columns:1fr; }
    .hero-photo{ height:60vh; order:-1;}
    .hero-copy{ padding:100px 24px 60px;}
    .about-grid{ grid-template-columns:1fr; gap:40px;}
    .grid{ grid-template-columns:repeat(2,1fr);}
    .tl-item{ grid-template-columns:1fr; gap:6px; padding:18px 0;}
    .tl-mode{ text-align:left;}
    header.nav nav{
      position:fixed; top:0; right:0; height:100svh; width:min(320px,80vw);
      background:var(--bg-alt); flex-direction:column; justify-content:center; align-items:flex-start;
      padding:40px; gap:24px; transform:translateX(100%); transition:transform .35s ease; border-left:1px solid var(--line);
    }
    header.nav nav.open{ transform:translateX(0); }
    .nav-toggle{ display:flex; }
  }
  @media(max-width:900px){
    .services-grid{ grid-template-columns:repeat(2,1fr);}
    .webproj-grid{ grid-template-columns:1fr;}
    .testi-track{ grid-template-columns:repeat(2,1fr);}
    .contact-grid{ grid-template-columns:1fr;}
  }
  @media(max-width:640px){
    .grid{ grid-template-columns:1fr;}
    .wrap{ padding:0 20px;}
    .section{ padding:80px 0;}
    .services-grid{ grid-template-columns:1fr;}
    .testi-track{ grid-template-columns:1fr;}
    .wa-float{ width:52px; height:52px;}
    .wa-float svg{ width:26px; height:26px;}
  }

  /* ---------- SCROLL PROGRESS ---------- */
  #scrollProgress{
    position:fixed; top:0; left:0; height:3px; width:0%; z-index:1200;
    background:linear-gradient(90deg, var(--cyan), var(--amber), var(--amber));
    transition:width .08s linear;
  }

  /* ---------- REVEAL ON SCROLL ---------- */
  .reveal{ opacity:0; transform:translateY(28px); transition:opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);}
  .reveal.is-visible{ opacity:1; transform:translateY(0);}
  .reveal-stagger > *{ opacity:0; transform:translateY(24px); transition:opacity .6s ease, transform .6s ease;}
  .reveal-stagger.is-visible > *{ opacity:1; transform:translateY(0);}
  .reveal-stagger.is-visible > *:nth-child(1){transition-delay:.03s;}
  .reveal-stagger.is-visible > *:nth-child(2){transition-delay:.09s;}
  .reveal-stagger.is-visible > *:nth-child(3){transition-delay:.15s;}
  .reveal-stagger.is-visible > *:nth-child(4){transition-delay:.21s;}
  .reveal-stagger.is-visible > *:nth-child(5){transition-delay:.27s;}
  .reveal-stagger.is-visible > *:nth-child(6){transition-delay:.33s;}
  .reveal-stagger.is-visible > *:nth-child(n+7){transition-delay:.37s;}

  /* ---------- ACTIVE NAV (scrollspy) ---------- */
  header.nav nav a.active{ color:var(--amber);}
  header.nav nav a{ position:relative; }
  header.nav nav a::after{ content:""; position:absolute; left:0; bottom:-6px; width:0%; height:1px; background:var(--amber); transition:width .25s ease;}
  header.nav nav a.active::after{ width:100%;}

  /* ---------- HERO GLOW / PARALLAX ---------- */
  .hero-photo{ perspective:1000px; animation:heroFloat 7s ease-in-out infinite;}
  @keyframes heroFloat{ 0%,100%{ transform:translateY(0);} 50%{ transform:translateY(-10px);} }
  .hero-photo .glow{
    position:absolute; width:480px; height:480px; border-radius:50%; pointer-events:none; z-index:1;
    background:radial-gradient(circle, rgba(46,198,222,0.28), rgba(30,203,115,0.12) 45%, transparent 70%);
    filter:blur(10px); transition:transform .15s ease-out; top:10%; right:10%;
    mix-blend-mode:screen;
  }
  .hero-photo img{ transition:transform .4s ease-out;}
  .hero h1 .word{ display:inline-block; opacity:0; transform:translateY(100%); animation:wordUp .8s cubic-bezier(.2,.8,.2,1) forwards;}
  @keyframes wordUp{ to{ opacity:1; transform:translateY(0);} }

  /* ---------- STATS BAND ---------- */
  .stats-band{ border-top:1px solid var(--line); border-bottom:1px solid var(--line); background:var(--bg-alt);}
  .stats-grid{ display:grid; grid-template-columns:repeat(4,1fr);}
  .stat-item{ padding:44px 20px; text-align:center; border-left:1px solid var(--line);}
  .stat-item:first-child{ border-left:none;}
  .stat-num{ font-family:'Space Grotesk'; font-weight:700; font-size:clamp(36px,4.5vw,58px); color:var(--ink); line-height:1;}
  .stat-num span{ color:var(--amber);}
  .stat-label{ font-family:'IBM Plex Mono'; font-size:11px; color:var(--ink-dim); text-transform:uppercase; letter-spacing:0.06em; margin-top:10px;}
  @media(max-width:700px){
    .stats-grid{ grid-template-columns:repeat(2,1fr);}
    .stat-item:nth-child(3){ border-left:none;}
  }

  /* ---------- CARD TILT ---------- */
  .card, .service-card, .webproj-card{ transform-style:preserve-3d; will-change:transform;}
  .card{ transition:transform .25s ease, border-color .25s ease;}

  /* ---------- MISC MICRO-INTERACTIONS ---------- */
  .btn{ position:relative; overflow:hidden;}
  .btn::before{
    content:""; position:absolute; inset:0; background:rgba(255,255,255,0.16);
    transform:translateX(-110%) skewX(-12deg); transition:transform .5s ease;
  }
  .btn:hover::before{ transform:translateX(110%) skewX(-12deg);}
  .pill{ transition:all .2s ease;}
  .pill:hover{ border-color:var(--amber); color:var(--ink); transform:translateY(-2px);}
  .filter-btn.active{ background:var(--amber); border-color:var(--amber); color:#211200;}
  .service-num{ color:var(--amber);}
  .testi-nav button:hover{ border-color:var(--amber); color:var(--amber);}
  .lb-arrow:hover{ color:var(--amber);}
  .top-btn:hover{ border-color:var(--amber); color:var(--amber);}
  ::selection{ background:var(--amber); color:#211200;}

  /* ---------- TIKTOK CAROUSEL ---------- */
  .tiktok-carousel{
    display:flex; gap:20px; overflow-x:auto; scroll-snap-type:x mandatory;
    padding-bottom:10px; scrollbar-width:none; -ms-overflow-style:none;
  }
  .tiktok-carousel::-webkit-scrollbar{ display:none;}
  .tiktok-card{
    scroll-snap-align:start; flex:0 0 300px; border:1px solid var(--line); background:var(--bg-alt);
    min-height:540px; display:flex; align-items:center; justify-content:center; overflow:hidden;
  }
  .tiktok-card blockquote.tiktok-embed{ margin:0 !important; width:100%;}
  .tiktok-placeholder{
    flex:0 0 300px; min-height:540px; border:1px dashed var(--line); background:var(--bg-alt);
    display:flex; flex-direction:column; align-items:center; justify-content:center; gap:14px; text-align:center; padding:30px;
    font-family:'IBM Plex Mono'; font-size:12px; color:var(--ink-dim); text-transform:uppercase; letter-spacing:0.05em;
  }
  .tiktok-cta{ display:flex; justify-content:center; align-items:center; gap:18px; margin-top:36px;}
  .carousel-arrow{
    width:50px; height:50px; border-radius:50%; border:1px solid var(--line); background:transparent; color:var(--ink);
    font-family:'IBM Plex Mono'; font-size:17px; cursor:pointer; transition:all .2s; flex-shrink:0;
  }
  .carousel-arrow:hover{ border-color:var(--amber); color:var(--amber);}
  @media(max-width:640px){
    .tiktok-card, .tiktok-placeholder{ flex-basis:82%; min-height:480px;}
  }

  /* ---------- GRAIN TEXTURE (global) ---------- */
  #grainOverlay{
    position:fixed; inset:0; z-index:900; pointer-events:none;
    opacity:0.045; mix-blend-mode:overlay;
    background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  }

  /* ---------- AURORA AMBIENT BLOBS ---------- */
  .aurora{ position:absolute; inset:0; overflow:hidden; pointer-events:none; z-index:0;}
  .aurora span{
    position:absolute; border-radius:50%; filter:blur(64px); mix-blend-mode:screen; opacity:0.62;
    animation:auroraDrift 16s ease-in-out infinite alternate;
  }
  .aurora span:nth-child(1){ width:460px; height:460px; background:radial-gradient(circle, var(--cyan), transparent 70%); top:-10%; left:-8%; animation-duration:17s;}
  .aurora span:nth-child(2){ width:400px; height:400px; background:radial-gradient(circle, var(--amber), transparent 70%); bottom:-15%; right:-6%; animation-duration:14s; animation-delay:-4s;}
  .aurora span:nth-child(3){ width:300px; height:300px; background:radial-gradient(circle, var(--cyan), transparent 70%); top:35%; right:20%; animation-duration:20s; animation-delay:-9s; opacity:0.4;}
  @keyframes auroraDrift{
    0%{ transform:translate(0,0) scale(1);}
    50%{ transform:translate(70px,-55px) scale(1.22);}
    100%{ transform:translate(-55px,35px) scale(0.9);}
  }
  section.section, section.contact, section.hero, section.stats-band{ position:relative; overflow:hidden; }
  section.section > .wrap, section.contact > .wrap{ position:relative; z-index:1;}

  /* ---------- DOT GRID for alt sections ---------- */
  .section.alt{ position:relative; }
  .section.alt::before{
    content:""; position:absolute; inset:0; z-index:0; pointer-events:none;
    background-image:radial-gradient(rgba(244,242,234,0.06) 1px, transparent 1px);
    background-size:26px 26px;
    -webkit-mask-image:radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
    mask-image:radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
  }

  @media(prefers-reduced-motion: reduce){
    .aurora span{ animation:none;}
  }

  /* ---------- CUSTOM CURSOR ---------- */
  @media (pointer:fine){
    body.has-custom-cursor, body.has-custom-cursor a, body.has-custom-cursor button{ cursor:none;}
    #cursorDot, #cursorRing{
      position:fixed; top:0; left:0; z-index:1500; pointer-events:none;
      border-radius:50%; transform:translate(-50%,-50%);
    }
    #cursorDot{ width:6px; height:6px; background:var(--cyan); transition:background .2s ease, transform .12s ease;}
    #cursorRing{
      width:34px; height:34px; border:1px solid var(--cyan);
      transition:width .25s ease, height .25s ease, border-color .25s ease, opacity .25s ease, transform .05s linear;
      opacity:0.7;
    }
    body.cursor-hover #cursorRing{ width:56px; height:56px; border-color:var(--amber); opacity:0.9;}
    body.cursor-hover #cursorDot{ background:var(--amber);}
  }
