/* sajidsadaqat.com — clean system */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/archivo-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/archivo-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/public-sans-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/public-sans-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/public-sans-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/public-sans-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
}

:root {
  --bg: #050505;
  --bg-elev: #0e1014;
  --line: rgba(150, 180, 255, 0.12);
  --line-2: rgba(170, 195, 255, 0.2);
  --ink: #f3f5ff;
  --mute: #9aa6c4;
  --faint: #6b7694;
  --accent: #5ee7ff;
  --accent-2: #a78bfa;
  --container: 1080px;
  --gutter: clamp(1.25rem, 4vw, 2rem);
  /* Shared type rail: logo + hero start on the same left edge */
  --type-max: 42rem;
  --header-h: 72px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font: "Public Sans", system-ui, -apple-system, sans-serif;
  --font-display: "Archivo", "Public Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --section: clamp(4.5rem, 10vw, 7.5rem);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  color-scheme: dark;
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* No overflow-x:hidden — breaks position:fixed mobile menus */
  position: relative;
}

/* Interactive network background (from sajidsadaqat.com live node) */
#network-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  background: #050505;
}

body > *:not(#network-canvas) {
  position: relative;
  z-index: 1;
}
/* Header must sit above main/footer (same z-index rule would bury the menu) */
body > .site-header {
  z-index: 200;
}

/* Soft vignette so type stays readable over the mesh */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, transparent 20%, rgba(5, 5, 5, 0.55) 100%);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

h1, h2, h3, h4 {
  margin: 0 0 0.4em;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.12;
  color: var(--ink);
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
}
h1 { font-size: clamp(2rem, 6.5vw, 4.75rem); font-weight: 700; line-height: 1.08; }
h2 { font-size: clamp(1.35rem, 3.5vw, 2.3rem); font-weight: 600; line-height: 1.18; letter-spacing: -0.03em; }
h3 { font-family: var(--font); font-size: clamp(1rem, 2.5vw, 1.1rem); letter-spacing: -0.02em; line-height: 1.3; font-weight: 600; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.sr-only, .visually-hidden, .hp-field {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -4rem;
  z-index: 100;
  background: #fff;
  color: #0a0a0a;
  padding: 0.6rem 1rem;
  font-weight: 600;
}
.skip-link:focus { top: 1rem; }

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
  /* Explicit padding rail so header + hero share one left edge */
  box-sizing: border-box;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1rem;
  opacity: 0.9;
}

.muted { color: var(--mute); }
.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.18rem);
  color: var(--mute);
  max-width: 34rem;
  line-height: 1.7;
}

.section { padding: var(--section) 0; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border-radius: 0;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s, border-color 0.25s, box-shadow 0.25s;
  line-height: 1.2;
  background: transparent;
  color: var(--ink);
}
.btn.primary {
  background: #fff;
  color: #0a0e1a;
  border-color: #fff;
}
.btn.primary:hover {
  background: #e8f8ff;
  color: #0a0e1a;
  transform: translateY(-1px);
  box-shadow: 0 0 28px rgba(94, 231, 255, 0.25);
}
.btn.ghost {
  border-color: var(--line-2);
  color: var(--ink);
}
.btn.ghost:hover {
  border-color: rgba(94, 231, 255, 0.45);
  box-shadow: 0 0 20px rgba(94, 231, 255, 0.1);
}
.btn.sm { padding: 0.5rem 0.9rem; font-size: 0.85rem; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-text {
  color: var(--mute);
  font-weight: 500;
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 2px;
}
.btn-text:hover { color: var(--accent); border-color: rgba(94, 231, 255, 0.4); }
.arrow { display: inline-block; transition: transform 0.25s var(--ease); }
a:hover .arrow, .btn:hover .arrow { transform: translateX(3px); }

/* ── Header ──────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10000;
  min-height: var(--header-h);
  height: auto;
  border-bottom: 1px solid transparent;
  transition: background 0.25s, border-color 0.25s;
  padding-top: env(safe-area-inset-top, 0);
  background: transparent;
  /* Allow mobile drawer to paint outside the header box */
  overflow: visible;
}
.site-header.is-scrolled {
  background: #080a12;
  border-bottom-color: var(--line);
}
html.nav-open .site-header,
body.nav-open .site-header,
.site-header:has(.nav-check:checked) {
  background: #050508;
  border-bottom-color: rgba(150, 180, 255, 0.18);
}

