/* =========================================================
   Tere Labs — global stylesheet
   Brand: electric blue on near-black. Techy italic display.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:ital,wght@0,400;0,500;0,600;0,700;1,600;1,700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --brand:        #1f4fff;
  --brand-bright: #4d7bff;
  --brand-glow:   rgba(37, 92, 255, 0.55);

  --bg:      #05070d;
  --bg-2:    #0a0e1a;
  --surface: #0e1424;
  --surface-2: #131b2e;
  --border:  rgba(120, 150, 255, 0.14);
  --border-strong: rgba(120, 150, 255, 0.30);

  --text:      #eef2ff;
  --text-soft: #b7c0da;
  --text-mut:  #7a86a6;

  --display: 'Chakra Petch', system-ui, sans-serif;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;

  --max: 1180px;
  --radius: 16px;
  --radius-sm: 10px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.modal-open { overflow: hidden; }

/* ambient background glow */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 50% at 80% -5%, rgba(37,92,255,.22), transparent 60%),
    radial-gradient(50% 45% at 0% 15%, rgba(37,92,255,.14), transparent 55%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
}

/* pixel trail that follows the cursor */
.pixel-trail {
  position: fixed; inset: 0;
  pointer-events: none; z-index: -1;
}


a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

* { -webkit-tap-highlight-color: transparent; }
::selection { background: rgba(45,105,255,.38); color: #fff; }
/* presentational cards shouldn't show a selection band on click */
.member, .cat-card, .feature, .stat { user-select: none; -webkit-user-select: none; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
section { position: relative; }

.eyebrow {
  font-family: var(--display);
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--brand-bright);
  display: inline-flex;
  align-items: center;
  gap: .6em;
}
h1, h2, h3 { font-family: var(--display); line-height: 1.05; letter-spacing: -.01em; }

.section-title { font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 700; margin: 18px 0 14px; }
.section-lead { color: var(--text-soft); max-width: 620px; font-size: 1.05rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  font-family: var(--display);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .02em;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 30px -8px var(--brand-glow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -10px var(--brand-glow); background: var(--brand-bright); }
.btn-ghost { background: rgba(255,255,255,.03); border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--brand-bright); background: rgba(37,92,255,.10); }
.btn:active { transform: translateY(0) scale(.95); transition-duration: .09s; }
.icon-link:active, .x-link:active, .plink:active { transform: scale(.92); transition-duration: .09s; }
.project-card:active { transform: translateY(-3px) scale(.995); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(5,7,13,.72);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 80px;
}
.brand {
  grid-column: 1;
  justify-self: start;
  display: flex; align-items: center; gap: 12px;
  font-family: var(--display); font-weight: 700; font-size: 1.15rem; letter-spacing: .02em;
}
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 4px 18px -6px var(--brand-glow); }
.brand span b { color: #fff; font-style: italic; }

/* bigger logo + nav in the header */
.site-header .brand { font-size: 1.5rem; gap: 14px; }
.site-header .brand img { width: 46px; height: 46px; border-radius: 12px; }

.nav-links {
  grid-column: 2;
  justify-self: center;
  display: flex; align-items: center; gap: 6px;
  position: relative;
}
.nav-links a {
  position: relative; z-index: 1;
  font-family: var(--display); font-weight: 500; font-size: 1.1rem;
  color: var(--text-soft); padding: 10px 20px; border-radius: 999px;
  transition: color .28s var(--ease), transform .18s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: #fff; }
.nav-links a:active { transform: scale(.94); }
.nav-links .only-mobile { display: none; }

/* sliding pill indicator behind nav links */
.nav-indicator {
  position: absolute; top: 50%; left: 0;
  height: 42px; width: 0; margin-top: -21px;
  border-radius: 999px;
  background: rgba(37,92,255,.18);
  box-shadow: inset 0 0 0 1px rgba(120,150,255,.20);
  transform: translateX(0); opacity: 0;
  transition: transform .4s var(--ease), width .4s var(--ease), opacity .3s ease;
  pointer-events: none; z-index: 0;
}

.nav-actions { grid-column: 3; justify-self: end; display: flex; align-items: center; }

.nav-toggle {
  display: none;
  grid-column: 3; justify-self: end;
  background: none; border: 0; cursor: pointer;
  width: 42px; height: 42px; color: var(--text); border-radius: 10px;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 22px; height: 2px;
  background: currentColor; border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s; margin: 0 auto;
}
.nav-toggle span::before { transform: translateY(-7px); }
.nav-toggle span::after { transform: translateY(5px); }
body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { transform: rotate(45deg); }
body.nav-open .nav-toggle span::after { transform: rotate(-45deg) translateY(-2px); }

/* ---------- hero ---------- */
.hero { padding: clamp(80px, 13vw, 150px) 0 clamp(40px, 7vw, 70px); }
.hero-inner { max-width: 880px; }
.hero h1 { font-size: clamp(2.7rem, 8vw, 5.6rem); font-weight: 700; margin: 22px 0 24px; }
.hero h1 .em { color: var(--brand-bright); font-style: italic; }
.hero-lead { font-size: clamp(1.05rem, 2.4vw, 1.35rem); color: var(--text-soft); max-width: 600px; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- stats strip ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: clamp(50px, 7vw, 80px); }
.stat {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface), rgba(14,20,36,.4));
  border-radius: var(--radius); padding: 26px 22px;
}
.stat .n { font-family: var(--display); font-weight: 700; font-size: 2.2rem; color: #fff; }
.stat .l { color: var(--text-mut); font-size: .9rem; margin-top: 4px; }

/* ---------- generic section spacing ---------- */
.block { padding: clamp(64px, 10vw, 110px) 0; }
.block-head { margin-bottom: 46px; }
.block-head.center { text-align: center; display: flex; flex-direction: column; align-items: center; }

/* ---------- feature cards ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  border: 1px solid var(--border); background: var(--surface);
  border-radius: var(--radius); padding: 30px 26px;
  transition: transform .3s var(--ease), border-color .3s;
}
.feature:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.feature .ico {
  width: 46px; height: 46px; display: grid; place-items: center;
  border-radius: 12px; background: rgba(37,92,255,.14); color: var(--brand-bright); margin-bottom: 18px;
}
.feature .ico svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 8px; }
.feature p { color: var(--text-soft); font-size: .98rem; }

/* ---------- project preview cards ---------- */
.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.projects-grid.single { grid-template-columns: minmax(0, 640px); justify-content: center; }

.project-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface), rgba(10,14,26,.6));
  border-radius: var(--radius);
  padding: 26px;
  cursor: pointer;
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
  position: relative; overflow: hidden;
  text-align: left; width: 100%; font: inherit; color: inherit;
}
.project-card:hover, .project-card:focus-visible {
  transform: translateY(-5px); border-color: var(--border-strong);
  box-shadow: 0 24px 60px -34px var(--brand-glow); outline: none;
}
.project-card:focus-visible { border-color: var(--brand-bright); }
.pc-top { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.pc-logo { width: 50px; height: 50px; border-radius: 13px; flex: 0 0 auto; box-shadow: 0 6px 20px -8px rgba(0,0,0,.55); }
.pc-head { flex: 1; min-width: 0; }
.pc-head h3 { font-size: 1.5rem; font-weight: 700; line-height: 1.1; }
.pc-head .sub { font-family: var(--display); color: var(--brand-bright); font-size: .85rem; letter-spacing: .04em; }
.pc-desc { color: var(--text-soft); font-size: .98rem; margin-bottom: 16px; }

/* video */
.video-wrap {
  position: relative; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--border); background: #000;
  aspect-ratio: 16 / 9; margin-bottom: 18px;
}
.video-wrap video { width: 100%; height: 100%; object-fit: cover; display: block; }
.pc-thumb { cursor: pointer; }
.pc-thumb .play {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: radial-gradient(closest-side, rgba(5,7,13,.35), rgba(5,7,13,.65));
  transition: background .25s;
}
.pc-thumb:hover .play { background: radial-gradient(closest-side, rgba(5,7,13,.15), rgba(5,7,13,.5)); }
.pc-thumb .play span {
  width: 62px; height: 62px; border-radius: 50%;
  background: var(--brand); display: grid; place-items: center;
  box-shadow: 0 10px 34px -6px var(--brand-glow); transition: transform .25s var(--ease);
}
.pc-thumb:hover .play span { transform: scale(1.08); }
.pc-thumb .play svg { width: 24px; height: 24px; fill: #fff; margin-left: 3px; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.tag { font-size: .8rem; color: var(--text-mut); border: 1px solid var(--border); padding: 4px 11px; border-radius: 999px; }

.pc-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; }
.pc-links { display: flex; gap: 8px; }
.icon-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px;
  border: 1px solid var(--border-strong); color: var(--text);
  transition: background .2s, border-color .2s, transform .2s;
}
.icon-link svg { width: 18px; height: 18px; }
.icon-link:hover { background: rgba(37,92,255,.14); border-color: var(--brand-bright); transform: translateY(-2px); }
.pc-more { font-family: var(--display); font-weight: 600; font-size: .85rem; color: var(--brand-bright); display: inline-flex; align-items: center; gap: 6px; }
.pc-more svg { width: 16px; height: 16px; }

