@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&display=swap');

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

:root {
  /* Layout */
  --gutter: clamp(16px, 3.2vw, 56px);
  --content-max: 1200px;
  --text-measure: 68ch;
  --space-section: clamp(40px, 9vw, 100px);
  --space-hero: clamp(32px, 8vw, 90px);
  --nav-top-offset: calc(env(safe-area-inset-top, 0px) + 10px);

  /* Typography — display/grotesk headlines, Inter body, mono labels.
     Scale is H1-led: H1 is always larger and stronger than H2. */
  --font-body: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Space Grotesk", "Inter Tight", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --h1-fluid: clamp(2.1rem, 4.8vw, 3.35rem);
  --h2-fluid: clamp(1.5rem, 2.6vw, 2rem);
  --h3-fluid: clamp(1.1rem, 1.6vw, 1.3rem);
  --body-fluid: clamp(1rem, 1.2vw, 1.05rem);

  /* Palette — white-first canvas, deep navy structure, purple/indigo action */
  --canvas: #ffffff;
  --ink: #0b1220;
  --ink-soft: #334155;
  --muted: #475569;
  --faint: #94a3b8;
  --line: #e5e7eb;
  --line-soft: #f1f5f9;
  --surface: #f8fafc;
  --surface-violet: #f5f3ff;
  --accent: #6c3fd4;
  --accent-strong: #5a33b8;
  --accent-ink: #ffffff;
  --accent-wash: #f6f2ff;
  /* Classic Amber brand tokens (logo system) — additive; components keep
     their existing tokens. --zs-amber is the one amber source of truth. */
  --zs-ink: #18181B;      /* graphite — tile, primary text */
  --zs-amber: #F59E0B;    /* gold stratum — accent only */
  --zs-black: #0C0A09;    /* warm black — dark-mode surfaces */
  --zs-paper: #FAFAF9;    /* warm off-white */
  --zs-stone: #78716C;    /* muted secondary text (light bg) */
  --zs-stone-dark: #A8A29E; /* muted secondary text (dark bg) */

  /* Amber/gold — energy + highlight (paired with purple action). Never a primary action. */
  --gold: var(--zs-amber);
  --gold-strong: #e0911f;
  --gold-ink: #0b1220;
  --gold-wash: #fff7ea;
  --surface-gold: #fff7ea;
  --grid-line: rgba(11, 18, 32, 0.04);

  /* Radii — unified 8px system */
  --radius: 8px;
  --radius-sm: 6px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-sm: 0 12px 30px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 18px 42px rgba(15, 23, 42, 0.08);
  --shadow-pop: 0 12px 24px rgba(15, 23, 42, 0.08);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--canvas);
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center top;
  color: var(--ink);
  line-height: 1.6;
}

/* Display/grotesk headline face — H1/H2 and major headline classes.
   Body text and mono labels are unaffected. */
h1,
h2,
.hero-headline,
.page-title,
.page-title-nowrap,
.post-page-title,
.newsletter-headline,
.section-header h2,
.section-title,
.v2-hero-text h1,
.v2-board-header h1,
.v2-blog-header h1,
.v2-contact-top h1,
.v2-intent-title,
.v2-direct-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p,
li,
.hero-description,
.page-intro,
.v2-hero-desc,
.v2-trip-card p,
.v2-featured-build p,
.v2-subscribe-rail > p,
.newsletter-inline-copy,
.newsletter-consent,
.policy-body p,
.policy-body li,
.post-body p,
.v2-post-meta p {
  text-wrap: pretty;
}

/* Monospace labels + chips for builder texture */
.eyebrow,
.v2-eyebrow,
.mini-label,
.section-label,
.card-tag,
.v2-tag-chip,
.v2-count-badge,
.contact-info-label {
  font-family: var(--font-mono);
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 120px;
  pointer-events: none;
  opacity: 0;
  z-index: 950;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.92) 0%,
    rgba(255, 255, 255, 0.72) 42%,
    rgba(255, 255, 255, 0) 100%
  );
  transition: opacity 0.78s cubic-bezier(0.22, 1, 0.36, 1);
}

body.navbar-compact-active::before {
  opacity: 0.22;
}

body.navbar-transitioning::before {
  opacity: 0.16;
}

main {
  overflow-x: clip;
  transition: opacity 0.78s cubic-bezier(0.22, 1, 0.36, 1);
}