/* Hidden checkbox drives open/close without JS */
.nav-check {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.nav-backdrop {
  display: none;
}

/*
  Site-wide alignment: name + every hero share the container content-start.
  One left edge. No centered rails that drift per page.
*/
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
  padding-inline: 0;
  position: relative;
  z-index: 10020;
}
.brand.logo {
  display: inline-flex;
  align-items: baseline;
  color: var(--ink);
  text-decoration: none;
  margin: 0;
  padding: 0.15rem 0 0.35rem;
  position: relative;
  flex-shrink: 1;
  min-width: 0;
  max-width: calc(100% - 3.75rem);
}
.logo-word {
  display: inline-flex;
  align-items: baseline;
  gap: 0.32em;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  line-height: 1;
  color: var(--ink);
  white-space: nowrap;
}
.logo-given {
  font-weight: 600;
  letter-spacing: -0.028em;
  color: rgba(243, 245, 255, 0.72);
  transition: color 0.25s;
}
.logo-family {
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--ink);
  position: relative;
}
.logo-family::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.32em;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 1px;
  opacity: 0.9;
}
.brand.logo:hover .logo-given { color: var(--ink); }
.brand.logo:hover .logo-family { color: #fff; }

.nav-toggle {
  display: none;
  appearance: none;
  -webkit-appearance: none;
  background: #12151f;
  border: 1px solid rgba(170, 195, 255, 0.28);
  border-radius: 10px;
  width: 2.85rem;
  height: 2.85rem;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-left: auto;
  flex-shrink: 0;
  position: relative;
  z-index: 10030;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.2s, background 0.2s;
  box-sizing: border-box;
}
.nav-toggle:hover,
.nav-toggle:focus-visible {
  border-color: rgba(94, 231, 255, 0.55);
  outline: none;
}
.nav-toggle-bar {
  display: block;
  width: 1.2rem;
  height: 2px;
  background: #f3f5ff;
  border-radius: 1px;
  transition: transform 0.28s var(--ease), opacity 0.2s;
  transform-origin: center;
  pointer-events: none;
}
/* X state when checkbox checked */
.nav-check:checked ~ .header-inner .nav-toggle {
  border-color: rgba(94, 231, 255, 0.55);
  background: #1a2030;
}
.nav-check:checked ~ .header-inner .nav-toggle .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-check:checked ~ .header-inner .nav-toggle .nav-toggle-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-check:checked ~ .header-inner .nav-toggle .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex-shrink: 0;
  margin-left: auto;
}
.primary-nav a {
  color: var(--mute);
  font-size: 0.9rem;
  font-weight: 400;
}
.primary-nav a:hover,
.primary-nav a.is-active { color: #fff; }
.primary-nav .nav-cta {
  color: var(--ink);
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--line-2);
}
.primary-nav .nav-cta:hover {
  border-color: rgba(94, 231, 255, 0.45);
  color: #fff;
}

