/* Nava case study landing — navapage.html */

@font-face {
  font-family: "NavaCustom";
  src: url("font.woff") format("woff");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

html {
  overflow-x: hidden;
  overflow-x: clip;
  max-width: 100%;
}

:root {
  --np-bg: #f4f4f9;
  --np-lavender: #e8e8f5;
  --np-white: #ffffff;
  --np-yellow: #fff9c4;
  --np-yellow-soft: #fefce8;
  --np-text: #0f0f0f;
  --np-muted: #5c5c6a;
  --np-blue: #1e3a5f;
  --np-accent: #f5a623;
  --np-max: 1120px;
  --np-font: "NavaCustom", "Inter", system-ui, -apple-system, sans-serif;
}

.navapage-body {
  margin: 0;
  overflow-x: hidden;
  overflow-x: clip;
  max-width: 100%;
  font-family: var(--np-font);
  color: var(--np-text);
  background: var(--np-bg);
  -webkit-font-smoothing: antialiased;
  /* Sidebar (shared tokens with index.html) */
  --sidebar-text: #242424;
  --sidebar-hover: #b766d7;
  --sidebar-font: "Roboto Mono", monospace;
  --sidebar-font-size: clamp(14px, 1.6vw, 18px);
}

.navapage {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow-x: hidden;
  overflow-x: clip;
}

/* First header: hero PNG stays fully inside the viewport (no crop, no overflow) */
.navapage > header {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  max-height: 100vh;
  max-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--np-bg);
}

.navapage > header img {
  display: block;
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
  max-height: 100vh;
  max-height: 100dvh;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
}

/* Scroll-triggered text blocks: quick slide-up when entering the viewport */
html.np-reveal-js .np-reveal {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  transition:
    opacity 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

html.np-reveal-js .np-reveal.np-reveal--in {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@media (prefers-reduced-motion: reduce) {
  html.np-reveal-js .np-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.np-container {
  width: min(100% - 48px, var(--np-max));
  max-width: 100%;
  margin-inline: auto;
  box-sizing: border-box;
  min-width: 0;
}

/* Same content width at every breakpoint (strategy card + image + tables align) */
@media (max-width: 900px) {
  .np-container {
    width: min(100% - 40px, var(--np-max));
  }
}

@media (max-width: 640px) {
  .np-container {
    width: min(100% - 32px, var(--np-max));
  }
}

@media (max-width: 480px) {
  .np-container {
    width: min(100% - 24px, var(--np-max));
  }
}

.np-section-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 2rem;
}

/* —— Hero —— */
.np-hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: flex;
  align-items: flex-end;
  padding: clamp(24px, 5vw, 56px);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.45) 45%, rgba(244, 244, 249, 0.2) 100%),
    var(--np-hero-img, url("https://images.unsplash.com/photo-1576765608535-5f04d1d3f289?w=1920&q=80")) center 35% / cover no-repeat;
}

.np-hero-inner {
  position: relative;
  z-index: 1;
  width: min(100% - 32px, var(--np-max));
  margin: 0 auto;
  padding-bottom: clamp(32px, 6vw, 72px);
}

.np-hero h1 {
  font-size: clamp(2.5rem, 8vw, 4.25rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin: 0 0 1rem;
  max-width: 14ch;
}

.np-hero-sub {
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  color: var(--np-muted);
  font-weight: 500;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35em;
}

.np-logo {
  font-size: 1.35em;
  font-weight: 800;
  letter-spacing: -0.06em;
  color: var(--np-text);
  font-style: italic;
}

.np-hero-phone {
  position: absolute;
  top: clamp(16px, 4vw, 40px);
  right: clamp(16px, 6vw, 80px);
  width: min(140px, 28vw);
  margin: 0;
  aspect-ratio: 9 / 19;
  border-radius: 28px;
  background: var(--np-white);
  box-shadow: 0 24px 60px rgba(15, 15, 15, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  z-index: 2;
}

.np-hero-phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 640px) {
  .np-hero-phone {
    width: 100px;
    border-radius: 20px;
  }
}

/* —— Sections —— */
.np-band {
  padding: clamp(56px, 10vw, 100px) 0;
}

/* Remove gap between hero and first colored section */
.np-hero + .np-band {
  padding-top: 0;
}

.np-band--white {
  background: var(--np-white);
}

.np-band--lavender {
  background: var(--np-lavender);
}

/* Problem */
.np-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

@media (max-width: 768px) {
  .np-two-col {
    grid-template-columns: 1fr;
  }
}

.np-prose {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--np-muted);
  margin: 0;
}