body.navbar-transitioning main {
  opacity: 0.985;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

.navbar {
  position: sticky;
  top: var(--nav-top-offset);
  z-index: 1000;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  max-width: var(--content-max);
  margin: var(--nav-top-offset) auto 0;
  padding: 14px var(--gutter);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  box-shadow: none;
  border-bottom: 1px solid #e5e7eb;
  transition: max-width 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    margin 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    padding 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    gap 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    border-radius 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    top 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.05s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 1.05s cubic-bezier(0.22, 1, 0.36, 1);
  transform-origin: center top;
  will-change: transform, opacity;
}

.nav-left,
.nav-right {
  display: flex;
  align-items: center;
}

.nav-left,
.nav-contact {
  flex: 0 0 auto;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  border-radius: 8px;
  background: transparent;
  flex-shrink: 0;
}

/* Brand lockup (badge + wordmark, one SVG) with a badge-only fallback for
   tight contexts: the scroll-compact pill, the 761–1000px band, and <=480px. */
.logo-lockup {
  height: 56px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.logo-badge {
  width: 38px;
  height: 38px;
  display: none;
  object-fit: contain;
  flex-shrink: 0;
}

.hotbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 28px;
  width: 100%;
  justify-self: stretch;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    padding 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    margin 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    max-width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.hot-btn {
  --hot-btn-indicator-space: 15px;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  position: relative;
  background: transparent;
  color: var(--muted);
  padding: 6px 2px 6px var(--hot-btn-indicator-space);
  border: 0;
  border-radius: 0;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.hot-btn:hover {
  color: var(--ink);
  background: transparent;
}

.hot-btn-active {
  color: var(--ink);
}

/* Amber dot marks the active link */
.hot-btn-active::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--gold);
}

.nav-contact {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    padding 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    margin 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    max-width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.navbar.navbar-compact {
  max-width: none;
  top: clamp(8px, 1.3vw, 14px);
  width: min(calc(100% - (2 * var(--gutter))), clamp(680px, 88vw, 980px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(8px, 1.2vw, 12px);
  margin: 0 auto;
  padding: clamp(5px, 0.7vw, 8px) clamp(8px, 1.1vw, 12px);
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
  transform: scale(1);
}

body.navbar-transitioning .navbar.navbar-compact {
  opacity: 0.7;
  transform: scale(0.992);
}

.navbar.navbar-compact .nav-left,
.navbar.navbar-compact .nav-contact {
  flex-basis: clamp(42px, 4.6vw, 56px);
}

.navbar.navbar-compact .logo {
  width: clamp(34px, 3.8vw, 42px);
  height: clamp(34px, 3.8vw, 42px);
}

.navbar.navbar-compact .nav-left {
  justify-content: center;
}

.navbar.navbar-compact .logo-lockup {
  display: none;
}

.navbar.navbar-compact .logo-badge {
  display: block;
  width: clamp(34px, 3.8vw, 42px);
  height: auto;
}

.navbar.navbar-compact .hotbar {
  flex: 1 1 auto;
  justify-content: center;
  width: auto;
  min-width: 0;
  padding: clamp(1px, 0.3vw, 4px);
  background: transparent;
  border-color: transparent;
}

.navbar.navbar-compact .hot-btn {
  --hot-btn-indicator-space: clamp(17px, 1.8vw, 22px);
  flex: 0 1 auto;
  min-height: clamp(32px, 3.6vw, 38px);
  padding: clamp(5px, 0.6vw, 8px) clamp(8px, 1.2vw, 14px)
    clamp(5px, 0.6vw, 8px) var(--hot-btn-indicator-space);
  font-size: clamp(0.9rem, 1.15vw, 1.04rem);
  white-space: nowrap;
}

.navbar.navbar-compact .nav-contact {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  width: 0;
  max-width: 0;
  min-width: 0;
  height: 0;
  padding: 0;
  margin: 0;
  gap: 0;
  border-width: 0;
  overflow: hidden;
}

.nav-admin {
  font-size: 0.82rem;
  font-weight: 600;
  color: #64748b;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.nav-admin:hover {
  color: #0b1220;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border: 1px solid var(--gold);
  border-radius: var(--radius-pill);
  background: var(--gold);
  color: var(--gold-ink);
  font-size: 0.92rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 10px 20px rgba(244, 169, 59, 0.28);
  transition: transform 0.2s ease, background 0.2s ease, border 0.2s ease;
}

.nav-cta:hover {
  transform: translateY(-1px);
  border-color: var(--gold-strong);
  background: var(--gold-strong);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 28px;
}

.nav-links a {
  color: #0b1220;
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-current {
  color: #6c3fd4;
}

.hero,
.page-hero {
  max-width: var(--content-max);
  margin-inline: auto;
  padding: var(--space-hero) var(--gutter);
  background: #ffffff;
}

.hero {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  align-items: center;
  gap: 32px;
}

.hero > * {
  min-width: 0;
}

.hero,
.page-hero {
  padding-top: clamp(20px, 3vw, 40px);
}

.eyebrow {
  color: #6c3fd4;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.hero-headline,
.page-title {
  line-height: 1.05;
  letter-spacing: -0.5px;
  color: #0b1220;
}

.hero-headline {
  margin-bottom: 18px;
  font-size: var(--h1-fluid);
  white-space: normal;
}

.hero-headline span {
  display: inline;
}

/* Amber marker-underline highlight on a key headline word */
.hero-headline .mark {
  background: linear-gradient(180deg, transparent 62%, rgba(244, 169, 59, 0.5) 62%);
  padding: 0 2px;
}

.page-hero-content.narrow {
  max-width: 840px;
}

.page-title {
  font-size: var(--h1-fluid);
  margin-bottom: 18px;
}

.hero-description,
.page-intro {
  max-width: var(--text-measure);
  color: #334155;
  font-size: 0.875rem;
  overflow-wrap: anywhere;
}

.hero-description {
  margin-bottom: 30px;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 13px 22px;
  border-radius: 8px;
  font-weight: 700;
  transition: transform 0.2s ease, opacity 0.2s ease, border 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.primary {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: var(--shadow-pop);
}

.primary:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
}

/* Secondary = amber "highlight" action (purple stays the primary action) */
.secondary {
  border: 1px solid var(--gold);
  color: var(--gold-ink);
  background: var(--gold);
  box-shadow: 0 12px 24px rgba(244, 169, 59, 0.28);
}

.secondary:hover {
  background: var(--gold-strong);
  border-color: var(--gold-strong);
}

.hero-mini-info,
.stats-grid,
.feature-grid,
.about-grid,
.work-grid {
  display: grid;
  gap: 18px;
}

.hero-mini-info {
  grid-template-columns: repeat(2, 1fr);
  max-width: 620px;
}

.stats-grid {
  grid-template-columns: repeat(3, 1fr);
}

.feature-grid.two-col {
  grid-template-columns: repeat(2, 1fr);
}

.feature-grid.three-col,
.about-grid,
.work-grid {
  grid-template-columns: repeat(3, 1fr);
}

.mini-card,
.about-card,
.work-card,
.feature-card,
.stat-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.035);
}

.mini-label,
.section-label,
.card-tag {
  display: inline-block;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: #6c3fd4;
}

.mini-label,
.card-tag {
  font-size: 0.78rem;
  margin-bottom: 10px;
}

.section {
  max-width: var(--content-max);
  margin-inline: auto;
  padding: var(--space-section) var(--gutter);
}

.section-dark {
  background: #f6f8fb;
}

.section-header {
  margin-bottom: 34px;
}

.section-label {
  margin-bottom: 12px;
  font-size: 0.82rem;
}

.section-header h2,
.section-title {
  font-size: var(--h2-fluid);
  color: #0b1220;
  line-height: 1.12;
}

.profile-card {
  width: 100%;
  max-width: 400px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.06);
}

.hero-image-side {
  display: flex;
  justify-content: flex-end;
}

.profile-card-simple {
  padding: 0;
}

.profile-image {
  width: 100%;
  display: block;
  object-fit: cover;
}

.profile-name-only {
  padding: 18px 22px 20px;
  background: #ffffff;
}

.profile-name-only h3 {
  font-size: 1.1rem;
  color: #0b1220;
}

.profile-info {
  padding: 20px 22px 24px;
}

.profile-info h3,
.feature-card h3,
.work-card h3,
.about-card h3,
.stat-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  color: #0b1220;
}

.stat-value {
  display: block;
  margin-bottom: 8px;
  color: #0b1220;
  font-size: 1.1rem;
  font-weight: 800;
}

.timeline {
  display: grid;
  gap: 16px;
}

.timeline-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 22px 0;
  border-top: 1px solid #e5e7eb;
}

.timeline-item:last-child {
  border-bottom: 1px solid #e5e7eb;
}

.timeline-step {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  color: #6c3fd4;
  font-size: 0.82rem;
  font-weight: 800;
}

.timeline-item h3 {
  margin-bottom: 6px;
  color: #0b1220;
  font-size: 1.15rem;
}

.timeline-item p {
  max-width: var(--text-measure);
  color: #475569;
  overflow-wrap: anywhere;
}

.profile-subtitle {
  font-size: 0.85rem;
  color: #6c3fd4;
  margin-bottom: 8px;
}

.profile-info p,
.feature-card p,
.work-card p,
.about-card p,
.stat-card p,
.page-intro,
.page-copy,
.mini-card p,
.contact-panel p {
  color: #475569;
}

.contact-section {
  background: #ffffff;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px;
  padding: 34px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f8fafc;
}

.contact-panel h2 {
  margin-bottom: 10px;
  color: #0b1220;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  line-height: 1.12;
}

.contact-panel p {
  max-width: var(--text-measure);
  overflow-wrap: anywhere;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.contact-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #ffffff;
  color: #0b1220;
  font-weight: 700;
  white-space: nowrap;
  transition: transform 0.2s ease, border 0.2s ease, background 0.2s ease;
}

.contact-action:hover {
  transform: translateY(-1px);
  border-color: #6c3fd4;
  background: #ffffff;
}

.primary-action {
  border-color: #6c3fd4;
  background: #ffffff;
  color: #0b1220;
}

.primary-action:hover {
  border-color: #6c3fd4;
  background: #f6f2ff;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: var(--content-max);
  margin-inline: auto;
  padding: 28px var(--gutter);
  color: #475569;
  border-top: 3px solid var(--gold);
  background: #ffffff;
}

.footer p {
  color: #475569;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
}

.footer-links a {
  color: #0b1220;
  font-weight: 700;
}

.footer-links a:hover {
  color: #6c3fd4;
}



.page-title-nowrap {
  white-space: normal;
  font-size: var(--h1-fluid);
}

.page-hero-tight {
  padding-bottom: 12px;
}

.builds-section {
  padding-top: 8px;
  padding-bottom: clamp(24px, 3vw, 36px);
}

.work-card-featured {
  border: 1px solid #6c3fd4;
  border-left: 4px solid #6c3fd4;
  border-radius: 8px;
  padding: 24px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(108, 63, 212, 0.07);
}

.work-card-featured h3 {
  font-size: 1.2rem;
  color: #0b1220;
  margin-bottom: 10px;
}

.work-card-featured p {
  color: #475569;
  max-width: 72ch;
}

.work-card-featured-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.work-card-featured-header .card-tag {
  margin-bottom: 0;
}

.work-grid-two {
  grid-template-columns: repeat(2, 1fr);
}

.page-hero-blog {
  padding-bottom: 8px;
}

.posts-section {
  padding-top: clamp(16px, 2vw, 24px);
}

.post-count {
  font-size: 0.85rem;
  color: #94a3b8;
  margin-top: 10px;
}

.post-list {
  display: flex;
  flex-direction: column;
  gap: 52px;
}

#blog-posts {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.post-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.035);
}

