/* CBTS Pvt Ltd — "Developer terminal" theme. No framework; edit freely.
   Charcoal-slate editor background, monospace UI, dashed rules.
   Accents: logo cyan (primary) and terminal green (prompts / success). */

:root {
  --bg: #1c2128;
  --bg-2: #22272e;
  --card: #22272e;
  --card-2: #2d333b;
  --line: #373e47;
  --line-2: #444c56;

  --fg: #e6edf3;
  --fg-2: #cdd9e5;
  --text: #adbac7;
  --muted: #768390;

  --accent: #00aaec;        /* logo cyan */
  --accent-2: #39c5ff;
  --accent-soft: rgba(0, 170, 236, 0.14);
  --green: #57d364;
  --green-soft: rgba(87, 211, 100, 0.12);

  --radius: 10px;
  --radius-sm: 6px;
  --wrap: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --dash: 1px dashed var(--line-2);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--bg); color-scheme: dark; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-2); }
::selection { background: var(--accent); color: #06212e; }

h1, h2, h3, h4 {
  color: var(--fg);
  line-height: 1.12;
  margin: 0 0 0.55em;
  font-weight: 700;
  letter-spacing: -0.03em;
}
h1 { font-size: clamp(2.3rem, 5.4vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); }
h3 { font-size: 1.12rem; letter-spacing: -0.01em; line-height: 1.35; font-weight: 600; }
p { margin: 0 0 1em; }
strong, b { color: var(--fg-2); font-weight: 600; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
@media (max-width: 480px) { .wrap { padding: 0 18px; } }

.hl, .dim, .grad-text { color: var(--accent); }

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 200;
  background: var(--accent); color: #06212e; padding: 8px 14px; border-radius: 6px; font-family: var(--mono);
}
.skip:focus { left: 8px; }

/* ---------- Scroll progress ---------- */
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 100;
  background: var(--green);
  transform-origin: 0 50%;
  transform: scaleX(var(--p, 0));
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  font-family: var(--mono); font-weight: 500; font-size: 0.9rem; line-height: 1.2;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.25s;
  white-space: nowrap;
}
.btn svg { width: 15px; height: 15px; transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--accent); color: #06212e; }
.btn-primary:hover { color: #06212e; background: var(--accent-2); box-shadow: 0 0 0 3px var(--accent-soft); }
.btn-ghost,
.btn-outline { border-color: var(--line-2); color: var(--fg); background: var(--bg-2); }
.btn-ghost:hover,
.btn-outline:hover { border-color: var(--accent); color: var(--fg); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(28, 33, 40, 0.88);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: var(--dash);
  transition: background 0.3s;
}
.site-header.scrolled { background: rgba(28, 33, 40, 0.96); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 70px; gap: 20px;
  transition: height 0.4s var(--ease);
}
.site-header.scrolled .wrap { height: 60px; }
.logo { flex: none; }
.logo img { height: 38px; width: auto; transition: height 0.4s var(--ease), opacity 0.2s; }
.site-header.scrolled .logo img { height: 32px; }
.logo:hover img { opacity: 0.85; }

/* top-level links: [home] [services ▾] ... */
.nav { display: flex; align-items: center; gap: 0; }
.nav > a,
.has-sub > a {
  position: relative; display: block;
  font-family: var(--mono); font-size: 0.83rem; text-transform: lowercase; white-space: nowrap;
  color: var(--text);
  padding: 6px 9px; border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
}
.nav > a::before,
.has-sub > a::before { content: "["; color: var(--line-2); margin-right: 1px; transition: color 0.2s; }
.nav > a::after,
.has-sub > a::after { content: "]"; color: var(--line-2); margin-left: 1px; transition: color 0.2s; }
.has-sub > a::after { content: " ▾]"; }
.nav > a:hover,
.has-sub:hover > a,
.has-sub:focus-within > a { color: var(--fg); background: var(--bg-2); }
.nav > a:hover::before, .nav > a:hover::after,
.has-sub:hover > a::before, .has-sub:hover > a::after,
.nav > a[aria-current]::before, .nav > a[aria-current]::after,
.has-sub > a[aria-current]::before, .has-sub > a[aria-current]::after { color: var(--accent); }
.nav > a[aria-current],
.has-sub > a[aria-current] { color: var(--fg); }

/* Services dropdown, drawn as a file tree */
.has-sub { position: relative; }
.sub {
  position: absolute; top: calc(100% + 10px); left: 0; z-index: 70;
  min-width: 270px; padding: 10px;
  background: #161b22; border: 1px solid var(--line-2); border-radius: var(--radius);
  box-shadow: 0 20px 40px -16px rgba(0, 0, 0, 0.6);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity 0.2s, transform 0.3s var(--ease), visibility 0s 0.3s;
}
.sub::before { /* hover bridge between link and panel */
  content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px;
}
.has-sub:hover .sub,
.has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; transition: opacity 0.2s, transform 0.3s var(--ease); }
.sub a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: var(--radius-sm);
  font-family: var(--mono); font-size: 0.85rem; color: var(--fg-2); white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
.sub a::before { content: "├──"; color: var(--line-2); transition: color 0.2s; }
.sub a:last-child::before { content: "└──"; }
.sub a:hover,
.sub a[aria-current] { background: var(--bg-2); color: var(--accent); }
.sub a:hover::before,
.sub a[aria-current]::before { color: var(--green); }

.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: 12px; }
.nav-actions .btn { padding: 8px 14px; font-size: 0.82rem; }

.nav-toggle {
  display: none; position: relative; flex: none;
  width: 42px; height: 42px; border-radius: var(--radius-sm);
  background: var(--bg-2); border: 1px solid var(--line-2); cursor: pointer;
}
.nav-toggle span {
  position: absolute; left: 11px; right: 11px; height: 2px; background: var(--fg);
  transition: transform 0.35s var(--ease), opacity 0.25s, top 0.35s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 20px; }
