/* ============================================================
   Bob Ruediger Portfolio — Global Styles
   ============================================================ */

:root {
  --bg:            #f7f3e9;
  --card-bg:       #FFFFFF;
  --text:          #111111;
  --text-mid:      #333333;
  --text-secondary:#4a4a4a;
  --text-light:    #999999;
  --navy:          #1F3864;
  --blue:          #2E5BA8;
  --blue-faint:    rgba(46, 91, 168, 0.08);
  --border:        #E5E4DF;
  --border-light:  #F0EFEA;
  --max-width:     1100px;
  --nav-height:    64px;
  --body-width:    720px;
  --nb-line:       rgba(100, 160, 200, 0.2);
  --nb-margin:     rgba(210, 80, 80, 0.25);
}

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

html { font-size: 17px; scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg);
  background-image:
    linear-gradient(90deg, transparent 79px, var(--nb-margin) 79px, var(--nb-margin) 81px, transparent 81px),
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent 27px,
      var(--nb-line) 27px,
      var(--nb-line) 28px
    );
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Sticky footer */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ============================================================
   Navigation
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bg);
  border-bottom: 1px solid var(--border);
}

.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--navy);
  width: 38px;
  height: 38px;
  border: 2px solid var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.18s, color 0.18s;
  flex-shrink: 0;
}

.nav-logo:hover { background-color: var(--navy); color: #fff; }

.nav-logo-img {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  opacity: 1;
  transition: opacity 0.18s;
}
.nav-logo-img:hover { opacity: 0.75; }
.nav-logo-img img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
}

.nav-links {
  display: flex;
  gap: 2.25rem;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.18s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--navy); }

/* ============================================================
   Hero
   ============================================================ */

.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 5.5rem 2rem 5rem;
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-name {
  font-family: 'Kalam', cursive;
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.1;
  color: var(--navy);
  margin-bottom: 0.55rem;
}

.hero-title {
  font-size: 1rem;
  font-weight: 500;
  color: var(--blue);
  margin-bottom: 1.5rem;
  letter-spacing: 0.01em;
}

.hero-bio {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 540px;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 0.875rem;
  align-items: center;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  background-color: var(--navy);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 4px;
  transition: background-color 0.18s;
  letter-spacing: 0.01em;
}

.btn-primary:hover { background-color: var(--blue); }

.btn-secondary {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  background-color: #fff;
  border: 1.5px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 4px;
  transition: border-color 0.18s, color 0.18s, background-color 0.18s;
}

.btn-secondary:hover { border-color: var(--navy); color: var(--navy); background-color: #fff; }

/* Profile photo / Polaroid */
.hero-photo { display: flex; justify-content: center; align-items: center; }

.polaroid {
  background: #fff;
  padding: 12px 12px 48px 12px;
  box-shadow: 3px 5px 18px rgba(0,0,0,0.15), 0 1px 4px rgba(0,0,0,0.08);
  display: inline-block;
  transform: rotate(-2deg);
}

.polaroid-img-area {
  position: relative;
  width: 280px;
  height: 280px;
  overflow: hidden;
  background: #ddd;
}

.polaroid-img-area .slide,
.polaroid-img-area > img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

.polaroid-img-area .slide {
  opacity: 0;
  transition: opacity 0.7s ease;
}

.polaroid-img-area .slide.active { opacity: 1; }

.polaroid-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 36px;
}

.slide-dots { display: flex; gap: 7px; }

.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #ccc; cursor: pointer;
  transition: background 0.3s;
}

