/* DualTech Studio — Institutional Light Theme
   Notes: No external dependencies. Accessible defaults.
*/
:root{
  --bg: #ffffff;
  --bg-soft: #f5f7fb;
  --text: #0f172a;
  --muted: #475569;
  --line: rgba(15,23,42,.12);
  --shadow: 0 18px 40px rgba(15,23,42,.10);
  --shadow-soft: 0 10px 24px rgba(15,23,42,.08);

  /* Brand blues (approx from logo) */
  --blue-900:#0b2d7a;
  --blue-700:#0f4fd6;
  --blue-600:#1a66ff;
  --blue-400:#67b6ff;
  --accent: var(--blue-700);

  --radius: 18px;
  --radius-sm: 12px;
  --container: 1120px;

  --ease: cubic-bezier(.2,.8,.2,1);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color:var(--text);
  background: radial-gradient(1200px 420px at 15% -10%, rgba(103,182,255,.28), rgba(255,255,255,0) 60%),
              radial-gradient(900px 360px at 85% 0%, rgba(15,79,214,.16), rgba(255,255,255,0) 55%),
              var(--bg);
  line-height:1.55;
}

a{color:inherit; text-decoration:none}
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible{
  outline: 3px solid rgba(26,102,255,.35);
  outline-offset: 2px;
  border-radius: 10px;
}

img{max-width:100%; display:block}
.container{max-width:var(--container); margin:0 auto; padding:0 20px}

.skip-link{
  position:absolute; left:-999px; top:auto; width:1px; height:1px; overflow:hidden;
}
.skip-link:focus{left:20px; top:16px; width:auto; height:auto; padding:10px 14px; background:#fff; border:1px solid var(--line); border-radius:12px; z-index:9999}

header.site-header{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(12px);
  background: rgba(255,255,255,.78);
  border-bottom: 1px solid var(--line);
}

.nav{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 0;
  gap:14px;
}

.brand{
  display:flex; align-items:center; gap:12px;
  min-width: 220px;
}
.brand-mark{
  width:42px; height:42px; border-radius:14px;
  background: linear-gradient(135deg, rgba(15,79,214,1), rgba(103,182,255,1));
  box-shadow: 0 14px 28px rgba(15,79,214,.16);
  position:relative;
  overflow:hidden;
}
.brand-mark::after{
  content:"";
  position:absolute; inset:-40%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.75), rgba(255,255,255,0) 55%);
  transform: rotate(25deg);
}
.brand-title{
  display:flex; flex-direction:column; line-height:1.05;
}
.brand-title strong{font-size:14px; letter-spacing:.16em}
.brand-title span{font-size:11px; letter-spacing:.22em; color:var(--muted); margin-top:4px}

.nav-links{
  display:flex; align-items:center; gap:18px;
}
.nav-links a{
  font-size:14px;
  color: var(--muted);
  padding:10px 10px;
  border-radius: 12px;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.nav-links a:hover{background: rgba(15,79,214,.06); color: var(--text)}
.nav-links a.active{background: rgba(15,79,214,.10); color: var(--text); border:1px solid rgba(15,79,214,.16)}

.nav-cta{
  display:flex; align-items:center; gap:10px;
}

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:10px;
  border-radius: 14px;
  padding:12px 16px;
  border: 1px solid rgba(15,79,214,.18);
  background: #fff;
  color: var(--text);
  font-weight: 650;
  letter-spacing:.02em;
  box-shadow: 0 10px 22px rgba(15,23,42,.06);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease);
  cursor:pointer;
}
.btn:hover{transform: translateY(-1px); box-shadow: var(--shadow-soft)}
.btn.primary{
  background: linear-gradient(135deg, var(--blue-700), var(--blue-400));
  color:#fff;
  border-color: rgba(255,255,255,.0);
  box-shadow: 0 18px 40px rgba(15,79,214,.22);
}
.btn.primary:hover{box-shadow: 0 22px 55px rgba(15,79,214,.28)}
.btn.ghost{
  background: rgba(255,255,255,.65);
}
.btn.small{padding:10px 12px; border-radius: 12px; font-size:13px}

.hamburger{
  display:none;
  width:44px; height:44px;
  border-radius: 14px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.8);
  box-shadow: 0 10px 22px rgba(15,23,42,.05);
}

