/* ============================================================
   One F Stop — Dark/Moody Photography Portfolio
   ============================================================ */

/* --- Reset & Base ------------------------------------------ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:          #0d0d0d;
  --bg-2:        #141414;
  --bg-3:        #1c1c1c;
  --surface:     #222222;
  --border:      #2e2e2e;
  --text:        #e0e0e0;
  --text-muted:  #888888;
  --accent:      #c8a96e;        /* warm gold */
  --accent-dim:  #9e7d46;
  --white:       #ffffff;
  --font-serif:  'Georgia', 'Times New Roman', serif;
  --font-sans:   'Helvetica Neue', Arial, sans-serif;
  --transition:  0.3s ease;
  --radius:      4px;
  --nav-height:  68px;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover,
a:focus-visible {
  color: var(--white);
}

ul {
  list-style: none;
}

/* --- Utility ---------------------------------------------- */
.hidden { display: none !important; }

.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  background: transparent;
  transition: background var(--transition), color var(--transition);
  border-radius: var(--radius);
}

.btn:hover,
.btn:focus-visible {
  background: var(--accent);
  color: var(--bg);
  outline: none;
}

.btn-full {
  width: 100%;
  text-align: center;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--white);
  text-align: center;
  margin-bottom: 3rem;
}

/* --- Navbar ----------------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  background: rgba(13, 13, 13, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.nav-logo:hover .logo-img,
.nav-logo:focus-visible .logo-img {
  opacity: 0.85;
}

.nav-links {
  display: flex;
  gap: 1.8rem;
  flex-wrap: nowrap;
  align-items: center;
}

.nav-links a {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--transition);
  white-space: nowrap;
}

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

/* --- Home intro & showcase --------------------------------- */
.home-intro {
  min-height: clamp(310px, 47vh, 520px);
  padding: calc(var(--nav-height) + 3rem) 1.5rem 2.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    radial-gradient(circle at 50% 48%, rgba(200, 169, 110, 0.07), transparent 32%),
    var(--bg);
}

.home-intro-logo {
  width: min(420px, 72vw);
  height: auto;
  margin-bottom: 1.8rem;
}

.home-intro-copy {
  max-width: 620px;
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 2vw, 1.4rem);
  line-height: 1.6;
  color: #b8b8b8;
}

.home-intro-link {
  margin-top: 1.8rem;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.home-intro-link span {
  display: inline-block;
  margin-left: 0.4rem;
  transition: transform var(--transition);
}

.home-intro-link:hover span,
.home-intro-link:focus-visible span {
  transform: translateY(4px);
}

.showcase {
  padding: 1.25rem;
  background: var(--bg);
  scroll-margin-top: var(--nav-height);
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  max-width: 1600px;
  margin: 0 auto;
}

.showcase-item {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  background: #141414;
}

.showcase-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: brightness(0.82);
  transition: opacity 0.9s ease var(--delay, 0ms), transform 0.7s ease, filter 0.5s ease;
}

.showcase-item img.loaded { opacity: 1; }

.showcase-item:hover img,
.showcase-item:focus-visible img {
  transform: scale(1.04);
  filter: brightness(1);
}

.showcase-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 3rem 1rem 1rem;
  font-family: var(--font-serif);
  font-size: 1rem;
  letter-spacing: 0.14em;
  color: var(--white);
  text-shadow: 0 1px 12px rgba(0,0,0,0.8);
  background: linear-gradient(to top, rgba(13,13,13,0.8), rgba(13,13,13,0));
  pointer-events: none;
}

@media (max-width: 1100px) {
  .showcase-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 760px) {
  .home-intro {
    min-height: min(430px, 62vh);
    padding: calc(var(--nav-height) + 2rem) 1.25rem 2rem;
  }
  .home-intro-logo { width: min(310px, 78vw); margin-bottom: 1.4rem; }
  .home-intro-copy { max-width: 360px; }
  .home-intro-link { margin-top: 1.4rem; }
  .showcase { padding: 0.75rem; }
  .showcase-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .showcase-caption { font-size: 0.8rem; padding: 2rem 0.7rem 0.7rem; }
}