/* ── Mobile nav + type (tablet and down) ─────────────────── */
@media (max-width: 820px) {
  :root {
    --header-h: 64px;
    --section: clamp(3rem, 12vw, 4.5rem);
  }

  body {
    font-size: 1rem;
    line-height: 1.6;
  }

  body > .site-header {
    z-index: 10000 !important;
  }

  .logo-word {
    font-size: 1rem;
    gap: 0.28em;
  }

  .nav-toggle {
    display: flex;
  }

  /* Backdrop: label that unchecks #nav-cb when tapped */
  .nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10010;
    background: #000;
    opacity: 0.88;
    margin: 0;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .nav-check:checked ~ .nav-backdrop {
    display: block;
  }

  /*
    Solid full-viewport panel under the bar.
    Closed = display:none (not transform off-screen — that blocked taps on some mobile browsers).
    Opened purely by :checked sibling selector — no JS required.
  */
  .primary-nav {
    position: fixed !important;
    top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    margin: 0 !important;
    z-index: 10015 !important;
    display: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 0.5rem max(1rem, var(--gutter)) calc(1.5rem + env(safe-area-inset-bottom, 0px));
    background: #050508 !important;
    background-color: #050508 !important;
    border-top: 1px solid rgba(150, 180, 255, 0.18);
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  .nav-check:checked ~ .header-inner .primary-nav {
    display: flex !important;
  }

  .primary-nav a {
    display: flex;
    align-items: center;
    min-height: 56px;
    padding: 0.9rem 0.35rem;
    border-bottom: 1px solid rgba(150, 180, 255, 0.16);
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #f3f5ff !important;
    background: #050508;
    -webkit-tap-highlight-color: transparent;
  }
  .primary-nav a:active {
    color: var(--accent) !important;
    background: #0c1018;
  }
  .primary-nav a.is-active {
    color: var(--accent) !important;
  }
  .primary-nav .nav-cta {
    margin-top: 1.25rem;
    min-height: 52px;
    justify-content: center;
    text-align: center;
    border: 1px solid rgba(94, 231, 255, 0.5) !important;
    border-radius: 12px;
    padding: 0.9rem 1rem;
    font-weight: 700;
    background: #0e1520 !important;
    color: #fff !important;
  }
  .primary-nav .nav-cta:hover,
  .primary-nav .nav-cta:active {
    border-color: var(--accent) !important;
    color: #fff !important;
    background: #132030 !important;
  }

  /* Headings / subheads — readable, no overflow */
  h1 {
    font-size: clamp(1.75rem, 8.2vw, 2.35rem);
    line-height: 1.12;
    letter-spacing: -0.03em;
    max-width: none;
  }
  h2 {
    font-size: clamp(1.25rem, 5.5vw, 1.55rem);
    line-height: 1.22;
    letter-spacing: -0.025em;
    max-width: none;
  }
  h3 {
    font-size: 1.02rem;
    line-height: 1.35;
  }
  .eyebrow {
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    margin-bottom: 0.55rem;
  }
  .lede,
  .hero__lede {
    font-size: 0.98rem;
    line-height: 1.65;
    max-width: none;
  }

  .hero {
    padding: 1.35rem 0 2.25rem;
  }
  .hero__title {
    font-size: clamp(1.85rem, 8.5vw, 2.4rem);
    max-width: none;
    margin-bottom: 0.9rem;
  }
  .hero__lede {
    margin-bottom: 1.35rem;
  }
  .hero__cta {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    margin-bottom: 1.75rem;
  }
  .hero__cta .btn {
    justify-content: center;
    width: 100%;
    min-height: 48px;
  }
  .hero__meta {
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.78rem;
  }

  .page-hero {
    padding: 1.75rem 0 1.35rem;
  }
  .page-hero h1,
  .case-hero h1 {
    max-width: none;
    font-size: clamp(1.7rem, 7.5vw, 2.2rem);
    line-height: 1.14;
  }
  .page-hero > .container > .lede,
  .page-hero > .container > p.lede {
    max-width: none;
    margin-top: 0.65rem;
  }
  .case-hero {
    padding: 1.5rem 0 0.75rem;
  }

  /* Section heads: stacked, left-aligned, no awkward wrap with CTA */
  .sec-head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.85rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    width: 100%;
  }
  .sec-head__copy {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  .sec-head__copy .eyebrow {
    margin-bottom: 0.4rem;
  }
  .sec-head h2 {
    margin: 0;
    font-size: clamp(1.28rem, 5.6vw, 1.5rem);
    line-height: 1.22;
    max-width: 100%;
    width: 100%;
  }
  .sec-head__cta,
  .sec-head .btn-text {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    font-size: 0.92rem;
    line-height: 1.3;
    padding-bottom: 3px;
    white-space: normal;
    max-width: 100%;
  }
  .sec-head__lede {
    margin: 0 0 1.5rem !important;
    max-width: none;
  }

  .stats__grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.1rem 0.85rem;
  }
  .stat__num {
    font-size: 1.5rem;
  }
  .stat__lbl {
    font-size: 0.82rem;
  }

  .site-showcase {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
  .site-card__frame {
    max-height: 200px;
    min-height: 150px;
  }
  .site-card__body h3 {
    font-size: 1rem;
    line-height: 1.3;
  }

  .feature-still img,
  .feature-still iframe {
    max-height: 220px;
  }
  .feature-still iframe {
    height: 220px;
  }

  .work-row a {
    grid-template-columns: 2.25rem 1fr;
    gap: 0.35rem 0.75rem;
  }
  .work-row__meta {
    grid-column: 2;
  }

  .contact-block {
    gap: 1.5rem;
  }
  .contact-form__row {
    grid-template-columns: 1fr;
  }
  .contact-form input,
  .contact-form textarea,
  .contact-form select,
  .contact-form button {
    font-size: 16px; /* prevent iOS zoom */
  }
  .btn {
    min-height: 48px;
  }

  .admin-messages__grid,
  .admin-shell-grid {
    grid-template-columns: 1fr;
  }
  .admin-stats {
    grid-template-columns: 1fr;
  }

  .footer-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1rem;
  }

  .filter-bar button {
    min-height: 40px;
    padding: 0.45rem 0.75rem;
  }

  .pillars,
  .svc-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  :root {
    --header-h: 58px;
    --gutter: 1rem;
  }

  body {
    font-size: 0.98rem;
  }

  .logo-word {
    font-size: 0.95rem;
  }

  h1,
  .hero__title {
    font-size: clamp(1.65rem, 8.8vw, 2rem);
    line-height: 1.12;
  }
  h2,
  .sec-head h2 {
    font-size: clamp(1.2rem, 6vw, 1.38rem);
    line-height: 1.25;
  }
  .page-hero h1,
  .case-hero h1 {
    font-size: clamp(1.55rem, 8vw, 1.9rem);
  }
  .lede,
  .hero__lede {
    font-size: 0.95rem;
    line-height: 1.62;
  }

  .stats__grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem 0.75rem;
  }
  .stat__num {
    font-size: 1.4rem;
  }

  .nav-toggle {
    width: 2.7rem;
    height: 2.7rem;
  }

  .primary-nav a {
    min-height: 54px;
    font-size: 1.12rem;
  }

  .section {
    padding-block: clamp(2.5rem, 10vw, 3.5rem);
  }
}