.hero{
  padding: 56px 0 34px;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 28px;
  align-items:center;
}
.badge{
  display:inline-flex; align-items:center; gap:10px;
  padding:8px 12px;
  border-radius: 999px;
  border:1px solid rgba(15,79,214,.16);
  background: rgba(255,255,255,.7);
  color: var(--muted);
  font-size: 13px;
}
.badge .dot{width:10px; height:10px; border-radius:999px; background: var(--accent); box-shadow: 0 10px 18px rgba(15,79,214,.22)}
h1{
  font-size: 44px;
  line-height:1.05;
  margin: 16px 0 14px;
  letter-spacing: -0.02em;
}
.lead{
  font-size: 18px;
  color: var(--muted);
  margin: 0 0 18px;
}
.hero-actions{display:flex; flex-wrap:wrap; gap:12px; margin-top: 6px}

.kpis{
  display:flex; flex-wrap:wrap; gap:14px;
  margin-top: 18px;
}
.kpi{
  border:1px solid var(--line);
  background: rgba(255,255,255,.72);
  border-radius: var(--radius);
  padding: 14px 14px;
  min-width: 160px;
}
.kpi strong{font-size:18px}
.kpi span{display:block; font-size:13px; color: var(--muted); margin-top:6px}

.mock{
  border-radius: 26px;
  border: 1px solid rgba(15,23,42,.10);
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(245,247,251,.85));
  box-shadow: var(--shadow);
  overflow:hidden;
  position:relative;
  min-height: 380px;
}
.mock::before{
  content:"";
  position:absolute; inset:0;
  background:
    radial-gradient(600px 320px at 20% 10%, rgba(103,182,255,.30), rgba(255,255,255,0) 60%),
    radial-gradient(540px 280px at 80% 20%, rgba(15,79,214,.18), rgba(255,255,255,0) 55%);
  pointer-events:none;
}
.mock-topbar{
  display:flex; gap:8px; align-items:center;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(15,23,42,.08);
  background: rgba(255,255,255,.72);
}
.dot3{width:10px; height:10px; border-radius:999px; background: rgba(15,23,42,.20)}
.mock-content{
  padding: 18px 18px 22px;
  display:grid;
  gap:12px;
}
.skel-row{
  height: 12px; border-radius: 999px;
  background: linear-gradient(90deg, rgba(15,23,42,.06), rgba(15,79,214,.10), rgba(15,23,42,.06));
  background-size: 200% 100%;
  animation: shimmer 1.8s linear infinite;
}
.skel-row.w80{width:80%}
.skel-row.w60{width:60%}
.skel-card{
  border-radius: 18px;
  border:1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.75);
  padding: 14px;
  display:grid;
  gap:10px;
}
.skel-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
}
@keyframes shimmer{
  0%{background-position:0 0}
  100%{background-position:200% 0}
}

.section{padding: 46px 0}
.section.alt{
  background: linear-gradient(180deg, rgba(245,247,251,.70), rgba(255,255,255,0));
  border-top: 1px solid rgba(15,23,42,.06);
  border-bottom: 1px solid rgba(15,23,42,.06);
}
.section h2{
  font-size: 30px;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}
.section p.sub{
  margin: 0 0 18px;
  color: var(--muted);
  max-width: 68ch;
}

.grid-3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.grid-2{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.card{
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.75);
  border-radius: var(--radius);
  box-shadow: 0 14px 32px rgba(15,23,42,.06);
  padding: 18px;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.card:hover{transform: translateY(-2px); box-shadow: var(--shadow-soft)}
.card h3{margin: 8px 0 8px; font-size: 18px}
.card p{margin:0; color: var(--muted)}
.icon{
  width:44px; height:44px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(15,79,214,.16), rgba(103,182,255,.28));
  border: 1px solid rgba(15,79,214,.16);
  display:grid; place-items:center;
}
.icon svg{width:22px; height:22px; opacity:.95}

.tags{display:flex; flex-wrap:wrap; gap:8px; margin-top:12px}
.tag{
  font-size:12px;
  padding:6px 10px;
  border-radius: 999px;
  border:1px solid rgba(15,79,214,.16);
  background: rgba(15,79,214,.06);
  color: var(--blue-900);
}

.split{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items:start;
}
.checklist{display:grid; gap:10px; margin-top: 10px}
.check{
  display:flex; gap:10px; align-items:flex-start;
  color: var(--muted);
}
.check svg{flex:0 0 auto; margin-top:2px}

.timeline{
  display:grid; gap:12px;
}
.step{
  display:flex; gap:12px;
  border:1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.75);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.step .num{
  width:34px; height:34px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-400));
  color:#fff;
  display:grid; place-items:center;
  font-weight: 800;
}
.step strong{display:block}
.step span{display:block; color: var(--muted); margin-top:4px}

.toolbar{
  display:flex; flex-wrap:wrap; gap:10px; align-items:center;
  margin: 14px 0 18px;
}
.pill{
  padding:10px 12px;
  border:1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.76);
  border-radius: 999px;
  font-size: 13px;
  color: var(--muted);
  cursor:pointer;
  transition: background .18s var(--ease), transform .18s var(--ease);
}
.pill:hover{background: rgba(15,79,214,.06); transform: translateY(-1px)}
.pill.active{border-color: rgba(15,79,214,.22); background: rgba(15,79,214,.10); color: var(--text)}