@media (max-width: 420px) {
  .showcase-grid { grid-template-columns: 1fr; }
}

/* Brand name in running text — mirrors the logo wordmark */
.brand {
  font-family: var(--font-serif);
  letter-spacing: 0.01em;
}

.brand-f {
  color: var(--accent);
  font-style: italic;
}

.footer-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
  opacity: 0.75;
  margin: 0 auto 0.4rem;   /* global `img { display: block }` defeats the footer's text-align */
}

.footer-logo:hover {
  opacity: 1;
}
.page-header {
  padding-top: calc(var(--nav-height) + 4rem);
  padding-bottom: 3rem;
  text-align: center;
  background: var(--bg);
}

.page-header h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--white);
}

/* --- Gallery ---------------------------------------------- */
.gallery-section {
  padding: 0 2.5rem 6rem;
  flex: 1;
}

.filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 3rem;
  padding: 0 0.5rem;
}

.filter-btn {
  padding: 0.6rem 1.4rem;
  min-height: 44px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 2px;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}

.filter-btn:hover,
.filter-btn:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  outline: none;
}

.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

.gallery-grid {
  columns: 3;
  column-gap: 1.2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.gallery-item {
  position: relative;
  break-inside: avoid;
  margin-bottom: 1.2rem;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  display: block;
  transition: transform 0.5s ease, filter 0.5s ease;
  filter: brightness(0.85);
}

.gallery-item:hover img,
.gallery-item:focus-within img {
  transform: scale(1.03);
  filter: brightness(1);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13, 13, 13, 0.55);
  display: flex;
  align-items: flex-end;
  padding: 1.2rem;
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery-item:hover .gallery-overlay,
.gallery-item:focus-within .gallery-overlay {
  opacity: 1;
}

.gallery-overlay span {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
}

.gallery-item.hidden {
  display: none;
}

/* --- Lightbox --------------------------------------------- */
.lightbox-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 200;
}

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 201;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.lightbox.open,
.lightbox-backdrop.open {
  display: flex;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 82vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 0 80px rgba(0,0,0,0.8);
}

.lightbox-caption {
  margin-top: 1rem;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: fixed;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  font-size: 2.5rem;
  line-height: 1;
  padding: 0.5rem;
  transition: color var(--transition);
  opacity: 0.7;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  opacity: 1;
  color: var(--accent);
}

.lightbox-close {
  top: 1.5rem;
  right: 2rem;
}

.lightbox-prev {
  left: 2rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
}

.lightbox-next {
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
}

/* --- About ------------------------------------------------ */
.about-section {
  padding: 4rem 2.5rem 6rem;
  flex: 1;
}

.about-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: start;
}

.about-photo {
  opacity: 0;
  transition: opacity 0.4s ease;
}
.about-photo.loaded { opacity: 1; }

.about-photo img {
  width: 100%;
  border-radius: 50% 40% 45% 35% / 40% 45% 35% 50%;
  filter: brightness(0.9) contrast(1.05) saturate(1.05);
  box-shadow: 0 12px 48px rgba(0,0,0,0.5), 0 0 0 4px rgba(200,169,110,0.15);
  transition: border-radius 0.6s ease;
  display: block;
}

.about-photo img:hover {
  border-radius: 42% 58% 52% 48% / 48% 42% 58% 52%;
}

/* Hide text content until loaded — prevents empty-field flash */
.about-text {
  opacity: 0;
  transition: opacity 0.3s ease;
}
.about-text.loaded { opacity: 1; }

.about-text h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 1.5rem;
  letter-spacing: 0.04em;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  font-size: 1rem;
  line-height: 1.8;
}

.about-gear {
  margin: 2.5rem 0;
  padding: 1.5rem;
  background: var(--bg-3);
  border-left: 2px solid var(--accent);
  border-radius: var(--radius);
}

.about-gear h3 {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.8rem;
}

.about-gear ul {
  padding-left: 0;
}

.about-gear li {
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 0.3rem 0;
  border-bottom: 1px solid var(--border);
}

