:root {
    --bg: #f3f1eb;
    --surface: #fbf9f5;
    --surface-2: #ece8df;
    --ink: #221f1c;
    --ink-muted: #6b6259;
    --accent: #b2472a;
    --accent-ink: #fff8f2;
    --line: #ddd8ce;
    --shadow: 0 12px 32px -18px rgba(34,31,28,0.35);
  }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      --bg: #18150f;
      --surface: #221e18;
      --surface-2: #2b261e;
      --ink: #f2ede4;
      --ink-muted: #b5aa9a;
      --accent: #d9754f;
      --accent-ink: #1a1310;
      --line: #383026;
      --shadow: 0 12px 32px -18px rgba(0,0,0,0.6);
    }
  }
  :root[data-theme="dark"] {
    --bg: #18150f;
    --surface: #221e18;
    --surface-2: #2b261e;
    --ink: #f2ede4;
    --ink-muted: #b5aa9a;
    --accent: #d9754f;
    --accent-ink: #1a1310;
    --line: #383026;
    --shadow: 0 12px 32px -18px rgba(0,0,0,0.6);
  }

  * { box-sizing: border-box; }
  body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
  }
  img { max-width: 100%; display: block; }
  a { color: inherit; }
  h1, h2, h3 {
    font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-wrap: balance;
    margin: 0;
  }
  .eyebrow {
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    font-size: 0.82rem;
    margin: 0 0 0.6rem;
  }
  .wrap {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  }
  .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.95rem;
    padding: 0.85rem 1.6rem;
    border-radius: 3px;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
  }
  .btn-primary { background: var(--accent); color: var(--accent-ink); }
  .btn-primary:hover { filter: brightness(1.08); }
  .btn-ghost {
    background: transparent;
    color: var(--ink);
    border-color: color-mix(in srgb, var(--ink) 35%, transparent);
  }
  .btn-ghost:hover { border-color: var(--ink); }
  .btn-ghost.on-photo {
    color: #fff;
    border-color: rgba(255,255,255,0.6);
  }
  .btn-ghost.on-photo:hover { border-color: #fff; }

  /* Nav */
  nav.site {
    position: sticky;
    top: 0;
    z-index: 20;
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--line);
  }
  nav.site .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
  }
  .wordmark {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 700;
    font-size: 1.9rem;
    letter-spacing: 0.02em;
    text-decoration: none;
  }
  .wordmark span { color: var(--accent); }
  .wordmark .mark-chip {
    display: inline-flex;
    align-items: center;
    line-height: 0;
    background: #faf8f4;
    border-radius: 7px;
    padding: 3px 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  }
  .wordmark .mark-chip img {
    display: block;
    height: 1.85rem;
    width: auto;
    border-radius: 3px;
  }
  .mark-chip-full {
    padding: 4px 10px;
  }
  .mark-chip-full img {
    height: 118px !important;
  }
  .brand-seal {
    display: flex;
    justify-content: center;
    padding: 2.6rem 0;
    background: var(--surface);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
  .brand-seal .seal-card {
    background: #faf8f4;
    border-radius: 10px;
    padding: 1.1rem 1.6rem 1rem;
    box-shadow: var(--shadow);
  }
  .brand-seal .seal-card img {
    display: block;
    height: 118px;
    width: auto;
  }
  .nav-links {
    display: flex;
    gap: 1.9rem;
    list-style: none;
    margin: 0;
    padding: 0;
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 600;
    letter-spacing: 0.02em;
    font-size: 1.12rem;
  }
  .nav-links a { text-decoration: none; color: var(--ink-muted); }
  .nav-links a:hover { color: var(--ink); }
  .nav-cta { display: flex; align-items: center; gap: 1.5rem; }

  /* Mobile menu toggle (hamburger) */
  .nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 10px;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 3px;
    cursor: pointer;
  }
  .nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--ink);
    transition: transform 0.2s ease, opacity 0.2s ease;
  }
  .nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-links-cta { display: none; }

  @media (max-width: 980px) {
    .nav-toggle { display: flex; }
    .nav-cta { display: none; }
    .nav-links {
      display: none;
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      flex-direction: column;
      gap: 0;
      background: var(--bg);
      border-bottom: 1px solid var(--line);
      box-shadow: var(--shadow);
      padding: 0.4rem 0 1rem;
    }
    .nav-links.is-open { display: flex; }
    .nav-links li { width: 100%; }
    .nav-links a {
      display: block;
      padding: 0.9rem clamp(1.25rem, 4vw, 2.5rem);
      color: var(--ink);
    }
    .nav-links a[aria-current="page"] { color: var(--accent); }
    .nav-links-cta {
      display: block;
      margin-top: 0.5rem;
      padding: 0 clamp(1.25rem, 4vw, 2.5rem);
    }
    .nav-links-cta .btn { width: 100%; justify-content: center; }
  }

  /* Hero */
  .hero {
    position: relative;
    min-height: min(74vh, 640px);
    display: flex;
    align-items: flex-end;
    color: #fff;
  }
  .hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 12%;
    z-index: 0;
  }
  .hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15,12,9,0.45) 0%, rgba(15,12,9,0.5) 55%, rgba(12,9,7,0.92) 100%);
    z-index: 1;
  }
  .hero-inner {
    position: relative;
    z-index: 2;
    padding-top: 6rem;
    padding-bottom: 3.5rem;
  }
  .hero .eyebrow {
    color: #ffd9ae;
    text-shadow: 0 2px 14px rgba(0,0,0,0.55);
  }
  .hero h1 {
    font-size: clamp(2.4rem, 5.6vw, 4.1rem);
    line-height: 1.03;
    max-width: 16ch;
    text-shadow: 0 3px 20px rgba(0,0,0,0.5);
  }
  .hero p.lede {
    margin-top: 1.1rem;
    max-width: 46ch;
    font-size: 1.15rem;
    color: rgba(255,255,255,0.92);
    text-shadow: 0 2px 14px rgba(0,0,0,0.5);
  }
  .hero-actions {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
  }

  /* Mobile: show the whole hero image (uncropped) as a banner, text below it */
  @media (max-width: 780px) {
    .hero {
      display: block;
      min-height: 0;
      color: var(--ink);
    }
    .hero img {
      position: static;
      width: 100%;
      height: auto;
      object-fit: fill;
    }
    .hero::after { display: none; }
    .hero-inner {
      padding-top: 2.25rem;
      padding-bottom: 3rem;
    }
    .hero .eyebrow {
      color: var(--accent);
      text-shadow: none;
    }
    .hero h1 { text-shadow: none; }
    .hero p.lede {
      color: var(--ink-muted);
      text-shadow: none;
    }
    .hero-actions .btn-ghost.on-photo {
      color: var(--ink);
      border-color: color-mix(in srgb, var(--ink) 35%, transparent);
    }
    .hero-actions .btn-ghost.on-photo:hover { border-color: var(--ink); }
  }

  /* Trust strip */
  .trust {
    border-bottom: 1px solid var(--line);
    background: var(--surface);
  }
  .trust .wrap {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding-top: 2.25rem;
    padding-bottom: 2.25rem;
  }
  .trust-item { font-size: 0.98rem; color: var(--ink-muted); }
  .trust-item strong {
    display: block;
    color: var(--ink);
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 600;
    font-size: 1.08rem;
    margin-bottom: 0.3rem;
    letter-spacing: 0.01em;
  }
  @media (max-width: 780px) {
    .trust .wrap { grid-template-columns: 1fr; gap: 1.5rem; }
  }

  /* Section shell */
  section { padding: 5rem 0; }
  .section-head {
    max-width: 62ch;
    margin-bottom: 2.75rem;
  }
  .section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }

  /* Services */
  .services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.85rem;
  }
  .service-cell {
    position: relative;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 1.3rem 1.3rem;
    min-height: 108px;
    display: flex;
    align-items: flex-end;
    font-size: 0.98rem;
  }
  .services-grid .service-cell {
    aspect-ratio: 1 / 1;
    min-height: 0;
  }
  .service-cell .label {
    position: relative;
    z-index: 1;
  }
  .service-cell:has(.sketch)::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 20%, var(--surface) 88%);
    z-index: 0;
  }
  .service-cell .sketch {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    opacity: 0.72;
    color: var(--ink-muted);
    pointer-events: none;
    z-index: 0;
  }
  @media (max-width: 900px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
  }
  .services-note {
    margin-top: 1.5rem;
    color: var(--ink-muted);
    font-size: 0.95rem;
  }

  /* How it works */
  .steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.85rem;
  }
  .step-cell {
    min-height: 260px;
    align-items: flex-start;
    padding: 1.5rem 1.4rem;
  }
  /* Lift the step text off the busy sketch without covering the image */
  .step-cell .label {
    text-shadow: 0 0 4px var(--surface), 0 0 9px var(--surface);
  }
  .step-num {
    display: block;
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.8rem;
    color: var(--accent);
    margin-bottom: 0.6rem;
  }
  .step-cell h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
  }
  .step-cell p {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--ink);
  }
  @media (max-width: 900px) {
    .steps-grid { grid-template-columns: repeat(2, 1fr); }
  }
  @media (max-width: 560px) {
    .steps-grid { grid-template-columns: 1fr; }
  }

  /* Featured work */
  .project {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 1rem;
  }
  .project figure { margin: 0; position: relative; }
  .project img { width: 100%; height: 340px; object-fit: cover; }
  .project figcaption {
    position: absolute;
    left: 0.75rem;
    bottom: 0.75rem;
    font-family: "Barlow Condensed", sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.78rem;
    color: #fff;
    background: rgba(20,16,12,0.55);
    padding: 0.3rem 0.6rem;
  }
  .project-meta {
    margin: 1.1rem 0 3rem;
  }
  .project-meta h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
  .project-meta p { color: var(--ink-muted); max-width: 70ch; margin: 0; }
  @media (max-width: 700px) {
    .project { grid-template-columns: 1fr; }
    .project img { height: 260px; }
  }

  /* Areas served */
  .areas { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .area-tags {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.6rem;
    margin: 1.5rem 0 1.5rem;
  }
  @media (max-width: 700px) {
    .area-tags { grid-template-columns: repeat(4, 1fr); }
  }
  @media (max-width: 480px) {
    .area-tags { grid-template-columns: repeat(2, 1fr); }
  }
  .area-tag {
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 600;
    letter-spacing: 0.03em;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--line);
    background: var(--surface-2);
    border-radius: 2px;
    text-align: center;
  }
  .areas p.note { color: var(--ink-muted); max-width: 62ch; }

  /* CTA band */
  .cta-band {
    background: var(--ink);
    color: var(--bg);
  }
  :root[data-theme="dark"] .cta-band,
  @media (prefers-color-scheme: dark) { }
  .cta-band .wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }
  .cta-band h2 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); color: var(--bg); max-width: 18ch; }
  .cta-band p { color: color-mix(in srgb, var(--bg) 72%, transparent); max-width: 44ch; margin-top: 0.75rem; }
  .cta-contact { display: flex; flex-direction: column; gap: 0.6rem; align-items: flex-start; }
  .cta-contact a { text-decoration: none; font-size: 1.05rem; color: var(--bg); }
  .cta-contact .btn-primary { margin-top: 0.4rem; }

  footer { padding: 2.75rem 0; }
  footer .wrap {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.88rem;
    color: var(--ink-muted);
  }
  footer .wordmark { font-size: 1.05rem; }