.projects-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.project{
  padding: 0;
  overflow:hidden;
}
.project .cover{
  height: 160px;
  background:
    radial-gradient(500px 180px at 20% 30%, rgba(103,182,255,.38), rgba(255,255,255,0) 55%),
    radial-gradient(420px 170px at 85% 40%, rgba(15,79,214,.20), rgba(255,255,255,0) 55%),
    linear-gradient(135deg, rgba(245,247,251,1), rgba(255,255,255,1));
  border-bottom: 1px solid rgba(15,23,42,.08);
  position:relative;
}
.project .cover::after{
  content:"";
  position:absolute; inset: 14px 14px auto auto;
  width: 56px; height: 56px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(15,79,214,.95), rgba(103,182,255,.95));
  box-shadow: 0 18px 40px rgba(15,79,214,.22);
}
.project .body{padding: 16px 18px 18px}
.project .meta{display:flex; justify-content:space-between; align-items:center; gap:10px; margin-top:12px}
.link{
  color: var(--blue-700);
  font-weight: 650;
}
.link:hover{text-decoration: underline}

.modal{
  position:fixed; inset:0;
  display:none;
  align-items:center; justify-content:center;
  background: rgba(15,23,42,.45);
  padding: 18px;
  z-index: 80;
}
.modal.open{display:flex}
.modal-card{
  width:min(860px, 100%);
  border-radius: 22px;
  background: #fff;
  border:1px solid rgba(15,23,42,.12);
  box-shadow: 0 30px 80px rgba(0,0,0,.30);
  overflow:hidden;
}
.modal-head{
  display:flex; justify-content:space-between; align-items:center;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(15,23,42,.10);
  background: linear-gradient(180deg, rgba(245,247,251,.9), rgba(255,255,255,1));
}
.modal-body{padding: 18px 18px 20px}
.modal-close{
  width:44px; height:44px; border-radius: 14px;
  border:1px solid rgba(15,23,42,.12);
  background: rgba(255,255,255,.8);
  cursor:pointer;
}

.form{
  display:grid; gap:12px;
}
.field{display:grid; gap:6px}
label{font-size: 13px; color: var(--muted)}
input, textarea, select{
  padding: 12px 12px;
  border-radius: 14px;
  border:1px solid rgba(15,23,42,.12);
  background: rgba(255,255,255,.9);
  font: inherit;
}
textarea{min-height: 140px; resize: vertical}

.footer{
  padding: 30px 0;
  border-top: 1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(10px);
}
.footer-grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr .8fr;
  gap: 14px;
}
.footer small{color: var(--muted)}
.footer a{color: var(--muted)}
.footer a:hover{color: var(--text)}

.toast{
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: min(420px, calc(100% - 32px));
  border-radius: 18px;
  border: 1px solid rgba(15,23,42,.12);
  background: rgba(255,255,255,.92);
  box-shadow: 0 18px 45px rgba(15,23,42,.16);
  padding: 12px 12px;
  display:none;
  z-index: 120;
}
.toast.show{display:flex; align-items:flex-start; gap:12px}
.toast .ticon{
  width:40px; height:40px; border-radius: 16px;
  background: linear-gradient(135deg, rgba(15,79,214,.18), rgba(103,182,255,.28));
  border: 1px solid rgba(15,79,214,.16);
  display:grid; place-items:center;
}
.toast strong{display:block}
.toast p{margin:4px 0 0; color: var(--muted); font-size: 13px}
.toast button{margin-left:auto}

@media (max-width: 980px){
  .hero-grid{grid-template-columns: 1fr}
  .grid-3{grid-template-columns: 1fr}
  .grid-2{grid-template-columns: 1fr}
  .projects-grid{grid-template-columns: 1fr}
  .split{grid-template-columns: 1fr}
  .footer-grid{grid-template-columns: 1fr}
  .nav-links{display:none}
  .hamburger{display:inline-grid; place-items:center}
  .mobile-menu{display:none; padding: 0 0 14px}
  .mobile-menu.open{display:grid; gap:8px}
  .mobile-menu a{
    padding: 12px 12px;
    border-radius: 14px;
    border: 1px solid rgba(15,23,42,.10);
    background: rgba(255,255,255,.78);
    color: var(--muted);
  }
}