.nav-toggle span:nth-child(3) { top: 26px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { top: 20px; transform: rotate(-45deg); }

/* ---------- Mobile / tablet menu: the whole nav as a tree ---------- */
@media (max-width: 1140px) {
  /* backdrop-filter would trap the fixed menu inside the header box */
  .site-header,
  .site-header.scrolled { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav-toggle { display: block; }
  .nav {
    position: fixed; top: var(--header-h, 70px); left: 0; right: 0; bottom: 0;
    flex-direction: column; align-items: stretch;
    background: var(--bg);
    padding: 16px 24px 32px;
    overflow-y: auto;
    clip-path: inset(0 0 100% 0);
    visibility: hidden;
    transition: clip-path 0.5s var(--ease), visibility 0s 0.5s;
  }
  .nav::before { content: "~/code-binary"; font-family: var(--mono); font-size: 0.8rem; color: var(--green); padding: 0 2px 10px; }
  .nav.open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path 0.5s var(--ease); }

  .nav > a,
  .has-sub > a {
    font-size: 1.15rem; color: var(--fg); background: none !important;
    padding: 13px 2px; border-radius: 0; border-bottom: var(--dash);
  }
  .nav > a::before,
  .has-sub > a::before { content: "├── "; color: var(--line-2); margin: 0; }
  .nav > a::after,
  .has-sub > a::after { content: ""; }
  .nav > a[aria-current],
  .has-sub > a[aria-current] { color: var(--accent); }
  .nav > a:hover { color: var(--accent); }

  .has-sub .sub {
    position: static; min-width: 0; padding: 0; margin: 0;
    background: none; border: 0; box-shadow: none; border-radius: 0;
    opacity: 1; visibility: visible; transform: none;
    border-bottom: var(--dash);
  }
  .sub::before { display: none; }
  .sub a { padding: 11px 2px 11px 2px; font-size: 0.98rem; color: var(--text); background: none !important; }
  .sub a::before { content: "│   ├──"; white-space: pre; }
  .sub a:last-child::before { content: "│   └──"; }

  .nav-actions {
    flex-direction: column; align-items: stretch; gap: 10px;
    margin: 26px 0 0;
  }
  .nav-actions .btn { padding: 14px; font-size: 0.95rem; }

  /* staggered slide-in */
  .nav > * { opacity: 0; transform: translateX(-10px); transition: opacity 0.35s, transform 0.45s var(--ease); }
  .nav.open > * { opacity: 1; transform: none; }
  .nav.open > :nth-child(2) { transition-delay: 0.04s; }
  .nav.open > :nth-child(3) { transition-delay: 0.08s; }
  .nav.open > :nth-child(4) { transition-delay: 0.12s; }
  .nav.open > :nth-child(5) { transition-delay: 0.16s; }
  .nav.open > :nth-child(6) { transition-delay: 0.2s; }
  .nav.open > :nth-child(7) { transition-delay: 0.24s; }
  .nav.open > :nth-child(8) { transition-delay: 0.28s; }
  body.menu-open { overflow: hidden; }
}
@media (max-width: 380px) {
  .sub a { font-size: 0.9rem; }
}

/* ---------- Hero backdrops ---------- */
.hero,
.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  border-bottom: var(--dash);
}
.hero::before,
.page-hero::before {
  /* dot grid */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(rgba(173, 186, 199, 0.16) 1px, transparent 1.4px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, #000 20%, transparent 95%);
          mask-image: linear-gradient(180deg, #000 20%, transparent 95%);
}
.hero::after,
.page-hero::after {
  /* faint cyan light, top-right */
  content: ""; position: absolute; right: -10%; top: -30%; z-index: -1;
  width: 60vw; max-width: 800px; aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(0, 170, 236, 0.13), transparent 70%);
  animation: breathe 8s ease-in-out infinite;
}

/* ---------- Home hero ---------- */
.hero { padding: 96px 0; }
.hero .lead { font-size: clamp(1.05rem, 1.5vw, 1.18rem); max-width: 580px; margin-bottom: 2em; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-center { text-align: center; }
.hero-center .hero-copy { max-width: 900px; margin: 0 auto; }
.hero-center .lead { margin-left: auto; margin-right: auto; }
.hero-center .actions { justify-content: center; }
.hero-pad { padding-bottom: 110px; }

.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
@media (max-width: 960px) { .hero { padding: 72px 0 80px; } .hero-grid { grid-template-columns: 1fr; gap: 44px; } }

.hero-copy > * { animation: rise 0.9s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: 0.08s; }
.hero-copy > :nth-child(3) { animation-delay: 0.16s; }
.hero-copy > :nth-child(4) { animation-delay: 0.24s; }

.prompt { font-family: var(--mono); font-size: 0.9rem; color: var(--green); margin-bottom: 22px; }
.prompt b { color: var(--muted); font-weight: 400; margin-right: 8px; }

.badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 5px 12px; margin-bottom: 26px;
  border: var(--dash); border-radius: var(--radius-sm);
  background: var(--bg-2);
  font-family: var(--mono); font-size: 0.8rem; color: var(--fg-2);
  transition: border-color 0.2s;
}
a.badge:hover { color: var(--fg); border-color: var(--accent); border-style: solid; }
.badge .arr { color: var(--muted); transition: transform 0.3s var(--ease); }
a.badge:hover .arr { transform: translateX(3px); color: var(--accent); }
.dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 0 rgba(87, 211, 100, 0.6); animation: pulse 2.4s infinite;
}

/* Section labels: "$ services" */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 0.82rem; text-transform: lowercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.eyebrow::before { content: "$"; color: var(--green); }