.dot.active { background: #555; }

/* ============================================================
   Section Header
   ============================================================ */

.section-label {
  font-family: 'Kalam', cursive;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 2rem;
}

/* ============================================================
   Project Grid
   ============================================================ */

.work {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3.5rem 2rem 6rem;
  border-top: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='6'%3E%3Cpath d='M0%2C3 C10%2C1.5 25%2C4.5 40%2C3 C55%2C1.5 70%2C4 85%2C2.5 C100%2C1 115%2C4.5 130%2C3 C145%2C1.5 155%2C3.5 160%2C3' stroke='%231F3864' stroke-width='1.6' fill='none' stroke-linecap='round' opacity='0.45'/%3E%3C%2Fsvg%3E");
  background-size: 160px 6px;
  background-repeat: repeat-x;
  background-position: 0 0;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  overflow: visible;
}

/* First card full-width */
.card-pin:first-child { grid-column: 1 / -1; }

/* Pin wrapper — holds the thumbtack; does NOT transform */
.card-pin {
  position: relative;
  overflow: visible;
  perspective: 800px;
}

/* Thumbtack head */
.card-pin::before {
  content: '';
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  width: 15px;
  height: 15px;
  background: radial-gradient(circle at 35% 30%, #4a6fa5, #1F3864);
  border-radius: 50%;
  box-shadow: 0 3px 7px rgba(0,0,0,0.45), inset 0 -1px 3px rgba(0,0,0,0.25);
  z-index: 3;
}

/* Thumbtack stem shadow */
.card-pin::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 10px;
  background: rgba(0,0,0,0.18);
  z-index: 2;
}

.project-card {
  background: var(--card-bg);
  padding: 8px 8px 0 8px;
  border: none;
  border-radius: 0;
  overflow: visible;
  box-shadow: 3px 6px 20px rgba(0,0,0,0.15), 0 1px 4px rgba(0,0,0,0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project-card:hover {
  transform: rotateX(4deg);
  transform-origin: top center;
  box-shadow: 0 24px 48px rgba(0,0,0,0.25), 0 6px 12px rgba(0,0,0,0.1);
}

.card-pin--subtle .project-card:hover {
  transform: rotateX(2deg);
  box-shadow: 0 12px 24px rgba(0,0,0,0.18), 0 3px 8px rgba(0,0,0,0.08);
}

.card-link { display: block; }

/* ── Pin click-to-fall easter egg ─────────────────────────── */

.pin-hitbox {
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  z-index: 10;
  cursor: pointer;
}

@keyframes pin-pop {
  0%   { transform: translateX(-50%) scale(1);   opacity: 1; }
  40%  { transform: translateX(-50%) scale(1.7); opacity: 1; }
  100% { transform: translateX(-50%) scale(0);   opacity: 0; }
}

@keyframes card-fall {
  0%   { transform: rotateZ(0deg)   translateY(0);      opacity: 1; }
  8%   { transform: rotateZ(-2deg)  translateY(10px);   opacity: 1; }
  100% { transform: rotateZ(-12deg) translateY(108vh);  opacity: 0; }
}

.card-pin.pin-popped::before {
  animation: pin-pop 0.26s ease-out forwards;
}
.card-pin.pin-popped::after {
  opacity: 0;
}
.card-pin.pin-popped .project-card {
  animation: card-fall 0.82s cubic-bezier(0.4, 0, 1, 1) forwards;
  pointer-events: none;
}

.card-thumb {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  position: relative;
}

.card-pin:first-child .card-thumb { aspect-ratio: 21 / 9; }

.card-thumb img {
  width: 100%; height: 100%; object-fit: cover;
}

/* Placeholder thumbnails */
.thumb-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.thumb-placeholder svg { opacity: 0.18; }

.card-body { padding: 0.9rem 0.6rem 1.4rem; }

.card-tags {
  display: flex;
  gap: 0.45rem;
  margin-bottom: 0.7rem;
  flex-wrap: wrap;
}

.tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--blue);
  background-color: var(--blue-faint);
  padding: 0.18rem 0.55rem;
  border-radius: 3px;
}

.tag.navy {
  color: var(--navy);
  background-color: rgba(31, 56, 100, 0.07);
}

.card-title {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.card-pin:first-child .card-title { font-size: 1.2rem; }

.card-desc {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ============================================================
   Case Study Layout
   ============================================================ */

.cs-hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 2rem 3rem;
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 3rem;
  align-items: start;
}

.cs-tags { display: flex; gap: 0.5rem; margin-bottom: 1rem; flex-wrap: wrap; }

.cs-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 1rem;
}

.cs-subtitle {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 600px;
}

.cs-meta {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.meta-item { display: flex; flex-direction: column; gap: 0.15rem; }

.meta-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
}

.meta-value {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}

.meta-link { color: var(--blue); }
.meta-link:hover { text-decoration: underline; }

/* Cover image */
.cs-cover {
  max-width: var(--max-width);
  margin: 0 auto 0;
  padding: 0 2rem;
}

.cs-cover-img {
  width: 100%;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.cs-cover-img img { width: 100%; height: auto; display: block; }

/* Stats bar */
.cs-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 3.5rem;
  background-color: var(--card-bg);
}

.stat {
  padding: 1.5rem 1.25rem;
  text-align: center;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.stat:last-child { border-right: none; }

.stat-number {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.03em;
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.3;
}

/* Body content */
.cs-body {
  max-width: var(--body-width);
  margin: 0 auto;
  padding: 3.5rem 2rem 5rem;
}

.cs-section { margin-bottom: 3rem; }

.cs-section h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='6'%3E%3Cpath d='M0%2C3 C10%2C1.5 25%2C4.5 40%2C3 C55%2C1.5 70%2C4 85%2C2.5 C100%2C1 115%2C4.5 130%2C3 C145%2C1.5 155%2C3.5 160%2C3' stroke='%231F3864' stroke-width='1.6' fill='none' stroke-linecap='round' opacity='0.45'/%3E%3C%2Fsvg%3E");
  background-size: 160px 6px;
  background-repeat: repeat-x;
  background-position: bottom;
  letter-spacing: -0.01em;
}

.cs-section h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.6rem;
  margin-top: 1.5rem;
}

