/* ─── Tokens ─────────────────────────────────────────────── */
:root {
  --bg: oklch(0.99 0.003 250);
  --ink: oklch(0.22 0.02 260);
  --muted: oklch(0.50 0.02 260);
  --muted-soft: oklch(0.65 0.02 260);
  --border: oklch(0.22 0.02 260 / 0.10);
  --border-strong: oklch(0.22 0.02 260 / 0.18);
  --accent: oklch(0.55 0.18 265);
  --accent-ink: oklch(0.35 0.18 265);
  --accent-soft: oklch(0.96 0.025 265);
  --card: #ffffff;
  --dark: oklch(0.18 0.02 260);
  --green: oklch(0.55 0.16 145);
  --red: oklch(0.55 0.18 30);
}

/* ─── Reset / base ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; display: block; }

/* ─── Typography helpers ─────────────────────────────────── */
.eyebrow {
  font-size: 12px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
.h2 {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -1px;
  margin: 12px 0 0;
}
.lede {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.65;
  margin: 14px 0 0;
}

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 14px 24px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s;
}
.btn-pill { border-radius: 99px; padding: 10px 18px; font-size: 13px; }
.btn-dark {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06), 0 6px 16px oklch(0.22 0.02 260 / 0.10);
}
.btn-dark:hover { transform: translateY(-1px); }
.btn-light {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

/* ─── Nav ────────────────────────────────────────────────── */
.nav-wrap {
  position: sticky;
  top: 16px;
  z-index: 30;
  padding: 0 24px;
}
.nav {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: oklch(1 0 0 / 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 10px 12px 10px 22px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
  transition: box-shadow .2s;
}
.nav.scrolled {
  box-shadow: 0 8px 24px oklch(0.22 0.02 260 / 0.08), 0 1px 2px rgba(0,0,0,0.04);
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.3px;
  text-decoration: none;
}
.logo-mark {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}
.nav-links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  color: var(--muted);
}
.nav-links a { text-decoration: none; }
.nav-links a:hover { color: var(--ink); }

/* ─── Hero ───────────────────────────────────────────────── */
.hero {
  padding: 60px 24px 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-glow {
  position: absolute; inset: 0;
  background: radial-gradient(60% 50% at 50% 0%, var(--accent-soft), transparent 70%);
  pointer-events: none;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(closest-side at 50% 30%, black, transparent 75%);
          mask-image: radial-gradient(closest-side at 50% 30%, black, transparent 75%);
  opacity: 0.5;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px 6px 8px;
  border: 1px solid var(--border);
  border-radius: 99px;
  font-size: 13px;
  background: #fff;
  color: var(--muted);
  margin-bottom: 32px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.badge-pill {
  background: oklch(0.92 0.05 145);
  color: oklch(0.35 0.12 145);
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: var(--green);
}
.hero-title {
  font-size: clamp(40px, 6vw, 76px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -2.4px;
  margin: 0 auto;
  max-width: 980px;
}
.hero-line2 { display: inline-block; margin-top: 6px; }
.typed { color: var(--accent); white-space: nowrap; }
.caret {
  display: inline-block;
  width: 4px;
  margin-left: 4px;
  background: var(--accent);
  height: 0.85em;
  vertical-align: -0.05em;
  animation: blink 1s steps(1) infinite;
  border-radius: 1px;
}
@keyframes blink { 50% { opacity: 0; } }
.hero-lede {
  margin: 28px auto 0;
  font-size: 19px;
  line-height: 1.55;
  max-width: 660px;
  color: var(--muted);
}
.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 36px;
  flex-wrap: wrap;
}

/* ─── Clients ────────────────────────────────────────────── */
.clients { padding: 0 24px 70px; max-width: 1100px; margin: 0 auto; text-align: center; }
.clients-label {
  font-size: 12px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--muted-soft);
  margin-bottom: 22px;
  font-weight: 500;
}
.clients-list {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 4vw, 56px);
  justify-content: center;
  align-items: center;
}
.clients-list span {
  font-size: 17px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: -0.2px;
  opacity: 0.85;
}

/* ─── Sections ───────────────────────────────────────────── */
.section {
  padding: 40px 24px 80px;
  max-width: 1100px;
  margin: 0 auto;
}
.section-head { margin-bottom: 36px; }
.section-head.center { text-align: center; }
.section-head .lede { max-width: 560px; }

/* ─── Card ───────────────────────────────────────────────── */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: clamp(32px, 5vw, 64px);
  box-shadow: 0 1px 2px rgba(0,0,0,0.03), 0 12px 32px oklch(0.22 0.02 260 / 0.04);
}