/* Code window */
.code-window {
  position: relative; text-align: left;
  background: #161b22;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
  font-family: var(--mono);
  font-size: 0.88rem; line-height: 1.95;
  animation: rise 1s 0.3s var(--ease) both;
}
.code-window .bar {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 16px; border-bottom: 1px solid var(--line);
  color: var(--muted); font-size: 0.76rem;
}
.code-window .bar i { width: 11px; height: 11px; border-radius: 50%; }
.code-window .bar i:nth-child(1) { background: #ff5f57; }
.code-window .bar i:nth-child(2) { background: #febc2e; }
.code-window .bar i:nth-child(3) { background: #28c840; }
.code-window .bar span { margin-left: auto; }
.code-window pre { margin: 0; padding: 20px 22px 24px; overflow-x: auto; color: var(--fg-2); counter-reset: ln; }
.code-window code { display: block; }
.code-window .ln {
  display: block; white-space: pre;
  opacity: 0; transform: translateX(-6px);
  animation: type-in 0.4s var(--ease) forwards;
  animation-delay: calc(0.9s + var(--i) * 0.24s);
}
.code-window .ln::before {
  counter-increment: ln; content: counter(ln);
  display: inline-block; width: 1.6em; margin-right: 1em; text-align: right;
  color: #4a535e;
}
.code-window .k { color: #f47067; }
.code-window .f { color: #dcbdfb; }
.code-window .s { color: #96d0ff; }
.code-window .c { color: #768390; font-style: italic; }
.code-window .ok { color: var(--green); }
.cursor {
  display: inline-block; width: 0.55em; height: 1.05em; vertical-align: -0.15em; margin-left: 4px;
  background: var(--green); animation: blink 1s steps(1) infinite;
}
h1 .cursor { width: 0.42em; height: 0.82em; vertical-align: -0.04em; margin-left: 8px; background: var(--accent); }
.chip { display: none; }
@media (max-width: 600px) { .code-window { font-size: 0.7rem; } .code-window pre { padding: 16px 12px 20px; } }

/* Pillars (0x01 / 0x02 / 0x03) */
.pillars {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-left: var(--dash); border-right: var(--dash);
}
.pillar { padding: 38px 30px; }
.pillar + .pillar { border-left: var(--dash); }
.pillar .num { display: block; font-family: var(--mono); font-size: 0.82rem; color: var(--accent); margin-bottom: 14px; }
.pillar .num::before { content: "0x"; color: var(--muted); }
.pillar h3 { font-size: 1.08rem; }
.pillar p { margin: 0; font-size: 0.95rem; }
@media (max-width: 860px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar { padding: 28px 22px; }
  .pillar + .pillar { border-left: 0; border-top: var(--dash); }
}

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden; padding: 18px 0;
  border-top: var(--dash); border-bottom: var(--dash);
  background: var(--bg-2);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; width: max-content; gap: 40px; animation: marquee 50s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span {
  display: inline-flex; align-items: center; gap: 40px;
  font-family: var(--mono); font-size: 0.92rem; text-transform: lowercase;
  color: var(--muted); white-space: nowrap;
}
.marquee span::after { content: "·"; color: var(--accent); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: 84px 0 64px; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: 0.3em; animation: rise 0.8s var(--ease) both; }
.page-hero h1::after { content: "_"; color: var(--accent); margin-left: 4px; animation: blink 1s steps(1) infinite; }
.page-hero .lead { font-size: 1.12rem; max-width: 640px; animation: rise 0.8s 0.08s var(--ease) both; }
.crumbs {
  display: inline-block; font-family: var(--mono); font-size: 0.82rem; color: var(--muted);
  padding: 5px 12px; border: var(--dash); border-radius: var(--radius-sm); background: var(--bg-2);
  animation: rise 0.8s 0.16s var(--ease) both;
}
.crumbs::before { content: "~/ "; color: var(--green); }
.crumbs a { color: var(--text); }
.crumbs a:hover { color: var(--accent); }
.crumbs span { margin: 0 8px; color: var(--line-2); }

/* ---------- Sections ---------- */
.section { position: relative; padding: 104px 0; }
.section.soft { background: var(--bg-2); border-top: var(--dash); border-bottom: var(--dash); }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head p { font-size: 1.05rem; }
@media (max-width: 700px) { .section { padding: 72px 0; } .section-head { margin-bottom: 40px; } }

.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 960px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px;
  transition: border-color 0.3s, transform 0.4s var(--ease), background 0.3s;
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), rgba(0, 170, 236, 0.08), transparent 50%);
  opacity: 0; transition: opacity 0.3s;
}
.card:hover { border-color: var(--accent); transform: translateY(-3px); }
.card:hover::before { opacity: 1; }
.card p { margin: 0; }
.card h3 { margin-bottom: 8px; }
.section.soft .card { background: var(--bg); }

/* Services: numbered cards */
.grid.lined { counter-reset: svc; }
.grid.lined > .card { counter-increment: svc; }
.grid.lined > .card h3::before {
  content: counter(svc, decimal-leading-zero);
  font-family: var(--mono); font-size: 0.78rem; font-weight: 400; color: var(--muted); margin-right: 10px;
}

.icon {
  width: 42px; height: 42px; border-radius: var(--radius-sm);
  display: grid; place-items: center;
  background: var(--accent-soft); border: 1px solid rgba(0, 170, 236, 0.35);
  color: var(--accent); margin-bottom: 22px;
  transition: background 0.3s, color 0.3s, transform 0.4s var(--ease);
}
.icon svg { width: 20px; height: 20px; }
.card:hover .icon { background: var(--accent); color: #06212e; transform: rotate(-6deg); }

/* ---------- Split (image + text) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split.reverse > :first-child { order: 0; }
}

/* images sit inside an editor-window frame */
.media {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line-2); background: #161b22;
  padding-top: 34px;
}
.media::before {
  content: ""; position: absolute; top: 12px; left: 14px; width: 10px; height: 10px; border-radius: 50%;
  background: #ff5f57; box-shadow: 16px 0 0 #febc2e, 32px 0 0 #28c840;
}
.media img { width: 100%; transition: transform 1s var(--ease), filter 0.6s; filter: saturate(0.9) brightness(0.95); }
.media:hover img { transform: scale(1.03); filter: none; }

.checks { list-style: none; padding: 0; margin: 0 0 30px; }
.checks li { position: relative; padding: 11px 0 11px 30px; border-top: var(--dash); }
.checks li:last-child { border-bottom: var(--dash); }
.checks li::before {
  content: "✓"; position: absolute; left: 2px; top: 11px;
  font-family: var(--mono); font-weight: 700; color: var(--green);
}
.checks strong { color: var(--fg); }

/* ---------- Stats ---------- */
.stats { border-top: var(--dash); border-bottom: var(--dash); background: var(--bg-2); }
.stats .grid { grid-template-columns: repeat(4, 1fr); gap: 0; }
.stat { padding: 48px 26px; border-left: var(--dash); }
.stat:last-child { border-right: var(--dash); }
.stat b {
  display: block; font-family: var(--mono); font-size: clamp(2.4rem, 4.6vw, 3.4rem); font-weight: 700;
  letter-spacing: -0.04em; line-height: 1; margin-bottom: 12px; color: var(--accent);
}
.stat span { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); text-transform: lowercase; }
.stat span::before { content: "// "; color: var(--line-2); }
@media (max-width: 700px) {
  .stats .grid { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 32px 18px; }
  .stat:nth-child(2) { border-right: var(--dash); }
  .stat:nth-child(n + 3) { border-top: var(--dash); }
}

/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.member {
  position: relative;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: border-color 0.3s, transform 0.4s var(--ease);
}
.section.soft .member { background: var(--bg); }
.member:hover { border-color: var(--accent); transform: translateY(-3px); }
.member .photo { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--card-2); border-bottom: 1px solid var(--line); }
.member .photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.member:hover .photo img { transform: scale(1.06); }
.member h3 { font-size: 0.98rem; margin: 14px 14px 2px; }
.member p { font-family: var(--mono); font-size: 0.75rem; color: var(--muted); margin: 0 14px 14px; text-transform: lowercase; }
.member .li {
  position: absolute; z-index: 2; right: 10px; top: 10px;
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: var(--radius-sm);
  background: rgba(28, 33, 40, 0.85); border: 1px solid var(--line-2); color: var(--fg);
  transition: background 0.2s, color 0.2s;
}
.member .li svg { width: 14px; height: 14px; }
.member .li:hover { background: var(--accent); color: #06212e; }
@media (max-width: 1000px) { .team { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .team { grid-template-columns: repeat(2, 1fr); gap: 14px; } }

/* ---------- Projects ---------- */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0 auto 40px; }
.filters button {
  font-family: var(--mono); font-size: 0.85rem; text-transform: lowercase;
  padding: 7px 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.filters button::before { content: "--"; color: var(--muted); }
.filters button:hover { color: var(--fg); border-color: var(--accent); }
.filters button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #06212e; }
.filters button[aria-pressed="true"]::before { color: #06212e; }

.project {
  position: relative; display: block; border-radius: var(--radius); overflow: hidden;
  background: var(--card); border: 1px solid var(--line);
  color: inherit;
  transition: border-color 0.3s, transform 0.4s var(--ease);
}
.section.soft .project { background: var(--bg); }
.project:hover { color: inherit; border-color: var(--accent); transform: translateY(-4px); }
.project .thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--card-2); border-bottom: 1px solid var(--line); }
.project .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.project:hover .thumb img { transform: scale(1.06); }
.project .go {
  position: absolute; z-index: 2; top: 12px; right: 12px;
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: var(--radius-sm);
  background: var(--accent); color: #06212e;
  transform: translate(6px, -6px); opacity: 0;
  transition: transform 0.4s var(--ease), opacity 0.3s;
}
.project .go svg { width: 16px; height: 16px; transform: rotate(-45deg); }
.project:hover .go { transform: none; opacity: 1; }
.project .body { padding: 18px 22px 22px; }
.project .tag { font-family: var(--mono); font-size: 0.76rem; color: var(--green); text-transform: lowercase; }
.project .tag::before { content: "#"; color: var(--muted); }
.project h3 { margin: 6px 0 0; font-size: 1.05rem; transition: color 0.2s; }
.project:hover h3 { color: var(--accent); }
.project[hidden] { display: none; }
.project.enter { animation: pop 0.5s var(--ease) both; }

/* ---------- Testimonials ---------- */
.quote { display: flex; flex-direction: column; margin: 0; }
.quote blockquote { margin: 0 0 24px; font-size: 1.02rem; line-height: 1.65; color: var(--fg-2); flex: 1; }
.quote blockquote::before {
  content: "/* feedback */"; display: block; font-family: var(--mono); font-size: 0.78rem; color: var(--muted); margin-bottom: 12px;
}
.quote .who { display: flex; align-items: center; gap: 12px; margin: 0; padding-top: 18px; border-top: var(--dash); }
.avatar {
  width: 38px; height: 38px; border-radius: var(--radius-sm);
  display: grid; place-items: center;
  background: var(--accent-soft); border: 1px solid rgba(0, 170, 236, 0.35);
  color: var(--accent); font-family: var(--mono); font-weight: 700;
}
.quote .who b { display: block; color: var(--fg); font-size: 0.95rem; }
.quote .who span { font-family: var(--mono); font-size: 0.75rem; color: var(--muted); }

/* ---------- CTA (terminal window) ---------- */
.cta { padding: 0 0 104px; }
.section.soft + .cta { padding-top: 104px; }
.cta-box {
  position: relative; overflow: hidden;
  border: 1px solid var(--line-2); border-radius: var(--radius);
  background: #161b22;
  padding: 80px 40px 64px;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px;
}
.cta-box::before {
  content: "~/code-binary — zsh"; position: absolute; top: 0; left: 0; right: 0;
  padding: 8px 16px; text-align: center;
  font-family: var(--mono); font-size: 0.75rem; color: var(--muted);
  border-bottom: 1px solid var(--line); background: var(--bg-2);
}
.cta-box::after {
  content: ""; position: absolute; top: 12px; left: 16px; width: 10px; height: 10px; border-radius: 50%;
  background: #ff5f57; box-shadow: 16px 0 0 #febc2e, 32px 0 0 #28c840;
}
.cta-box h2 { margin: 0 0 10px; font-size: clamp(1.9rem, 4vw, 3rem); }
.cta-box p { margin: 0 auto; max-width: 520px; font-size: 1.05rem; }
.cta-box a.mail { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.cta-box .eyebrow { margin-bottom: 14px; }
.cta-box .ring { display: none; }
@media (max-width: 700px) { .cta-box { padding: 64px 20px 48px; } .cta { padding-bottom: 72px; } .section.soft + .cta { padding-top: 72px; } }

/* ---------- Prose (case studies, job posts) ---------- */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: 1.65rem; margin-top: 1.6em; }
.prose h3 { margin-top: 2em; font-size: 1.18rem; }
.prose h3::before { content: "## "; font-family: var(--mono); color: var(--accent); font-weight: 400; }
.prose ul { padding-left: 0; list-style: none; margin: 0 0 1.2em; }
.prose li { position: relative; padding-left: 22px; margin-bottom: 8px; }
.prose li::before { content: "-"; position: absolute; left: 4px; font-family: var(--mono); color: var(--green); }
.prose .cover { border-radius: var(--radius); margin-bottom: 40px; width: 100%; border: 1px solid var(--line-2); }
.prose .intro { font-size: 1.18rem; line-height: 1.65; color: var(--fg-2); }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.pill {
  display: inline-block; padding: 3px 11px; border-radius: var(--radius-sm);
  border: var(--dash); background: var(--bg-2); color: var(--green);
  font-family: var(--mono); font-size: 0.78rem; text-transform: lowercase;
}
.pill::before { content: "#"; color: var(--muted); }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 64px; }
.post-nav a {
  display: block; padding: 20px 22px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--card);
  font-weight: 600; color: var(--fg);
  transition: border-color 0.2s, transform 0.3s var(--ease);
}
.post-nav a:hover { border-color: var(--accent); transform: translateY(-2px); color: var(--fg); }
.post-nav a:last-child { text-align: right; }
.post-nav small { display: block; color: var(--muted); font-family: var(--mono); font-weight: 400; font-size: 0.75rem; margin-bottom: 4px; }
@media (max-width: 560px) { .post-nav { grid-template-columns: 1fr; } .post-nav a:last-child { text-align: left; } }

/* ---------- Feature rows (PeopleOS, Cybersecurity) ---------- */
.feature { padding: 72px 0; }
.feature + .feature { border-top: var(--dash); }
.feature .shot {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: #161b22; border: 1px solid var(--line-2);
  padding: 34px 8px 8px;
  transition: border-color 0.3s, transform 0.5s var(--ease);
}
.feature .shot::before {
  content: ""; position: absolute; top: 12px; left: 14px; width: 10px; height: 10px; border-radius: 50%;
  background: #ff5f57; box-shadow: 16px 0 0 #febc2e, 32px 0 0 #28c840;
}
.feature .shot:hover { border-color: var(--accent); transform: translateY(-4px); }
.feature .shot img { width: 100%; border-radius: 6px; }
.feature ul { padding-left: 0; list-style: none; margin: 0; }
.feature li { padding: 12px 0 12px 26px; border-top: var(--dash); position: relative; }
.feature li::before { content: ">"; position: absolute; left: 4px; top: 12px; font-family: var(--mono); color: var(--green); }
.feature li b { color: var(--fg); }
@media (max-width: 900px) { .feature { padding: 52px 0; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form .full { grid-column: 1 / -1; }
.field { position: relative; }
.field input,
.field textarea {
  width: 100%; font: inherit; font-size: 1rem;
  padding: 24px 14px 8px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-2); background: #161b22; color: var(--fg);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 160px; resize: vertical; padding-top: 30px; }
.field label {
  position: absolute; left: 15px; top: 15px;
  font-family: var(--mono); font-size: 0.9rem; color: var(--muted); pointer-events: none; text-transform: lowercase;
  transform-origin: 0 0;
  transition: transform 0.25s var(--ease), color 0.2s;
}
.field input:hover,
.field textarea:hover { border-color: var(--muted); }
.field input:focus,
.field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label { transform: translateY(-9px) scale(0.8); color: var(--accent); }
.form .note { font-family: var(--mono); font-size: 0.78rem; color: var(--muted); margin: 0; }
.form .note::before { content: "// "; }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }

.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.info-list li {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px;
  transition: border-color 0.2s, transform 0.3s var(--ease);
}
.section.soft .info-list li { background: var(--bg); }
.info-list li:hover { border-color: var(--accent); transform: translateX(4px); }
.info-list .icon { margin: 0; flex: none; }
.info-list b { display: block; color: var(--fg); font-family: var(--mono); font-size: 0.85rem; font-weight: 500; text-transform: lowercase; }
.info-list a, .info-list div > span { color: var(--text); }
.info-list a:hover { color: var(--accent); }

.job { position: relative; border-radius: var(--radius); padding: 44px; background: var(--card); border: 1px solid var(--line-2); }
.job h2 { margin-top: 0; }
@media (max-width: 560px) { .job { padding: 28px 20px; } }

/* ---------- Footer ---------- */
.site-footer {
  position: relative; overflow: hidden;
  background: var(--bg-2); color: var(--muted); padding: 80px 0 0; font-size: 0.94rem;
  border-top: var(--dash);
}
.site-footer h3 { color: var(--fg); font-family: var(--mono); font-size: 0.85rem; font-weight: 500; margin-bottom: 18px; text-transform: lowercase; }
.site-footer h3::before { content: "$ ls "; color: var(--green); }
.site-footer p { max-width: 380px; }
.site-footer a { color: var(--text); }
.site-footer a:hover { color: var(--accent); }
.footer-grid { position: relative; display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: 56px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid ul a { font-family: var(--mono); font-size: 0.86rem; }
.footer-logo { height: 38px; width: auto; margin-bottom: 20px; }
.social {
  display: inline-grid; place-items: center; margin-top: 6px; width: 38px; height: 38px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-2); background: var(--bg);
  transition: background 0.2s, border-color 0.2s;
}
.social:hover { background: var(--accent); border-color: var(--accent); }
.social svg { width: 16px; height: 16px; color: var(--fg); }
.social:hover svg { color: #06212e; }
.wordmark {
  font-family: var(--mono); font-weight: 800; letter-spacing: -0.06em; line-height: 0.85;
  font-size: clamp(2.6rem, 12.5vw, 10.5rem); text-align: center; white-space: nowrap;
  margin: 64px 0 -0.08em;
  color: transparent; -webkit-text-stroke: 1px var(--line-2);
  user-select: none;
}
.copyright { position: relative; border-top: var(--dash); padding: 20px 0; font-family: var(--mono); font-size: 0.76rem; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 50;
  width: 42px; height: 42px; border-radius: var(--radius-sm); cursor: pointer;
  display: grid; place-items: center;
  background: var(--bg-2); border: 1px solid var(--line-2); color: var(--fg);
  opacity: 0; transform: translateY(14px); pointer-events: none;
  transition: opacity 0.3s, transform 0.4s var(--ease), background 0.2s, color 0.2s, border-color 0.2s;
}
.to-top svg { width: 18px; height: 18px; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--accent); border-color: var(--accent); color: #06212e; }

/* ---------- Scroll reveal (only when JS is running) ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: calc(var(--d, 0) * 70ms);
}
.js [data-reveal="left"] { transform: translateX(-24px); }
.js [data-reveal="right"] { transform: translateX(24px); }
.js [data-reveal="zoom"] { transform: none; }
.js [data-reveal].in { opacity: 1; transform: none; }

/* ---------- Utilities ---------- */
.center { text-align: center; }
.mt-2 { margin-top: 2rem; }

/* ---------- Keyframes ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(0.96) translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes type-in { to { opacity: 1; transform: none; } }
@keyframes breathe { 0%, 100% { opacity: 0.7; } 50% { opacity: 1; } }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(87, 211, 100, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(87, 211, 100, 0); }
  100% { box-shadow: 0 0 0 0 rgba(87, 211, 100, 0); }
}
@keyframes blink { 50% { opacity: 0; } }
@keyframes marquee { to { transform: translateX(calc(-50% - 20px)); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important; scroll-behavior: auto !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .code-window .ln { opacity: 1; transform: none; }
}

/* ======================================================================
   Service detail pages (Software Engineering, Technology Consulting)
   ====================================================================== */

/* sticky tree index + capability sections */
.se-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 56px; align-items: start; }
.toc {
  position: sticky; top: 96px;
  display: flex; flex-direction: column;
  padding: 18px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--bg);
  font-family: var(--mono); font-size: 0.85rem;
}
.toc-title { color: var(--green); margin-bottom: 8px; }
.toc a:not(.btn) { display: flex; gap: 8px; padding: 6px 4px; color: var(--text); border-radius: var(--radius-sm); transition: color 0.2s, background 0.2s; }
.toc a:not(.btn)::before { content: "├──"; color: var(--line-2); flex: none; }
.toc a:not(.btn):nth-last-child(2)::before { content: "└──"; }
.toc a:not(.btn):hover { color: var(--fg); background: var(--bg-2); }
.toc a.active { color: var(--accent); }
.toc a.active::before { color: var(--green); }
.toc-cta { margin-top: 16px; }
@media (max-width: 960px) {
  .se-layout { grid-template-columns: 1fr; gap: 28px; }
  .toc { position: static; flex-direction: row; flex-wrap: wrap; gap: 6px; padding: 14px; }
  .toc-title { width: 100%; margin: 0 0 4px; }
  .toc a:not(.btn) { border: 1px solid var(--line-2); padding: 5px 10px; font-size: 0.78rem; }
  .toc a:not(.btn)::before { display: none; }
  .toc-cta { display: none; }
}

.caps { display: grid; gap: 22px; }
.cap {
  scroll-margin-top: 90px;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px;
  transition: border-color 0.3s;
}
.cap:hover { border-color: var(--line-2); }
.cap-head { display: flex; align-items: center; gap: 18px; margin-bottom: 14px; }
.cap-head .icon { margin: 0; flex: none; }
.cap-head h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin: 0; }
.cap-num { display: block; font-family: var(--mono); font-size: 0.75rem; color: var(--muted); margin-bottom: 4px; }
.cap-tagline { font-size: 1.12rem; color: var(--fg-2); margin-bottom: 18px; }
.cap-body p { margin-bottom: 0.9em; }
.cap-link a { font-family: var(--mono); font-size: 0.88rem; }
.cap-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; margin-top: 26px; padding-top: 24px; border-top: var(--dash); }
.cap-grid h3 { font-family: var(--mono); font-size: 0.82rem; font-weight: 500; color: var(--accent); text-transform: lowercase; margin-bottom: 12px; }
.cap-grid h3::before { content: "# "; color: var(--muted); }
.cap-grid .checks { margin: 0; }
.cap-grid .checks li { font-size: 0.95rem; padding-top: 9px; padding-bottom: 9px; }
.cap-grid .checks li::before { top: 9px; }
@media (max-width: 760px) { .cap { padding: 24px 20px; } .cap-grid { grid-template-columns: 1fr; gap: 24px; } }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-family: var(--mono); font-size: 0.78rem; color: var(--fg-2);
  padding: 4px 10px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-2); background: var(--bg-2);
  transition: border-color 0.2s, color 0.2s;
}
.tag:hover { border-color: var(--accent); color: var(--accent); }
.fit { list-style: none; padding: 0; margin: 0; }
.fit li { position: relative; padding: 9px 0 9px 22px; border-top: var(--dash); font-size: 0.95rem; }
.fit li:last-child { border-bottom: var(--dash); }
.fit li::before { content: ">"; position: absolute; left: 2px; font-family: var(--mono); color: var(--green); }

