/* ==========================================================================
   YOKLA — Nábytok / Furniture — Global Stylesheet
   ========================================================================== */

:root {
  --cream: #F7F2E6;
  --cream-soft: #FBF8F1;
  --cream-deep: #EFE5CE;
  --navy: #0D32A7;
  --navy-2: #3352B5;
  --navy-soft: #EBEEF7;
  --orange: #E8762E;
  --orange-dark: #C85F1E;
  --ink: #251F19;
  --ink-soft: #6B6255;
  --white: #FFFFFF;
  --line: rgba(37, 31, 25, 0.1);
  --shadow: 0 20px 45px rgba(13, 50, 167, 0.12);
  --shadow-sm: 0 8px 20px rgba(13, 50, 167, 0.08);
  --radius: 18px;
  --radius-sm: 10px;
  --container: 1180px;
  --nav-h: 84px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 .5em;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 4.5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; color: var(--ink-soft); }

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

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--orange);
  display: inline-block;
}

section { padding: 92px 0; }
.section-alt { background: var(--cream-deep); }

.lede {
  font-size: 1.15rem;
  max-width: 640px;
  color: var(--ink-soft);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--navy-2); transform: translateY(-2px); box-shadow: var(--shadow); }

.btn-outline {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--white); transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  color: var(--navy);
  padding: 14px 8px;
}
.btn-ghost:hover { color: var(--orange); }

.btn-eshop {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(232, 118, 46, 0.38);
  border-color: var(--orange);
}
.btn-eshop:hover {
  background: var(--orange-dark);
  border-color: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(232, 118, 46, 0.46);
}

/* ---------- Navbar ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(247, 242, 230, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.navbar {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--navy);
}
.brand img {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  box-shadow: var(--shadow-sm);
}
.brand span { letter-spacing: .02em; }
.brand small {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .93rem;
  color: var(--navy);
  transition: background .18s ease, color .18s ease;
}
.nav-links a:hover { background: var(--navy-soft); }
.nav-links a.active { background: var(--navy); color: var(--white); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lang-switch {
  display: flex;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}
.lang-switch button {
  border: none;
  background: transparent;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .04em;
  color: var(--ink-soft);
  padding: 6px 11px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .18s ease, color .18s ease;
}
.lang-switch button.active {
  background: var(--navy);
  color: var(--white);
}
.lang-switch button:hover:not(.active) { color: var(--navy); }

/* Duplicate lang-switch + E-SHOP button shown only inside the mobile menu
   (see @media 760px below) — hidden on desktop, where the ones in
   .nav-right are used instead. */
.nav-extra-mobile { display: none; }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--white);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: var(--navy);
  position: relative;
  transition: all .2s ease;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

/* ---------- Hero ---------- */
.hero {
  padding: 76px 0 96px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 56px;
  align-items: center;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}
.hero-art {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 28px;
  background: linear-gradient(155deg, var(--navy) 0%, var(--navy-2) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero-art::before {
  content: "";
  position: absolute;
  width: 220%;
  height: 220%;
  background: radial-gradient(circle at 30% 30%, rgba(232,118,46,.35), transparent 55%);
}
.hero-art svg { width: 62%; height: 62%; position: relative; z-index: 1; }
.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.stat-row strong {
  display: block;
  font-family: 'Fraunces', serif;
  font-size: 2.1rem;
  color: var(--navy);
}
.stat-row span {
  font-size: .85rem;
  color: var(--ink-soft);
}

/* ---------- Cards / Grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}
.card .icon-badge {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: var(--navy-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.card .icon-badge svg { width: 26px; height: 26px; }

.section-head {
  max-width: 680px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head.left { margin-left: 0; text-align: left; }

/* ---------- Gallery ---------- */
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 44px;
}
.filter-chip {
  border: 1px solid var(--line);
  background: var(--white);
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .88rem;
  cursor: pointer;
  color: var(--ink-soft);
  transition: all .18s ease;
}
.filter-chip.active, .filter-chip:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
#gallery-grid,
#home-projects {
  grid-template-columns: repeat(4, 1fr);
}
.piece {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease;
}
.piece:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.piece-art {
  aspect-ratio: 4/3.2;
  background: var(--cream-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.piece-art svg { width: 46%; height: 46%; }
.piece-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--orange);
  color: var(--white);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
}
.piece-body { padding: 22px 24px 26px; }
.piece-body h3 { margin-bottom: 4px; }
.piece-body .material { font-size: .84rem; color: var(--orange); font-weight: 600; margin-bottom: 10px; }