/* Page header banner (non-home pages) */
.page-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 4.5rem 0 3.5rem;
}
.page-header h1 {
  font-size: clamp(2.1rem, 4.2vw, 3rem);
  max-width: 22ch;
}
.page-lede {
  margin-top: 1rem;
  max-width: 62ch;
  font-size: 1.1rem;
  color: var(--ink-muted);
}

/* Work / portfolio gallery */
.work-note {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1.1rem 1.3rem;
  font-size: 0.95rem;
  color: var(--ink-muted);
  margin-bottom: 3rem;
}

/* About page */
.about-body {
  font-size: 1.08rem;
}
.about-body p { margin: 0 0 1.3rem; }
.about-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  margin-top: 2.5rem;
}
.about-fact {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1.3rem 1.4rem;
}
.about-fact strong {
  display: block;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}
.about-fact span { color: var(--ink-muted); font-size: 0.92rem; }
@media (max-width: 780px) {
  .about-facts { grid-template-columns: 1fr; }
}

/* Contact / estimate form */
.contact-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: start;
}
@media (max-width: 900px) {
  .contact-layout { grid-template-columns: 1fr; gap: 2.5rem; }
}
.estimate-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: var(--shadow);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
}
.field { margin-bottom: 1.2rem; }
.field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field select,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg);
  color: var(--ink);
}
.field textarea { resize: vertical; min-height: 110px; }
.field-note { font-size: 0.82rem; color: var(--ink-muted); margin-top: 0.35rem; }
.photo-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}
@media (max-width: 560px) {
  .photo-row { grid-template-columns: 1fr; }
}
.photo-slot {
  border: 1px dashed var(--line);
  border-radius: 4px;
  padding: 1rem 0.75rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink-muted);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.photo-slot input[type="file"] {
  position: absolute; inset: 0; opacity: 0; cursor: pointer;
}
.photo-slot.has-file { border-style: solid; border-color: var(--accent); color: var(--ink); }
.photo-slot.drag-over {
  border-style: solid;
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 9%, transparent);
  color: var(--ink);
}
.radio-row { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.radio-row label { display: flex; align-items: center; gap: 0.4rem; font-weight: 400; font-size: 0.95rem; }
.submit-btn { width: 100%; justify-content: center; font-size: 1.05rem; padding: 1rem; }
.form-alt { text-align: center; font-size: 0.9rem; color: var(--ink-muted); margin-top: 1rem; }

.contact-side .eyebrow { margin-bottom: 0.6rem; }
.contact-side h2 { font-size: 1.8rem; max-width: 16ch; }
.contact-side .lede { color: var(--ink-muted); margin-top: 0.8rem; max-width: 40ch; }
.trust-list { margin-top: 2rem; display: flex; flex-direction: column; gap: 1.2rem; }
.trust-list-item { display: flex; gap: 0.9rem; align-items: flex-start; }
.trust-list-item .mark {
  flex: none;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
}
.trust-list-item strong { display: block; font-size: 1rem; }
.trust-list-item span { color: var(--ink-muted); font-size: 0.9rem; }

/* ============================================================
   Portfolio catalog: featured cards, mosaic, project pages
   ============================================================ */

/* Home page: featured project card as a link */
.project-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.project-link .project-meta h3 { transition: color 0.15s ease; }
.project-link:hover .project-meta h3 { color: var(--accent); }
.project-meta p.clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Work page: category filter bar */
/* Work page: keep the intro lede on one line on wide screens; allow wrap when narrow */
.page-header.work-head .page-lede {
  white-space: nowrap;
}
@media (max-width: 900px) {
  .page-header.work-head .page-lede { white-space: normal; }
}

.work-filters {
  margin: 0 0 2rem;
}
.work-filter-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.85rem;
}
@media (max-width: 900px) { .work-filter-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .work-filter-grid { grid-template-columns: repeat(2, 1fr); } }
.work-filter {
  width: 100%;
  min-width: 0;
  text-align: center;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 600;
  letter-spacing: 0.03em;
  font-size: 0.92rem;
  padding: 0.6rem 0.6rem;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink-muted);
  border-radius: 2px;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.work-filter:hover { color: var(--ink); }