/* process steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: none; }
.step { position: relative; padding: 28px 22px 26px; border: 1px solid var(--line); background: var(--card); }
.step + .step { border-left: 0; }
.step:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.step:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
.step::after {
  content: "→"; position: absolute; right: -11px; top: 30px; z-index: 2;
  width: 22px; height: 22px; display: grid; place-items: center;
  font-family: var(--mono); font-size: 0.8rem; color: var(--accent);
  background: var(--bg); border: 1px solid var(--line-2); border-radius: 50%;
}
.step:last-child::after { display: none; }
.step-num { display: block; font-family: var(--mono); font-size: 0.8rem; color: var(--green); margin-bottom: 14px; }
.step-num::before { content: "step "; color: var(--muted); }
.step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step p { font-size: 0.92rem; margin-bottom: 14px; }
.step-out { font-family: var(--mono); font-size: 0.74rem; color: var(--muted); }
@media (max-width: 1000px) {
  .steps { grid-template-columns: 1fr; }
  .step { border-radius: 0 !important; }
  .step + .step { border-left: 1px solid var(--line); border-top: 0; }
  .step:first-child { border-radius: var(--radius) var(--radius) 0 0 !important; }
  .step:last-child { border-radius: 0 0 var(--radius) var(--radius) !important; }
  .step::after { content: "↓"; right: auto; left: 22px; top: auto; bottom: -11px; }
}

/* engagement model cards */
.model { display: flex; flex-direction: column; }
.model p { flex: 1; margin-bottom: 18px !important; }
.best { font-family: var(--mono); font-size: 0.78rem; color: var(--green); padding-top: 14px; border-top: var(--dash); }