/* === Color & Media Upgrades (Option B placeholders) === */
:root{
  --cyan: #1dd6ff;
  --purple: #6a5cff;
  --pink: #ff4fd8;
  --gradient-brand: linear-gradient(135deg, var(--blue-700), var(--cyan));
  --gradient-pop: linear-gradient(135deg, var(--blue-700), var(--purple), var(--cyan));
  --gradient-soft: radial-gradient(900px 360px at 20% 0%, rgba(103,182,255,.28), rgba(255,255,255,0) 60%),
                   radial-gradient(780px 320px at 90% 20%, rgba(106,92,255,.18), rgba(255,255,255,0) 55%),
                   radial-gradient(700px 280px at 60% 80%, rgba(29,214,255,.12), rgba(255,255,255,0) 60%);
}

.hero{
  position:relative;
  overflow:hidden;
}
.hero::before{
  content:"";
  position:absolute; inset:-1px;
  background: var(--gradient-soft);
  pointer-events:none;
}
.hero-media{
  position:relative;
  border-radius: 26px;
  border: 1px solid rgba(15,23,42,.10);
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(245,247,251,.85));
  box-shadow: var(--shadow);
  overflow:hidden;
  min-height: 390px;
}
.hero-media .overlay{
  position:absolute; inset:0;
  background: radial-gradient(700px 420px at 20% 10%, rgba(103,182,255,.22), rgba(255,255,255,0) 60%),
              radial-gradient(650px 380px at 80% 20%, rgba(106,92,255,.14), rgba(255,255,255,0) 55%),
              linear-gradient(135deg, rgba(15,79,214,.18), rgba(29,214,255,.10));
  pointer-events:none;
}
.hero-media canvas{
  width:100%; height:100%;
  display:block;
}
.hero-media .caption{
  position:absolute; left:16px; right:16px; bottom:16px;
  border-radius: 18px;
  padding: 12px 14px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(15,23,42,.10);
  backdrop-filter: blur(10px);
}
.hero-media .caption strong{display:block}
.hero-media .caption span{display:block; color: var(--muted); font-size: 13px; margin-top:4px}

.section.pop{
  background:
    radial-gradient(900px 380px at 10% 0%, rgba(29,214,255,.16), rgba(255,255,255,0) 60%),
    radial-gradient(860px 360px at 90% 10%, rgba(106,92,255,.14), rgba(255,255,255,0) 60%),
    linear-gradient(180deg, rgba(245,247,251,.75), rgba(255,255,255,0));
}