.cs-section p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-mid);
  margin-bottom: 1rem;
}

.cs-section p:last-child { margin-bottom: 0; }

.cs-section ul {
  list-style: disc;
  padding-left: 1.4rem;
  margin-bottom: 1rem;
}

.cs-section ul li {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-mid);
  margin-bottom: 0.4rem;
}

/* Pullquote */
.pullquote {
  border-left: 3px solid var(--blue);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background-color: var(--blue-faint);
  border-radius: 0 4px 4px 0;
}

.pullquote p {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--navy);
  line-height: 1.65;
  margin: 0;
}

/* Image placeholder in body */
.cs-image {
  width: 100%;
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid var(--border);
  margin: 2rem 0;
  background-color: var(--card-bg);
}

.cs-image img { width: 100%; }

.cs-image-caption {
  font-size: 0.8rem;
  color: var(--text-light);
  text-align: center;
  padding: 0.6rem 1rem 0.75rem;
  border-top: 1px solid var(--border-light);
  font-style: italic;
}

.img-placeholder {
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--text-light);
  background-color: var(--border-light);
  letter-spacing: 0.04em;
}

/* Phase label */
.phase-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  background-color: var(--blue-faint);
  padding: 0.25rem 0.65rem;
  border-radius: 3px;
  margin-bottom: 0.75rem;
}

/* Results callout */
.results-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}

.result-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 1.25rem;
}

.result-card .result-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.3rem;
}

.result-card .result-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Nav between case studies */
.cs-nav {
  border-top: 1px solid var(--border);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cs-nav-link {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.cs-nav-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
}

.cs-nav-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  transition: color 0.18s;
}

.cs-nav-link:hover .cs-nav-title { color: var(--blue); }

.cs-nav-link.next { text-align: right; }

/* ============================================================
   About Page
   ============================================================ */

.about-hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 5rem 2rem 4rem;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 4rem;
  align-items: start;
}

.about-content h1,
.blog-hero h1,
.travel-hero h1 {
  font-family: 'Kalam', cursive;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
  color: var(--navy);
  margin-bottom: 1.5rem;
}

.about-content p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-mid);
  margin-bottom: 1.2rem;
  max-width: 580px;
}

.about-photo .photo-wrap { width: 100%; height: 320px; border-radius: 8px; }

.about-details {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  border-top: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='6'%3E%3Cpath d='M0%2C3 C10%2C1.5 25%2C4.5 40%2C3 C55%2C1.5 70%2C4 85%2C2.5 C100%2C1 115%2C4.5 130%2C3 C145%2C1.5 155%2C3.5 160%2C3' stroke='%231F3864' fill='none' stroke-width='1.6' stroke-linecap='round' opacity='0.45'/%3E%3C%2Fsvg%3E");
  background-size: 160px 6px;
  background-repeat: repeat-x;
  background-position: 0 0;
}

.detail-group h3 {
  font-family: 'Kalam', cursive;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 1.2rem;
}

.detail-group ul { display: flex; flex-direction: column; gap: 0.6rem; }

.detail-group li {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.4;
}

.detail-group li strong {
  font-weight: 600;
  color: var(--text);
}

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 2rem;
  background-color: var(--bg);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-left { display: flex; flex-direction: column; gap: 0.25rem; }

.footer-name { font-weight: 600; font-size: 0.95rem; }

.footer-tagline { font-size: 0.825rem; color: var(--text-secondary); }

.footer-right { display: flex; gap: 1.5rem; align-items: center; }

.footer-right a {
  font-size: 0.825rem;
  color: var(--text-secondary);
  transition: color 0.18s;
}