/* comparison table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--bg); }
.compare { width: 100%; border-collapse: collapse; min-width: 720px; font-size: 0.93rem; }
.compare th, .compare td { text-align: left; padding: 14px 18px; border-bottom: var(--dash); vertical-align: top; }
.compare thead th { font-family: var(--mono); font-size: 0.8rem; font-weight: 500; color: var(--accent); text-transform: lowercase; background: var(--bg-2); border-bottom: 1px solid var(--line-2); }
.compare tbody th { color: var(--fg); font-weight: 600; white-space: nowrap; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare tbody tr { transition: background 0.2s; }
.compare tbody tr:hover { background: var(--bg-2); }

/* FAQ */
.faq-wrap { max-width: 860px; }
.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); transition: border-color 0.2s; }
.faq details[open] { border-color: var(--line-2); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; gap: 12px; align-items: baseline;
  padding: 18px 22px; color: var(--fg); font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+"; font-family: var(--mono); color: var(--accent); width: 1ch; flex: none; transition: transform 0.3s var(--ease); }
.faq details[open] summary::before { content: "−"; color: var(--green); }
.faq summary:hover { color: var(--accent); }
.faq details p { margin: 0; padding: 0 22px 20px 48px; }

/* ======================================================================
   PeopleOS product page
   ====================================================================== */

/* sticky module bar: People | Time | Payroll | Finance | Banking | Security */
.modnav {
  position: sticky; top: 60px; z-index: 40;
  background: rgba(34, 39, 46, 0.94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: var(--dash);
}
.modnav .wrap { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-top: 10px; padding-bottom: 10px; }
.modnav .wrap::-webkit-scrollbar { display: none; }
.modnav a {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  padding: 7px 14px; border-radius: var(--radius-sm); border: 1px solid transparent;
  font-family: var(--mono); font-size: 0.84rem; color: var(--text); text-transform: lowercase;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.modnav a svg { width: 16px; height: 16px; color: var(--muted); transition: color 0.2s; }
.modnav a:hover { color: var(--fg); background: var(--bg); }
.modnav a.active { color: var(--fg); border-color: var(--line-2); background: var(--bg); }
.modnav a.active svg, .modnav a:hover svg { color: var(--accent); }
.modnav a + a::before { content: "|"; color: var(--line-2); margin: 0 10px 0 -12px; }
@media (max-width: 1140px) { .modnav { top: 70px; } }

/* connected workflow diagrams */
.flow {
  border: 1px solid var(--line-2); border-radius: var(--radius); background: #161b22;
  padding: 28px 28px 32px; margin-bottom: 22px;
}
.flow-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; margin-bottom: 24px; }
.flow-head h3 { font-size: 1.2rem; margin: 0; }
.flow-head h3::before { content: "$ "; font-family: var(--mono); color: var(--green); font-weight: 400; }
.flow-head p { margin: 0; font-size: 0.95rem; color: var(--muted); }
.flow-steps { list-style: none; margin: 0; padding: 0; display: flex; align-items: stretch; }
.flow-steps li { position: relative; flex: 1 1 0; min-width: 0; display: flex; }
.flow-steps li + li { padding-left: 34px; }
.flow-steps li + li::before {
  /* animated connector */
  content: ""; position: absolute; left: 4px; right: calc(100% - 30px); top: 50%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--accent) 0 6px, transparent 6px 12px);
  background-size: 24px 2px;
  animation: flow-dash 1.2s linear infinite;
}
.flow-steps li + li::after {
  content: ""; position: absolute; left: 26px; top: calc(50% - 4px);
  border-left: 6px solid var(--accent); border-top: 5px solid transparent; border-bottom: 5px solid transparent;
}
.node {
  display: flex; flex-direction: column; justify-content: center; gap: 6px; width: 100%;
  padding: 16px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-2); background: var(--bg-2); color: var(--fg);
  transition: border-color 0.25s, transform 0.3s var(--ease), background 0.25s;
}
.node:hover { color: var(--fg); border-color: var(--accent); background: var(--card-2); transform: translateY(-3px); }
.node-mod { font-family: var(--mono); font-size: 0.7rem; color: var(--green); }
.node-mod::before { content: "#"; color: var(--muted); }
.node-label { font-weight: 600; font-size: 0.95rem; line-height: 1.3; }
@keyframes flow-dash { to { background-position: 24px 0; } }
@media (max-width: 900px) {
  .flow { padding: 22px 18px; }
  .flow-steps { flex-direction: column; }
  .flow-steps li + li { padding-left: 0; padding-top: 30px; }
  .flow-steps li + li::before {
    left: 22px; right: auto; top: 4px; bottom: auto; width: 2px; height: 20px;
    background: repeating-linear-gradient(180deg, var(--accent) 0 5px, transparent 5px 10px);
    background-size: 2px 20px; animation: flow-dash-v 1.2s linear infinite;
  }
  .flow-steps li + li::after {
    left: 18px; top: 20px;
    border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 6px solid var(--accent); border-bottom: 0;
  }
  .node { flex-direction: row; align-items: baseline; justify-content: space-between; }
}
@keyframes flow-dash-v { to { background-position: 0 20px; } }

