:root{
  --bg:#07080c;
  --bg2:#0b0d12;
  --surface: rgba(255,255,255,.03);
  --surface2: rgba(255,255,255,.02);
  --line: rgba(255,255,255,.10);
  --line2: rgba(255,255,255,.16);
  --text:#f3f6ff;
  --muted: rgba(243,246,255,.72);
  --accent:#ff2d2d;
  --accent2:#ff6b6b;
  --r:22px;
  --shadow: 0 22px 90px rgba(0,0,0,.55);
  --shadow2: 0 14px 50px rgba(0,0,0,.38);
  --max: 1140px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color:var(--text);
  background:
    radial-gradient(900px 520px at 18% 6%, rgba(255,45,45,.14), transparent 62%),
    radial-gradient(900px 520px at 82% 0%, rgba(255,45,45,.10), transparent 58%),
    radial-gradient(1000px 650px at 50% 120%, rgba(255,45,45,.06), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg2) 35%, var(--bg2) 100%);
  overflow-x:hidden;
}
body::before{
  content:"";
  position:fixed; inset:0;
  pointer-events:none;
  background:
    radial-gradient(1200px 800px at 50% 0%, rgba(255,255,255,.06), transparent 60%),
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: auto, 72px 72px, 72px 72px;
  opacity:.035;
  mix-blend-mode: overlay;
}

a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
::selection{background: rgba(255,45,45,.22)}

.container{width:min(var(--max), calc(100% - 44px)); margin:0 auto;}
.section{padding:72px 0}
.section.sm{padding:54px 0}

h1,h2,h3{margin:0; letter-spacing:-.03em}
p{margin:0; line-height:1.75; color:var(--muted)}
small{color:rgba(243,246,255,.62)}

.divider{height:1px;background: linear-gradient(90deg, transparent, rgba(255,255,255,.14), transparent);margin:22px 0;}

/* Buttons */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  padding:12px 16px;
  border-radius:16px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  color:var(--text);
  font-weight:900;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease, filter .15s ease;
}
.btn:hover{transform:translateY(-1px); background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.18)}
.btn.primary{
  background: linear-gradient(135deg, var(--accent), rgba(255,107,107,.78));
  border-color: rgba(255,45,45,.38);
  box-shadow: 0 18px 60px rgba(255,45,45,.18);
}
.btn.primary:hover{transform:translateY(-2px); filter:saturate(1.05)}
.btn.ghost{background: transparent; border-color: rgba(255,45,45,.26)}
.btn.small{padding:10px 12px; border-radius:14px; font-size:14px}

/* Header */
header{
  position:sticky; top:0; z-index:60;
  background: rgba(7,8,12,.72);
  backdrop-filter: blur(16px);
  border-bottom:1px solid rgba(255,255,255,.07);
}
.topStrip{border-bottom:1px solid rgba(255,255,255,.06)}
.stripRow{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:10px 0;
  color: rgba(243,246,255,.72);
  font-weight:900;
  font-size:13px;
}
.stripRow .left, .stripRow .right{display:flex; align-items:center; gap:12px; flex-wrap:wrap}
.stripPill{
  display:inline-flex; align-items:center; gap:9px;
  padding:7px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.02);
}
.dot{
  width:8px;height:8px;border-radius:99px;background: var(--accent);
  box-shadow: 0 0 24px rgba(255,45,45,.35);
}
.navbar{
  display:flex; align-items:center; justify-content:space-between; gap:14px;
  padding:14px 0;
}
.brand{display:flex; align-items:center; gap:12px; min-width:240px}
.brand img{
  width:42px;height:42px;
  border-radius:14px;
  padding:8px;
  background: rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.08);
  object-fit:contain;
}
.brand b{font-size:15.5px}
.brand .sub{font-weight:900; font-size:12px; letter-spacing:.12em; opacity:.70}

.navlinks{
  display:flex; align-items:center; gap:8px;
  padding:6px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.02);
}
.navlinks a{
  padding:10px 12px;
  border-radius:999px;
  font-weight:900;
  font-size:14px;
  color:rgba(243,246,255,.78);
  border:1px solid transparent;
}
.navlinks a:hover{background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.08); color:var(--text)}
.navlinks a.active{background: rgba(255,45,45,.12); border-color: rgba(255,45,45,.22); color:var(--text)}