.card.media{
  padding: 0;
  overflow:hidden;
}
.media-head{
  padding: 16px 18px;
  border-bottom: 1px solid rgba(15,23,42,.10);
  background: linear-gradient(135deg, rgba(15,79,214,.10), rgba(29,214,255,.10));
}
.media-body{padding: 16px 18px 18px}
.gallery{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.thumb{
  border-radius: 18px;
  border:1px solid rgba(15,23,42,.10);
  background: #fff;
  overflow:hidden;
  cursor:pointer;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.thumb:hover{transform: translateY(-2px); box-shadow: var(--shadow-soft)}
.thumb img{width:100%; height: 160px; object-fit: cover}

.lightbox{
  position: fixed; inset:0;
  display:none;
  align-items:center; justify-content:center;
  background: rgba(15,23,42,.55);
  padding: 16px;
  z-index: 120;
}
.lightbox.open{display:flex}
.lightbox .frame{
  width: min(1060px, 100%);
  background:#fff;
  border-radius: 22px;
  border:1px solid rgba(15,23,42,.16);
  box-shadow: 0 30px 90px rgba(0,0,0,.35);
  overflow:hidden;
}
.lightbox .bar{
  display:flex; align-items:center; justify-content:space-between;
  padding: 12px 14px;
  background: linear-gradient(180deg, rgba(245,247,251,.9), rgba(255,255,255,1));
  border-bottom: 1px solid rgba(15,23,42,.10);
}
.lightbox .bar strong{max-width: 70ch}
.lightbox .bar button{
  width:44px; height:44px; border-radius: 14px;
  border:1px solid rgba(15,23,42,.12);
  background: rgba(255,255,255,.9);
  cursor:pointer;
}
.lightbox img{width:100%; height: auto; display:block}

.beforeafter{
  border-radius: 22px;
  border:1px solid rgba(15,23,42,.10);
  background: #fff;
  overflow:hidden;
  box-shadow: 0 18px 40px rgba(15,23,42,.08);
}
.ba-top{
  display:flex; align-items:center; justify-content:space-between;
  gap:10px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(15,23,42,.10);
  background: linear-gradient(135deg, rgba(15,79,214,.10), rgba(106,92,255,.08));
}
.ba-top small{color: var(--muted)}
.ba-wrap{
  position: relative;
  height: 320px;
  background: #fff;
}
.ba-wrap img{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit: cover;
}
.ba-wrap .after{
  clip-path: inset(0 0 0 50%);
}
.ba-handle{
  position:absolute; top:0; bottom:0; left:50%;
  width: 2px;
  background: rgba(15,79,214,.65);
}
.ba-knob{
  position:absolute; top:50%; left:50%;
  width: 44px; height: 44px;
  transform: translate(-50%,-50%);
  border-radius: 999px;
  background: var(--gradient-brand);
  border: 2px solid rgba(255,255,255,.9);
  box-shadow: 0 18px 40px rgba(15,79,214,.22);
  display:grid; place-items:center;
}
.ba-knob svg{filter: drop-shadow(0 6px 12px rgba(0,0,0,.18))}
.ba-range{
  width:100%;
  padding: 12px 16px;
  background: rgba(245,247,251,.9);
  border-top: 1px solid rgba(15,23,42,.08);
}
.ba-range input{width:100%}

@media (max-width: 980px){
  .gallery{grid-template-columns: 1fr}
  .thumb img{height: 190px}
  .ba-wrap{height: 260px}
}

/* Project cover color variants */
.project.web .cover{background:
  radial-gradient(520px 180px at 20% 30%, rgba(103,182,255,.40), rgba(255,255,255,0) 55%),
  radial-gradient(420px 170px at 85% 40%, rgba(15,79,214,.22), rgba(255,255,255,0) 55%),
  linear-gradient(135deg, rgba(245,247,251,1), rgba(255,255,255,1));
}
.project.landing .cover{background:
  radial-gradient(520px 180px at 20% 30%, rgba(29,214,255,.34), rgba(255,255,255,0) 55%),
  radial-gradient(420px 170px at 85% 40%, rgba(106,92,255,.20), rgba(255,255,255,0) 55%),
  linear-gradient(135deg, rgba(245,247,251,1), rgba(255,255,255,1));
}
.project.system .cover{background:
  radial-gradient(520px 180px at 20% 30%, rgba(106,92,255,.24), rgba(255,255,255,0) 55%),
  radial-gradient(420px 170px at 85% 40%, rgba(15,79,214,.20), rgba(255,255,255,0) 55%),
  linear-gradient(135deg, rgba(245,247,251,1), rgba(255,255,255,1));
}
.project.automation .cover{background:
  radial-gradient(520px 180px at 20% 30%, rgba(15,79,214,.22), rgba(255,255,255,0) 55%),
  radial-gradient(420px 170px at 85% 40%, rgba(29,214,255,.22), rgba(255,255,255,0) 55%),
  linear-gradient(135deg, rgba(245,247,251,1), rgba(255,255,255,1));
}

/* Tech Lines Animation */
.tech-lines{
  position:absolute;
  inset:0;
  background-image:
    linear-gradient(rgba(15,79,214,.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,79,214,.15) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: moveGrid 18s linear infinite;
  pointer-events:none;
}

@keyframes moveGrid{
  from{background-position:0 0, 0 0;}
  to{background-position:120px 120px, 120px 120px;}
}


/* === Ultra Motion & Transitions === */
.reveal-init{
  opacity: 0;
  transform: translateY(14px);
  filter: blur(3px);
  transition: opacity .7s var(--ease), transform .7s var(--ease), filter .7s var(--ease);
}
.reveal-in{
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}
.page-transition{
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: 0;
  transform: scale(1.02);
  background:
    radial-gradient(900px 420px at 20% 10%, rgba(103,182,255,.45), rgba(255,255,255,0) 60%),
    radial-gradient(780px 360px at 90% 25%, rgba(15,79,214,.26), rgba(255,255,255,0) 58%),
    linear-gradient(180deg, rgba(10,15,28,.65), rgba(10,15,28,.85));
  transition: opacity .26s var(--ease), transform .26s var(--ease);
}
.page-transition.in{ opacity: 1; transform: scale(1); }
.wa-fab{
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 160;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 999px;
  border: 1px solid rgba(15,79,214,.22);
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 45px rgba(15,23,42,.14);
  font-weight: 750;
  letter-spacing: .02em;
}
.wa-fab:hover{ box-shadow: 0 22px 60px rgba(15,23,42,.18); }
.wa-dot{ width:10px;height:10px;border-radius:999px;background: var(--blue-600); box-shadow: 0 12px 22px rgba(15,79,214,.28); }
.wa-text{ font-size: 14px; }

.project .cover{ position: relative; overflow:hidden; }
.project .cover img{
  width:100%; height:100%; object-fit: cover;
  transform: scale(1.02);
  transition: transform .5s var(--ease), filter .5s var(--ease);
  filter: saturate(1.05) contrast(1.02);
}
.project:hover .cover img{ transform: scale(1.08); filter: saturate(1.15) contrast(1.08); }
.project .cover::after{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(10,15,28,0), rgba(10,15,28,.62));
  opacity: .75;
  transition: opacity .35s var(--ease);
}
.project:hover .cover::after{ opacity: .9; }

@media (prefers-reduced-motion: reduce){
  .reveal-init{opacity:1; transform:none; filter:none}
  .page-transition{display:none}
}


/* === THEME: Impact (apply to existing layouts without structural changes) === */
body.theme-impact{
  --bg: #0A0F1C;
  --panel: rgba(255,255,255,.06);
  --panelBorder: rgba(255,255,255,.12);
  --text: #e2e8f0;
  --mutedText: rgba(226,232,240,.78);
  --brandA: #67b6ff;
  --brandB: #0f4fd6;
  background: var(--bg);
  color: var(--text);
}

body.theme-impact a{ color: inherit; }
body.theme-impact .sub, body.theme-impact p, body.theme-impact small, body.theme-impact .muted{
  color: var(--mutedText);
}

body.theme-impact .header{
  background: rgba(10,15,28,.62);
  border-bottom: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(12px);
}
body.theme-impact .nav a{
  color: rgba(226,232,240,.86);
}
body.theme-impact .nav a:hover{ color:#fff; }
body.theme-impact .nav a.is-active{
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.16);
  color:#fff;
}

body.theme-impact .btn{
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.18);
  color: rgba(226,232,240,.92);
}
body.theme-impact .btn:hover{ background: rgba(255,255,255,.14); }
body.theme-impact .btn.primary{
  background: linear-gradient(135deg, var(--brandA), var(--brandB));
  color: #08101f;
  border-color: rgba(103,182,255,.25);
  box-shadow: 0 18px 45px rgba(15,23,42,.22);
}
body.theme-impact .btn.ghost{
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.20);
  color:#fff;
}

