:root {
  --ink: #ffffff;
  --ink-muted: rgba(255,255,255,0.62);
  --ink-dim: rgba(255,255,255,0.38);
  --blue-cta: #1f6fe5;
  --blue-cta-deep: #1559c6;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --bg: #081d3a;
  --bg-surface: #0d2448;
  --bg-border: rgba(255,255,255,0.08);
  --nav-height: 64px;
  --content-width: 700px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ─── Nav ─── */

nav {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 0 clamp(20px, 4vw, 48px);
  height: var(--nav-height);
}

.wordmark {
  font-family: 'Bitcount Grid Double', var(--serif);
  font-size: 1.2rem;
  font-weight: 400;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin-left: auto;
}

.nav-links a {
  color: rgba(255,255,255,0.72);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.15s;
}

.nav-links a:hover { color: #fff; }

.cta-pill {
  display: inline-block;
  padding: 9px 22px;
  border-radius: 999px;
  background: linear-gradient(180deg, #2e80f5 0%, var(--blue-cta) 55%, var(--blue-cta-deep) 100%);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 14px rgba(18,76,200,0.38);
}

.cta-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(18,76,200,0.5);
}

hooman-nav, hooman-footer { display: block; }

/* Glassmorphic floating nav */
nav.glass-nav {
  height: auto;
  gap: 0;
  justify-content: center;
  padding: 20px clamp(16px, 3vw, 40px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-glass {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-radius: 999px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.32),
    0 0 0 1px rgba(255, 255, 255, 0.14);
  width: 100%;
  max-width: 840px;
}

.glass-effect {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  filter: url(#glass-distortion);
  overflow: hidden;
}

.glass-tint {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.glass-shine {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  box-shadow:
    inset 1.5px 1.5px 1px rgba(255, 255, 255, 0.38),
    inset -1px -1px 1px rgba(255, 255, 255, 0.14);
}

.nav-inner {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 12px 20px 12px 24px;
  width: 100%;
  line-height: 1;
}

.nav-inner .nav-links li { display: flex; align-items: center; }
.nav-inner .nav-links a  { display: flex; align-items: center; }

@media (prefers-reduced-motion: reduce) {
  .glass-effect { filter: none; }
}

/* Hamburger button */
.nav-burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: rgba(255,255,255,0.85);
  line-height: 0;
  margin-left: auto;
  border-radius: 6px;
  transition: color 0.15s;
}
.nav-burger:hover { color: #fff; }
.nav-burger .icon-close { display: none; }
.nav-burger[aria-expanded="true"] .icon-ham { display: none; }
.nav-burger[aria-expanded="true"] .icon-close { display: block; }

/* Mobile dropdown */
.nav-mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: clamp(16px, 3vw, 40px);
  right: clamp(16px, 3vw, 40px);
  margin-top: 8px;
  border-radius: 20px;
  background: rgba(10, 22, 50, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 8px 32px rgba(0,0,0,0.45), 0 0 0 0.5px rgba(255,255,255,0.06);
  padding: 12px;
  z-index: 99;
  flex-direction: column;
  gap: 4px;
}

.nav-mobile-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-mobile-menu ul a {
  display: block;
  padding: 11px 14px;
  border-radius: 12px;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}

.nav-mobile-menu ul a:hover,
.nav-mobile-menu ul a:focus { background: rgba(255,255,255,0.08); color: #fff; }

.nav-mobile-menu .cta-pill {
  display: block;
  text-align: center;
  margin-top: 8px;
}

@keyframes menuIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-inner .cta-pill { display: none; }
  .nav-burger { display: flex; align-items: center; justify-content: center; }
  .nav-mobile-menu.open {
    display: flex;
    animation: menuIn 0.18s ease forwards;
  }
}

/* ─── Page layout ─── */

.page-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-main {
  flex: 1;
  padding: clamp(48px, 8vw, 80px) clamp(20px, 5vw, 48px);
  max-width: calc(var(--content-width) + 96px);
  margin: 0 auto;
  width: 100%;
}

.page-main.wide {
  max-width: 1060px;
}

/* ─── Footer ─── */

footer {
  border-top: 1px solid var(--bg-border);
  padding: 28px clamp(20px, 4vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

footer p {
  color: var(--ink-muted);
  font-size: 0.875rem;
}

footer nav {
  height: auto;
  padding: 0;
  gap: 20px;
  position: static;
  z-index: auto;
}

footer nav a {
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.15s;
}

footer nav a:hover { color: #fff; }

/* ─── Page header (about, services, process) ─── */

.page-header {
  margin-bottom: clamp(40px, 6vw, 64px);
  padding-bottom: clamp(28px, 4vw, 40px);
  border-bottom: 1px solid var(--bg-border);
}

.page-header h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.018em;
  color: #fff;
  margin-bottom: 14px;
}

.page-header .lead {
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  color: var(--ink-muted);
  line-height: 1.65;
  max-width: 54ch;
}

/* ─── Blog listing ─── */

.blog-grid {
  display: grid;
  gap: 0;
}

.blog-card {
  display: block;
  padding: 28px 0;
  border-bottom: 1px solid var(--bg-border);
  text-decoration: none;
  color: inherit;
  transition: opacity 0.15s;
}

.blog-card:first-child { border-top: 1px solid var(--bg-border); }

.blog-card-meta {
  font-size: 0.8rem;
  color: var(--ink-dim);
  margin-bottom: 8px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.blog-card h2 {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 400;
  line-height: 1.3;
  color: #fff;
  margin-bottom: 8px;
  transition: color 0.15s;
}

.blog-card:hover h2 { color: rgba(255,255,255,0.7); }

.blog-card p {
  color: var(--ink-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
  max-width: 62ch;
}

/* ─── Post ─── */

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-dim);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 36px;
  transition: color 0.15s;
}

.back-link:hover { color: #fff; }

.post-header {
  margin-bottom: clamp(36px, 5vw, 56px);
  padding-bottom: clamp(28px, 4vw, 40px);
  border-bottom: 1px solid var(--bg-border);
}

.post-meta {
  font-size: 0.8rem;
  color: var(--ink-dim);
  margin-bottom: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.post-header h1 {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3.5vw, 2.6rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: #fff;
  margin-bottom: 14px;
}

.post-lead {
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  color: var(--ink-muted);
  line-height: 1.65;
  max-width: 54ch;
}

/* ─── Prose ─── */

.prose {
  font-size: clamp(0.9375rem, 1.15vw, 1.0625rem);
  line-height: 1.8;
  color: rgba(255,255,255,0.86);
}

.prose p { margin-bottom: 1.5em; }
.prose p:last-child { margin-bottom: 0; }

.prose h2 {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: #fff;
  margin-top: 2.4em;
  margin-bottom: 0.75em;
}

.prose h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin-top: 1.8em;
  margin-bottom: 0.5em;
  letter-spacing: 0.01em;
}

.prose strong { color: #fff; font-weight: 600; }

.prose code {
  font-family: "SF Mono", "Fira Code", "Cascadia Code", ui-monospace, monospace;
  font-size: 0.875em;
  background: rgba(255,255,255,0.09);
  border-radius: 4px;
  padding: 0.15em 0.42em;
  color: rgba(255,255,255,0.9);
}

.prose pre {
  background: rgba(0,0,0,0.32);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 20px 24px;
  overflow-x: auto;
  margin: 1.6em 0;
  font-size: 0.875rem;
  line-height: 1.65;
}

.prose pre code {
  background: none;
  padding: 0;
  border-radius: 0;
  font-size: 1em;
}

.prose ul,
.prose ol {
  padding-left: 1.4em;
  margin-bottom: 1.5em;
}

.prose li { margin-bottom: 0.45em; }

.prose blockquote {
  border-left: 2px solid rgba(255,255,255,0.18);
  padding-left: 1.2em;
  margin: 1.6em 0;
  color: var(--ink-muted);
  font-style: italic;
}

.prose hr {
  border: none;
  border-top: 1px solid var(--bg-border);
  margin: 2.4em 0;
}

.prose a {
  color: #6aadff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose a:hover { color: #94c4ff; }

/* ─── Section cards (services) ─── */

.section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.section-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--bg-border);
  border-radius: 12px;
  padding: 28px;
}

.section-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.section-card h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 400;
  color: #fff;
  margin-bottom: 10px;
  line-height: 1.3;
}

.section-card p {
  font-size: 0.9375rem;
  color: var(--ink-muted);
  line-height: 1.65;
}

/* ─── Process steps ─── */

.process-steps {
  margin-top: 48px;
  counter-reset: step;
}

.step {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 20px;
  padding: 32px 0;
  border-bottom: 1px solid var(--bg-border);
  counter-increment: step;
}

.step:last-child { border-bottom: none; }

.step-num {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--ink-dim);
  line-height: 1;
  padding-top: 4px;
}

.step-num::before { content: counter(step, decimal-leading-zero); }

.step-body h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}

.step-body p {
  font-size: 0.9375rem;
  color: var(--ink-muted);
  line-height: 1.65;
}

/* ─── Team grid ─── */

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 18px;
  margin-top: 40px;
}

.team-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--bg-border);
  border-radius: 10px;
  padding: 24px;
}

.team-card .name {
  font-weight: 600;
  font-size: 0.9375rem;
  color: #fff;
  margin-bottom: 3px;
}

.team-card .role {
  font-size: 0.8125rem;
  color: var(--ink-dim);
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}

.team-card .bio {
  font-size: 0.875rem;
  color: var(--ink-muted);
  line-height: 1.6;
}