/* ── Hero (home) + page heroes — same left edge as .brand.logo ─ */
.hero {
  padding: clamp(2rem, 6vw, 3.75rem) 0 clamp(3.5rem, 9vw, 5.5rem);
}
.hero__inner {
  max-width: var(--type-max);
  width: 100%;
  margin: 0; /* left-align with logo in .container */
}
.hero__title {
  margin-bottom: 1.35rem;
  max-width: 14ch;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.04em;
}

.page-hero {
  padding: clamp(2.75rem, 7vw, 4.5rem) 0 2rem;
}
.page-hero h1 {
  max-width: 16ch;
  font-family: var(--font-display);
}
/* Inner pages: type block starts at same X as header name */
.page-hero > .container > .eyebrow,
.page-hero > .container > h1,
.page-hero > .container > .lede,
.page-hero > .container > p.lede {
  max-width: var(--type-max);
}
.case-hero {
  padding: clamp(2.5rem, 6vw, 4rem) 0 1rem;
}
.case-hero h1 {
  max-width: min(18ch, var(--type-max));
  margin-bottom: 1rem;
  font-family: var(--font-display);
}
.hero__lede {
  color: var(--mute);
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  max-width: 32rem;
  margin-bottom: 2rem;
  line-height: 1.7;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1rem;
  margin-bottom: 2.5rem;
}
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.85rem;
  color: var(--faint);
  font-family: var(--mono);
  letter-spacing: 0.04em;
}
.hero__meta span { color: var(--mute); }

