@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:ital,wght@0,400..700;1,400..700&display=swap');

/* ─── TOKENS ─────────────────────────────────── */
:root {
  --bg:    #020E2C;
  --bg2:   #010A1F;
  --bg3:   #000714;
  --blue:  #1746EA;
  --b2:    #4576FF;
  --teal:  #0EA5A0;
  --amber: #F59E0B;
  --rose:  #F43F5E;
  --w:     #F0F2FF;
  --mid:   rgba(240,242,255,.55);
  --sub:   rgba(240,242,255,.3);
  --brd:   rgba(255,255,255,.07);
  --brdh:  rgba(255,255,255,.14);
  --r:     12px;
}

/* ─── RESET ──────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Instrument Sans', sans-serif;
  background: var(--bg);
  color: var(--w);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; }
button { cursor: pointer; font-family: inherit; }

/* ─── NAV  (ID-scoped so Bootstrap can't interfere) ─── */
#site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 800;
  transition: background .3s, border-color .3s, padding .3s;
  border-bottom: 1px solid transparent;
  padding: 0;
}
#site-nav.stuck {
  background: rgba(2,14,44,.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-color: var(--brd);
}
#site-nav .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  padding: 0 40px;
  max-width: 1320px;
  margin: 0 auto;
}

/* logo */
#site-nav .logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: .9375rem;
  letter-spacing: -.02em;
  color: var(--w);
  flex-shrink: 0;
}
#site-nav .logo span { color: #4576FF; }

/* desktop links */
#site-nav .links {
  display: flex;
  align-items: center;
  gap: 2px;
}
#site-nav .links a {
  position: relative;
  font-size: .8125rem;
  font-weight: 500;
  color: var(--mid);
  padding: 7px 14px;
  border-radius: 8px;
  transition: color .18s, background .18s;
}
#site-nav .links a:hover {
  color: var(--w);
  background: rgba(255,255,255,.06);
}
#site-nav .links a.on {
  color: var(--w);
  background: rgba(69,118,255,.14);
}
#site-nav .links a.on::after {
  content: '';
  position: absolute;
  bottom: 5px; left: 50%;
  transform: translateX(-50%);
  width: 14px; height: 2px;
  background: #4576FF;
  border-radius: 2px;
}

/* CTA */
#site-nav .nav-cta {
  font-size: .8125rem;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: 10px;
  background: var(--blue);
  color: #fff;
  transition: opacity .18s, transform .18s;
  white-space: nowrap;
  margin-left: 12px;
}
#site-nav .nav-cta:hover { opacity: .82; transform: translateY(-1px); color: #fff; }

/* hamburger */
#nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 5px;
  width: 40px; height: 40px;
  background: none;
  border: none;
  padding: 0;
  flex-shrink: 0;
}
#nav-burger em {
  display: block;
  height: 1.5px;
  background: var(--w);
  border-radius: 2px;
  transition: transform .3s, opacity .2s, width .2s;
}
#nav-burger em:nth-child(1) { width: 24px; }
#nav-burger em:nth-child(2) { width: 17px; }
#nav-burger em:nth-child(3) { width: 24px; }
#nav-burger.x em:nth-child(1) { transform: translateY(6.5px) rotate(45deg); width: 24px; }
#nav-burger.x em:nth-child(2) { opacity: 0; }
#nav-burger.x em:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); width: 24px; }

/* fullscreen mobile overlay */
#nav-mobile {
  position: fixed;
  inset: 0;
  z-index: 790;
  background: rgba(1,5,18,.98);
  backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
#nav-mobile.show { opacity: 1; pointer-events: all; }

#nav-mobile .mob-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-bottom: 36px;
}
#nav-mobile .mob-links a {
  font-size: clamp(2rem, 8vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -.04em;
  color: rgba(240,242,255,.25);
  padding: 6px 28px;
  border-radius: 14px;
  transition: color .2s, background .2s;
  text-align: center;
}
#nav-mobile .mob-links a:hover { color: var(--w); }
#nav-mobile .mob-links a.on {
  color: var(--w);
  background: rgba(69,118,255,.12);
}
#nav-mobile .mob-cta {
  font-size: 1rem;
  font-weight: 600;
  padding: 15px 52px;
  border-radius: 14px;
  background: var(--blue);
  color: #fff;
  margin-bottom: 44px;
  transition: opacity .2s;
}
#nav-mobile .mob-cta:hover { opacity: .82; color: #fff; }
#nav-mobile .mob-socials {
  position: absolute;
  bottom: 28px;
  display: flex;
  gap: 28px;
}
#nav-mobile .mob-socials a {
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(240,242,255,.22);
  transition: color .2s;
}
#nav-mobile .mob-socials a:hover { color: rgba(240,242,255,.5); }