/* ─── About ──────────────────────────────────────────────── */
.about-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 56px;
}
.tags {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag {
  font-size: 12px;
  padding: 5px 11px;
  border-radius: 99px;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--ink);
  font-weight: 500;
}
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-content: center;
}
.stat {
  padding: 24px;
  border-radius: 16px;
  background: var(--accent-soft);
  border: 1px solid var(--border);
}
.stat-n {
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -1.2px;
  color: var(--accent-ink);
}
.stat-l {
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
}

/* ─── Projects (cards) ───────────────────────────────────── */
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 20px;
}
.project-link-wrap {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.project {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
  transition: transform .2s, box-shadow .2s;
}
.project:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px oklch(0.22 0.02 260 / 0.10);
}
.project-cover {
  height: 180px;
  position: relative;
  overflow: hidden;
}
.cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}
.cover-stripes {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(45deg, transparent 0 14px, rgba(255,255,255,0.16) 14px 15px);
}
.cover-meta {
  position: absolute;
  inset: 18px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  color: #fff;
  font-size: 12px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  opacity: 0.9;
}
.cover-title {
  position: absolute;
  bottom: 18px;
  left: 18px;
  right: 18px;
  color: #fff;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.4px;
}
.project-body {
  padding: 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.project-body p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}
.metrics {
  margin-top: 16px;
  display: flex;
  gap: 24px;
}
.m-n {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.3px;
}
.m-l {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}
.stack {
  margin-top: 18px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.chip {
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 99px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-weight: 500;
}
.chip-lg {
  font-size: 13px;
  padding: 5px 13px;
}
.no-projects-hint {
  color: var(--muted);
  font-size: 14px;
  grid-column: 1 / -1;
}

/* ─── Process ────────────────────────────────────────────── */
.process {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.step {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
}
.step-no {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 10px;
  font-weight: 600;
}
.step-title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.3px;
}
.step-desc {
  font-size: 14px;
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.6;
}

/* ─── Timeline ───────────────────────────────────────────── */
.timeline {
  position: relative;
  padding-left: 28px;
  margin-top: 36px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: var(--border-strong);
}
.tl-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 28px;
  padding: 16px 0;
  position: relative;
}
.tl-dot {
  position: absolute;
  left: -22px;
  top: 22px;
  width: 13px;
  height: 13px;
  border-radius: 99px;
  background: #fff;
  border: 2px solid var(--border-strong);
}
.tl-item.active .tl-dot {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px oklch(0.55 0.18 265 / 0.15);
}
.tl-year {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  padding-top: 14px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
}
.tl-item.active .tl-year { color: var(--accent); }
.tl-role {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.3px;
  padding-top: 12px;
}
.tl-desc {
  font-size: 14px;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.6;
}

/* ─── FAQ ────────────────────────────────────────────────── */
.faq-section { max-width: 880px; }
.faq-item {
  border-top: 1px solid var(--border);
  padding: 20px 0;
}
.faq-item:last-child { border-bottom: 1px solid var(--border); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.2px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 99px;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
  flex-shrink: 0;
  transition: background .15s, color .15s, transform .15s;
}
.faq-item[open] .faq-icon {
  background: var(--accent);
  color: #fff;
  transform: rotate(45deg);
}
.faq-body {
  font-size: 15px;
  color: var(--muted);
  margin-top: 12px;
  line-height: 1.65;
  max-width: 720px;
}