/* ---------- Quote / Testimonials ---------- */
.quote-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.quote-card .stars { color: var(--orange); letter-spacing: 3px; margin-bottom: 14px; font-size: 1rem; }
.quote-card .stars .empty { color: var(--line); }
.quote-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.quote-top .stars { margin-bottom: 0; }
.quote-date { font-size: .78rem; color: var(--ink-soft); white-space: nowrap; }
.quote-card p.msg { color: var(--ink-soft); font-size: .9rem; font-style: normal; }
.quote-person {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
}
.quote-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: 'Fraunces', serif;
}
.quote-person strong { display: block; color: var(--navy); font-size: .92rem; }
.quote-person span { font-size: .8rem; color: var(--ink-soft); }

.logo-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  justify-content: center;
  padding: 34px 0;
}
.logo-strip .cl {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--ink-soft);
  opacity: .65;
  letter-spacing: .02em;
}

/* ---------- Timeline (Vision page) ---------- */
.timeline {
  position: relative;
  padding-left: 34px;
  border-left: 2px solid var(--line);
}
.timeline-item { position: relative; padding-bottom: 46px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -41px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--orange);
  border: 3px solid var(--cream);
  box-shadow: 0 0 0 2px var(--orange);
}
.timeline-item .year {
  display: inline-block;
  font-weight: 700;
  color: var(--orange);
  font-size: .85rem;
  letter-spacing: .06em;
  margin-bottom: 6px;
}

.value-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
/* O nás has only 3 value cards, so it needs 3 columns on desktop instead of
   the 4 above — kept as its own class (not inline) so the mobile media
   queries below can still collapse it to 1 column like every other grid. */
.value-row-3 { grid-template-columns: repeat(3, 1fr); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--navy), var(--navy-2));
  border-radius: 28px;
  padding: 64px;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(232,118,46,.35), transparent 55%);
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255,255,255,.78); max-width: 520px; margin-left: auto; margin-right: auto; }
.cta-actions { display: flex; gap: 14px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }
.cta-band .btn-outline { border-color: rgba(255,255,255,.5); color: var(--white); }
.cta-band .btn-outline:hover { background: var(--white); color: var(--navy); }

/* ---------- Team ---------- */
.team-card { text-align: center; }
.team-photo {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: var(--radius);
  background: var(--navy-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  overflow: hidden;
}
.team-photo svg { width: 46%; height: 46%; }
.team-card h3 { margin-bottom: 2px; }
.team-card .role { color: var(--orange); font-weight: 600; font-size: .85rem; margin-bottom: 10px; }

/* ---------- Process steps ---------- */
.step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.step .num {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fraunces', serif;
  font-weight: 600;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.78);
  padding: 68px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 40px;
  padding-bottom: 46px;
  border-bottom: 1px solid rgba(255,255,255,.14);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-family: 'Fraunces', serif;
  font-size: 1.25rem;
  color: var(--white);
}
.footer-brand img { width: 38px; height: 38px; border-radius: 10px; }
.site-footer h4 {
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 11px; }
.site-footer a:hover { color: var(--orange); }
.site-footer p { color: rgba(255,255,255,.68); }
.foot-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 26px;
  font-size: .84rem;
  color: rgba(255,255,255,.56);
}
.social-row { display: flex; gap: 10px; }
.social-row a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
}
.social-row a:hover { background: var(--orange); }
.social-row svg { width: 16px; height: 16px; }

.newsletter-msg {
  flex-basis: 100%;
  font-size: .82rem;
  margin-top: 6px;
  color: #FFD9B3;
  min-height: 1em;
}
.newsletter-unsub {
  flex-basis: 100%;
  font-size: .78rem;
  margin-top: 10px;
  color: rgba(255,255,255,.55);
}
.newsletter-unsub a {
  color: rgba(255,255,255,.8);
  text-decoration: underline;
}
.newsletter-unsub a:hover { color: var(--orange); }

/* ---------- Standalone form messages (e.g. odhlasenie.html) ---------- */
.form-msg {
  font-size: .92rem;
  margin-top: 16px;
  min-height: 1.2em;
}
.form-msg-success { color: #1E7A3D; }
.form-msg-error { color: var(--orange-dark); }

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  padding: 58px 0 64px;
  border-bottom: 1px solid var(--line);
}
.breadcrumb {
  font-size: .85rem;
  color: var(--ink-soft);
  margin-bottom: 18px;
}
.breadcrumb a { color: var(--navy); font-weight: 600; }
.breadcrumb .sep { margin: 0 8px; opacity: .5; }