.right{display:flex; align-items:center; gap:10px}
.menuBtn{
  display:none;
  width:44px;height:44px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  color:var(--text);
}

/* drawer */
.drawer{display:none; padding:0 0 16px}
.drawer a{
  display:flex; justify-content:space-between; align-items:center;
  padding:12px 12px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.02);
  color:rgba(243,246,255,.82);
  font-weight:900;
  margin-top:10px;
}
.drawer a.active{background: rgba(255,45,45,.10); border-color: rgba(255,45,45,.22); color:var(--text)}

/* Hero */
.hero{padding:60px 0 18px}
.heroGrid{display:grid;grid-template-columns:1fr;gap:24px;align-items:start}
.badge{
  display:inline-flex; align-items:center; gap:10px;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  color:rgba(243,246,255,.80);
  font-weight:900;
  font-size:13px;
}
.badge .dot{width:9px;height:9px;border-radius:99px;background:var(--accent); box-shadow:0 0 26px rgba(255,45,45,.35)}
.hero h1{font-size: clamp(36px, 4.9vw, 66px); line-height:1.02; margin:14px 0 12px}
.hero p{font-size:17px; max-width:70ch}
.heroCtas{display:flex; gap:12px; flex-wrap:wrap; margin-top:18px}
.metaRow{display:flex; gap:10px; flex-wrap:wrap; margin-top:18px}
.pill{
  padding:8px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.02);
  color:rgba(243,246,255,.72);
  font-weight:900;
  font-size:13px;
}

/* Panels */
.stack{display:grid; gap:12px}
.panel{
  border-radius: calc(var(--r) + 10px);
  border:1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.02);
  box-shadow: var(--shadow2);
  overflow:hidden;
}
.panelHead{padding:14px;
  border-bottom:1px solid rgba(255,255,255,.06);
  display:flex; justify-content:space-between; gap:12px; align-items:center;
}
.panelHead b{letter-spacing:-.02em}
.spark{display:inline-flex; align-items:center; gap:8px; font-weight:900; font-size:13px; color:rgba(243,246,255,.78)}
.spark i{width:9px;height:9px;border-radius:99px;background:var(--accent); box-shadow:0 0 26px rgba(255,45,45,.35)}
.panelBody{padding:14px}
.kpis{display:grid; grid-template-columns: 1fr 1fr; gap:10px}
.kpi{padding:12px; border-radius:16px; border:1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.02)}
.kpi b{display:block}
.kpi span{display:block; margin-top:6px; color:rgba(243,246,255,.70); font-size:13.5px; line-height:1.55}

/* Blocks */
.block{
  border-radius: calc(var(--r) + 10px);
  border:1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.02);
  box-shadow: var(--shadow2);
  overflow:hidden;
}
.blockTop{padding:16px;
  border-bottom:1px solid rgba(255,255,255,.06);
  display:flex; align-items:flex-start; justify-content:space-between; gap:16px;
}
.blockTop h2{font-size:22px}
.blockTop p{margin-top:6px; max-width:70ch}
.blockBody{padding:16px}

.grid3{display:grid; grid-template-columns: repeat(3, 1fr); gap:14px}
.card{
  height:100%;
  border-radius: var(--r);
  border:1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.02);
  padding:18px;
}
.icon{
  width:46px;height:46px;
  border-radius:16px;
  display:grid; place-items:center;
  border:1px solid rgba(255,45,45,.22);
  background: rgba(255,45,45,.10);
  margin-bottom:12px;
}
.card h3{font-size:16px}
.card p{margin-top:8px}

/* Quote strip */
.valuesStrip{
  margin-top:16px;
  padding:14px;
  border-radius: calc(var(--r) + 10px);
  border:1px solid rgba(255,255,255,.08);
  background:
    radial-gradient(700px 420px at 30% 0%, rgba(255,45,45,.15), transparent 60%),
    rgba(255,255,255,.02);
  box-shadow: var(--shadow2);
  text-align:center;
  font-weight:1000;
  letter-spacing:.12em;
  text-transform:uppercase;
  color: rgba(243,246,255,.78);
}