.about-gear li:last-child {
  border-bottom: none;
}

/* --- Contact ---------------------------------------------- */
.contact-section {
  padding: 4rem 2.5rem 6rem;
  flex: 1;
}

.contact-container {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 5rem;
  align-items: start;
}

.contact-intro h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 1.5rem;
  letter-spacing: 0.04em;
}

.contact-intro p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.8;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-group label span {
  color: var(--accent);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg-3);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  outline: none;
  transition: border-color var(--transition);
  width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #555;
}

.form-group select option {
  background: var(--bg-3);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}

.form-group input.error,
.form-group textarea.error {
  border-color: #c0392b;
}

.field-error {
  font-size: 0.78rem;
  color: #c0392b;
  min-height: 1rem;
}

.form-notice {
  text-align: center;
  font-size: 0.85rem;
  padding: 0.5rem;
  min-height: 1.5rem;
}

.form-notice.success {
  color: #27ae60;
}

.form-notice.error {
  color: #c0392b;
}

/* --- Footer ----------------------------------------------- */
.footer {
  padding: 2.5rem;
  text-align: center;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.footer a {
  color: var(--text-muted);
  transition: color var(--transition);
}

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

.gallery-loading,
.gallery-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 4rem 2rem;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  column-span: all;   /* .gallery-grid is multi-column, not grid */
}

@media (max-width: 900px) {
  .gallery-grid {
    columns: 2;
  }

  .about-container,
  .contact-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about-photo img {
    max-width: 420px;
    margin: 0 auto;
  }
}

@media (max-width: 680px) {
  .navbar {
    padding: 0 1.2rem;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--bg-2);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li a {
    display: block;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
  }

  .nav-toggle {
    display: block;
  }

  .gallery-grid {
    columns: 1;
  }

  .gallery-section,
  .about-section,
  .contact-section {
    padding-left: 1.2rem;
    padding-right: 1.2rem;
  }

  .lightbox-prev { left: 0.5rem; }
  .lightbox-next { right: 0.5rem; }
}

/* Workshops filter link in gallery */
.workshops-filter-btn {
  text-decoration: none;
  display: inline-block;
  padding: 0.45rem 1.4rem;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background var(--transition), color var(--transition);
}
.workshops-filter-btn:hover {
  background: var(--accent);
  color: var(--bg);
}

/* ============================================================
   MOBILE FIXES — comprehensive overrides for small screens
   ============================================================ */

/* ── Global ─────────────────────────────────────────────────── */
@media (max-width: 480px) {
  body { font-size: 15px; }

  /* Prevent horizontal scroll everywhere */
  html, body { overflow-x: hidden; max-width: 100vw; }

  /* Bigger touch targets on buttons and links */
  .btn, button, a.btn {
    min-height: 44px;
    padding: 0.7rem 1.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* Form inputs bigger on mobile */
  input, select, textarea {
    font-size: 16px !important; /* prevents iOS zoom */
    min-height: 44px;
  }
}

/* ── Navbar ─────────────────────────────────────────────────── */
@media (max-width: 900px) {
  input, select, textarea { font-size: 16px !important; }

  .navbar { padding: 0 1rem; }

  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--bg-2);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--border);
    z-index: 99;
    max-height: calc(100vh - var(--nav-height));
    overflow-y: auto;
  }

  .nav-links.open { display: flex; }

  .nav-links li a {
    display: block;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
    min-height: 48px;
    line-height: 1;
    display: flex;
    align-items: center;
  }

  .nav-toggle {
    display: block;
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .logo-img { height: 36px; }
}

/* ── Section headings ───────────────────────────────────────── */
@media (max-width: 680px) {
  .section-title { font-size: 1.4rem; }
}