/* ─── Contact ────────────────────────────────────────────── */
.contact {
  background: var(--dark);
  border-radius: 28px;
  padding: clamp(32px, 5vw, 56px);
  color: #fff;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 56px;
  position: relative;
  overflow: hidden;
}
.contact-glow-a {
  position: absolute;
  right: -160px;
  top: -160px;
  width: 460px;
  height: 460px;
  border-radius: 99px;
  background: radial-gradient(closest-side, var(--accent), transparent 70%);
  opacity: 0.45;
  pointer-events: none;
}
.contact-glow-b {
  position: absolute;
  left: -120px;
  bottom: -160px;
  width: 360px;
  height: 360px;
  border-radius: 99px;
  background: radial-gradient(closest-side, oklch(0.55 0.16 200), transparent 70%);
  opacity: 0.3;
  pointer-events: none;
}
.contact-info { position: relative; }
.contact-eyebrow { color: oklch(0.78 0.10 265); }
.contact-title {
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 600;
  letter-spacing: -1.4px;
  line-height: 1.05;
  margin: 12px 0 22px;
}
.contact-lede {
  font-size: 17px;
  color: oklch(0.78 0.02 260);
  line-height: 1.6;
  margin: 0;
  max-width: 460px;
}
.contact-meta {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 14px;
  color: oklch(0.82 0.02 260);
}
.contact-meta > div { display: flex; align-items: center; gap: 12px; }
.ci-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: oklch(0.28 0.03 260);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

/* ─── Form ───────────────────────────────────────────────── */
.contact-form {
  background: #fff;
  border-radius: 20px;
  padding: 28px;
  color: var(--ink);
  position: relative;
  align-self: start;
}
.form-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: -0.3px;
}
.field { display: block; margin-bottom: 16px; }
.field-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 7px;
}
.field-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 7px;
}
.field-counter {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
}
.field-counter.ok { color: var(--green); }
.field-counter.err { color: var(--red); }
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 13px 15px;
  border-radius: 11px;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--border);
  transition: box-shadow .15s, border-color .15s;
}
.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}
.contact-form input.valid {
  box-shadow: 0 0 0 3px oklch(0.55 0.16 145 / 0.14);
}
.contact-form input.invalid,
.contact-form textarea.invalid {
  border-color: var(--red);
}
.field-error {
  display: block;
  font-size: 12px;
  color: var(--red);
  margin-top: 6px;
  min-height: 14px;
}
.btn-submit {
  width: 100%;
  padding: 15px;
  border-radius: 11px;
  background: oklch(0.85 0.02 260);
  color: #fff;
  border: 0;
  font-size: 15px;
  font-weight: 600;
  cursor: not-allowed;
  font-family: inherit;
  transition: background .15s, box-shadow .15s, transform .15s;
}
.btn-submit:enabled {
  background: var(--accent);
  cursor: pointer;
  box-shadow: 0 6px 16px oklch(0.55 0.18 265 / 0.30);
}
.btn-submit:enabled:hover { transform: translateY(-1px); }
.form-foot {
  font-size: 12px;
  color: var(--muted);
  margin-top: 12px;
  text-align: center;
}