.np-prose strong {
  color: var(--np-text);
}

.np-subhead {
  font-size: 1rem;
  font-weight: 700;
  color: var(--np-text);
  margin: 0 0 0.75rem;
}

.np-list {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--np-muted);
  line-height: 1.7;
  font-size: 1rem;
}

.np-list li {
  margin-bottom: 0.5rem;
}

.np-donuts {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 5vw, 48px);
  justify-content: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.np-donut {
  text-align: center;
}

.np-donut svg {
  display: block;
  margin: 0 auto 12px;
}

.np-donut figcaption {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--np-muted);
  max-width: 160px;
  margin-inline: auto;
}

/* Product */
.np-product-grid {
  display: grid;
  grid-template-columns: minmax(140px, 220px) 1fr;
  gap: clamp(32px, 6vw, 64px);
  align-items: center;
}

@media (max-width: 640px) {
  .np-product-grid {
    grid-template-columns: 1fr;
  }
}

.np-logo-xl {
  font-size: clamp(3rem, 10vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.07em;
  font-style: italic;
  line-height: 1;
}

.np-logo-xl img {
  display: block;
  width: clamp(140px, 20vw, 220px);
  height: auto;
}

/* Persona */
.np-persona-card {
  position: relative;
  background: #ececf4;
  border-radius: 32px;
  padding: clamp(28px, 5vw, 48px);
  overflow: hidden;
  box-shadow: 0 4px 40px rgba(15, 15, 15, 0.06);
}

.np-persona-accent {
  position: absolute;
  right: -80px;
  bottom: -120px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: var(--np-yellow);
  opacity: 0.85;
  pointer-events: none;
}

.np-persona-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: start;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

@media (max-width: 900px) {
  .np-persona-top {
    grid-template-columns: 1fr;
  }
}

.np-persona-name {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 0.25rem;
}

.np-persona-age {
  font-size: 1.125rem;
  color: var(--np-muted);
  margin: 0 0 1rem;
}

.np-persona-quote {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.45;
  margin: 0;
  max-width: 36ch;
  color: var(--np-text);
}

.np-persona-photo {
  width: clamp(160px, 28vw, 220px);
  height: clamp(160px, 28vw, 220px);
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--np-white);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.np-persona-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 3vw, 24px);
  position: relative;
  z-index: 1;
}

@media (max-width: 700px) {
  .np-persona-grid {
    grid-template-columns: 1fr;
  }
}

.np-persona-cell {
  background: rgba(255, 255, 255, 0.75);
  border-radius: 16px;
  padding: 1rem 1.125rem;
}

.np-persona-cell h4 {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--np-text);
}

.np-persona-cell ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--np-muted);
}

/* Make paragraph text inside persona grid smaller */
.np-persona-grid p {
  font-size: 0.875rem;
  line-height: 1.45;
}

/* Persona summary strip (full width inside .np-persona-grid) */
.np-persona-summary {
  grid-column: 1 / -1;
  width: 100%;
}

.np-persona-summary-row {
  display: grid;
  gap: clamp(16px, 2.5vw, 28px);
}

.np-persona-summary-row--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* 3-column summary: middle column stays in true horizontal center */
.np-persona-summary-row--3 {
  grid-template-columns: 1fr minmax(0, max-content) 1fr;
  align-items: start;
}

.np-persona-summary-row--3 > :first-child {
  justify-self: start;
}

.np-persona-summary-row--3 > :nth-child(2) {
  justify-self: center;
}

.np-persona-summary-row--3 > :last-child {
  justify-self: end;
}

.np-persona-summary-item h4 {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.32);
}

.np-persona-summary-item p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.35;
  font-weight: 600;
  color: #1a1a1a;
}

.np-persona-summary-divider {
  border: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.32);
  margin: 14px 0;
}