/* ── Section head ────────────────────────────────────────── */
.sec-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem 1.5rem;
  margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
  flex-wrap: wrap;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid var(--line);
  width: 100%;
}
.sec-head__copy {
  flex: 1 1 auto;
  min-width: min(100%, 12rem);
  max-width: 100%;
}
.sec-head__copy .eyebrow {
  margin-bottom: 0.45rem;
}
.sec-head h2 {
  margin: 0;
  max-width: 22ch;
}
.sec-head__cta {
  flex: 0 0 auto;
  align-self: flex-end;
}
.sec-head__lede {
  margin: -0.35rem 0 1.75rem;
  max-width: 36rem;
}

/* ── Featured still ──────────────────────────────────────── */
.feature-still {
  display: block;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  overflow: hidden;
  color: inherit;
  transition: border-color 0.3s, box-shadow 0.35s;
}
.feature-still:hover {
  border-color: rgba(94, 231, 255, 0.35);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  color: inherit;
}
.feature-still img,
.feature-still iframe {
  width: 100%;
  height: auto;
  max-height: 380px;
  object-fit: cover;
  object-position: top center;
  display: block;
  border: 0;
  background: #0a0c14;
}
.feature-still iframe {
  height: 340px;
  max-height: 340px;
}
.feature-still__meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}

/* ── Stats ───────────────────────────────────────────────── */
.stats {
  border-block: 1px solid var(--line);
  padding: 2.5rem 0;
  background: rgba(255, 255, 255, 0.015);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.stat__num {
  font-size: clamp(1.85rem, 3.5vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 0.5rem;
  color: var(--ink);
}
.stat__lbl {
  color: var(--mute);
  font-size: 0.88rem;
  line-height: 1.45;
  white-space: pre-line;
}
@media (max-width: 700px) {
  .stats__grid { grid-template-columns: 1fr 1fr; }
}

/* ── Website showcase ────────────────────────────────────── */
.site-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}
.site-card {
  border: 1px solid var(--line);
  background: var(--bg-elev);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: inherit;
  transition: border-color 0.3s, transform 0.35s var(--ease), box-shadow 0.35s;
}
.site-card:hover {
  border-color: rgba(94, 231, 255, 0.35);
  transform: translateY(-3px);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
}
.site-card__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  max-height: 240px;
  min-height: 160px;
  background: #111522;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.site-card__frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  transition: transform 0.5s var(--ease);
}
.site-card:hover .site-card__frame img {
  transform: scale(1.03);
}
.site-card__lock {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.5rem;
  background: rgba(8, 10, 18, 0.8);
  border: 1px solid rgba(167, 139, 250, 0.35);
  color: var(--accent-2);
}
.site-card__body {
  padding: 1.15rem 1.25rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}
.site-card__platform {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}
.site-card__body h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 500;
}
.site-card__body p {
  margin: 0;
  color: var(--mute);
  font-size: 0.9rem;
  flex: 1;
}
.site-card__go {
  margin-top: 0.65rem;
  font-size: 0.88rem;
  color: var(--ink);
  border-bottom: 1px solid var(--line-2);
  align-self: start;
  padding-bottom: 1px;
}
@media (max-width: 800px) {
  .site-showcase { grid-template-columns: 1fr; }
  .site-card__frame { max-height: 200px; }
}