.badge {
  font-family: var(--display); font-weight: 600; font-size: .7rem;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 999px;
  border: 1px solid var(--border-strong); color: var(--text-soft);
}
.badge.live { color: #7dffb0; border-color: rgba(80,255,150,.35); background: rgba(40,255,140,.08); }

/* ---------- modal ---------- */
.modal[hidden] { display: none; }
.modal {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center; padding: 20px;
}
.modal-backdrop { position: absolute; inset: 0; background: rgba(3,5,10,.78); backdrop-filter: blur(6px); }
.modal-panel {
  position: relative; width: 100%; max-width: 780px; max-height: 90vh; overflow-y: auto;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border-strong); border-radius: 22px;
  padding: 30px; box-shadow: 0 40px 120px -30px rgba(0,0,0,.8);
  animation: modal-in .32s var(--ease);
}
@keyframes modal-in { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-close {
  position: absolute; top: 18px; right: 18px; z-index: 2;
  width: 40px; height: 40px; border-radius: 10px;
  border: 1px solid var(--border-strong); background: rgba(255,255,255,.03);
  color: var(--text); cursor: pointer; font-size: 1.4rem; line-height: 1;
  display: grid; place-items: center; transition: background .2s, border-color .2s;
}
.modal-close:hover { background: rgba(37,92,255,.14); border-color: var(--brand-bright); }
.modal-head { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; padding-right: 44px; }
.modal-head img { width: 58px; height: 58px; border-radius: 15px; box-shadow: 0 8px 24px -8px rgba(0,0,0,.6); }
.modal-head h2 { font-size: 2rem; font-weight: 700; }
.modal-head .sub { font-family: var(--display); color: var(--brand-bright); font-size: .9rem; letter-spacing: .04em; }
.modal-body p { color: var(--text-soft); margin-bottom: 14px; }
.modal-body h4 { font-family: var(--display); font-size: 1rem; letter-spacing: .04em; margin: 22px 0 10px; color: #fff; }
.modal-body ul { color: var(--text-soft); padding-left: 18px; display: grid; gap: 8px; margin-bottom: 6px; font-size: .96rem; }
.modal-body code { color: var(--brand-bright); background: rgba(37,92,255,.10); padding: 2px 8px; border-radius: 6px; font-size: .9rem; }
.modal-code {
  background: #060810; border: 1px solid var(--border); border-radius: 10px;
  padding: 14px 16px; margin: 8px 0 4px; font-family: ui-monospace, monospace; font-size: .88rem;
  color: var(--text-soft); overflow-x: auto;
}
.modal-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.plink {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--display); font-weight: 600; font-size: .88rem;
  padding: 11px 17px; border-radius: 10px;
  border: 1px solid var(--border-strong); color: var(--text);
  transition: background .2s, border-color .2s, transform .2s;
}
.plink svg { width: 17px; height: 17px; }
.plink:hover { background: rgba(37,92,255,.12); border-color: var(--brand-bright); transform: translateY(-2px); }
.plink.primary { background: var(--brand); border-color: var(--brand); }
.plink.primary:hover { background: var(--brand-bright); }

.center-btn { display: flex; justify-content: center; margin-top: 44px; }

/* ---------- projects catalog ---------- */
.catalog { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.cat-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface), rgba(10,14,26,.6));
  border-radius: var(--radius); overflow: hidden;
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.cat-card:hover { transform: translateY(-5px); border-color: var(--border-strong); box-shadow: 0 22px 55px -34px var(--brand-glow); }
.cat-main { display: block; color: inherit; }
.cat-thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #05070d; border-bottom: 1px solid var(--border); }
.cat-thumb video, .cat-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease); }
.cat-card:hover .cat-thumb video, .cat-card:hover .cat-thumb img { transform: scale(1.05); }
.cat-inner { padding: 20px 22px 0; }
.cat-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.cat-head img { width: 40px; height: 40px; border-radius: 11px; flex: 0 0 auto; box-shadow: 0 5px 16px -8px rgba(0,0,0,.6); }
.cat-head h3 { font-size: 1.35rem; font-weight: 700; line-height: 1.05; }
.cat-head .sub { font-family: var(--display); color: var(--brand-bright); font-size: .8rem; letter-spacing: .04em; }
.cat-head .badge { margin-left: auto; align-self: flex-start; }
.cat-desc { color: var(--text-soft); font-size: .95rem; }
.cat-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px 20px; margin-top: auto; }
.cat-details {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--display); font-weight: 600; font-size: .9rem;
  color: #fff; padding: 10px 18px; border-radius: 10px;
  background: var(--brand); border: 1px solid var(--brand);
  transition: background .22s var(--ease), transform .16s var(--ease), box-shadow .22s;
  box-shadow: 0 6px 22px -10px var(--brand-glow);
}
.cat-details svg { width: 16px; height: 16px; }
.cat-details:hover { background: var(--brand-bright); transform: translateY(-2px); }
.cat-details:active { transform: scale(.95); }
.cat-links { display: flex; gap: 8px; }