body.theme-impact .section{ background: transparent; }
body.theme-impact .section.alt{
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,0));
}
body.theme-impact h1, body.theme-impact h2, body.theme-impact h3{ color:#fff; }

body.theme-impact .card{
  background: var(--panel);
  border-color: var(--panelBorder);
  box-shadow: 0 18px 50px rgba(0,0,0,.25);
}

body.theme-impact input, body.theme-impact select, body.theme-impact textarea{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.14);
  color: rgba(226,232,240,.92);
}
body.theme-impact input::placeholder, body.theme-impact textarea::placeholder{
  color: rgba(226,232,240,.55);
}

body.theme-impact footer{
  background: rgba(10,15,28,.55);
  border-top: 1px solid rgba(255,255,255,.10);
}

/* hero upgrade without changing markup: target existing .hero-media overlay */
body.theme-impact .hero{
  position: relative;
}
body.theme-impact .hero .overlay{
  background: linear-gradient(180deg, rgba(10,15,28,.62), rgba(10,15,28,.86));
}
body.theme-impact .hero-media{
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
}

/* Tech lines if present */
body.theme-impact .tech-lines{
  opacity:.55;
}

/* Make badges readable on dark */
body.theme-impact .badge{
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.18);
  color: rgba(226,232,240,.92);
}