/* ─── Success state ──────────────────────────────────────── */
.contact-success {
  background: #fff;
  border-radius: 20px;
  padding: 56px 28px;
  color: var(--ink);
  text-align: center;
  align-self: start;
}
.success-check {
  width: 56px;
  height: 56px;
  border-radius: 99px;
  background: oklch(0.92 0.05 145);
  color: var(--green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 16px;
  font-weight: 600;
}
.success-title {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.4px;
}
.success-lede {
  font-size: 15px;
  color: var(--muted);
  margin-top: 10px;
  line-height: 1.6;
}

/* ─── Footer ─────────────────────────────────────────────── */
.footer {
  padding: 32px 24px 48px;
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
  gap: 16px;
  flex-wrap: wrap;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-logo .logo-mark { width: 22px; height: 22px; border-radius: 6px; font-size: 12px; }
.footer-links { display: flex; gap: 22px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--ink); }

/* ═══════════════════════════════════════════════════════════
   PROJECT DETAIL PAGE
   ═══════════════════════════════════════════════════════════ */

/* Outer wrapper — no max-width, bleeds edge to edge */
.pd-wrap {
  display: flex;
  flex-direction: column;
}

/* ── Full-bleed hero ─────────────────────────────────────── */
.pd-hero {
  position: relative;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}
.pd-hero-noise {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.5;
}
.pd-hero-stripes {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    45deg,
    transparent 0 28px,
    rgba(255,255,255,0.06) 28px 29px
  );
  pointer-events: none;
}
/* Gradient overlay so text is always readable */
.pd-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 30%,
    rgba(0,0,0,0.55) 100%
  );
  pointer-events: none;
}
.pd-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}
.pd-hero-topbar {
  position: absolute;
  top: 28px;
  left: clamp(20px, 5vw, 72px);
  z-index: 2;
}
/* Back button — ghost white pill */
.pd-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  color: #fff;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.30);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background .15s, transform .15s;
  cursor: pointer;
}
.pd-back-btn:hover {
  background: rgba(255,255,255,0.25);
  transform: translateX(-2px);
}
.pd-hero-body {
  position: relative;
  z-index: 2;
  padding: clamp(32px, 5vw, 72px);
  padding-top: 80px;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
}
.pd-hero-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.pd-cat-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.30);
  color: #fff;
  backdrop-filter: blur(6px);
  letter-spacing: 0.3px;
}
.pd-year-badge {
  font-size: 12px;
  color: rgba(255,255,255,0.70);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-weight: 500;
}
.pd-hero-title {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: -2px;
  line-height: 1.05;
  color: #fff;
  margin: 0 0 16px;
  max-width: 820px;
}
.pd-hero-lead {
  font-size: clamp(16px, 1.8vw, 19px);
  color: rgba(255,255,255,0.82);
  line-height: 1.6;
  margin: 0;
  max-width: 640px;
}

/* ── Article wrap (constrained) ──────────────────────────── */
.pd-article-wrap {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  padding: 0 clamp(20px, 5vw, 72px) 80px;
}

/* ── Metrics bar ─────────────────────────────────────────── */
.pd-metrics-bar {
  display: flex;
  align-items: center;
  gap: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0;
  margin-top: -28px;         /* pulls up slightly over the hero bottom edge */
  margin-bottom: 48px;
  box-shadow: 0 4px 24px oklch(0.22 0.02 260 / 0.08);
  overflow: hidden;
  flex-wrap: wrap;
}
.pd-metric-item {
  flex: 1 1 140px;
  padding: 24px 28px;
  border-right: 1px solid var(--border);
  min-width: 120px;
}
.pd-metric-item:last-of-type { border-right: none; }
.pd-metric-num {
  display: block;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--accent-ink);
  line-height: 1;
}
.pd-metric-label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 500;
}
.pd-metric-stack {
  flex: 2 1 220px;
  padding: 20px 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  border-left: 1px solid var(--border);
}

/* ── Content grid: prose + sidebar ──────────────────────── */
.pd-content-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}

/* ── Main prose ──────────────────────────────────────────── */
.pd-prose {
  min-width: 0;
}
.pd-body-text {
  font-size: 17px;
  line-height: 1.8;
  color: var(--ink);
}
.pd-body-text p {
  margin: 0 0 1.4em;
}
.pd-body-text p:last-child { margin-bottom: 0; }
/* Decorative first-letter drop cap */
.pd-body-text > p:first-child::first-letter {
  float: left;
  font-size: 3.8em;
  line-height: 0.78;
  font-weight: 700;
  color: var(--accent);
  margin-right: 6px;
  margin-top: 6px;
}
.pd-live-wrap {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.pd-live-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  background: var(--ink);
  box-shadow: 0 2px 8px oklch(0.22 0.02 260 / 0.15);
  transition: transform .15s, box-shadow .15s;
}
.pd-live-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px oklch(0.22 0.02 260 / 0.20);
}
.pd-live-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255,255,255,0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