.footer-right a:hover { color: var(--navy); }

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 860px) {
  body {
    background-image:
      repeating-linear-gradient(
        to bottom,
        transparent 0,
        transparent 27px,
        var(--nb-line) 27px,
        var(--nb-line) 28px
      );
  }

  .hero, .cs-hero, .about-hero {
    grid-template-columns: 1fr;
    padding: 3rem 1.5rem;
    gap: 2.5rem;
  }

  .hero-photo { order: -1; }
  .polaroid-img-area { width: 220px; }

  .project-grid { grid-template-columns: 1fr; }
  .card-pin:first-child { grid-column: auto; }

  .cs-stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(3) { border-top: 1px solid var(--border); }
  .stat:nth-child(4) { border-top: 1px solid var(--border); }

  .results-grid { grid-template-columns: 1fr; }

  .about-details { grid-template-columns: 1fr; gap: 2rem; }

  .footer-inner { flex-direction: column; align-items: flex-start; }

  .nav { padding: 0 1.5rem; }
  .nav-links { gap: 1.5rem; }

  .cs-body { padding: 2.5rem 1.5rem 4rem; }

  .cs-cover { padding: 0 1.5rem; }
}

/* ============================================================
   Dark Mode Toggle Button
   ============================================================ */

.dark-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
  opacity: 0.55;
  transition: opacity 0.18s;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  color: var(--text);
}
.dark-toggle:hover { opacity: 1; }
.dark-toggle svg { display: block; }

/* ============================================================
   Dark Mode  (activated by JS toggle, stored in localStorage)
   ============================================================ */

[data-theme="dark"] {
  --bg:             #0f1623;
  --card-bg:        #1a2438;
  --text:           #e8edf4;
  --text-mid:       #c8d3e0;
  --text-secondary: #9aaabf;
  --text-light:     #6b7f99;
  --navy:           #93b8e8;
  --blue:           #7ba7e8;
  --blue-faint:     rgba(147, 184, 232, 0.12);
  --border:         #2a3a52;
  --border-light:   #1f2e44;
  --nb-line:        rgba(100, 160, 220, 0.18);
  --nb-margin:      rgba(210, 100, 100, 0.2);
}

/* Buttons — dark text on light-blue primary for contrast */
[data-theme="dark"] .btn-primary { color: #0f1623; }
[data-theme="dark"] .btn-secondary { background-color: transparent; }
[data-theme="dark"] .btn-secondary:hover { background-color: transparent; }

/* Card text contrast */
[data-theme="dark"] .card-title { color: #e8edf4; }
[data-theme="dark"] .card-desc  { color: #c8d3e0; }

/* Tag navy variant */
[data-theme="dark"] .tag.navy { background-color: rgba(147, 184, 232, 0.12); }

/* Push pin */
[data-theme="dark"] .card-pin::before {
  background: radial-gradient(circle at 35% 30%, #7ba7e8, #4a6fa5);
}

/* Wavy divider lines — light blue stroke for dark bg */
[data-theme="dark"] .work {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='6'%3E%3Cpath d='M0%2C3 C10%2C1.5 25%2C4.5 40%2C3 C55%2C1.5 70%2C4 85%2C2.5 C100%2C1 115%2C4.5 130%2C3 C145%2C1.5 155%2C3.5 160%2C3' stroke='%2393b8e8' stroke-width='1.6' fill='none' stroke-linecap='round' opacity='0.45'/%3E%3C%2Fsvg%3E");
}
[data-theme="dark"] .about-details {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='6'%3E%3Cpath d='M0%2C3 C10%2C1.5 25%2C4.5 40%2C3 C55%2C1.5 70%2C4 85%2C2.5 C100%2C1 115%2C4.5 130%2C3 C145%2C1.5 155%2C3.5 160%2C3' stroke='%2393b8e8' fill='none' stroke-width='1.6' stroke-linecap='round' opacity='0.45'/%3E%3C%2Fsvg%3E");
}
[data-theme="dark"] .cs-section h2 {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='6'%3E%3Cpath d='M0%2C3 C10%2C1.5 25%2C4.5 40%2C3 C55%2C1.5 70%2C4 85%2C2.5 C100%2C1 115%2C4.5 130%2C3 C145%2C1.5 155%2C3.5 160%2C3' stroke='%2393b8e8' stroke-width='1.6' fill='none' stroke-linecap='round' opacity='0.45'/%3E%3C%2Fsvg%3E");
}

/* Mobile — dark mode drops the margin line */
@media (max-width: 860px) {
  [data-theme="dark"] body {
    background-image:
      repeating-linear-gradient(
        to bottom,
        transparent 0,
        transparent 27px,
        var(--nb-line) 27px,
        var(--nb-line) 28px
      );
  }
}