@media (max-width: 1100px) {
  .np-persona-summary-row--4,
  .np-persona-summary-row--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .np-persona-summary-row--4,
  .np-persona-summary-row--3 {
    grid-template-columns: 1fr;
  }
}

/* Prototype */
.np-proto-wrap {
  position: relative;
  padding: clamp(24px, 4vw, 48px) 0;
}

.np-proto-blob {
  position: absolute;
  right: -10%;
  top: 50%;
  transform: translateY(-50%);
  width: min(520px, 90vw);
  height: min(520px, 90vw);
  border-radius: 50%;
  background: var(--np-yellow-soft);
  z-index: 0;
  pointer-events: none;
}

.np-phones {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 5vw, 48px);
  justify-content: center;
  align-items: flex-start;
}

.np-phone {
  width: min(280px, 42vw);
  aspect-ratio: 9 / 19.5;
  border-radius: 36px;
  background: #1a1a1a;
  padding: 10px;
  box-shadow: 0 32px 80px rgba(15, 15, 15, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.np-phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
  background: #f8faff;
  position: relative;
}

.np-phone-scale {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.np-phone-scale iframe {
  width: 390px;
  height: 844px;
  border: 0;
  transform: scale(0.68);
  transform-origin: top left;
  pointer-events: none;
}

@media (max-width: 480px) {
  .np-phone-scale iframe {
    transform: scale(0.58);
  }
}

.np-phone--static .np-phone-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px;
  font-family: var(--np-font);
}

.np-mock-yellow {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(145deg, #fff6d0, #fef0b3);
  margin-bottom: 20px;
  box-shadow: 0 12px 32px rgba(254, 240, 179, 0.5);
}

.np-mock-fields {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
  margin-bottom: 12px;
}

.np-mock-field {
  height: 44px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e8eaef;
}

.np-mock-cta {
  width: 100%;
  height: 48px;
  background: var(--np-blue);
  border-radius: 14px;
  margin-top: 8px;
}

/* Market */
.np-market {
  display: grid;
  grid-template-columns: 1fr minmax(240px, 360px);
  gap: clamp(32px, 6vw, 64px);
  align-items: center;
}

@media (max-width: 900px) {
  .np-market {
    grid-template-columns: 1fr;
  }
}

.np-market-stat {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 1.5rem 0 0.25rem;
  color: var(--np-text);
}

.np-market-stat-label {
  font-size: 0.9375rem;
  color: var(--np-muted);
  margin: 0 0 1.5rem;
}

/* Bottom-aligned nested circles; labels sit in radial center of each ring band */
.np-rings {
  position: relative;
  width: min(100%, 360px);
  aspect-ratio: 1;
  min-height: 200px;
  margin-inline: auto;
  --np-ring-outer: 100%;
  --np-ring-mid: 68%;
  --np-ring-inner: 42%;
}

.np-market-circle {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  border-radius: 50%;
  pointer-events: none;
  aspect-ratio: 1;
  height: auto;
}

.np-market-circle--outer {
  width: var(--np-ring-outer);
  background: #e6e4f2;
  z-index: 1;
}

.np-market-circle--mid {
  width: var(--np-ring-mid);
  background: #faf7ef;
  z-index: 2;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.np-market-circle--inner {
  width: var(--np-ring-inner);
  background: #fff6c8;
  z-index: 3;
  box-shadow: inset 0 0 0 1px rgba(245, 166, 35, 0.12);
}

/* Vertical midpoints of each ring band on the center axis (circles bottom-aligned) */
.np-market-ring-label {
  position: absolute;
  left: 50%;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  text-align: center;
  max-width: 88%;
  transform: translate(-50%, -50%);
}

.np-market-ring-label--outer {
  top: calc((100% - var(--np-ring-outer) + (100% - var(--np-ring-mid))) / 2);
}

.np-market-ring-label--mid {
  top: calc(((100% - var(--np-ring-mid)) + (100% - var(--np-ring-inner))) / 2);
}

.np-market-ring-label--inner {
  top: calc((100% - var(--np-ring-inner)) + var(--np-ring-inner) / 2);
}

.np-market-ring-stat {
  font-size: clamp(0.95rem, 2.8vw, 1.125rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--np-text);
  line-height: 1.15;
}

.np-market-ring-desc {
  font-size: clamp(0.65rem, 1.85vw, 0.8125rem);
  font-weight: 500;
  color: var(--np-muted);
  line-height: 1.25;
  max-width: 22ch;
}

/* Competitive — chart + image share one column width & identical chrome */
.np-competitive-stack {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: clamp(16px, 2.5vw, 24px);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  /* Scoped tokens so both panels stay pixel-matched at every breakpoint */
  --np-comp-surface-radius: 20px;
  --np-comp-surface-shadow: 0 4px 24px rgba(15, 15, 15, 0.06);
}

.np-comp-surface {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  align-self: stretch;
  box-sizing: border-box;
  border-radius: var(--np-comp-surface-radius);
  box-shadow: var(--np-comp-surface-shadow);
  overflow: hidden;
}

/* Competitive — Strategy Canvas */
.np-strategy-canvas {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  background: var(--np-white);
}

.np-strategy-legend {
  flex: 0 0 min(200px, 100%);
  background: #fff6c2;
  color: #222222;
  padding: clamp(20px, 3vw, 28px);
  font-size: 0.875rem;
  line-height: 1.45;
}

.np-strategy-legend-title {
  margin: 0 0 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

.np-strategy-legend-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.np-strategy-legend-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.np-strategy-legend-marker {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  position: relative;
  background: var(--m, #888);
}

.np-strategy-legend-marker--circle {
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.2);
}

.np-strategy-legend-marker--diamond {
  transform: rotate(45deg);
  border-radius: 2px;
  width: 11px;
  height: 11px;
  margin: 0 1.5px;
}

.np-strategy-legend-marker--triangle {
  width: 0;
  height: 0;
  background: transparent !important;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 12px solid var(--m, #ec4899);
  border-top: 0;
}

.np-strategy-legend-marker--star {
  background-color: transparent; /* fixed: keep svg image visible */
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2316a34a'%3E%3Cpath d='M12 2l2.4 7.4h7.6l-6 4.6 2.3 7-6.3-4.6-6.3 4.6 2.3-7-6-4.6h7.6z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.np-strategy-chart-wrap {
  flex: 1 1 320px;
  min-width: 0;
  padding: clamp(12px, 2vw, 20px) clamp(12px, 2vw, 24px) clamp(16px, 2vw, 24px);
  overflow-x: auto;
  background: #fff;
}

.np-strategy-svg {
  display: block;
  width: 100%;
  min-width: 680px;
  height: auto;
  vertical-align: middle;
}

/* Competitive landscape image — same stack width / radius / shadow as .np-strategy-canvas */
.np-comp-landscape-card {
  display: block;
  background: var(--np-white);
}

.np-comp-landscape-figure {
  margin: 0;
  padding: 0;
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  line-height: 0;
}

.np-comp-landscape-img {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: auto;
  object-fit: contain;
}

@media (max-width: 640px) {
  .np-competitive-stack {
    --np-comp-surface-radius: 16px;
  }
}

@media (max-width: 480px) {
  .np-competitive-stack {
    --np-comp-surface-radius: 14px;
    --np-comp-surface-shadow: 0 3px 18px rgba(15, 15, 15, 0.07);
  }
}
/* Pro Forma — financial table */
.np-proforma-wrap {
  margin-top: 1.5rem;
  background: var(--np-white);
  border-radius: 20px;
  border: 1px solid #d8d8e0;
  box-shadow: 0 4px 24px rgba(15, 15, 15, 0.06);
  overflow-x: auto;
}

.np-proforma-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--np-text);
}

.np-proforma-table th,
.np-proforma-table td {
  padding: 10px 14px;
  border: 1px solid #cfd0d8;
  vertical-align: middle;
}

.np-proforma-table thead th {
  background: #fff;
  font-weight: 700;
  text-align: left;
}

.np-proforma-table thead th:not(:first-child) {
  text-align: right;
}

.np-proforma-table tbody td:first-child {
  text-align: left;
}

.np-proforma-table tbody td:not(:first-child) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.np-proforma-row--users td {
  background: #d0e2f3;
}

.np-proforma-row--rev td {
  background: #fff2cc;
}

.np-proforma-row--cogs td {
  background: #f4cccc;
}

.np-proforma-row--gp td {
  background: #fff;
}

.np-proforma-row--opex td {
  background: #d9d2e9;
}

.np-proforma-row--ebitda td {
  background: #d9ead3;
}

.np-proforma-row--total td {
  font-weight: 700;
}

.np-proforma-row--sub td:first-child {
  padding-left: 1.5rem;
  font-weight: 500;
}

.np-proforma-table strong {
  font-weight: 700;
  color: inherit;
}

/* ========== Site sidebar (from index.html: menu + drawer) ========== */
.navapage-body #menu-toggle {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.navapage-body #menu-btn span {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--sidebar-text);
  border-radius: 2px;
  transition: all 0.2s ease-in-out;
  transform-origin: right center;
}

.navapage-body #menu-btn .line1 {
  transform: scaleX(1);
}

.navapage-body #menu-btn .line2 {
  transform: scaleX(0.8);
}

.navapage-body #menu-btn .line3 {
  transform: scaleX(0.6);
}