/* Portfolio */
.filters{display:flex; gap:10px; flex-wrap:wrap}
.filterBtn{padding:10px 12px; border-radius:999px; border:1px solid rgba(255,255,255,.10); background: rgba(255,255,255,.02); color:rgba(243,246,255,.75); font-weight:900; cursor:pointer}
.filterBtn.active{background: rgba(255,45,45,.12); border-color: rgba(255,45,45,.22); color:var(--text)}
.workGrid{margin-top:16px; display:grid; grid-template-columns: repeat(12, 1fr); gap:14px}
.work{grid-column: span 6; border-radius: calc(var(--r) + 10px); border:1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.02); overflow:hidden; min-height:260px; position:relative}
.work .img{position:absolute; inset:0; background-size:cover; background-position:center; filter: saturate(1.05) contrast(1.06)}
.work .overlay{position:absolute; inset:0; background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.80))}
.work .cap{position:absolute; left:16px; right:16px; bottom:16px; padding:14px; border-radius:18px; border:1px solid rgba(255,255,255,.10); background: rgba(10,12,18,.62); backdrop-filter: blur(12px)}
.work .cap b{display:block}
.work .cap span{display:block; margin-top:6px; color:rgba(243,246,255,.70); font-size:13.5px; line-height:1.6}
.tags{display:flex; gap:8px; flex-wrap:wrap; margin-top:10px}
.tag{padding:6px 10px; border-radius:999px; border:1px solid rgba(255,255,255,.10); background: rgba(255,255,255,.02); font-size:12px; font-weight:900; color:rgba(243,246,255,.70)}

/* Contact */
.formGrid{display:grid; grid-template-columns: 1fr .9fr; gap:14px; align-items:start}
form{border-radius: calc(var(--r) + 10px); border:1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.02); padding:18px}
label{display:block; font-weight:900; font-size:13px; color:rgba(243,246,255,.75); margin:0 0 8px}
input, textarea, select{width:100%; padding:12px 12px; border-radius:14px; border:1px solid rgba(255,255,255,.10); background: rgba(10,12,18,.55); color:var(--text); outline:none}
textarea{min-height:140px; resize:vertical}
input:focus, textarea:focus, select:focus{border-color: rgba(255,45,45,.30); box-shadow: 0 0 0 4px rgba(255,45,45,.12)}
.row2{display:grid; grid-template-columns: 1fr 1fr; gap:12px}
.formActions{display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap; margin-top:14px}
.banner{display:none; margin-top:14px; padding:14px; border-radius: calc(var(--r) + 10px); border:1px solid rgba(255,45,45,.22); background: rgba(255,45,45,.10)}
.banner b{display:block}
.banner span{color:rgba(243,246,255,.80); font-size:13.5px}
.side{border-radius: calc(var(--r) + 10px); border:1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.02); padding:18px}
.kv{display:grid; gap:10px; margin-top:12px}
.kv .item{display:flex; justify-content:space-between; gap:14px; padding:10px 12px; border-radius:14px; border:1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.02); color:rgba(243,246,255,.75)}
.kv .item b{color:var(--text)}
.contactLinks{display:grid; gap:10px; margin-top:14px}
.contactLink{display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 12px; border-radius:16px; border:1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.02); font-weight:900; color:rgba(243,246,255,.80)}
.contactLink:hover{border-color: rgba(255,45,45,.22); background: rgba(255,255,255,.03)}
.contactLink span{color: rgba(243,246,255,.70); font-weight:900}

/* Footer */
footer{
  padding:34px 0;
  border-top:1px solid rgba(255,255,255,.06);
  color:rgba(243,246,255,.62);
  font-size:14px;
}
.footerGrid{display:grid; grid-template-columns: 1.4fr 1fr 1fr; gap:18px}
.footerGrid a{color:rgba(243,246,255,.65)}
.footerGrid a:hover{color:var(--text)}
.footerBrand{display:flex; align-items:center; gap:12px; margin-bottom:10px}
.footerBrand img{width:38px;height:38px;border-radius:14px; padding:7px; background: rgba(255,255,255,.03); border:1px solid rgba(255,255,255,.08); object-fit:contain}