/* ── Work rows ───────────────────────────────────────────── */
.work-rows {
  list-style: none;
  margin: 0;
  padding: 0;
}
.work-row { border-bottom: 1px solid var(--line); }
.work-row a {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr) auto;
  gap: 1rem 1.5rem;
  align-items: center;
  padding: 1.35rem 0;
  color: inherit;
  transition: background 0.25s, padding 0.25s;
}
.work-row a:hover {
  padding-left: 0.5rem;
  background: linear-gradient(90deg, rgba(94, 231, 255, 0.05), transparent);
}
.work-row__n {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--faint);
}
.work-row__t {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 500;
  letter-spacing: -0.03em;
}
.work-row__s {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.9rem;
  color: var(--mute);
  font-weight: 400;
  max-width: 40rem;
}
.work-row__meta {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--faint);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
@media (max-width: 700px) {
  .work-row a {
    grid-template-columns: 2.5rem 1fr;
    grid-template-areas: "n t" "n m";
    row-gap: 0.3rem;
  }
  .work-row__n { grid-area: n; }
  .work-row__t { grid-area: t; }
  .work-row__meta { grid-area: m; }
}

/* ── Pillars ─────────────────────────────────────────────── */
.pillars {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.pillar {
  padding: 1.35rem 1.2rem 1.5rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-height: 10.5rem;
  color: inherit;
  transition: background 0.25s;
}
.pillar:hover { background: rgba(94, 231, 255, 0.04); }
.pillar__k {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--accent);
  letter-spacing: 0.1em;
}
.pillar__title { margin: 0; font-size: 1.05rem; font-weight: 500; }
.pillar__p { color: var(--mute); font-size: 0.9rem; margin: 0; flex: 1; line-height: 1.5; }
@media (max-width: 960px) {
  .pillars { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .pillars { grid-template-columns: 1fr; }
}

/* ── Services grid ───────────────────────────────────────── */
.svc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.svc-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.65rem 1.4rem;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  color: inherit;
  min-height: 11rem;
  transition: border-color 0.3s, transform 0.35s var(--ease), box-shadow 0.35s;
}
.svc-card:hover {
  border-color: rgba(94, 231, 255, 0.35);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}
.svc-card__n {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--accent);
}
.svc-card__t {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 500;
}
.svc-card__p {
  margin: 0;
  color: var(--mute);
  font-size: 0.95rem;
  flex: 1;
}
.svc-card__go { font-size: 0.9rem; color: var(--ink); }
@media (max-width: 700px) {
  .svc-grid { grid-template-columns: 1fr; }
}

/* ── Process steps ───────────────────────────────────────── */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.steps li {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 1.5rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--line);
}
.steps__n {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--faint);
  letter-spacing: 0.08em;
  padding-top: 0.2rem;
}
.steps h3 { margin: 0 0 0.35rem; font-weight: 500; font-size: 1.1rem; }
.steps p { margin: 0; color: var(--mute); max-width: 36rem; }

/* ── Contact ─────────────────────────────────────────────── */
.contact-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}
.contact-block__title { margin-bottom: 1rem; }
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.field label {
  font-size: 0.75rem;
  color: var(--faint);
  font-family: var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 0.8rem 0;
  border: 0;
  border-bottom: 1px solid var(--line-2);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-bottom-color: var(--accent);
}
.field textarea {
  min-height: 7rem;
  resize: vertical;
}
.contact-form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 0.35rem;
}
.form-note { font-size: 0.85rem; color: var(--faint); }
.form-success {
  padding: 1.25rem 0;
  border-top: 1px solid var(--line-2);
  color: var(--ink);
  font-weight: 500;
}
@media (max-width: 800px) {
  .contact-block { grid-template-columns: 1fr; }
  .contact-form__row { grid-template-columns: 1fr; }
}

/* ── Inner pages ─────────────────────────────────────────── */
.work-grid {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.work-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 0;
  border-bottom: 1px solid var(--line);
  color: inherit;
  min-height: 0;
}
.work-card-media {
  background: var(--bg-elev);
  border-right: 1px solid var(--line);
  max-height: 220px;
  min-height: 180px;
  overflow: hidden;
}
.work-card-media img,
.work-card-media iframe {
  width: 100%;
  height: 100%;
  max-height: 220px;
  object-fit: cover;
  object-position: top center;
  border: 0;
  display: block;
}
.work-card-body {
  padding: 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.45rem;
}
.work-card-body h3 { margin: 0; font-size: 1.2rem; font-weight: 500; }
.work-card-body p { color: var(--mute); margin: 0; font-size: 0.95rem; }
.stamp {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin: 0;
}
.work-card-foot {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--mute);
}
.work-card-link {
  color: var(--ink);
  font-weight: 500;
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 1px;
}
@media (max-width: 800px) {
  .work-card { grid-template-columns: 1fr; }
  .work-card-media {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    max-height: 180px;
    min-height: 160px;
  }
}