.post-category {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: #6c3fd4;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  align-self: flex-start;
}

.newsletter-dark-section {
  background: #1a1a1a;
  padding: clamp(48px, 7vw, 80px) var(--gutter);
}

.newsletter-dark-inner {
  max-width: var(--content-max);
  margin-inline: auto;
}

.newsletter-dark-section .eyebrow {
  color: #6c3fd4;
}

.newsletter-dark-section .newsletter-headline {
  color: #ffffff;
}

.newsletter-dark-section .newsletter-copy {
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 24px;
}

.newsletter-form-dark {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 420px;
}

.newsletter-input-dark {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.newsletter-input-dark::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.newsletter-input-dark:focus {
  border-color: #6c3fd4;
  outline: none;
}

.newsletter-btn-compact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  padding: 10px 22px;
  border: none;
  border-radius: 8px;
  background: #6c3fd4;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.newsletter-btn-compact:hover {
  opacity: 0.85;
}

.post-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.post-title {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  color: #0b1220;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.3;
}

.post-excerpt {
  color: #475569;
  font-size: var(--body-fluid);
  max-width: 72ch;
}

.post-date {
  font-size: 0.82rem;
  color: #94a3b8;
  font-weight: 600;
}

.post-link {
  font-size: 0.95rem;
  font-weight: 700;
  color: #6c3fd4;
  white-space: nowrap;
  flex-shrink: 0;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.post-link:hover {
  opacity: 0.7;
}

.post-header-section {
  padding-top: clamp(20px, 3vw, 36px);
  padding-bottom: 0;
}

.post-back {
  display: inline-block;
  font-size: 0.88rem;
  font-weight: 700;
  color: #6c3fd4;
  margin-bottom: 20px;
  transition: opacity 0.2s ease;
}

.post-back:hover {
  opacity: 0.7;
}

.post-page-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: #0b1220;
  line-height: 1.15;
  letter-spacing: -0.3px;
  margin-bottom: 10px;
}

.post-page-date {
  font-size: 0.85rem;
  font-weight: 600;
  color: #94a3b8;
}

.post-body-section {
  padding-top: clamp(20px, 3vw, 32px);
  padding-bottom: clamp(5px, 0.75vw, 8px);
}