@media (max-width: 980px){
  .heroGrid{display:grid;grid-template-columns:1fr;gap:24px;align-items:start}
  .drawer{display:block}
}


/* Spacing fix for CTA before next section */
.ctaRow{
  margin-bottom:48px;
}


/* Page-specific tighter spacing */
.pageTight{padding-top:46px!important;padding-bottom:56px!important}

/* CTA block (used on multiple pages) */
.cta{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
  padding:16px;
  border-radius: calc(var(--r) + 10px);
  border:1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.02);
}
.cta b{display:block; font-size:16px}
.cta p{margin-top:6px}

/* Consistent spacing helpers */
.stackGap{display:grid; gap:14px}
.mb-0{margin-bottom:0!important}
.mb-8{margin-bottom:8px!important}
.mb-12{margin-bottom:12px!important}
.mb-16{margin-bottom:16px!important}
.mb-24{margin-bottom:24px!important}
.mt-12{margin-top:12px!important}
.mt-16{margin-top:16px!important}
.mt-24{margin-top:24px!important}


/* Portfolio featured cards */
.work.featured{min-height:340px}
.work .img{background-size:cover;background-position:center top}

@media (max-width: 900px){
  .container{padding-left:18px;padding-right:18px}
  .navlinks{display:none}
  .menuBtn{display:inline-flex}
  .navbar{gap:12px}
  .brand b{font-size:16px}
  .brand img{width:34px;height:34px}
  .hero h1,.hero h2{font-size:42px;line-height:1.05}
  .hero p{font-size:15px}
  .grid2,.grid3,.workGrid{grid-template-columns:1fr!important}
  .work.featured{min-height:300px}
  .blockTop{flex-direction:column;align-items:flex-start;gap:10px}
  .stripRow{flex-direction:column;align-items:flex-start;gap:10px}
  .cta{align-items:flex-start}
}
@media (max-width: 520px){
  .hero h1,.hero h2{font-size:36px}
  .btn{width:auto}
  .btnRow{flex-direction:column;align-items:stretch}
  .btnRow .btn{width:100%}
  .pillRow{gap:8px;flex-wrap:wrap}
  .tag{font-size:12px}
}


/* Mobile header fixes */
header{position:sticky; top:0; z-index:999}
.navbar{position:relative}
.drawer{
  position:absolute;
  left:0; right:0;
  top:calc(100% + 10px);
  padding:12px;
  border-radius:20px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(8,10,14,.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 60px rgba(0,0,0,.45);
}
.drawer[data-open="true"]{display:block}
.drawer[data-open="false"]{display:none}

@media (max-width: 900px){
  /* keep header content from squishing */
  .navbar{align-items:center}
  .navbar .right{gap:10px}
  /* hide extra header buttons on small screens (keep menu + quote) */
  .navbar .right .btn.ghost{display:none}
  .navbar .right .btn.primary{padding:10px 12px; border-radius:14px}
  /* make brand not overflow */
  .brand{min-width:0}
  .brand .sub{display:none}
}

@media (max-width: 520px){
  .navbar .right .btn.primary{display:none} /* show only hamburger on very small screens */
}


/* Header shrink on scroll */
header{backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px)}
header.is-scrolled .topStrip{display:none}
header.is-scrolled{box-shadow: 0 10px 40px rgba(0,0,0,.35)}
@media (max-width: 900px){
  header{position:relative; top:auto}
  .topStrip .stripRow{gap:8px}
  .topStrip .stripPill{font-size:12px; padding:8px 10px}
  /* reduce vertical padding so header doesn't hog screen */
  .navbar{padding-top:10px; padding-bottom:10px}
  header.is-scrolled .navbar{padding-top:8px; padding-bottom:8px}
}


/* Mobile: non-sticky header (header will scroll away) */
@media (max-width: 900px){
  header{position:relative !important; top:auto !important}
  .topStrip{display:none !important}
  /* keep nav clean */
  .navbar{padding-top:10px; padding-bottom:10px}
}