/* ---------- project detail page ---------- */
.detail { padding: clamp(80px, 11vw, 120px) 0 clamp(30px, 5vw, 60px); }
.back-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--display); font-weight: 600; font-size: .9rem;
  color: var(--text-mut); margin-bottom: 26px; transition: color .2s, transform .2s var(--ease);
}
.back-link svg { width: 16px; height: 16px; }
.back-link:hover { color: var(--brand-bright); transform: translateX(-3px); }
.detail-head { display: flex; align-items: center; gap: 18px; margin-bottom: 8px; }
.detail-head img { width: 66px; height: 66px; border-radius: 16px; flex: 0 0 auto; box-shadow: 0 8px 24px -8px rgba(0,0,0,.6); }
.detail-head h1 { font-size: clamp(2.3rem, 6vw, 3.4rem); font-weight: 700; }
.detail-head .sub { font-family: var(--display); color: var(--brand-bright); letter-spacing: .04em; margin-top: 4px; }
.detail .video-wrap { margin: 30px 0; }

/* ---------- media gallery (Product Hunt style) ---------- */
.gallery {
  position: relative; margin: 30px 0;
  border-radius: 14px; overflow: hidden;
  border: 1px solid var(--border); background: #05070d;
  outline: none;
}
.gallery:focus-visible { border-color: var(--brand-bright); box-shadow: 0 0 0 3px rgba(37,92,255,.25); }
.gallery-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-slide {
  flex: 0 0 100%; scroll-snap-align: center;
  aspect-ratio: 16 / 9; background: #05070d;
  display: flex; align-items: center; justify-content: center;
}
.gallery-slide img, .gallery-slide video { width: 100%; height: 100%; object-fit: contain; display: block; }
.gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(8,11,20,.62); border: 1px solid var(--border-strong);
  color: #fff; display: grid; place-items: center; cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background .2s, opacity .25s, transform .18s var(--ease);
}
.gallery-nav svg { width: 20px; height: 20px; }
.gallery-nav:hover { background: var(--brand); }
.gallery-nav:active { transform: translateY(-50%) scale(.92); }
.gallery-nav.prev { left: 12px; }
.gallery-nav.next { right: 12px; }
.gallery-nav[disabled] { opacity: 0; pointer-events: none; }
.gallery-dots {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 3;
}
.gallery-dots .dot {
  width: 8px; height: 8px; border-radius: 999px; padding: 0; border: 0; cursor: pointer;
  background: rgba(255,255,255,.42); transition: background .25s, width .25s var(--ease);
}
.gallery-dots .dot.active { background: #fff; width: 22px; }

/* ---------- team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.member {
  border: 1px solid var(--border); background: var(--surface);
  border-radius: 22px; overflow: hidden;
  transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
  display: flex; flex-direction: column;
}
.member:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: 0 30px 70px -38px var(--brand-glow); }
.member-photo {
  position: relative; aspect-ratio: 4 / 4.3; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 10%, rgba(37,92,255,.25), var(--bg-2));
}
.member-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .5s var(--ease); }
.member:hover .member-photo img { transform: scale(1.04); }
.member-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(10,14,26,.85) 100%); }
.member-body { padding: 26px 26px 30px; }
.member-role { font-family: var(--display); font-weight: 600; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--brand-bright); }
.member h3 { font-size: 1.9rem; font-weight: 700; margin: 8px 0 6px; }
.member .age { color: var(--text-mut); font-size: .95rem; margin-bottom: 14px; }
.member p { color: var(--text-soft); font-size: 1rem; }
.member-social { margin-top: 22px; }
.x-link {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--display); font-weight: 600; font-size: .9rem;
  padding: 10px 18px; border-radius: 999px; border: 1px solid var(--border-strong);
  transition: background .2s, border-color .2s, transform .2s;
}
.x-link svg { width: 17px; height: 17px; }
.x-link:hover { background: rgba(37,92,255,.12); border-color: var(--brand-bright); transform: translateY(-2px); }

/* ---------- CTA band ---------- */
.cta-band {
  border: 1px solid var(--border-strong); border-radius: 24px;
  padding: clamp(40px, 6vw, 68px); text-align: center;
  background: radial-gradient(90% 120% at 50% 0%, rgba(37,92,255,.22), transparent 60%), var(--surface);
  overflow: hidden;
}
.cta-band h2 { font-size: clamp(1.9rem, 5vw, 3rem); font-weight: 700; margin-bottom: 14px; }
.cta-band p { color: var(--text-soft); max-width: 520px; margin: 0 auto 30px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* plain (unboxed) CTA */
.cta-plain { text-align: center; }
.cta-plain h2 { font-size: clamp(1.9rem, 5vw, 3rem); font-weight: 700; margin: 14px 0 14px; }
.cta-plain p { color: var(--text-soft); max-width: 520px; margin: 0 auto 30px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border); margin-top: clamp(30px, 4vw, 52px); padding: 48px 0 38px; }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; align-items: flex-start; }
.footer-brand { max-width: 320px; }
.footer-brand .brand { margin-bottom: 14px; display: flex; }
.footer-brand p { color: var(--text-mut); font-size: .95rem; }
.footer-cols { display: flex; gap: 60px; flex-wrap: wrap; }
.footer-col h4 { font-family: var(--display); font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--text-mut); margin-bottom: 14px; font-weight: 600; }
.footer-col a { color: var(--text-soft); font-size: .95rem; padding: 5px 0; transition: color .2s; }
.footer-col > a { display: block; }
.socials a { display: flex; align-items: center; gap: 10px; width: fit-content; }
.socials a svg { width: 18px; height: 18px; flex: 0 0 auto; color: var(--text-mut); transition: color .2s; }
.footer-col.socials a:hover, .footer-col a:hover { color: var(--brand-bright); }
.footer-col.socials a:hover svg { color: var(--brand-bright); }
.footer-bottom {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: var(--text-mut); font-size: .88rem;
}

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .nav { display: flex; align-items: center; justify-content: space-between; }
  .nav-actions { display: none; }
  .nav-toggle { display: block; }
  .nav-links {
    grid-column: 1 / -1;
    justify-self: stretch;
    position: fixed; inset: 80px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: #080b14; backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    box-shadow: none;
    padding: 16px 24px 24px;
    transform: translateY(-205%); transition: transform .38s var(--ease);
  }
  body.nav-open .nav-links { transform: none; box-shadow: 0 24px 50px -20px rgba(0,0,0,.8); }
  .nav-links a { padding: 13px 14px; font-size: 1.05rem; }
  .nav-links a.active { background: rgba(37,92,255,.16); }
  .nav-links a:hover { background: rgba(255,255,255,.05); }
  .nav-indicator { display: none; }
  .nav-links .only-mobile { display: inline-flex; justify-content: center; margin-top: 10px; }

  .features { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .stats { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .stat { padding: 20px 16px; }
  .modal-panel { padding: 24px 20px; }
}

@media (max-width: 460px) {
  .stats { grid-template-columns: 1fr; }
  .stat .n { font-size: 1.8rem; }
  .project-card { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .modal-panel { animation: none; }
  .pixel-trail { display: none; }
  .nav-indicator { transition: none; }
}