.post-body {
  max-width: 72ch;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.post-body p {
  color: #334155;
  font-size: var(--body-fluid);
  line-height: 1.75;
}

.post-next {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid #e5e7eb;
}

.newsletter-section {
  background: #ffffff;
  padding-top: clamp(5px, 0.75vw, 9px);
  padding-bottom: clamp(28px, 4vw, 48px);
}

.newsletter-post-box {
  max-width: 640px;
}

.newsletter-panel {
  max-width: 640px;
  background: #f5f3ff;
  border: 1.5px solid #6c3fd4;
  border-radius: 8px;
  padding: 28px;
}

.blog-header-grid {
  display: grid;
  grid-template-columns: 1fr minmax(240px, 300px);
  gap: 40px;
  align-items: start;
}

.newsletter-box {
  background: #f5f3ff;
  border: 1.5px solid #6c3fd4;
  border-radius: 8px;
  padding: 24px;
}

.newsletter-box .eyebrow {
  color: #6c3fd4;
}

.newsletter-box .newsletter-headline {
  color: #0b1220;
  font-size: 1.05rem;
  line-height: 1.3;
  margin-bottom: 8px;
}

.newsletter-box .newsletter-copy {
  color: #475569;
  font-size: 0.88rem;
  margin-bottom: 16px;
}

.newsletter-box .newsletter-form {
  max-width: none;
}

.newsletter-inline-box {
  margin-top: 20px;
  background: #f5f3ff;
  border: 1.5px solid #6c3fd4;
  border-radius: 8px;
  padding: 14px 16px;
}

.newsletter-inline-badge {
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid #6c3fd4;
  border-radius: 999px;
  color: #6c3fd4;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.newsletter-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  font-size: 0.78rem;
  color: #64748b;
  margin-top: 8px;
  line-height: 1.4;
}

.newsletter-consent span {
  min-width: 0;
}

.newsletter-consent input[type="checkbox"] {
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: #6c3fd4;
  cursor: pointer;
}

.newsletter-consent a {
  color: #6c3fd4;
  text-decoration: underline;
  white-space: nowrap;
}

.newsletter-inline-headline {
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  font-weight: 700;
  color: #0b1220;
  margin-bottom: 4px;
}

.recent-posts-heading {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  font-weight: 700;
  color: #0b1220;
  letter-spacing: -0.2px;
}

.newsletter-inline-copy {
  font-size: 0.78rem;
  color: #94a3b8;
  margin-bottom: 10px;
}

.newsletter-form-inline {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.newsletter-form-inline .newsletter-input {
  flex: 1 1 180px;
  min-width: 0;
}

.newsletter-form-inline .newsletter-input[type="email"] {
  flex-basis: 100%;
}

@media (max-width: 760px) {
  .blog-header-grid {
    grid-template-columns: 1fr;
  }
}

.newsletter-headline {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  color: #0b1220;
  line-height: 1.15;
  margin-bottom: 10px;
}

.newsletter-copy {
  color: #475569;
  margin-bottom: 24px;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 480px;
}

.newsletter-fields {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.newsletter-input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #ffffff;
  color: #0b1220;
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s ease;
}

.newsletter-input:focus {
  outline: none;
  border-color: #6c3fd4;
}

.newsletter-input::placeholder {
  color: #94a3b8;
}

.contact-info-card {
  width: 100%;
  max-width: 360px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.06);
  padding: 8px 0;
}

.contact-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 22px;
  border-bottom: 1px solid #f1f5f9;
}

.contact-info-row:last-child {
  border-bottom: none;
}

.contact-info-label {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #94a3b8;
  flex-shrink: 0;
  margin-right: 12px;
}

.contact-info-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: #0b1220;
  transition: color 0.2s ease;
  flex: 1;
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
  text-align: right;
}

a.contact-info-value:hover {
  color: #6c3fd4;
}

.builds-preview-section {
  padding-top: clamp(24px, 3vw, 40px);
}

.builds-preview-section .section-header {
  margin-bottom: 18px;
}

.contact-section {
  padding-top: clamp(16px, 2vw, 28px);
}

.footer-brand {
  font-weight: 700;
  color: #0b1220;
}

.footer-brand:hover {
  color: #6c3fd4;
}

