  :root{
    --bg: #0a0b0c;
    --bg-2: #131517;
    --bg-3: #1a1d1f;
    --line: rgba(238,241,244,0.09);
    --text: #eef1f4;
    --text-dim: #8d9499;
    --blue: #6ca7ee;
    --green: #95c651;
    --teal: #90ccc4;
    --grad: linear-gradient(100deg, var(--blue) 0%, var(--teal) 45%, var(--green) 100%);
    --grad-soft: linear-gradient(100deg, #ffffff 0%, #cfeee9 45%, var(--teal) 100%);
  }
  *{margin:0;padding:0;box-sizing:border-box;}
  html{scroll-behavior:smooth;}
  body{
    background:var(--bg);
    color:var(--text);
    font-family:'Inter', sans-serif;
    font-weight:300;
    overflow-x:hidden;
  }
  h1,h2,h3, .display{
    font-family:'Comfortaa', sans-serif;
    font-weight:600;
    letter-spacing:-0.01em;
  }
  a{color:inherit; text-decoration:none;}
  .wrap{max-width:1180px; margin:0 auto; padding:0 32px;}
  ::selection{background:var(--green); color:#0a0b0c;}

  /* NAV */
  nav{
    position:fixed; top:0; left:0; right:0; z-index:100;
    display:flex; align-items:center; justify-content:space-between;
    padding:22px 40px;
    background:rgba(10,11,12,0.55);
    backdrop-filter:blur(14px);
    border-bottom:1px solid transparent;
    transition:border-color .4s ease, background .4s ease;
  }
  nav.scrolled{border-bottom:1px solid var(--line); background:rgba(10,11,12,0.85);}
  .logo{display:flex; align-items:center; cursor:pointer; transition:opacity .25s ease;}
  .logo:hover{opacity:0.82;}
  .logo img{height:34px; width:auto; display:block;}
  .navlinks{display:flex; gap:38px; font-size:14px; color:var(--text-dim); font-weight:400;}
  .navlinks a{transition:color .25s ease;}
  .navlinks a:hover{color:var(--text);}
  .nav-cta{
    font-size:13px; padding:10px 22px; border-radius:30px;
    background:var(--grad); color:#0a0b0c; font-weight:600;
    transition:transform .25s ease, box-shadow .25s ease;
  }
  .nav-cta:hover{transform:translateY(-2px); box-shadow:0 8px 24px rgba(108,167,238,0.35);}
  .navlinks-mobile-hide{display:flex;}
  .nav-burger{
    display:none; flex-direction:column; justify-content:center; gap:5px;
    width:32px; height:24px; background:none; border:none; padding:0; cursor:pointer;
    -webkit-tap-highlight-color:transparent;
  }
  .nav-burger span{
    display:block; width:100%; height:2px; background:var(--text); border-radius:2px;
    transition:transform .3s ease, opacity .3s ease, background .3s ease;
  }
  .nav-burger[aria-expanded="true"] span:nth-child(1){transform:translateY(7px) rotate(45deg);}
  .nav-burger[aria-expanded="true"] span:nth-child(2){opacity:0;}
  .nav-burger[aria-expanded="true"] span:nth-child(3){transform:translateY(-7px) rotate(-45deg);}
  .mobile-menu{
    position:fixed; top:0; right:0; height:100vh; width:min(78vw,320px); z-index:99;
    background:rgba(10,11,12,0.97); backdrop-filter:blur(14px);
    border-left:1px solid var(--line);
    display:flex; flex-direction:column; align-items:flex-start; justify-content:center; gap:26px;
    padding:40px; transform:translateX(100%); transition:transform .4s cubic-bezier(.4,0,.2,1);
  }
  .mobile-menu.open{transform:translateX(0);}
  .mobile-menu a{font-size:19px; color:var(--text); font-family:'Comfortaa',sans-serif; font-weight:500;}
  .mobile-menu a.nav-cta{
    margin-top:10px; font-family:'Inter',sans-serif; font-size:14px;
  }
  @media (max-width:860px){
    .navlinks{display:none;}
    .nav-cta{display:none;}
    .nav-burger{display:flex;}
  }
  @media (min-width:861px){
    .mobile-menu{display:none;}
  }

  /* HERO */
  .hero{
    position:relative;
    min-height:100vh;
    display:flex; align-items:center; justify-content:center;
    text-align:center;
    overflow:hidden;
    background:radial-gradient(ellipse at 50% 40%, #16191b 0%, #0a0b0c 70%);
  }
  .ripples{
    position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
    pointer-events:none;
  }
  .ripples span{
    position:absolute; border-radius:50%;
    border:1px solid rgba(238,241,244,0.06);
    animation: ripple 8s ease-out infinite;
  }
  @keyframes ripple{
    0%{ width:80px; height:80px; opacity:0; }
    15%{ opacity:1; }
    100%{ width:1400px; height:1400px; opacity:0; }
  }
  .hero-inner{position:relative; z-index:2; max-width:780px; padding:0 24px; transition:max-width .7s ease;}
  .hero.lit .hero-inner{max-width:1180px;}

  .hero-top{display:flex; flex-direction:column; align-items:center; transition:gap .6s ease;}
  .hero.lit .hero-top{flex-direction:row; align-items:center; justify-content:center; gap:64px;}

  .hero-text{opacity:1; transition:opacity .25s ease;}
  .hero.shift .hero-text{opacity:0;}
  .hero.lit .hero-text{text-align:left;}
  .hero.lit .hero-text p{margin:0; max-width:400px;}
  .hero.lit .hero-text .eyebrow{justify-content:flex-start;}

  .eyebrow{
    font-size:12.5px; letter-spacing:0.22em; text-transform:uppercase;
    color:var(--teal); margin-bottom:28px; display:inline-flex; align-items:center; gap:10px;
  }
  .eyebrow::before{content:''; width:26px; height:1px; background:var(--teal); display:inline-block;}
  .hero h1{
    font-size:clamp(38px, 6vw, 68px);
    line-height:1.08;
    margin-bottom:26px;
  }
  .hero h1 .grad-text{
    background:var(--grad);
    -webkit-background-clip:text; background-clip:text; color:transparent;
  }
  .hero p{
    font-size:18px; line-height:1.65; color:var(--text-dim);
    max-width:560px; margin:0 auto 44px;
    font-weight:300;
  }
  #heroHeadline, #heroSub{transition:opacity .3s ease;}
  #heroHeadline.fade, #heroSub.fade{opacity:0;}
  .hero-ctas{display:flex; gap:16px; justify-content:center; flex-wrap:wrap; margin-top:40px;}
  .btn-primary{
    padding:16px 34px; border-radius:40px;
    background:var(--grad); color:#0a0b0c; font-weight:600; font-size:15px;
    transition:transform .25s ease, box-shadow .25s ease;
    font-family:'Inter',sans-serif;
  }
  .btn-primary:hover{transform:translateY(-3px); box-shadow:0 12px 30px rgba(108,167,238,0.3);}
  .btn-secondary{
    padding:16px 34px; border-radius:40px; border:1px solid var(--line);
    color:var(--text); font-weight:500; font-size:15px;
    transition:border-color .25s ease, background .25s ease;
  }
  .btn-secondary:hover{border-color:var(--teal); background:rgba(144,204,196,0.06);}

  /* HERO POWER SWITCH — tap to "power up" the home */
  .hero-power{display:flex; flex-direction:column; align-items:center; margin:36px auto 0;}
  .hero-switch{
    position:relative; width:64px; height:34px; padding:0; border:none; background:none;
    cursor:pointer; -webkit-tap-highlight-color:transparent;
  }
  .hs-glow{
    position:absolute; inset:-22px; border-radius:40px; background:var(--grad);
    opacity:0; filter:blur(20px); pointer-events:none; transition:opacity .5s ease;
  }
  .hs-track{
    display:block; width:64px; height:34px; border-radius:20px;
    border:1.5px solid var(--line); background:var(--bg-2);
    transition:border-color .4s ease;
  }
  .hs-knob{
    position:absolute; left:4px; top:4px; width:24px; height:24px; border-radius:50%;
    background:#3a3f42; transition:left .45s cubic-bezier(.4,0,.2,1), background .45s ease, box-shadow .45s ease;
  }
  .hero-power.on .hs-track{border-color:#eef1f4;}
  .hero-power.on .hs-knob{left:34px; background:var(--grad-soft); box-shadow:0 0 18px rgba(238,241,244,0.6), 0 0 10px rgba(144,204,196,0.5);}
  .hero-power.on .hs-glow{opacity:0.6; background:var(--grad-soft); animation:hs-breathe 2.4s ease-in-out infinite;}
  @keyframes hs-breathe{0%,100%{opacity:.35;} 50%{opacity:.6;}}

  /* subtle prompt below the switch, invites the tap, fades away once lit */
  #heroHint.hero-hint{
    margin-top:14px; font-size:10.5px; letter-spacing:.09em; text-transform:uppercase;
    color:var(--text-dim); text-align:center; white-space:nowrap; font-weight:400;
    animation:hintPulse 2.6s ease-in-out infinite;
    transition:opacity .3s ease, max-height .3s ease, margin-top .3s ease;
    max-height:18px; overflow:hidden;
  }
  .hero.lit #heroHint.hero-hint{opacity:0; max-height:0; margin-top:0; animation:none;}
  .hero.shift #heroHint.hero-hint{opacity:0;}
  @keyframes hintPulse{0%,100%{opacity:.4;} 50%{opacity:.85;}}

  /* HERO ORBIT — radial diagram that expands around the switch when "on" */
  .hero.lit .hero-top{gap:20px;}

  .hero-orbit{
    position:relative;
    display:grid;
    grid-template-columns:0px auto 0px;
    grid-template-rows:0px auto 0px;
    grid-template-areas:
      ".    top    ."
      "left center right"
      ".    bottom .";
    align-items:center; justify-items:center;
    row-gap:0px; column-gap:0px;
    width:auto;
    transition:grid-template-columns .8s cubic-bezier(.4,0,.2,1),
               grid-template-rows .8s cubic-bezier(.4,0,.2,1),
               row-gap .8s ease, column-gap .8s ease;
  }
  .hero.lit .hero-orbit{
    grid-template-columns:190px auto 190px;
    grid-template-rows:172px auto 172px;
    row-gap:8px; column-gap:34px;
    width:min(560px, 92vw);
  }
  .ho-center{grid-area:center; margin:0; opacity:1; transition:opacity .25s ease;}
  .hero.shift .ho-center{opacity:0;}
  .ho-top{grid-area:top;}
  .ho-left{grid-area:left;}
  .ho-right{grid-area:right;}
  .ho-bottom{grid-area:bottom;}

  .ho-ring{
    position:absolute; left:50%; top:50%; transform:translate(-50%,-50%);
    border:1px dashed var(--line); border-radius:50%; opacity:0; pointer-events:none;
    transition:opacity .5s ease;
  }
  .ho-ring-1{width:64%; height:64%;}
  .ho-ring-2{width:100%; height:100%;}
  .hero.lit .ho-ring{opacity:.6; transition-delay:.3s;}

  .ho-line{position:absolute; background:none; pointer-events:none; opacity:0; transition:opacity .5s ease;}
  .ho-line-v{left:50%; top:6%; bottom:6%; width:0; border-left:1px dashed var(--line); transform:translateX(-50%);}
  .ho-line-h{top:50%; left:2%; right:2%; height:0; border-top:1px dashed var(--line); transform:translateY(-50%);}
  .hero.lit .ho-line{opacity:.7; transition-delay:.35s;}

  .ho-dot{position:absolute; width:4px; height:4px; border-radius:50%; background:var(--teal); opacity:0; transition:opacity .4s ease;}
  .ho-dot-tl{left:14%; top:22%;} .ho-dot-tr{right:14%; top:22%;}
  .ho-dot-bl{left:14%; bottom:22%;} .ho-dot-br{right:14%; bottom:22%;}
  .hero.lit .ho-dot{opacity:.5; animation:hoDotPulse 2.6s ease-in-out infinite; transition-delay:.5s;}
  .hero.lit .ho-dot-tr{animation-delay:.6s;} .hero.lit .ho-dot-bl{animation-delay:1.2s;} .hero.lit .ho-dot-br{animation-delay:1.8s;}
  @keyframes hoDotPulse{0%,100%{opacity:.25; transform:scale(.8);} 50%{opacity:.8; transform:scale(1.15);}}

  .ho-node{
    display:flex; flex-direction:column; align-items:center; text-align:center; gap:4px;
    width:150px;
    opacity:0; transform:scale(.85); transition:opacity .5s ease, transform .5s ease;
  }
  .hero.lit .ho-node{opacity:1; transform:scale(1);}
  .hero.lit .ho-top{transition-delay:.1s;}
  .hero.lit .ho-left{transition-delay:.28s;}
  .hero.lit .ho-right{transition-delay:.46s;}
  .hero.lit .ho-bottom{transition-delay:.64s;}

  .ho-icon{
    width:88px; height:88px; border-radius:50%;
    display:flex; align-items:center; justify-content:center;
    border:2px solid var(--node-c, var(--teal));
    box-shadow:0 0 22px var(--node-glow, rgba(144,204,196,.32));
    color:var(--node-c, var(--teal));
    margin-bottom:6px;
  }
  .ho-icon svg{width:28px; height:28px;}
  .ho-confort{--node-c:var(--green); --node-glow:rgba(149,198,81,.4);}
  .ho-simplicidad{--node-c:var(--blue); --node-glow:rgba(108,167,238,.4);}
  .ho-conectividad{--node-c:var(--teal); --node-glow:rgba(144,204,196,.4);}
  .ho-control{--node-c:var(--blue); --node-glow:rgba(108,167,238,.4);}
  .ho-title{font-family:'Comfortaa',sans-serif; font-size:14px; font-weight:700; letter-spacing:.04em; text-transform:uppercase; color:var(--text);}
  .ho-desc{font-size:13.5px; line-height:1.5; color:var(--text-dim); font-weight:300;}

  @media (max-width:900px){
    .hero.lit .hero-top{flex-direction:column; gap:36px;}
    .hero.lit .hero-text{text-align:center;}
    .hero.lit .hero-text p{margin:0 auto;}
    .hero.lit .hero-text .eyebrow{justify-content:center;}
    .hero.lit .hero-orbit{
      grid-template-columns:118px auto 118px;
      grid-template-rows:132px auto 132px;
      row-gap:28px; column-gap:16px;
      width:min(420px, 92vw);
    }
    .ho-node{width:118px;}
    .ho-icon{width:68px; height:68px;}
    .ho-icon svg{width:22px; height:22px;}
    .ho-title{font-size:12.5px;}
    .ho-desc{font-size:12px;}
  }

  /* MARQUEE BRANDS */
  .brandbar{
    border-top:1px solid var(--line); border-bottom:1px solid var(--line);
    padding:30px 0 34px; background:var(--bg-2); overflow:hidden;
  }
  .brandbar-label{margin-bottom:20px;}
  .brandbar-label span{
    font-family:'Comfortaa',sans-serif; font-size:12px; letter-spacing:0.22em;
    text-transform:uppercase; color:var(--text-dim); font-weight:500;
  }
  .marquee{
    width:100%; overflow:hidden;
    -webkit-mask-image:linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image:linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  }
  .marquee-track{
    display:flex; align-items:center; gap:36px; width:max-content;
    animation:marquee 26s linear infinite;
  }
  .marquee-track span{
    font-family:'Comfortaa',sans-serif; font-size:19px; letter-spacing:0.03em;
    color:var(--text); font-weight:600; white-space:nowrap; opacity:0.82;
    transition:opacity .3s ease, color .3s ease;
  }
  .marquee-track span:hover{opacity:1; color:var(--teal);}
  .marquee-track .dot{color:var(--teal); font-weight:400; opacity:0.55; font-size:14px;}
  @keyframes marquee{ 0%{transform:translateX(0);} 100%{transform:translateX(-50%);} }
  .marquee:hover .marquee-track{animation-play-state:paused;}

  /* SECTION GENERIC */
  section{position:relative; padding:130px 0; scroll-margin-top:90px;}
  .section-head{max-width:640px; margin-bottom:70px;}
  .section-eyebrow{
    font-size:12.5px; letter-spacing:0.2em; text-transform:uppercase; color:var(--teal);
    margin-bottom:18px; display:block;
  }
  .section-head h2{font-size:clamp(28px,4vw,42px); line-height:1.2; margin-bottom:18px;}
  .section-head p{color:var(--text-dim); font-size:16.5px; line-height:1.7; font-weight:300;}

  /* SERVICES — toggle cards */
  .services-grid{display:grid; grid-template-columns:repeat(2,1fr); gap:1px; background:var(--line); border:1px solid var(--line);}
  .service-card{
    background:var(--bg); padding:52px 46px; position:relative; overflow:hidden;
    transition:background .35s ease;
  }
  .service-card:hover{background:var(--bg-2);}
  .service-top{display:flex; align-items:flex-start; justify-content:space-between; margin-bottom:38px;}
  .service-num{font-family:'Comfortaa',sans-serif; font-size:13px; color:var(--text-dim);}
  /* SERVICE ICONS — animated, themed per category */
  .service-icon{width:52px; height:28px; flex-shrink:0; overflow:visible;}

  /* 01 Audio — equalizer bars */
  .icon-audio .bar{fill:#3a3f42; transition:fill .4s ease; transform-box:fill-box; transform-origin:bottom;}
  .service-card:hover .icon-audio .bar{fill:var(--teal); filter:drop-shadow(0 0 5px rgba(144,204,196,0.6)); animation:eqbar 1s ease-in-out infinite;}
  .service-card:hover .icon-audio .bar:nth-child(1){animation-delay:.15s;}
  .service-card:hover .icon-audio .bar:nth-child(2){animation-delay:0s;}
  .service-card:hover .icon-audio .bar:nth-child(3){animation-delay:.3s;}
  .service-card:hover .icon-audio .bar:nth-child(4){animation-delay:.45s;}
  @keyframes eqbar{0%,100%{transform:scaleY(0.45);} 50%{transform:scaleY(1);}}

  /* 02 Conectividad — wifi arcs lighting up */
  .icon-wifi .arc, .icon-wifi .dot{
    fill:none; stroke:#3a3f42; stroke-width:2.4; stroke-linecap:round;
    transition:stroke .4s ease;
  }
  .icon-wifi .dot{fill:#3a3f42; stroke:none; transition:fill .4s ease;}
  .service-card:hover .icon-wifi .arc, .service-card:hover .icon-wifi .dot{
    stroke:var(--teal); fill:var(--teal); filter:drop-shadow(0 0 5px rgba(144,204,196,0.6));
    animation:wifipulse 1.4s ease-in-out infinite;
  }
  .service-card:hover .icon-wifi .dot{animation-delay:0s;}
  .service-card:hover .icon-wifi .arc1{animation-delay:.15s;}
  .service-card:hover .icon-wifi .arc2{animation-delay:.3s;}
  .service-card:hover .icon-wifi .arc3{animation-delay:.45s;}
  @keyframes wifipulse{0%,100%{opacity:.35;} 50%{opacity:1;}}

  /* 03 Seguridad — classic videocam silhouette: body + viewfinder, easily recognizable */
  .icon-camera .mount{fill:#3a3f42; transition:fill .4s ease;}
  .icon-camera .cam-head{transform-box:fill-box; transform-origin:8% 50%;}
  .icon-camera .cam-shell{fill:#3a3f42; transition:fill .4s ease;}
  .icon-camera .lens-dot{fill:#1a1d1f; transition:fill .4s ease; transform-box:fill-box; transform-origin:center;}
  .icon-camera .rec{fill:#3a3f42; transition:fill .4s ease;}
  .service-card:hover .icon-camera .mount{fill:var(--teal);}
  .service-card:hover .icon-camera .cam-shell{fill:var(--teal); filter:drop-shadow(0 0 5px rgba(144,204,196,0.55));}
  .service-card:hover .icon-camera .cam-head{animation:ptzpan 3.2s ease-in-out infinite;}
  .service-card:hover .icon-camera .lens-dot{fill:var(--bg); animation:ptzzoom 2.4s ease-in-out infinite;}
  .service-card:hover .icon-camera .rec{fill:var(--green); filter:drop-shadow(0 0 4px rgba(149,198,81,0.7)); animation:recblink 1s ease-in-out infinite;}
  @keyframes ptzpan{0%,100%{transform:rotate(-13deg);} 50%{transform:rotate(13deg);}}
  @keyframes ptzzoom{0%,100%{transform:scale(0.7);} 50%{transform:scale(1.25);}}
  @keyframes recblink{0%,100%{opacity:.25;} 50%{opacity:1;}}

  /* 04 Automatización — phone tap lights up a bulb */
  .icon-phone-led .phone{fill:#3a3f42; transition:fill .4s ease;}
  .icon-phone-led .phone-screen{fill:#1a1d1f; transition:fill .4s ease;}
  .icon-phone-led .signal{fill:none; stroke:#3a3f42; stroke-width:2; stroke-linecap:round; stroke-dasharray:3 4; transition:stroke .4s ease;}
  .icon-phone-led .bulb{fill:#3a3f42; transition:fill .4s ease;}
  .icon-phone-led .bulb-base{stroke:#3a3f42; stroke-width:1.6; stroke-linecap:round; transition:stroke .4s ease;}
  .icon-phone-led .glow{fill:var(--green); opacity:0; transform-box:fill-box; transform-origin:center; transition:opacity .3s ease;}
  .service-card:hover .icon-phone-led .phone{fill:var(--teal);}
  .service-card:hover .icon-phone-led .phone-screen{fill:var(--grad); animation:phonetap 1.6s ease-in-out infinite;}
  .service-card:hover .icon-phone-led .signal{stroke:var(--teal); animation:signalflow 1.6s linear infinite;}
  .service-card:hover .icon-phone-led .bulb{fill:var(--green); filter:drop-shadow(0 0 7px rgba(149,198,81,0.7)); animation:bulbon 1.6s ease-in-out infinite;}
  .service-card:hover .icon-phone-led .bulb-base{stroke:var(--green);}
  .service-card:hover .icon-phone-led .glow{animation:ledglow 1.6s ease-in-out infinite;}
  @keyframes phonetap{0%,60%,100%{opacity:1;} 30%{opacity:.5;}}
  @keyframes signalflow{0%{stroke-dashoffset:14;} 100%{stroke-dashoffset:0;}}
  @keyframes bulbon{0%,55%{opacity:.5;} 70%,100%{opacity:1;}}
  @keyframes ledglow{0%,55%{opacity:.1; transform:scale(0.8);} 70%,100%{opacity:.55; transform:scale(1.3);}}
  .service-card h3{font-size:23px; margin-bottom:14px; font-weight:600;}
  .service-card p{color:var(--text-dim); font-size:15px; line-height:1.7; font-weight:300; margin-bottom:22px;}
  .service-tags{display:flex; gap:8px; flex-wrap:wrap;}
  .service-tags span{
    font-size:11.5px; padding:6px 14px; border-radius:20px; border:1px solid var(--line);
    color:var(--text-dim); letter-spacing:0.03em;
  }
  @media (max-width:760px){ .services-grid{grid-template-columns:1fr;} .service-card{padding:40px 28px;} }

  /* PROYECTOS — case-study cards */
  .projects-grid{
    display:grid; grid-template-columns:repeat(3,1fr); gap:26px;
  }
  .project-card{
    border:1px solid var(--line); border-radius:18px; overflow:hidden;
    background:var(--bg-2); display:flex; flex-direction:column;
    transition:transform .3s ease, border-color .3s ease;
  }
  .project-card:hover{transform:translateY(-6px); border-color:var(--teal);}
  .project-media{position:relative; height:200px; overflow:hidden; background:var(--bg-3);}
  .project-media img{
    width:100%; height:100%; object-fit:cover; display:block;
    transition:transform .7s cubic-bezier(.2,.6,.3,1);
  }
  .project-card:hover .project-media img{transform:scale(1.06);}
  .project-tag{
    position:absolute; top:16px; left:16px; z-index:2;
    font-size:11px; letter-spacing:0.1em; text-transform:uppercase;
    padding:7px 14px; border-radius:20px;
    background:rgba(10,11,12,0.55); backdrop-filter:blur(6px);
    border:1px solid rgba(238,241,244,0.18); color:var(--text);
  }
  .project-media-soon{
    position:absolute; inset:0; z-index:1;
    display:flex; align-items:center; justify-content:center;
    background:linear-gradient(160deg, var(--bg-3), var(--bg-2));
  }
  .project-media-soon span{
    font-size:12px; letter-spacing:0.08em; color:var(--text-dim);
    padding:8px 16px; border-radius:20px; border:1px solid var(--line);
  }
  .project-body{padding:26px 26px 28px; display:flex; flex-direction:column; flex:1;}
  .project-body h3{font-size:18.5px; margin-bottom:10px; font-weight:600; line-height:1.35;}
  .project-body p{color:var(--text-dim); font-size:14px; line-height:1.65; font-weight:300; margin-bottom:0; flex:1;}
  .project-card.featured{grid-column:span 3;}
  .project-card.featured .project-media{height:280px;}
  @media (min-width:761px){
    .project-card.featured{display:grid; grid-template-columns:1.1fr 1fr;}
    .project-card.featured .project-media{height:100%;}
    .project-card.featured .project-body{justify-content:center; padding:44px 48px;}
    .project-card.featured h3{font-size:24px;}
    .project-card.featured p{font-size:15px;}
  }
  @media (max-width:900px){
    .projects-grid{grid-template-columns:repeat(2,1fr);}
    .project-card.featured{grid-column:span 2;}
  }
  @media (max-width:600px){
    .projects-grid{grid-template-columns:1fr;}
    .project-card.featured{grid-column:span 1;}
  }

  /* BLOG — preview cards */
  .blog-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:26px;}
  .blog-card{
    border:1px solid var(--line); border-radius:18px; overflow:hidden;
    background:var(--bg-2); display:flex; flex-direction:column;
    transition:transform .3s ease, border-color .3s ease;
  }
  .blog-card:hover{transform:translateY(-6px); border-color:var(--teal);}
  .blog-media{
    height:150px; position:relative; overflow:hidden;
    background:linear-gradient(135deg, var(--bg-3) 0%, var(--bg-2) 60%);
    display:flex; align-items:flex-end; padding:18px 22px;
  }
  .blog-media::before{
    content:''; position:absolute; top:-40%; right:-20%; width:180px; height:180px;
    border-radius:50%; background:var(--grad); opacity:0.14; filter:blur(6px);
  }
  .blog-media span{
    position:relative; z-index:1; font-family:'Comfortaa',sans-serif; font-size:12px;
    letter-spacing:0.12em; text-transform:uppercase; color:var(--teal); font-weight:600;
  }
  .blog-body{padding:24px 26px 26px; display:flex; flex-direction:column; flex:1;}
  .blog-meta{font-size:11px; color:var(--text-dim); letter-spacing:0.04em; margin-bottom:12px;}
  .blog-body h3{font-size:17.5px; margin-bottom:12px; font-weight:600; line-height:1.4;}
  .blog-body p{color:var(--text-dim); font-size:14px; line-height:1.65; font-weight:300; margin-bottom:22px; flex:1;}
  .blog-link{font-size:13px; font-weight:600; color:var(--text); display:inline-flex; align-items:center; gap:8px;}
  .blog-link .arrow{transition:transform .25s ease;}
  .blog-card:hover .blog-link .arrow{transform:translateX(5px);}
  .blog-card.soon{opacity:0.72;}
  .blog-card.soon .blog-link{color:var(--text-dim);}
  .blog-foot{display:flex; justify-content:center; margin-top:52px;}
  @media (max-width:900px){ .blog-grid{grid-template-columns:1fr 1fr;} }
  @media (max-width:600px){ .blog-grid{grid-template-columns:1fr;} }

  /* PILLARS */
  .pillars{
    background:var(--bg-2); border-top:1px solid var(--line); border-bottom:1px solid var(--line);
  }
  .pillars-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:0;}
  .pillar{padding:56px 40px; border-right:1px solid var(--line);}
  .pillar:last-child{border-right:none;}
  .pillar .pnum{font-family:'Comfortaa',sans-serif; font-size:34px; background:var(--grad); -webkit-background-clip:text; background-clip:text; color:transparent; margin-bottom:18px; display:block;}
  .pillar h3{font-size:19px; margin-bottom:12px; font-weight:600;}
  .pillar p{color:var(--text-dim); font-size:14.5px; line-height:1.7; font-weight:300;}
  @media (max-width:760px){ .pillars-grid{grid-template-columns:1fr;} .pillar{border-right:none; border-bottom:1px solid var(--line);} }

  /* SEGMENTS */
  .segments-grid{display:grid; grid-template-columns:1fr 1fr; gap:24px;}
  .segment{
    border:1px solid var(--line); border-radius:18px; padding:52px 44px;
    position:relative; overflow:hidden; transition:border-color .3s ease, transform .3s ease;
  }
  .segment:hover{border-color:var(--teal); transform:translateY(-4px);}
  .segment::before{
    content:''; position:absolute; top:-40%; right:-30%; width:280px; height:280px; border-radius:50%;
    background:var(--grad); opacity:0.06; filter:blur(10px);
  }
  .segment .seg-eyebrow{font-size:12px; letter-spacing:0.15em; text-transform:uppercase; color:var(--teal); margin-bottom:20px; display:block;}
  .segment h3{font-size:26px; margin-bottom:16px;}
  .segment p{color:var(--text-dim); font-size:15px; line-height:1.7; margin-bottom:30px; font-weight:300;}
  .segment a.link{
    font-size:14px; font-weight:600; color:var(--text); display:inline-flex; align-items:center; gap:8px;
  }
  .segment a.link .arrow{transition:transform .25s ease;}
  .segment:hover a.link .arrow{transform:translateX(5px);}
  @media (max-width:760px){ .segments-grid{grid-template-columns:1fr;} }

  /* PROCESS — compact stepper, no methodology detail */
  .process-mini{
    display:grid; grid-template-columns:repeat(4,1fr); gap:0;
    border-top:1px solid var(--line); margin-top:10px; position:relative;
  }
  .process-mini::before{
    content:''; position:absolute; top:0; left:0; right:0; height:1px;
    background:var(--grad); opacity:0.35; transform:scaleX(0); transform-origin:left;
    transition:transform 1.2s ease;
  }
  .process-mini.in::before{transform:scaleX(1);}
  .pm-step{
    padding:34px 28px 0; border-right:1px solid var(--line);
    display:flex; flex-direction:column; gap:10px;
  }
  .pm-step:last-child{border-right:none;}
  .pm-step .pn{
    font-family:'Comfortaa',sans-serif; font-size:13px; color:var(--teal); letter-spacing:0.08em;
  }
  .pm-step h4{font-size:18px; font-weight:600;}
  @media (max-width:760px){
    .process-mini{grid-template-columns:1fr 1fr; row-gap:26px;}
    .pm-step{border-right:1px solid var(--line);}
    .pm-step:nth-child(2n){border-right:none;}
  }

  /* CTA */
  .cta{
    background:var(--bg-2); border-top:1px solid var(--line);
    text-align:center; padding:130px 24px;
    position:relative; overflow:hidden;
  }
  .cta::before{
    content:''; position:absolute; top:50%; left:50%; width:600px; height:600px;
    background:var(--grad); opacity:0.08; filter:blur(80px); border-radius:50%;
    transform:translate(-50%,-50%);
  }
  .cta-inner{position:relative; z-index:2; max-width:620px; margin:0 auto;}
  .cta h2{font-size:clamp(28px,4vw,44px); margin-bottom:20px;}
  .cta p{color:var(--text-dim); font-size:16.5px; margin-bottom:0; line-height:1.6; font-weight:300;}

  /* CONTACT FORM */
  .contact-form{
    margin:44px auto 0; max-width:600px; text-align:left;
    display:flex; flex-direction:column; gap:22px;
  }
  .cf-row{display:grid; grid-template-columns:1fr 1fr; gap:20px;}
  .cf-field{display:flex; flex-direction:column; gap:9px;}
  .cf-field label, .cf-label{
    font-size:12px; letter-spacing:0.08em; text-transform:uppercase; color:var(--text-dim);
  }
  .contact-form input[type="text"],
  .contact-form input[type="tel"],
  .contact-form input[type="email"],
  .contact-form textarea{
    background:var(--bg-2); border:1px solid var(--line); border-radius:10px;
    padding:13px 16px; color:var(--text); font-family:'Inter',sans-serif; font-size:14.5px;
    transition:border-color .25s ease, background .25s ease; width:100%;
  }
  .contact-form input::placeholder, .contact-form textarea::placeholder{color:var(--text-dim); opacity:0.6;}
  .contact-form input:focus, .contact-form textarea:focus{
    outline:none; border-color:var(--teal); background:var(--bg-3);
  }
  .contact-form textarea{resize:vertical; min-height:80px; font-family:'Inter',sans-serif;}
  .cf-checks{display:flex; flex-wrap:wrap; gap:10px;}
  .cf-check{position:relative; display:inline-flex;}
  .cf-check input{position:absolute; opacity:0; width:0; height:0;}
  .cf-check span{
    display:inline-block; padding:9px 18px; border-radius:20px; border:1px solid var(--line);
    font-size:13.5px; color:var(--text-dim); cursor:pointer; transition:all .25s ease;
  }
  .cf-check input:checked + span{
    border-color:var(--teal); color:var(--text); background:rgba(144,204,196,0.1);
  }
  .cf-submit{
    align-self:center; border:none; cursor:pointer; margin-top:6px;
    font-family:'Inter',sans-serif;
  }
  .cf-submit:disabled{opacity:0.6; cursor:not-allowed; transform:none; box-shadow:none;}
  .cf-status{min-height:20px; font-size:13.5px; text-align:center; color:var(--text-dim);}
  .cf-status.ok{color:var(--green);}
  .cf-status.err{color:#e08a8a;}
  .cta-alt{
    margin-top:44px; padding-top:34px; border-top:1px solid var(--line);
    display:flex; flex-direction:column; align-items:center; gap:16px;
  }
  .cta-alt span{font-size:13px; color:var(--text-dim);}
  @media (max-width:640px){ .cf-row{grid-template-columns:1fr;} }

  /* FOOTER */
  footer{padding:70px 0 40px; border-top:1px solid var(--line);}
  .footer-grid{display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:40px; margin-bottom:60px;}
  .footer-logo{display:flex; align-items:center; margin-bottom:18px;}
  .footer-logo img{height:36px; width:auto; display:block;}
  footer p{color:var(--text-dim); font-size:14px; line-height:1.7; font-weight:300; max-width:280px;}
  footer h5{font-size:12.5px; letter-spacing:0.12em; text-transform:uppercase; color:var(--text-dim); margin-bottom:20px; font-weight:600;}
  footer ul{list-style:none;}
  footer li{margin-bottom:12px; font-size:14.5px;}
  footer li a{color:var(--text); opacity:0.85; transition:opacity .2s ease;}
  footer li a:hover{opacity:1; color:var(--teal);}
  .footer-bottom{
    display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:16px;
    padding-top:30px; border-top:1px solid var(--line);
    font-size:13px; color:var(--text-dim);
  }
  @media (max-width:800px){ .footer-grid{grid-template-columns:1fr 1fr;} }

  /* WHATSAPP FLOAT */
  .wa-float{
    position:fixed; bottom:28px; right:28px; z-index:200;
    width:58px; height:58px; border-radius:50%;
    background:var(--grad); display:flex; align-items:center; justify-content:center;
    box-shadow:0 10px 30px rgba(108,167,238,0.35);
    transition:transform .25s ease;
  }
  .wa-float:hover{transform:scale(1.08);}

  .reveal{opacity:0; transform:translateY(24px); transition:opacity .8s ease, transform .8s ease;}
  .reveal.in{opacity:1; transform:translateY(0);}

  @media (prefers-reduced-motion: reduce){
    *{animation:none !important; transition:none !important;}
  }

/* BLOG LISTING PAGE */
.blog-hero{padding:170px 0 60px;}
.blog-hero .section-eyebrow{margin-bottom:18px;}
.blog-hero h1{font-size:clamp(32px,5vw,50px); line-height:1.15; margin-bottom:18px; max-width:680px;}
.blog-hero p{color:var(--text-dim); font-size:16.5px; line-height:1.7; font-weight:300; max-width:560px;}
.blog-listing{padding-top:20px;}
.blog-listing .blog-grid{grid-template-columns:repeat(3,1fr);}
@media (max-width:900px){ .blog-listing .blog-grid{grid-template-columns:1fr 1fr;} }
@media (max-width:600px){ .blog-listing .blog-grid{grid-template-columns:1fr;} }

/* BLOG POST / ARTICLE PAGE */
.post-hero{padding:160px 0 20px;}
.breadcrumb{font-size:13px; color:var(--text-dim); margin-bottom:26px;}
.breadcrumb a{color:var(--text-dim); transition:color .2s ease;}
.breadcrumb a:hover{color:var(--teal);}
.post-hero .section-eyebrow{margin-bottom:18px;}
.post-hero h1{font-size:clamp(30px,4.6vw,46px); line-height:1.18; max-width:820px; margin-bottom:22px;}
.post-meta{display:flex; gap:14px; align-items:center; color:var(--text-dim); font-size:13.5px; margin-bottom:10px;}
.post-meta .dot{width:3px; height:3px; border-radius:50%; background:var(--text-dim);}
article.post-body{padding:30px 0 60px; max-width:760px;}
article.post-body p{font-size:16.5px; line-height:1.85; color:var(--text-dim); font-weight:300; margin-bottom:26px;}
article.post-body h2{font-size:26px; margin:48px 0 20px; font-weight:600;}
article.post-body h3{font-size:20px; margin:34px 0 14px; font-weight:600; color:var(--text);}
article.post-body ul{margin:0 0 26px 22px; color:var(--text-dim); font-size:16px; line-height:1.85; font-weight:300;}
article.post-body li{margin-bottom:8px;}
article.post-body strong{color:var(--text); font-weight:600;}
.post-divider{height:1px; background:var(--line); margin:52px 0;}
.post-cta{
  border:1px solid var(--line); border-radius:18px; padding:44px 40px;
  background:var(--bg-2); text-align:center; margin-top:20px;
}
.post-cta h3{font-size:22px; margin-bottom:14px;}
.post-cta p{color:var(--text-dim); font-size:15px; line-height:1.7; margin-bottom:26px; max-width:480px; margin-left:auto; margin-right:auto;}


/* Ambient background warms up slightly when the switch is on */
.hero{transition:background 1s ease;}
.hero.lit{background:radial-gradient(ellipse at 50% 38%, #1c2622 0%, #0a0b0c 68%);}