.page-hero .container { text-align: center; }
.page-hero .breadcrumb { text-align: left; }
.page-hero .lede { max-width: none; }

/* ---------- Contact block ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 22px;
  background: var(--white);
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}
.contact-item .ic {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--navy-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-item .ic svg { width: 20px; height: 20px; }
.contact-item strong { display: block; color: var(--navy); margin-bottom: 3px; }
.contact-item span, .contact-item a { color: var(--ink-soft); font-size: .93rem; }

/* ---------- Project tiles (dynamic gallery) ---------- */
.project-tile { cursor: pointer; }
.project-tile:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }
.piece-art img { width: 100%; height: 100%; object-fit: cover; }
.project-count { background: var(--navy); }

.gallery-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 64px 20px;
  color: var(--ink-soft);
}
.gallery-empty h3 { margin-bottom: 10px; }

/* ---------- Lightbox ---------- */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(13, 50, 167, .97);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
}
.lightbox-overlay.open { opacity: 1; pointer-events: auto; }
.lightbox-img-wrap { max-width: 90vw; max-height: 80vh; display: flex; }
.lightbox-img-wrap img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
.lightbox-close, .lightbox-nav {
  position: absolute;
  border: none;
  background: rgba(255,255,255,.12);
  color: white;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .18s ease;
  z-index: 2;
}
.lightbox-close svg, .lightbox-nav svg { width: 20px; height: 20px; }
.lightbox-close:hover, .lightbox-nav:hover { background: var(--orange); }
.lightbox-close { top: 22px; right: 22px; }
.lightbox-nav.prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox-nav.next { right: 18px; top: 50%; transform: translateY(-50%); }
.lightbox-meta {
  position: absolute;
  top: 22px;
  left: 22px;
  color: white;
  max-width: 60vw;
}
.lightbox-meta strong { display: block; font-family: 'Fraunces', serif; font-size: 1.15rem; }
.lightbox-meta span { font-size: .82rem; color: rgba(255,255,255,.65); }
.lightbox-counter {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: .82rem;
  font-weight: 600;
  background: rgba(255,255,255,.12);
  padding: 7px 18px;
  border-radius: 999px;
}

@media (max-width: 700px) {
  .lightbox-meta { max-width: 70vw; top: 16px; left: 16px; }
  .lightbox-close { top: 16px; right: 16px; width: 40px; height: 40px; }
  .lightbox-nav { width: 40px; height: 40px; }
  .lightbox-nav.prev { left: 8px; }
  .lightbox-nav.next { right: 8px; }
  .lightbox-counter { bottom: 14px; }
}

/* ---------- Utility ---------- */
.tac { text-align: center; }
.mt-0 { margin-top: 0; }
[data-i18n] { transition: opacity .12s ease; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 420px; margin: 0 auto; }
  .grid-3, .value-row, .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid, #gallery-grid, #home-projects { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 48px 28px; }
}

@media (max-width: 760px) {
  :root { --nav-h: 72px; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--cream-soft);
    flex-direction: column;
    align-items: stretch;
    padding: 14px 20px 24px;
    gap: 4px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(-130%);
    opacity: 0;
    pointer-events: none;
    transition: transform .25s ease, opacity .25s ease;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links a { display: block; text-align: left; padding: 13px 16px; }
  .nav-right { gap: 10px; }

  /* Keep the mobile header down to just the brand + hamburger — move the
     language switch and E-SHOP button into the slide-down menu instead. */
  .nav-right .lang-switch,
  .nav-right .btn-eshop { display: none; }
  .nav-extra-mobile {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 16px 16px 6px;
    margin-top: 8px;
    border-top: 1px solid var(--line);
  }
  .nav-extra-mobile .lang-switch { justify-content: center; }
  .nav-extra-mobile .btn-eshop {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    padding: 12px 20px;
  }
  .grid-3, .grid-2, .value-row, .footer-grid { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
  .cta-band { padding: 40px 22px; }
  .stat-row { grid-template-columns: 1fr; gap: 18px; }

  /* Keep the project gallery to 2 columns even on phones instead of
     collapsing to 1 — a single column means a lot of scrolling to browse
     the projects. Tighten spacing/text so tiles stay comfortable that narrow. */
  .gallery-grid, #gallery-grid, #home-projects { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .piece-body { padding: 14px 14px 16px; }
  .piece-body h3 { font-size: 1rem; }
  .piece-body .material { font-size: .76rem; margin-bottom: 6px; }
  .piece-tag { font-size: .6rem; padding: 4px 9px; top: 8px; left: 8px; }
}