.build-icon-block {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.build-icon-purple { background: #6c3fd4; }
.build-icon-blue   { background: #3b82f6; }
.build-icon-green  { background: #10b981; }

.build-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
}

.build-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.build-badge-live {
  background: #d1fae5;
  color: #065f46;
}

.build-badge-inprogress {
  background: #fef3c7;
  color: #92400e;
}

.build-link {
  font-size: 0.9rem;
  font-weight: 700;
  color: #6c3fd4;
  transition: opacity 0.2s ease;
}

.build-link:hover {
  opacity: 0.75;
}

.contact-action-purple {
  border-color: #6c3fd4;
  color: #6c3fd4;
  background: #ffffff;
}

.contact-action-purple:hover {
  background: #f6f2ff;
  border-color: #6c3fd4;
}

@media (max-width: 1100px) {
  .hero-image-side .profile-card,
  .contact-info-card {
    max-width: 240px;
  }

  .contact-info-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .contact-info-value {
    text-align: left;
    font-size: 0.82rem;
  }

  .about-grid,
  .work-grid,
  .feature-grid.three-col,
  .feature-grid.two-col,
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

/* Tight band: desktop nav still shown (drawer starts at 760), so drop to the
   badge-only mark to keep links + Subscribe CTA from crowding. */
@media (min-width: 761px) and (max-width: 1000px) {
  .logo-lockup {
    display: none;
  }

  .logo-badge {
    display: block;
  }
}

/* Small phones: full lockup crowds the drawer header — badge-only. */
@media (max-width: 480px) {
  .logo-lockup {
    display: none;
  }

  .logo-badge {
    display: block;
  }
}

@media (max-width: 900px) {
  .hotbar {
    flex-wrap: nowrap;
    justify-content: center;
    width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }

  .hotbar::-webkit-scrollbar {
    display: none;
  }

  .hot-btn {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .contact-panel {
    grid-template-columns: 1fr;
  }

  .contact-actions {
    justify-content: flex-start;
  }

  .section {
    padding-top: clamp(28px, 4vw, 48px);
    padding-bottom: clamp(28px, 4vw, 48px);
  }
}

@media (max-width: 700px) {
  .navbar:not(.navbar-compact) {
    grid-template-columns: auto minmax(0, 1fr) auto;
    justify-items: stretch;
    gap: 12px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .navbar:not(.navbar-compact) .hotbar {
    flex-wrap: nowrap;
    justify-content: center;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }

  .navbar:not(.navbar-compact) .hotbar::-webkit-scrollbar {
    display: none;
  }

  .navbar:not(.navbar-compact) .hot-btn {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .navbar:not(.navbar-compact) .nav-cta {
    min-height: 40px;
    padding: 8px 14px;
    font-size: 0.9rem;
  }

  .navbar.navbar-compact {
    width: min(calc(100% - 24px), 920px);
  }

  .nav-left,
  .hero-image-side {
    justify-content: center;
  }

  .nav-contact {
    align-items: center;
    text-align: center;
    min-width: 0;
  }

  .contact-panel {
    grid-template-columns: 1fr;
  }

  .contact-actions {
    justify-content: center;
  }

  .footer {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }

  .hero {
    text-align: left;
  }

  .hero-mini-info {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .hotbar {
    width: 100%;
    padding: 10px;
  }

  .navbar:not(.navbar-compact) .hotbar {
    padding: 8px;
    gap: 4px;
  }

  .navbar:not(.navbar-compact) .hot-btn {
    --hot-btn-indicator-space: 22px;
    padding: 8px 12px 8px var(--hot-btn-indicator-space);
    font-size: 0.9rem;
  }

  .contact-panel {
    padding: 24px;
  }

  .contact-action {
    width: 100%;
  }

  .hero-buttons .btn {
    width: auto;
  }

  .footer {
    gap: 12px;
  }
}

/* === v2 refactor === */
/*
 * NEW CLASSES ADDED (all prefixed .v2-*):
 *   Shared:    .v2-section-tag, .v2-eyebrow, .v2-btn-ghost
 *   Home:      .v2-home-hero, .v2-portrait-card, .v2-portrait-name-tag,
 *              .v2-hero-text, .v2-hero-desc, .v2-cta-row, .v2-triptych,
 *              .v2-trip-card, .v2-trip-grid-wrap, .v2-rail-grid,
 *              .v2-featured-build, .v2-subscribe-teaser, .v2-teaser-input,
 *              .v2-teaser-btn, .v2-fine-print
 *   Work:      .v2-board-header, .v2-sticky-note, .v2-kanban,
 *              .v2-kanban-col, .v2-kanban-col-head, .v2-count-badge,
 *              .v2-kanban-card, .v2-kanban-card-dashed, .v2-kanban-card-dim,
 *              .v2-tag-row, .v2-tag-chip, .v2-progress-bar, .v2-progress-fill,
 *              .v2-add-scribble, .v2-dark-cta-bar, .v2-dark-cta-inner,
 *              .v2-dark-cta-btn, .v2-badge-live, .v2-badge-wip,
 *              .v2-badge-idea, .v2-status-dot
 *   Blog:      .v2-blog-header, .v2-tag-pills, .v2-tag-pill, .v2-tag-pill-active,
 *              .v2-blog-grid, .v2-post-list-col, .v2-subscribe-rail-wrap,
 *              .v2-subscribe-rail, .v2-post-card, .v2-post-date-block,
 *              .v2-post-date-day, .v2-post-date-mo, .v2-post-meta,
 *              .v2-post-meta-row, .v2-post-readtime, .v2-post-read-btn,
 *              .v2-load-older-btn, .v2-archive-card, .v2-archive-row
 *   Contact:   .v2-contact-top, .v2-intent-grid, .v2-intent-card,
 *              .v2-intent-card-purple, .v2-intent-card-ink,
 *              .v2-intent-card-green, .v2-intent-card-amber,
 *              .v2-intent-head, .v2-intent-eyebrow, .v2-kbd-cap,
 *              .v2-intent-title, .v2-intent-desc, .v2-intent-foot,
 *              .v2-info-strip, .v2-direct-card, .v2-rest-card, .v2-mono,
 *              .v2-rest-row, .v2-feedback-form, .v2-feedback-input,
 *              .v2-feedback-textarea, .v2-feedback-btn
 *
 * EXISTING IDs / SELECTORS PRESERVED (JS contract):
 *   #newsletter                  - blog.html wrapper (kept on .newsletter-inline-box)
 *   #blog-posts                  - blog.html dynamic container (blog.js owns children)
 *   select[name="age"]           - populated by subscribe.js (1..99)
 *   input[type="email"]          - read by subscribe.js form handler
 *   input[type="tel"]            - formatted by subscribe.js
 *   .newsletter-consent-check    - checked by subscribe.js
 *   .newsletter-form-inline      - form submit handler target
 *   button[type="submit"]        - used by subscribe.js
 *   .navbar, .navbar-compact,
 *   .hotbar, .hot-btn,
 *   .hot-btn-active, .nav-contact,
 *   body.navbar-compact-active,
 *   body.navbar-transitioning    - script.js navbar compact behavior
 *
 * FILES UNTOUCHED:
 *   assets/js/script.js, assets/js/blog.js, assets/js/subscribe.js,
 *   assets/js/unsubscribe.js, assets/js/admin.js,
 *   lambda/*, blog/posts/*.md, .github/workflows/*,
 *   admin.html, privacy-terms.html, unsubscribe.html, post-template.html, game/*
 */

.v2-section-tag {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  text-transform: lowercase;
  color: #6c3fd4;
  letter-spacing: 0.5px;
  font-weight: 700;
  margin-bottom: 12px;
}

.v2-eyebrow {
  color: var(--gold-strong);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.72rem;
  font-weight: 800;
  margin-bottom: 10px;
}

/* Amber tick before the eyebrow label */
.v2-eyebrow::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 2px;
  background: var(--gold);
  vertical-align: middle;
  margin-right: 8px;
  border-radius: 2px;
}

/* Energy dot on the featured-build eyebrow */
.v2-featured-build .v2-eyebrow::after {
  content: " \25CF";
  color: var(--gold);
}

.v2-btn-ghost {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 700;
  color: #6c3fd4;
  background: #ffffff;
  border: 1.5px dashed #6c3fd4;
  transition: background 0.2s ease, transform 0.2s ease;
}

.v2-btn-ghost:hover {
  background: #f6f2ff;
  transform: translateY(-2px);
}

/* --- HOME --- */
.v2-home-hero {
  max-width: var(--content-max);
  margin-inline: auto;
  padding: clamp(12px, 3vw, 48px) var(--gutter) clamp(20px, 3vw, 32px);
  display: grid;
  grid-template-columns: 0.9fr 1.3fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: stretch;
}

.v2-portrait-card {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  background: #f8fafc;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

.v2-portrait-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.v2-portrait-name-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.94);
  color: #0b1220;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.2px;
  backdrop-filter: blur(6px);
}

.v2-hero-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.v2-hero-text h1 {
  font-size: var(--h1-fluid);
  line-height: 1.05;
  letter-spacing: -0.5px;
  color: #0b1220;
  margin-bottom: 18px;
}

.v2-hero-text h1 span {
  display: inline;
  white-space: normal;
}

.v2-hero-desc {
  color: #334155;
  font-size: calc(var(--body-fluid) * 1.08);
  max-width: var(--text-measure);
  margin-bottom: 24px;
}

.v2-cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.v2-trip-grid-wrap {
  max-width: var(--content-max);
  margin-inline: auto;
  padding: clamp(8px, 1.5vw, 20px) var(--gutter) 0;
}

.v2-triptych {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 6px;
}

.v2-trip-card {
  position: relative;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 18px;
  background: #ffffff;
  overflow: hidden;
}

/* Colored top-spine on each card; tints rotate violet / gold / neutral */
.v2-trip-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
}

.v2-trip-card:nth-child(1) { background: var(--surface-violet); }
.v2-trip-card:nth-child(1)::before { background: var(--accent); }
.v2-trip-card:nth-child(1) h3 { color: var(--accent-strong); }

.v2-trip-card:nth-child(2) { background: var(--surface-gold); }
.v2-trip-card:nth-child(2)::before { background: var(--gold); }
.v2-trip-card:nth-child(2) h3 { color: var(--gold-strong); }

.v2-trip-card:nth-child(3) { background: var(--surface); }
.v2-trip-card:nth-child(3)::before { background: var(--ink); }
.v2-trip-card:nth-child(3) h3 { color: var(--ink); }

.v2-trip-card h3 {
  font-size: 1.02rem;
  margin-bottom: 6px;
  color: #0b1220;
  font-weight: 700;
}

.v2-trip-card p {
  color: #475569;
  font-size: 0.9rem;
}

.v2-rail-grid {
  max-width: var(--content-max);
  margin-inline: auto;
  padding: clamp(18px, 3vw, 32px) var(--gutter) var(--space-section);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 16px;
  align-items: stretch;
}

.v2-featured-build {
  background: rgba(108, 63, 212, 0.06);
  border: 1px solid #6c3fd4;
  border-radius: 8px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.v2-featured-build h3 {
  font-size: 1.2rem;
  color: #0b1220;
  margin: 2px 0 4px;
}

.v2-featured-build p {
  color: #334155;
  font-size: var(--body-fluid);
  margin-bottom: 6px;
}

.v2-subscribe-teaser {
  border: 1.5px dashed #6c3fd4;
  border-radius: 8px;
  padding: 20px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.v2-subscribe-teaser h3 {
  font-size: 1.1rem;
  color: #0b1220;
  font-weight: 700;
}

.v2-subscribe-teaser p {
  color: #475569;
  font-size: 0.88rem;
}

.v2-teaser-input {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.9rem;
  background: #ffffff;
  color: #0b1220;
}

.v2-teaser-input:focus {
  outline: none;
  border-color: #6c3fd4;
}

.v2-teaser-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 6px;
  background: #6c3fd4;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  align-self: flex-start;
}

.v2-teaser-btn:hover {
  opacity: 0.9;
}

.v2-fine-print {
  color: #94a3b8;
  font-size: 0.75rem;
}

/* --- WORK (KANBAN) --- */
.v2-board-header {
  max-width: var(--content-max);
  margin-inline: auto;
  padding: clamp(12px, 2vw, 20px) var(--gutter) clamp(14px, 2.5vw, 22px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
}

.v2-board-header h1 {
  font-size: var(--h1-fluid);
  line-height: 1.1;
  letter-spacing: -0.5px;
  color: #0b1220;
  margin-bottom: 8px;
}

.v2-board-header p {
  color: #475569;
  font-size: var(--body-fluid);
  max-width: 60ch;
}

.v2-sticky-note {
  background: #fff6c6;
  border: 1px solid #0b1220;
  color: #0b1220;
  padding: 12px 18px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.92rem;
  transform: rotate(-1.5deg);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  align-self: center;
  white-space: nowrap;
}

.v2-kanban {
  max-width: var(--content-max);
  margin-inline: auto;
  padding: 0 var(--gutter) clamp(22px, 3vw, 34px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  align-items: start;
}

.v2-kanban-col {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.v2-kanban-col-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 4px 8px;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 2px;
}

.v2-kanban-col-head h2 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #0b1220;
  font-weight: 800;
}

.v2-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  background: #0b1220;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
}

/* Color the board columns: Live = purple, In Progress = amber, Ideas = neutral */
.v2-kanban-col:nth-child(1) .v2-kanban-col-head { border-bottom-color: var(--accent); }
.v2-kanban-col:nth-child(1) .v2-count-badge { background: var(--accent); }

.v2-kanban-col:nth-child(2) .v2-kanban-col-head { border-bottom-color: var(--gold); }
.v2-kanban-col:nth-child(2) .v2-count-badge { background: var(--gold); color: var(--gold-ink); }

.v2-kanban-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.v2-kanban-card h3 {
  font-size: 0.95rem;
  color: #0b1220;
  font-weight: 700;
  line-height: 1.25;
}

.v2-kanban-card-dashed {
  background: transparent;
  border: 1.5px dashed #cbd5e1;
}

.v2-kanban-card-dim {
  opacity: 0.55;
}

.v2-builds-loading,
.v2-builds-count-loading {
  display: none;
}

.v2-builds-loading,
.v2-builds-fallback {
  padding: 14px 8px;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}

.js .v2-builds-loading {
  display: block;
}

.js .v2-builds-count-loading {
  display: inline;
}

.js .v2-builds-count-fallback,
.js .v2-builds-fallback,
.js.builds-api-fallback .v2-builds-loading,
.js.builds-api-fallback .v2-builds-count-loading {
  display: none;
}

.js.builds-api-fallback .v2-builds-count-fallback {
  display: inline;
}

.js.builds-api-fallback .v2-builds-fallback {
  display: block;
}

.v2-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.v2-tag-chip {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--gold-wash);
  color: var(--gold-strong);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: lowercase;
}

.v2-progress-bar {
  width: 100%;
  height: 6px;
  background: #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
}

.v2-progress-fill {
  height: 100%;
  background: #b07a1a;
  border-radius: 999px;
}

.v2-add-scribble {
  display: inline-block;
  padding: 4px 2px;
  color: #6c3fd4;
  font-weight: 700;
  font-size: 0.85rem;
}

.v2-dark-cta-bar {
  background: #0b1220;
  color: #ffffff;
  padding: clamp(18px, 3vw, 26px) var(--gutter);
}

.v2-dark-cta-inner {
  max-width: var(--content-max);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.v2-dark-cta-inner p {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}

.v2-dark-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 6px;
  background: #6c3fd4;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
}

.v2-dark-cta-btn:hover {
  opacity: 0.9;
}

.v2-badge-live,
.v2-badge-wip,
.v2-badge-idea {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  align-self: flex-start;
}

.v2-badge-live { background: #d1fae5; color: #065f46; }
.v2-badge-wip  { background: #fef3c7; color: #92400e; }
.v2-badge-idea { background: #e5e7eb; color: #475569; }

.v2-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
  display: inline-block;
}

/* --- BLOG --- */
.v2-blog-header {
  max-width: var(--content-max);
  margin-inline: auto;
  padding: clamp(12px, 2vw, 20px) var(--gutter) clamp(10px, 2vw, 18px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  align-items: center;
}

.v2-blog-header h1 {
  font-size: var(--h1-fluid);
  line-height: 1.1;
  color: #0b1220;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}

.v2-blog-header p {
  color: #475569;
  font-size: var(--body-fluid);
}

.v2-tag-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.v2-tag-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #d1d5db;
  color: #475569;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: lowercase;
  cursor: pointer;
}

.v2-tag-pill-active {
  background: #0b1220;
  border-color: #0b1220;
  color: #ffffff;
}

.v2-blog-grid {
  max-width: var(--content-max);
  margin-inline: auto;
  padding: 0 var(--gutter) var(--space-section);
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: clamp(18px, 3vw, 32px);
  align-items: start;
}

.v2-post-list-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.v2-post-list-col > #blog-posts {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.v2-post-card {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
  align-items: center;
}

#blog-posts .post-card {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  background: #ffffff;
}

#blog-posts .post-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

#blog-posts .post-title {
  font-size: 1rem;
  font-weight: 700;
  color: #0b1220;
  line-height: 1.3;
  margin-bottom: 4px;
}

#blog-posts .post-excerpt {
  color: #475569;
  font-size: 0.88rem;
}

#blog-posts .post-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  color: #0b1220;
  font-weight: 700;
  font-size: 0.84rem;
  white-space: nowrap;
  background: #ffffff;
  cursor: pointer;
  font-family: inherit;
  flex-shrink: 0;
}

#blog-posts .post-link:hover {
  border-color: #6c3fd4;
  color: #6c3fd4;
}

#blog-posts .post-date {
  display: block;
  margin-top: 10px;
  font-size: 0.74rem;
  color: #94a3b8;
  font-weight: 600;
}

#blog-posts .post-body {
  color: #334155;
  font-size: 0.95rem;
  line-height: 1.7;
}