/* ── Sidebar ─────────────────────────────────────────────── */
.pd-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 100px;
}
.pd-sidebar-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 24px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}
.pd-sidebar-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--muted-soft);
  margin-bottom: 16px;
}
.pd-fact-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.pd-fact-row:last-child { border-bottom: none; padding-bottom: 0; }
.pd-fact-row:first-child { padding-top: 0; }
.pd-fact-key {
  color: var(--muted);
  font-weight: 500;
  flex-shrink: 0;
}
.pd-fact-val {
  color: var(--ink);
  font-weight: 500;
  text-align: right;
}
.pd-fact-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: flex-end;
}
.pd-fact-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}
.pd-fact-link:hover { text-decoration: underline; }
/* Results card */
.pd-sidebar-results { background: var(--dark); border-color: transparent; }
.pd-sidebar-results .pd-sidebar-label { color: oklch(0.65 0.05 265); }
.pd-sidebar-metric {
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.pd-sidebar-metric:last-child { border-bottom: none; padding-bottom: 0; }
.pd-sidebar-metric:first-of-type { padding-top: 0; }
.pd-sidebar-num {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -1.2px;
  color: #fff;
  line-height: 1;
}
.pd-sidebar-mlabel {
  font-size: 12px;
  color: oklch(0.72 0.05 265);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 500;
}

/* ── More projects ───────────────────────────────────────── */
.pd-more-section {
  background: oklch(0.97 0.005 260);
  border-top: 1px solid var(--border);
  padding: 64px clamp(20px, 5vw, 72px) 80px;
}
.pd-more-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.pd-more-header {
  margin-bottom: 32px;
}
.pd-more-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .pd-content-grid {
    grid-template-columns: 1fr;
  }
  .pd-sidebar {
    position: static;
  }
  .pd-metrics-bar {
    margin-top: 24px;
  }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav { padding: 8px 12px 8px 18px; }
  .pd-hero { min-height: 360px; }
  .pd-hero-title { letter-spacing: -1px; }
  .pd-metric-item { padding: 18px 20px; }
  .pd-metric-num { font-size: 24px; }
  .pd-body-text > p:first-child::first-letter {
    float: none;
    font-size: inherit;
    margin: 0;
    color: inherit;
  }
}


/* ─── Logo image marks (worker-added) ─────────────────────────────── */
.brand-logo{height:34px;width:34px;border-radius:8px;display:block;flex:0 0 auto}
.foot-logo{height:30px;width:30px;border-radius:8px;display:block;flex:0 0 auto}
.logo{display:inline-flex;align-items:center;gap:.6rem}
.logo > div, .logo .wb-img-wrap{display:inline-flex;align-items:center;line-height:0}
.footer-logo{display:inline-flex;align-items:center;gap:.6rem}
.footer-logo > div, .footer-logo .wb-img-wrap{display:inline-flex;align-items:center;line-height:0}

.wb-brandmark{position:relative;display:inline-flex;align-items:center;}
.wb-brand-img{height:34px;width:auto;max-width:180px;display:block;object-fit:contain;}
.wb-brandmark .wb-list-edit{position:absolute;top:-10px;right:-10px;z-index:10;width:24px;height:24px;border-radius:50%;border:2px solid #fff;background:#3a5a8c;color:#fff;font-size:12px;line-height:1;padding:0;cursor:pointer;display:flex;align-items:center;justify-content:center;box-shadow:0 2px 6px rgba(0,0,0,.3);opacity:1;transform:none;}