@media (max-width: 800px) {
  #site-nav .links,
  #site-nav .nav-cta { display: none; }
  #nav-burger { display: flex; }
  #site-nav .bar { padding: 0 20px; height: 64px; }
}

/* ─── HERO ───────────────────────────────────── */
.hero {
  padding: 150px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero-glow {
  position: absolute; border-radius: 50%; pointer-events: none;
  width: min(700px,100vw); height: min(700px,100vw);
  top: -20%; right: -12%;
  background: radial-gradient(circle, rgba(23,70,234,.11) 0%, transparent 65%);
}
.hero-glow2 {
  position: absolute; border-radius: 50%; pointer-events: none;
  width: min(320px,60vw); height: min(320px,60vw);
  bottom: 5%; left: 3%;
  background: radial-gradient(circle, rgba(14,165,160,.07) 0%, transparent 65%);
}
.hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(ellipse 90% 90% at 50% 0%, black 30%, transparent 80%);
}
.h1 {
  font-size: clamp(2.6rem,7.5vw,5.5rem);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1.01;
}
.gtxt {
  background: linear-gradient(135deg, #4576FF, #0EA5A0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── TYPOGRAPHY HELPERS ─────────────────────── */
.eyebrow {
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(69,118,255,.8);
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: '';
  width: 12px; height: 1px;
  background: rgba(69,118,255,.8);
  display: block; flex-shrink: 0;
}
.eyebrow.tl  { color: rgba(14,165,160,.85); }
.eyebrow.tl::before  { background: rgba(14,165,160,.85); }
.eyebrow.am  { color: rgba(245,158,11,.85); }
.eyebrow.am::before  { background: rgba(245,158,11,.85); }

/* ─── BUTTONS ────────────────────────────────── */
.btn-p {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .875rem; font-weight: 600;
  padding: 11px 26px; border-radius: 11px;
  background: var(--blue); color: #fff; border: none;
  transition: opacity .18s, transform .18s;
}
.btn-p:hover { opacity: .82; transform: translateY(-1px); color: #fff; }
.btn-o {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .875rem; font-weight: 600;
  padding: 11px 26px; border-radius: 11px;
  background: transparent; color: var(--mid);
  border: 1px solid var(--brdh);
  transition: color .18s, border-color .18s, transform .18s;
}
.btn-o:hover { color: var(--w); border-color: rgba(255,255,255,.24); transform: translateY(-1px); }

/* ─── SECTIONS ───────────────────────────────── */
.sec  { padding: 88px 0; }
.sec2 { padding: 88px 0; background: var(--bg2); }
.sec3 { padding: 88px 0; background: var(--bg3); }
.div  { border-top: 1px solid var(--brd); }
.sec-sm { padding: 48px 0; }

/* ─── TICKER ─────────────────────────────────── */
.ticker-wrap {
  overflow: hidden;
  border-top: 1px solid var(--brd);
  border-bottom: 1px solid var(--brd);
  padding: 12px 0;
  background: rgba(255,255,255,.012);
}
.ticker-track {
  display: inline-flex;
  white-space: nowrap;
  animation: tick 36s linear infinite;
}
.ticker-item {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 0 28px;
  font-size: .6875rem; font-weight: 700;
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--sub);
}
.td { width: 4px; height: 4px; border-radius: 50%; flex-shrink: 0; }
@keyframes tick { from { transform: translateX(0) } to { transform: translateX(-50%) } }

/* ─── CARDS ──────────────────────────────────── */
.svc-card {
  background: var(--bg2);
  border: 1px solid var(--brd);
  border-top: 2.5px solid;
  border-radius: var(--r);
  padding: 28px;
  height: 100%;
  transition: background .22s, transform .22s;
}
.svc-card:hover { background: rgba(255,255,255,.022); transform: translateY(-3px); }
.svc-card.bl { border-top-color: var(--blue); }
.svc-card.tl { border-top-color: var(--teal); }
.svc-card.am { border-top-color: var(--amber); }

.proc-card {
  background: var(--bg2); border-top: 2px solid;
  border-radius: var(--r); padding: 24px; height: 100%;
}
.proc-card.bl { border-top-color: rgba(23,70,234,.7); }
.proc-card.tl { border-top-color: rgba(14,165,160,.7); }
.proc-card.am { border-top-color: rgba(245,158,11,.7); }
.proc-card.ro { border-top-color: rgba(244,63,94,.7);  }

/* icon box */
.ibox {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ibox.bl { background: rgba(23,70,234,.14);  border: 1px solid rgba(69,118,255,.25); }
.ibox.tl { background: rgba(14,165,160,.12);  border: 1px solid rgba(14,165,160,.28); }
.ibox.am { background: rgba(245,158,11,.1);   border: 1px solid rgba(245,158,11,.28); }
.ibox.ro { background: rgba(244,63,94,.1);    border: 1px solid rgba(244,63,94,.28); }

/* badge */
.badge-isl {
  display: inline-block;
  font-size: .625rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 20px; border: 1px solid;
  margin: 2px 2px 2px 0;
}
.badge-isl.bl { background: rgba(23,70,234,.12); color: #6B8FFF; border-color: rgba(69,118,255,.28); }
.badge-isl.tl { background: rgba(14,165,160,.1);  color: #2ECBC6; border-color: rgba(14,165,160,.3); }
.badge-isl.am { background: rgba(245,158,11,.1);  color: #FDBA4B; border-color: rgba(245,158,11,.3); }
.badge-isl.ro { background: rgba(244,63,94,.1);   color: #FF6B86; border-color: rgba(244,63,94,.3); }

/* ─── WORK PORTFOLIO CARD ────────────────────── */
.port-card {
  border-radius: var(--r);
  border: 1px solid var(--brd);
  background: var(--bg2);
  overflow: hidden;
  transition: border-color .25s, transform .25s;
  display: flex; flex-direction: column;
  height: 100%;
}
.port-card:hover { border-color: var(--brdh); transform: translateY(-5px); }
.port-thumb {
  height: 200px;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  flex-shrink: 0;
}
.port-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.port-cat {
  font-size: .625rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  margin-bottom: 8px;
}
.port-title { font-size: 1rem; font-weight: 700; margin-bottom: 8px; line-height: 1.3; color: var(--w); }
.port-desc  { font-size: .8125rem; color: var(--mid); line-height: 1.65; flex: 1; margin-bottom: 16px; }
.port-link  { font-size: .75rem; font-weight: 700; letter-spacing: .04em; display: inline-flex; align-items: center; gap: 5px; }

/* ─── PORTFOLIO FILTER TABS ──────────────────── */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
}
.filter-btn {
  font-size: .8125rem;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: 100px;
  border: 1.5px solid var(--brd);
  background: transparent;
  color: var(--mid);
  transition: all .2s;
  letter-spacing: -.005em;
  white-space: nowrap;
}
.filter-btn:hover {
  color: var(--w);
  border-color: var(--brdh);
  background: rgba(255,255,255,.04);
}
.filter-btn.on {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
/* per-category active colors */
.filter-btn.on[data-filter="web"]     { background: var(--blue);  border-color: var(--blue); }
.filter-btn.on[data-filter="uiux"]    { background: var(--teal);  border-color: var(--teal); }
.filter-btn.on[data-filter="brand"]   { background: #7C3AED;      border-color: #7C3AED; }
.filter-btn.on[data-filter="graphic"] { background: var(--rose);  border-color: var(--rose); }
.filter-btn.on[data-filter="product"] { background: var(--amber); border-color: var(--amber); color: #1a1000; }
.filter-btn.on[data-filter="mobile"]  { background: #10B981;      border-color: #10B981; }

/* ─── TESTI ──────────────────────────────────── */
.testi-card {
  background: rgba(255,255,255,.022);
  border: 1px solid var(--brd);
  border-radius: var(--r); padding: 28px; height: 100%;
}

/* ─── FEAT CARD ──────────────────────────────── */
.feat-card {
  background: var(--bg); border: 1px solid var(--brd);
  border-radius: var(--r); padding: 22px; height: 100%;
  transition: border-color .22s;
}
.feat-card:hover { border-color: var(--brdh); }

/* ─── TOOL PILL ──────────────────────────────── */
.pill {
  font-size: .6875rem; font-weight: 500;
  padding: 5px 12px; border-radius: 7px;
  border: 1px solid var(--brd); color: var(--mid);
  display: inline-block; margin: 2px;
}

/* ─── STATS ──────────────────────────────────── */
.stat-n { font-size: 2.5rem; font-weight: 700; line-height: 1; }
.stat-l { font-size: .625rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--sub); margin-top: 4px; }

/* ─── TIMELINE ───────────────────────────────── */
.tl-wrap { position: relative; padding-left: 28px; }
.tl-wrap::before { content: ''; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 1px; background: var(--brd); }
.tl-item { position: relative; padding-bottom: 34px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot { position: absolute; left: -24px; top: 4px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid rgba(255,255,255,.14); }
.tl-yr   { font-size: .6875rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 3px; }
.tl-head { font-size: .9375rem; font-weight: 700; margin-bottom: 4px; }
.tl-txt  { font-size: .8125rem; color: var(--sub); line-height: 1.65; }

/* ─── FAQ ────────────────────────────────────── */
.faq-item { border-bottom: 1px solid var(--brd); }
.faq-item:first-child { border-top: 1px solid var(--brd); }
.faq-btn {
  width: 100%; background: none; border: none; text-align: left;
  padding: 16px 0; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-family: 'Instrument Sans', sans-serif; font-size: .875rem; font-weight: 600; color: var(--w);
}
.faq-ic { flex-shrink: 0; transition: transform .28s; }
.faq-btn.op .faq-ic { transform: rotate(45deg); }
.faq-body { display: none; padding-bottom: 16px; font-size: .875rem; color: var(--mid); line-height: 1.72; }
.faq-body.show { display: block; }

/* ─── FORM ───────────────────────────────────── */
.lbl { font-size: .6875rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--sub); margin-bottom: 6px; display: block; }
.inp {
  width: 100%; background: rgba(255,255,255,.04); border: 1px solid var(--brd);
  border-radius: 9px; padding: 12px 15px; color: var(--w);
  font-family: 'Instrument Sans', sans-serif; font-size: .875rem;
  outline: none; transition: border-color .2s, background .2s;
}
.inp:focus { border-color: rgba(69,118,255,.5); background: rgba(69,118,255,.04); }
.inp::placeholder { color: var(--sub); }
select.inp { appearance: none; cursor: pointer; }
select.inp option { background: #020E2C; }
textarea.inp { resize: vertical; min-height: 120px; }

/* ─── CASE STUDY STAT ────────────────────────── */
.cs-s { background: var(--bg); border: 1px solid var(--brd); border-radius: 10px; padding: 18px; text-align: center; }
.cs-sn { font-size: 1.75rem; font-weight: 700; line-height: 1; margin-bottom: 4px; }
.cs-sl { font-size: .625rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--sub); }

/* ─── CTA BAND ───────────────────────────────── */
.cta-band { padding: 96px 0; background: var(--bg2); }

/* ─── FOOTER ─────────────────────────────────── */
.ft { padding: 64px 0 28px; background: var(--bg3); border-top: 1px solid var(--brd); }
.ft-h { font-size: .6875rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--sub); margin-bottom: 14px; }
.ft-a { font-size: .875rem; color: var(--mid); display: block; margin-bottom: 9px; transition: color .18s; }
.ft-a:hover { color: var(--w); }

/* ─── REVEAL ─────────────────────────────────── */
.rv { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.rv.vis { opacity: 1; transform: none; }
.rv.d1 { transition-delay: .08s; }
.rv.d2 { transition-delay: .16s; }
.rv.d3 { transition-delay: .24s; }
.rv.d4 { transition-delay: .32s; }

/* ─── PORTFOLIO HIDDEN STATE ─────────────────── */
.port-item { transition: opacity .25s, transform .25s; }
.port-item.hidden {
  display: none;
}

/* ─── RESPONSIVE HELPERS ─────────────────────── */
@media (max-width: 576px) {
  .sec, .sec2, .sec3 { padding: 60px 0; }
  .cta-band { padding: 64px 0; }
  .h1 { font-size: clamp(2.2rem, 11vw, 3rem); }
}