/* Home hero: full background video (landing style) */
.hero{
  position: relative;
  overflow: hidden;
}
.hero-bg{
  position:absolute;
  inset:0;
  z-index:0;
}
.hero-video{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.hero-overlay{
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, rgba(10,15,28,.68), rgba(10,15,28,.86));
}
.hero .tech-lines{
  position:absolute;
  inset:0;
  background-image:
    linear-gradient(rgba(15,79,214,.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,79,214,.15) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: moveGrid 18s linear infinite;
  pointer-events:none;
  opacity:.55;
}
.hero .container, .hero .hero-grid, .hero .hero-content, .hero .hero-media{
  position: relative;
  z-index: 1;
}
.hero-mock{
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius: 22px;
}


/* Brand Logo Update */

.header .brand{
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Updated main logo */
.brand-logo{
  height: 48px;
  width: auto;
  display: block;
}
.header .brand{
  display: flex;
  align-items: center;
  gap: 14px;
}


/* === Header Color + Mobile menu desktop hide fix === */
:root{
  --brandA: #67b6ff;
  --brandB: #0f4fd6;
}

.header{
  background: rgba(10,15,28,.70) !important;
  border-bottom: 1px solid rgba(255,255,255,.10) !important;
  backdrop-filter: blur(12px);
}

.brand-title strong, .brand-title span{
  color: rgba(226,232,240,.90) !important;
}

.nav a{
  color: rgba(226,232,240,.82) !important;
}
.nav a:hover{ color:#ffffff !important; }
.nav a.is-active{
  background: rgba(255,255,255,.10) !important;
  border-color: rgba(255,255,255,.16) !important;
  color:#fff !important;
}

/* Buttons using logo tone */
.btn.primary{
  background: linear-gradient(135deg, var(--brandA), var(--brandB)) !important;
  border-color: rgba(103,182,255,.25) !important;
  color: #08101f !important;
}

/* Hide mobile menu on desktop; show only when opened on small screens */
.mobile-menu{ display:none !important; }
.hamburger{ display:none; }

@media (max-width: 860px){
  .hamburger{ display:inline-flex; }
  .mobile-menu{
    display:none !important;
    position:absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10,15,28,.95);
    border-top: 1px solid rgba(255,255,255,.10);
    padding: 14px 18px;
    gap: 10px;
    flex-direction: column;
  }
  .mobile-menu a{
    color: rgba(226,232,240,.92) !important;
  }
  .mobile-menu .btn.primary{
    justify-content: center;
  }
  .mobile-menu.open{ display:flex !important; }
}


/* === Header TRUE BLACK (logo padrão) === */
.header{
  background: #0b0d12 !important;
  border-bottom: 1px solid rgba(255,255,255,.06) !important;
  backdrop-filter: none !important;
}

.header.scrolled{
  background: #0b0d12 !important;
}

.nav a{
  color: rgba(255,255,255,.78) !important;
}

.nav a:hover{
  color: #ffffff !important;
}

.nav a.is-active{
  background: rgba(103,182,255,.12) !important;
  border-color: rgba(103,182,255,.22) !important;
  color: #ffffff !important;
}



/* ===== FORCE HEADER TRUE BLACK ===== */
header,
.header,
.topbar,
.navbar,
.page-top{
  background: #000000 !important;
  background-color: #000000 !important;
}

header *{
  background: transparent !important;
}

header{
  box-shadow: none !important;
  border-bottom: 1px solid rgba(255,255,255,.08) !important;
}


/* Real gallery images */
.gallery .thumb img{
  width:100%;
  height:100%;
  object-fit: cover;
}


/* === Dark background for Before/After section === */
.card.before-after,
.card.ba,
.before-after{
  background: linear-gradient(180deg, #0b1220 0%, #060b14 100%) !important;
  border: 1px solid rgba(255,255,255,.08) !important;
}

.before-after h3,
.before-after strong,
.before-after small{
  color: #ffffff !important;
}

.before-after .ba-label{
  color: rgba(255,255,255,.85) !important;
}



/* card project cover real */
.card.project .cover{
  height: 180px;
  border-radius: 18px 18px 0 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}


/* ===== BEFORE/AFTER MATCHES GALLERY (theme-impact) ===== */
body.theme-impact .beforeafter{
  background: var(--panel) !important;
  border: 1px solid var(--panelBorder) !important;
  box-shadow: 0 18px 50px rgba(0,0,0,.25) !important;
}

body.theme-impact .beforeafter .ba-top{
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(135deg, rgba(15,79,214,.12), rgba(29,214,255,.08));
}

body.theme-impact .beforeafter strong{
  color: #fff !important;
}

body.theme-impact .beforeafter small{
  color: rgba(226,232,240,.75) !important;
}

body.theme-impact .beforeafter .ba-range{
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 14px 18px 18px;
  background: rgba(255,255,255,.02);
}

body.theme-impact .beforeafter input[type="range"]{
  accent-color: rgba(103,182,255,.95);
}



/* === INSIGHTS TAG CONTRAST === */
body.theme-impact .tags .tag{
  background: rgba(103,182,255,.12) !important;
  border: 1px solid rgba(103,182,255,.22) !important;
  color: rgba(226,232,240,.92) !important;
}



/* === INSIGHTS ARTICLE MODAL === */
.insight-card{ cursor: default; }
.open-article{ margin-left: auto; }

.modal-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 9999;
}
.modal-overlay.open{ display:flex; }

.modal{
  width: min(920px, 100%);
  max-height: 86vh;
  overflow: auto;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid rgba(15,23,42,.10);
  box-shadow: 0 30px 90px rgba(0,0,0,.45);
  position: relative;
  padding: 22px 22px 18px;
  color: #0b1220;
}
.modal .muted{ color: #475569; }
.modal h2{ color:#0b1220; margin: 10px 0 6px; }

.modal-close{
  position:absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(15,23,42,.10);
  background: #fff;
  font-size: 22px;
  cursor: pointer;
}

.modal-meta{ display:flex; align-items:center; gap:10px; }
.modal-meta .badge{
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15,79,214,.08);
  border: 1px solid rgba(15,79,214,.18);
  color: #0f4fd6;
}
.modal-meta .dot{ color:#94a3b8; }

.modal-body{
  margin-top: 14px;
  line-height: 1.7;
}
.modal-body h3{
  margin: 14px 0 6px;
  color:#0b1220;
}
.modal-body ul{ padding-left: 18px; }
.modal-body li{ margin: 6px 0; }

.modal-footer{
  display:flex;
  gap: 12px;
  align-items:center;
  justify-content:flex-end;
  padding-top: 14px;
  margin-top: 18px;
  border-top: 1px solid rgba(15,23,42,.08);
}


/* =========================================================
   PROJECT MODAL — VISUAL PREMIUM / ALTO CONTRASTE
   Escopo restrito ao modal de projetos (#modal)
========================================================= */
#modal.modal{
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(4, 10, 22, 0.78);
  backdrop-filter: blur(6px);
  z-index: 9999;
}

#modal.modal.open{
  display: flex;
}

#modal .modal-card{
  width: min(980px, 100%);
  max-height: 88vh;
  overflow: auto;
  border-radius: 26px;
  background: linear-gradient(180deg, #ffffff 0%, #f4f7fc 100%);
  border: 1px solid rgba(15, 23, 42, 0.10);
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.35);
  color: #0f172a;
  padding: 0;
}

#modal .modal-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(8px);
}