/* ── Gallery ────────────────────────────────────────────────── */
@media (max-width: 680px) {
  .gallery-grid   { columns: 1; column-gap: 0; }
  .gallery-section { padding-left: 0.75rem; padding-right: 0.75rem; }

  .filter-bar {
    gap: 0.5rem;
    padding: 0 0.75rem;
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.5rem;
  }
  .filter-bar::-webkit-scrollbar { display: none; }

  .filter-btn, .workshops-filter-btn {
    flex-shrink: 0;
    padding: 0.6rem 0.9rem;
    min-height: 44px;
    font-size: 0.7rem;
    white-space: nowrap;
  }

  .gallery-item { margin-bottom: 0.75rem; }
}

/* ── Lightbox ───────────────────────────────────────────────── */
@media (max-width: 680px) {
  .lightbox-img {
    max-width: 100vw;
    max-height: 75vh;
  }

  .lightbox-prev { left: 0.25rem; font-size: 2rem; }
  .lightbox-next { right: 0.25rem; font-size: 2rem; }
  .lightbox-close { top: 0.75rem; right: 0.75rem; font-size: 2rem; }

  .lightbox-actions { bottom: 2rem; }
  .lightbox-caption { font-size: 0.7rem; }
}

/* ── Page header ────────────────────────────────────────────── */
@media (max-width: 480px) {
  .page-header { padding-top: calc(var(--nav-height) + 2rem); padding-bottom: 1.5rem; }
  .page-header h1 { font-size: clamp(1.8rem, 8vw, 3rem); }
  .page-subtitle  { font-size: 0.78rem; }
}

/* ── Footer ─────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .footer { padding: 1.5rem 1rem; }
  .footer-logo { height: 36px; }
}

/* ============================================================
   WATERMARK — appears over all protected gallery images
   ============================================================ */

/* Applied to any container with .watermarked class */
.watermarked {
  position: relative;
}

.watermarked::after {
  content: attr(data-watermark);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: clamp(0.55rem, 1.8vw, 0.85rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.28);
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
  pointer-events: none;
  z-index: 4;
  writing-mode: horizontal-tb;
  transform: rotate(-30deg);
  user-select: none;
  -webkit-user-select: none;
}

/* Tiled watermark using SVG background — text set via JS */
.watermarked-tiled {
  position: relative;
}

.watermarked-tiled::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  user-select: none;
  -webkit-user-select: none;
  background-image: var(--watermark-bg, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='120'%3E%3Ctext x='50%25' y='50%25' dominant-baseline='middle' text-anchor='middle' transform='rotate(-30 110 60)' font-family='Arial,sans-serif' font-size='11' letter-spacing='3' fill='rgba(255,255,255,0.22)'%3E%C2%A9 onefstop.net%3C/text%3E%3C/svg%3E"));
  background-repeat: repeat;
  background-size: 220px 120px;
}

/* Lightbox watermark — larger, more visible */
.lightbox-img-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-watermark {
  position: fixed;
  inset: 0;
  z-index: 202;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='280' height='140'%3E%3Ctext x='50%25' y='50%25' dominant-baseline='middle' text-anchor='middle' transform='rotate(-30 140 70)' font-family='Arial,sans-serif' font-size='13' letter-spacing='4' fill='rgba(255,255,255,0.18)'%3E%C2%A9 onefstop.net%3C/text%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 280px 140px;
}

/* ── Touch device: disable hover-triggered layout shifts ──── */
@media (hover: none) {
  .mw-row:hover { background: none; padding-left: 0; }
  .manage-item:hover .manage-item-overlay { opacity: 0; }
  .gallery-item:hover img { transform: none; filter: brightness(0.85); }
}

/* ── Category strip — quick nav between main sections ──────── */
.cat-strip {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 0 1rem 1.5rem;
  background: var(--bg);
}

.cat-strip-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.1rem;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--bg-2);
  color: var(--text-muted);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.cat-strip-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(200,169,110,0.07);
}

.cat-strip-btn.active {
  border-color: var(--accent);
  background: rgba(200,169,110,0.12);
  color: var(--accent);
  font-weight: 600;
}

/* On narrow phones — scroll horizontally instead of wrapping to many rows */
@media (max-width: 600px) {
  .cat-strip {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.75rem;
  }
  .cat-strip::-webkit-scrollbar { display: none; }
  .cat-strip-btn { flex-shrink: 0; }
}