.v2-post-body {
  color: #334155;
  font-size: 0.95rem;
  line-height: 1.7;
  grid-column: 1 / -1;
}

.v2-post-date-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-right: 1px dashed #cbd5e1;
  padding-right: 14px;
}

.v2-post-date-day {
  font-size: 1.6rem;
  font-weight: 800;
  color: #0b1220;
  line-height: 1;
}

.v2-post-date-mo {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #94a3b8;
  margin-top: 4px;
}

.v2-post-meta {
  min-width: 0;
}

.v2-post-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.v2-post-meta-row .v2-tag-chip {
  background: #f3e8ff;
  color: #6c3fd4;
}

.v2-post-readtime {
  font-size: 0.74rem;
  color: #94a3b8;
  font-weight: 600;
}

.v2-post-meta h3 {
  font-size: 1rem;
  color: #0b1220;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 4px;
}

.v2-post-meta p {
  color: #475569;
  font-size: 0.88rem;
}

.v2-post-read-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  color: #0b1220;
  font-weight: 700;
  font-size: 0.84rem;
  white-space: nowrap;
  background: #ffffff;
  cursor: pointer;
}

.v2-post-read-btn:hover {
  border-color: #6c3fd4;
  color: #6c3fd4;
}

.v2-load-older-btn {
  align-self: flex-start;
  padding: 10px 18px;
  border: 1px dashed #cbd5e1;
  border-radius: 6px;
  background: transparent;
  color: #475569;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  margin-top: 6px;
}