/* Case study */
.case-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0 2rem;
}
.case-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.7fr);
  gap: 2.5rem;
  padding-bottom: var(--section);
  align-items: start;
}
.prose { color: var(--mute); max-width: 40rem; }
.prose h2, .prose h3 {
  color: var(--ink);
  margin-top: 2rem;
  font-weight: 500;
}
.prose a { border-bottom: 1px solid var(--line-2); }
.case-side {
  border-top: 1px solid var(--line);
  padding-top: 1.35rem;
  position: sticky;
  top: calc(var(--header-h) + 1.25rem);
}
.case-side dl {
  margin: 0 0 1.35rem;
  display: grid;
  gap: 0.9rem;
}
.case-side dt {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 0.25rem;
}
.case-side dd { margin: 0; color: var(--mute); font-size: 0.95rem; }
.stack-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  padding: 0;
  margin: 0.3rem 0 0;
}
.chip {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.28rem 0.5rem;
  border: 1px solid var(--line);
  color: var(--mute);
}
.product-embed,
.still-frame {
  margin: 0 0 2.25rem;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  overflow: hidden;
}
.product-embed__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}
.product-embed iframe {
  width: 100%;
  height: min(48vh, 420px);
  max-height: 420px;
  border: 0;
  display: block;
  background: #09090b;
}
.still-frame img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  object-position: top center;
}
.still-frame figcaption {
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--faint);
  font-family: var(--mono);
}
.still-frame figcaption a {
  color: var(--mute);
  border-bottom: 1px solid var(--line-2);
}
@media (max-width: 860px) {
  .case-layout { grid-template-columns: 1fr; }
  .case-side { position: static; }
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}
.about-side { border-top: 1px solid var(--line); padding-top: 1.35rem; }
.about-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.about-list li {
  border-top: 1px solid var(--line);
  padding-top: 0.9rem;
  color: var(--mute);
  font-size: 0.95rem;
}
@media (max-width: 800px) {
  .about-grid { grid-template-columns: 1fr; }
}

/* Filters */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0;
  padding-bottom: 1.35rem;
}
.filter-bar button {
  font: inherit;
  font-size: 0.82rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid transparent;
  background: transparent;
  color: var(--faint);
  cursor: pointer;
}
.filter-bar button[aria-pressed="true"],
.filter-bar button:hover {
  color: #fff;
  border-color: var(--line-2);
}

/* Footer */
.site-footer {
  margin-top: 2rem;
  padding: 2.25rem 0 2rem;
  border-top: 1px solid var(--line);
}
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: var(--faint);
}
.footer-row a { color: var(--mute); }
.footer-row a:hover { color: var(--accent); }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.15rem;
  align-items: center;
}
.footer-admin { opacity: 0.5; font-size: 0.8rem; }
.footer-admin:hover { opacity: 1; }

/* Legal */
.legal-prose {
  max-width: 38rem;
  color: var(--mute);
  padding-bottom: 4rem;
}
.legal-prose h2 {
  color: var(--ink);
  margin-top: 2rem;
  font-size: 1.15rem;
  font-weight: 500;
}

/* Reveal — visible by default so content never blanks */
[data-reveal] {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: no-preference) {
  html.js [data-reveal]:not(.is-in) {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  }
  html.js [data-reveal].is-in {
    opacity: 1;
    transform: none;
  }
}

/* Scroll progress */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0;
  z-index: 100;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  pointer-events: none;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ── Admin ───────────────────────────────────────────────── */