.navapage-body #menu-btn:hover .line1 {
  transform: scaleX(0.4);
  background: var(--sidebar-hover);
  transition-delay: 0s;
}

.navapage-body #menu-btn:hover .line2 {
  transform: scaleX(1);
  background: var(--sidebar-hover);
  transition-delay: 0.05s;
}

.navapage-body #menu-btn:hover .line3 {
  transform: scaleX(0.7);
  background: var(--sidebar-hover);
  transition-delay: 0.1s;
}

.navapage-body #menu-btn {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 30px;
  height: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  z-index: 10002;
}

@media (max-width: 480px) {
  .navapage-body #menu-btn {
    width: 2.5rem;
    height: 1.625rem;
    right: 1rem;
    top: 0.75rem;
  }

  .navapage-body #menu-btn span {
    height: 0.25rem;
  }
}

.navapage-body #sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: min(250px, 85vw);
  height: 100%;
  height: 100dvh;
  max-height: -webkit-fill-available;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: -2px 0 4px rgba(0, 0, 0, 0.2);
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
  z-index: 10001;
  padding: 60px 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-sizing: border-box;
}

.navapage-body #sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.navapage-body #sidebar li {
  margin: 16px 0;
  padding: 0;
}

.navapage-body #sidebar a {
  display: block;
  color: var(--sidebar-text);
  text-decoration: none;
  font-family: var(--sidebar-font);
  font-size: var(--sidebar-font-size);
}