.work-filter.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.work-filter-clear {
  margin-top: 0.85rem;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 600;
  letter-spacing: 0.03em;
  font-size: 0.85rem;
  padding: 0.45rem 1rem;
  border: 1px dashed var(--line);
  background: transparent;
  color: var(--ink-muted);
  border-radius: 2px;
  cursor: pointer;
}
.work-filter-clear:hover { color: var(--ink); border-color: var(--ink); }

/* Work page: mosaic of all projects */
.mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}
@media (max-width: 900px) { .mosaic { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .mosaic { grid-template-columns: repeat(2, 1fr); } }
.mosaic-tile {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  aspect-ratio: 1 / 1;
  text-decoration: none;
  color: #fff;
  background: var(--surface);
}
.mosaic-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.mosaic-tile:hover img { transform: scale(1.04); }
.mosaic-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(15,12,9,0.78) 100%);
}
.mosaic-tile .m-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 0.9rem 0.85rem 0.8rem;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 600;
  font-size: 1.02rem;
  line-height: 1.15;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.mosaic-empty { color: var(--ink-muted); margin-top: 1.5rem; }

/* Project detail page */
.project-header .back-link {
  display: inline-block;
  margin-bottom: 1.25rem;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--ink-muted);
  text-decoration: none;
}
.project-header .back-link:hover { color: var(--accent); }
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}
.tag-badge {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 600;
  letter-spacing: 0.03em;
  font-size: 0.85rem;
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--line);
  background: var(--surface-2);
  border-radius: 2px;
  color: var(--ink-muted);
}
.project-detail .project-desc {
  max-width: 70ch;
  margin: 0 auto;
  font-size: 1.05rem;
  color: var(--ink-muted);
}
.project-detail .project-desc p { margin: 0 0 1rem; }

.carousel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2.5rem;
}
.carousel-prev { order: 1; }
.carousel-stage { order: 2; }
.carousel-next { order: 3; }
.carousel-counter { order: 4; }
.carousel-stage {
  flex: 1;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.carousel-stage img {
  width: 100%;
  max-height: 68vh;
  object-fit: contain;
}
.carousel-btn {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel-btn:hover { border-color: var(--ink); }
.carousel-counter {
  width: 100%;
  text-align: center;
  font-family: "Barlow Condensed", sans-serif;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
  color: var(--ink-muted);
}
.project-detail .thumbs { margin-top: 1rem; }

.thumbs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}
.thumb {
  flex: none;
  width: 84px;
  height: 64px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 3px;
  overflow: hidden;
  cursor: pointer;
  background: var(--surface);
  opacity: 0.6;
  transition: opacity 0.15s ease;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb:hover { opacity: 1; }
.thumb.is-active { opacity: 1; border-color: var(--accent); }

@media (max-width: 560px) {
  .carousel-btn { width: 38px; height: 38px; font-size: 1.3rem; }
  .thumb { width: 68px; height: 52px; }
}