#modal .modal-head h3,
#modal .modal-head h2,
#modal .modal-head strong{
  margin: 0;
  color: #0b1220;
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

#modal .modal-close{
  position: static;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: #ffffff;
  color: #1e293b;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 24px;
  line-height: 1;
  transition: background .2s ease, transform .2s ease, border-color .2s ease;
}

#modal .modal-close:hover{
  background: #eef4ff;
  border-color: rgba(37, 99, 235, 0.22);
  transform: translateY(-1px);
}

#modal .modal-body{
  padding: 28px 22px 24px;
  margin-top: 0;
  color: #334155;
}

#modal .split{
  display: grid;
  grid-template-columns: 1.2fr 0.95fr;
  gap: 24px;
  align-items: start;
}

#modal h4,
#modal strong,
#modal .section-title,
#modal .project-block-title{
  color: #0f172a;
}

#modal .sub,
#modal .section-title,
#modal .project-block-title{
  display: block;
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #334155 !important;
}

#modal p{
  margin: 0 0 14px;
  color: #475569;
  font-size: 17px;
  line-height: 1.75;
}

#modal ul{
  margin: 0;
  padding-left: 22px;
}

#modal li{
  margin: 0 0 10px;
  color: #334155;
  font-size: 17px;
  line-height: 1.65;
}

#modal li::marker{
  color: #2563eb;
}

#modal .card{
  background: linear-gradient(180deg, #eef4ff 0%, #e8f0fb 100%);
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-radius: 24px;
  padding: 22px 20px !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}

#modal .tags{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

#modal .tag{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  margin: 0;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.16);
  background: #f3f8ff;
  color: #295ea8;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

#modal .btn.primary,
#modal .btn-primary{
  background: linear-gradient(135deg, #67b6ff 0%, #0f4fd6 100%) !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 16px 34px rgba(15, 79, 214, 0.22);
}

#modal .btn.primary:hover,
#modal .btn-primary:hover{
  transform: translateY(-1px);
  box-shadow: 0 22px 42px rgba(15, 79, 214, 0.28);
}

#modal .btn:not(.primary):not(.btn-primary){
  background: #ffffff !important;
  color: #1e3a8a !important;
  border: 1px solid rgba(37, 99, 235, 0.18) !important;
  box-shadow: none !important;
}

#modal .btn:not(.primary):not(.btn-primary):hover{
  background: #eff6ff !important;
}

#modal a{
  color: #1d4ed8;
}

#modal .modal-card::-webkit-scrollbar{
  width: 10px;
}
#modal .modal-card::-webkit-scrollbar-thumb{
  background: rgba(100, 116, 139, 0.35);
  border-radius: 999px;
}
#modal .modal-card::-webkit-scrollbar-track{
  background: transparent;
}

@media (max-width: 860px){
  #modal.modal{
    padding: 12px;
  }

  #modal .modal-card{
    width: 100%;
    max-height: 92vh;
    border-radius: 20px;
  }

  #modal .modal-head{
    padding: 16px 16px;
  }

  #modal .modal-body{
    padding: 18px 16px 18px;
  }

  #modal .split{
    grid-template-columns: 1fr;
    gap: 18px;
  }

  #modal p,
  #modal li{
    font-size: 16px;
  }

  #modal .modal-body > div:last-child{
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  #modal .modal-body > div:last-child .btn{
    width: 100%;
    justify-content: center;
  }
}