.navapage-body #sidebar .contact {
  margin-top: auto;
  padding-bottom: 1.5rem;
}

.navapage-body #sidebar .contact a {
  font-size: var(--sidebar-font-size);
  color: var(--sidebar-text);
}

.navapage-body #sidebar a.clickline {
  display: inline;
  position: relative;
}

.navapage-body #sidebar a.clickline.active {
  color: #000;
  cursor: default;
  pointer-events: none;
  text-decoration: line-through;
  text-decoration-color: #000;
  text-decoration-thickness: 2px;
}

/* Back to projects — same category-header as sophia.html */
.navapage-body .category-header {
  position: fixed;
  top: 20px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 40px;
  padding-left: 30px;
  padding-right: 30px;
  max-width: 1600px;
  margin-inline: auto;
  z-index: 999;
  box-sizing: border-box;
}

.navapage-body .project-back {
  font-family: "Roboto Mono", monospace;
  font-size: clamp(18px, 1.5vw, 22px);
  color: #000;
  text-decoration: none;
  transition: color 0.3s ease;
}

.navapage-body .project-back:hover {
  color: var(--sidebar-hover);
}

@media (max-width: 480px) {
  .navapage-body .category-header {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Desktop: hover opens drawer (matches index.html) */
.navapage-body #menu-btn:hover ~ #sidebar,
.navapage-body #sidebar:hover {
  transform: translateX(0);
}

/* Checkbox “dismiss” state from index (desktop) */
.navapage-body #menu-toggle:checked ~ #sidebar {
  transform: translateX(100%);
}

/* Touch / no-hover: hamburger toggles drawer open */
@media (hover: none) {
  .navapage-body #menu-toggle:checked ~ #sidebar {
    transform: translateX(0);
  }
}