/* module rows */
.module { scroll-margin-top: 130px; }
.mod-title { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.mod-title .icon { margin: 0; flex: none; }
.mod-title h2 { margin: 0; }
.mod-tagline { font-size: 1.15rem; color: var(--fg-2); }
.connects { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 22px 0 0; font-family: var(--mono); font-size: 0.8rem; }
.connects span { color: var(--muted); margin-right: 2px; }
.connects span::after { content: " →"; color: var(--accent); }
.connects a { padding: 3px 10px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); color: var(--fg-2); background: var(--bg); transition: border-color 0.2s, color 0.2s; }
.connects a:hover { border-color: var(--accent); color: var(--accent); }

/* screenshot placeholder until a real snapshot is supplied */
.shot-empty {
  min-height: 320px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  font-family: var(--mono); color: var(--muted);
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(173, 186, 199, 0.04) 14px 28px),
    #161b22 !important;
}
.shot-empty span { color: var(--fg-2); font-size: 0.95rem; }
.shot-empty small { font-size: 0.78rem; }
a.tag:hover { color: var(--accent); }

/* screenshot with switchable tabs (e.g. People: hiring | employees) */
.feature .shot.shot-tabs { padding: 0 8px 8px; }
.feature .shot.shot-tabs::before { top: 16px; }
.shot-bar { display: flex; gap: 4px; padding: 8px 0 8px 58px; }
.shot-bar button {
  font-family: var(--mono); font-size: 0.75rem; color: var(--muted);
  padding: 4px 12px; border-radius: var(--radius-sm); border: 1px solid transparent; background: none; cursor: pointer;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.shot-bar button::after { content: ".tsx"; color: var(--line-2); }
.shot-bar button:hover { color: var(--fg); }
.shot-bar button[aria-selected="true"] { color: var(--fg); background: var(--bg-2); border-color: var(--line-2); }
.shot-tabs img { animation: pop 0.45s var(--ease) both; }
.shot-tabs img[hidden] { display: none; }

/* PeopleOS modules: text in two columns, screenshot full width below (app screens need the room) */
.feature.module { grid-template-columns: 1fr; gap: 36px; }
.feature.module > .shot { order: 2; }
.feature.module > div:not(.shot) { display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; align-content: start; }
.feature.module > div:not(.shot) > * { grid-column: 1; }
.feature.module > div:not(.shot) > ul { grid-column: 2; grid-row: 1 / span 12; align-self: start; }
.feature.module .shot:hover { transform: translateY(-3px); }
@media (max-width: 900px) {
  .feature.module > div:not(.shot) { grid-template-columns: 1fr; }
  .feature.module > div:not(.shot) > ul { grid-column: 1; grid-row: auto; margin-top: 8px; }
}
.shot-bar { overflow-x: auto; scrollbar-width: none; }
.shot-bar::-webkit-scrollbar { display: none; }
.shot-bar button { flex: none; }
@media (max-width: 560px) { .shot-bar { padding-left: 54px; } .shot-bar button { padding: 4px 8px; } .shot-bar button::after { content: ""; } }

/* PeopleOS: sign-in hint under hero buttons, select fields in forms */
.signin { margin: 18px 0 0; font-family: var(--mono); font-size: 0.85rem; color: var(--muted); }
.signin a { color: var(--accent); margin-left: 4px; }
.signin a:hover { color: var(--accent-2); }
.field select {
  width: 100%; font: inherit; font-size: 1rem; color: var(--fg);
  padding: 24px 40px 8px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-2); background: #161b22; appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%;
  background-size: 5px 5px; background-repeat: no-repeat;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field select:hover { border-color: var(--muted); }
.field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field select + label { transform: translateY(-9px) scale(0.8); color: var(--accent); }
.field select option { background: var(--bg-2); color: var(--fg); }
#get-started { scroll-margin-top: 110px; }

/* contact forms: honeypot (hidden from people), CAPTCHA and status line */
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form { position: relative; }
.cf-turnstile { min-height: 65px; }
.form-status { margin: 0; font-family: var(--mono); font-size: 0.85rem; min-height: 1.2em; }
.form-status[data-kind="ok"] { color: var(--green); }
.form-status[data-kind="ok"]::before { content: "✓ "; }
.form-status[data-kind="error"] { color: #ff7b72; }
.form-status[data-kind="error"]::before { content: "✗ "; }
.form button[disabled] { opacity: 0.7; cursor: wait; }

/* four-up grid (services) and three-person team row */
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-4 { grid-template-columns: 1fr; } }
.team { grid-template-columns: repeat(3, minmax(0, 260px)); justify-content: center; }
@media (max-width: 600px) { .team { grid-template-columns: repeat(2, 1fr); } }