.admin-body-shell { background: var(--bg); min-height: 100vh; }
.admin-body-shell #network-canvas,
.admin-body-shell::after { display: none; }
.admin-header {
  border-bottom: 1px solid var(--line);
  background: rgba(8, 10, 18, 0.95);
  position: sticky;
  top: 0;
  z-index: 40;
}
.admin-header__inner {
  width: min(100% - 2 * var(--gutter), 1040px);
  margin-inline: auto;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.admin-nav {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  flex-wrap: wrap;
}
.admin-nav a { color: var(--mute); font-size: 0.88rem; }
.admin-nav a:hover { color: #fff; }
.admin-logout { margin: 0; }
.admin-main {
  width: min(100% - 2 * var(--gutter), 1040px);
  margin: 2.25rem auto 3rem;
}
.admin-login {
  min-height: calc(100vh - 56px);
  display: grid;
  place-items: center;
  padding: 2rem var(--gutter);
}
.admin-login__card {
  width: min(100%, 380px);
}
.admin-login__card h1 { font-size: 1.75rem; font-weight: 500; }
.admin-form { display: flex; flex-direction: column; gap: 1.15rem; margin-top: 1.75rem; }
.admin-alert {
  margin: 1rem 0 0;
  color: #fca5a5;
  font-size: 0.9rem;
}
.admin-dash__head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid var(--line);
}
.admin-dash__head h1 { margin: 0; font-size: 1.75rem; font-weight: 500; }
.admin-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  margin-bottom: 2rem;
}
.admin-stat {
  padding: 1.35rem;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.admin-stat:last-child { border-right: 0; }
.admin-stat__n {
  font-size: 1.85rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.admin-stat__l { color: var(--mute); font-size: 0.88rem; }
.admin-stat a { color: var(--faint); font-size: 0.85rem; margin-top: 0.65rem; }
.admin-stat a:hover { color: var(--accent); }
.admin-panel { margin-bottom: 2rem; }
.admin-panel__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.9rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--line);
}
.admin-panel h2 { font-size: 1rem; margin: 0; font-weight: 500; }
.admin-msg-list { list-style: none; margin: 0; padding: 0; }
.admin-msg-list li a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.15rem 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  color: inherit;
}
.admin-msg-list__t { font-weight: 500; }
.admin-msg-list__m { color: var(--mute); font-size: 0.88rem; }
.admin-msg-list time {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--faint);
  align-self: center;
  grid-row: span 2;
}
.admin-messages__grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 2rem;
  align-items: start;
}
.admin-dl { display: grid; gap: 0.7rem; margin: 1.15rem 0; }
.admin-dl div {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 0.5rem;
  font-size: 0.92rem;
}
.admin-dl dt {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.admin-dl dd { margin: 0; color: var(--mute); word-break: break-word; }
.admin-body pre {
  white-space: pre-wrap;
  word-break: break-word;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg-elev);
  border: 1px solid var(--line);
  padding: 1.1rem;
  margin: 0.5rem 0 1.15rem;
  font-size: 0.95rem;
  line-height: 1.55;
}
.admin-notes {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--mute);
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.admin-shell-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: start;
}
.admin-sites {
  display: grid;
  border: 1px solid var(--line);
}
.admin-sites a {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--line);
  color: inherit;
  font-size: 0.9rem;
}
.admin-sites a:last-child { border-bottom: 0; }
.admin-sites a:hover { background: rgba(94, 231, 255, 0.04); }
.admin-sites span {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.72rem;
}
.admin-health {
  display: grid;
  gap: 0;
  font-size: 0.9rem;
  color: var(--mute);
}
.admin-health div {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
}
.admin-health strong { color: var(--ink); font-weight: 500; }
.badge-live {
  color: #6ee7b7;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.glow-card {
  background: transparent;
  border: 0;
  box-shadow: none;
}
@media (max-width: 800px) {
  .admin-stats { grid-template-columns: 1fr; }
  .admin-stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .admin-messages__grid,
  .admin-shell-grid { grid-template-columns: 1fr; }
}