.v2-load-older-btn:hover {
  border-color: #6c3fd4;
  color: #6c3fd4;
}

.v2-subscribe-rail-wrap {
  position: sticky;
  top: 12px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  align-self: start;
}

.v2-subscribe-rail {
  margin-top: 0;
  background: var(--surface-gold);
  border: 1.5px solid #6c3fd4;
  border-radius: 8px;
  padding: 18px;
}

.v2-subscribe-rail .v2-eyebrow {
  font-size: 0.66rem;
  letter-spacing: 1.2px;
  margin-bottom: 6px;
  white-space: nowrap;
}

.v2-subscribe-rail h3 {
  font-size: 1.15rem;
  color: #0b1220;
  margin-bottom: 6px;
  font-weight: 700;
}

.v2-subscribe-rail > p {
  color: #475569;
  font-size: 0.88rem;
  margin-bottom: 12px;
  max-width: 28ch;
  text-wrap: balance;
}

.v2-archive-card {
  border: 1.5px dashed #cbd5e1;
  border-radius: 8px;
  padding: 16px 18px;
  background: #ffffff;
}

.v2-archive-card h4 {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #94a3b8;
  font-weight: 800;
  margin-bottom: 10px;
}

.v2-archive-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px dashed #e5e7eb;
  font-size: 0.85rem;
  color: #334155;
  font-weight: 600;
}

.v2-archive-row:last-child {
  border-bottom: none;
}

.v2-archive-row[style*="cursor"] {
  transition: color 0.15s;
}

.v2-archive-row[style*="cursor"]:hover {
  color: #6c3fd4;
}

.v2-archive-row span:last-child {
  color: #94a3b8;
  font-weight: 700;
}

/* --- CONTACT --- */
.v2-contact-top {
  max-width: var(--content-max);
  margin-inline: auto;
  padding: clamp(12px, 2vw, 20px) var(--gutter) clamp(14px, 2.5vw, 22px);
}

.v2-contact-top h1 {
  font-size: var(--h1-fluid);
  color: #0b1220;
  line-height: 1.1;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.v2-contact-top p {
  color: #475569;
  font-size: var(--body-fluid);
  max-width: 60ch;
}

.v2-intent-grid {
  max-width: var(--content-max);
  margin-inline: auto;
  padding: 0 var(--gutter) clamp(18px, 3vw, 28px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.v2-intent-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  border-radius: 10px;
  background: #ffffff;
  border: 1.5px solid #e5e7eb;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  color: #0b1220;
  min-height: 200px;
  text-decoration: none;
  cursor: pointer;
}

.v2-intent-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.v2-intent-card-purple { border-color: #6c3fd4; }
.v2-intent-card-ink    { border-color: #0b1220; }
.v2-intent-card-green  { border-color: #3d7a4a; }
.v2-intent-card-amber  { border-color: #b07a1a; }

.v2-intent-card-purple .v2-intent-eyebrow { color: #6c3fd4; }
.v2-intent-card-ink    .v2-intent-eyebrow { color: #0b1220; }
.v2-intent-card-green  .v2-intent-eyebrow { color: #3d7a4a; }
.v2-intent-card-amber  .v2-intent-eyebrow { color: #b07a1a; }

.v2-intent-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.v2-intent-eyebrow {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.v2-kbd-cap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid #0b1220;
  border-bottom-width: 3px;
  border-radius: 5px;
  background: #ffffff;
  color: #0b1220;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9rem;
  font-weight: 800;
}

.v2-intent-title {
  font-size: var(--h2-fluid);
  line-height: 1.1;
  letter-spacing: -0.4px;
  color: #0b1220;
}

.v2-intent-desc {
  color: #475569;
  font-size: 0.92rem;
  flex: 1;
}

.v2-intent-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.86rem;
  font-weight: 700;
  color: #0b1220;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
}

.v2-info-strip {
  max-width: var(--content-max);
  margin-inline: auto;
  padding: 0 var(--gutter) clamp(22px, 3vw, 36px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.v2-direct-card {
  background: #0b1220;
  color: #ffffff;
  border-radius: 10px;
  padding: 22px;
}

.v2-direct-card .v2-mono {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: #6c3fd4;
  font-size: 0.78rem;
  margin-bottom: 12px;
  letter-spacing: 0.3px;
}

.v2-direct-card h3 {
  color: #ffffff;
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  word-break: break-word;
  margin-bottom: 10px;
  font-weight: 700;
}

.v2-direct-card p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
}

.v2-rest-card {
  border: 1.5px dashed #cbd5e1;
  border-radius: 10px;
  padding: 22px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.v2-rest-card .v2-eyebrow {
  color: #94a3b8;
  margin-bottom: 12px;
}

.v2-rest-row {
  display: block;
  padding: 14px 0;
  border-bottom: 1px dashed #e5e7eb;
  font-size: 1.05rem;
  color: #0b1220;
  font-weight: 600;
}

.v2-rest-row:last-child {
  border-bottom: none;
}

.v2-rest-card a.v2-rest-row:hover {
  color: #6c3fd4;
}

.v2-feedback-form {
  max-width: 560px;
  margin: var(--space-section) auto;
  padding: 2rem;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.v2-feedback-form h3 {
  color: #0b1220;
  font-size: 1.15rem;
  font-weight: 700;
}

.v2-feedback-input,
.v2-feedback-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.95rem;
  background: #ffffff;
  color: #0b1220;
}

.v2-feedback-textarea {
  min-height: 140px;
  resize: vertical;
}

.v2-feedback-input:focus,
.v2-feedback-textarea:focus {
  outline: none;
  border-color: #6c3fd4;
}

.v2-feedback-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border-radius: 6px;
  background: #6c3fd4;
  color: #ffffff;
  border: none;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  align-self: flex-start;
}

.v2-feedback-btn:hover {
  opacity: 0.9;
}

/* --- v2 responsive --- */
@media (max-width: 900px) {
  .v2-home-hero {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .v2-portrait-card {
    max-width: 320px;
    margin-inline: auto;
  }

  .v2-triptych,
  .v2-rail-grid,
  .v2-board-header,
  .v2-kanban,
  .v2-blog-header,
  .v2-blog-grid,
  .v2-intent-grid,
  .v2-info-strip {
    grid-template-columns: 1fr;
  }

  .v2-sticky-note {
    justify-self: flex-start;
  }

  .v2-subscribe-rail-wrap {
    position: static;
  }

  .v2-post-card {
    grid-template-columns: 60px 1fr;
  }

  .v2-post-card .v2-post-read-btn {
    grid-column: 2;
    justify-self: flex-start;
  }
}

@media (max-width: 600px) {
  .v2-cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .v2-cta-row .btn,
  .v2-cta-row .v2-btn-ghost {
    text-align: center;
  }

  .v2-dark-cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .v2-intent-title {
    font-size: clamp(1.2rem, 5vw, 1.6rem);
  }
}

/* === Workbench Clean: mobile nav drawer (built by script.js) ===
 * Desktop keeps the sticky pill nav (.hotbar). On mobile the hotbar is
 * replaced by a compact header + menu button + drawer, so nav never
 * horizontally scrolls or clips. Behavior is gated on body.has-drawer so
 * the no-JS fallback keeps the existing hotbar. */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background: var(--canvas);
  color: var(--accent);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.nav-toggle:hover {
  background: var(--accent-wash);
}

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

.nav-toggle-bars {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: 18px;
}

.nav-toggle-bars span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.nav-drawer {
  position: fixed;
  top: 8px;
  left: 8px;
  right: 8px;
  z-index: 1200;
  padding: 14px;
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

body.nav-drawer-open .nav-drawer {
  opacity: 1;
  transform: translateY(0);
}

.nav-drawer[hidden] {
  display: none;
}

.nav-drawer-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nav-drawer-link {
  display: flex;
  align-items: center;
  padding: 13px 14px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
}

.nav-drawer-link:hover {
  background: var(--surface);
}

.nav-drawer-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.nav-drawer-link-active {
  background: var(--accent-wash);
  border-color: var(--accent);
  color: var(--accent);
}

.nav-drawer-cta {
  margin-top: 6px;
  justify-content: center;
  background: var(--gold);
  border-color: var(--gold);
  color: var(--gold-ink);
  font-weight: 700;
}

.nav-drawer-cta:hover {
  background: var(--gold-strong);
  border-color: var(--gold-strong);
}

.nav-drawer-link-secondary {
  margin-top: 6px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  border-radius: 0;
  color: var(--muted);
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(11, 18, 32, 0.34);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.2s ease;
}

body.nav-drawer-open .nav-backdrop {
  opacity: 1;
}

.nav-backdrop[hidden] {
  display: none;
}

@media (max-width: 760px) {
  body.has-drawer .navbar:not(.navbar-compact) {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  body.has-drawer .hotbar,
  body.has-drawer .nav-contact {
    display: none;
  }

  body.has-drawer .nav-toggle {
    display: inline-flex;
  }
}
