/* ==========================================================================
   S3BC — S3 Builders and Consultancy
   Shared stylesheet
   ========================================================================== */

:root {
  --navy-900: #0a1a4a;
  --navy-800: #0f2170;
  --navy-700: #14308f;
  --blue-600: #1454c4;
  --blue-500: #1f6fe0;
  --teal-500: #12b8ae;
  --orange-500: #f2650a;
  --orange-600: #d9560a;

  --ink: #16192b;
  --ink-soft: #4a5169;
  --ink-mute: #757d95;
  --paper: #ffffff;
  --paper-tint: #f5f7fb;
  --paper-tint-2: #eef1f8;
  --border: #e1e5f0;

  --shadow-sm: 0 1px 2px rgba(15, 33, 112, 0.06), 0 1px 1px rgba(15, 33, 112, 0.04);
  --shadow-md: 0 8px 24px rgba(15, 33, 112, 0.10);
  --shadow-lg: 0 20px 48px rgba(15, 33, 112, 0.16);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --container: 1180px;
}

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

body {
  margin: 0;
  font-family: 'Libre Franklin', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Archivo', 'Libre Franklin', sans-serif;
  color: var(--navy-900);
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.25rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; color: var(--ink-soft); }

a { color: var(--blue-600); text-decoration: none; }
a:hover { color: var(--orange-500); }

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

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

.section { padding: 88px 0; }
.section--tight { padding: 56px 0; }
.section--tint { background: var(--paper-tint); }
.section--navy {
  background: linear-gradient(160deg, var(--navy-900), var(--navy-800) 60%, var(--navy-700));
  color: #fff;
}
.section--navy h2, .section--navy h3, .section--navy p { color: #fff; }
.section--navy p { color: rgba(255,255,255,0.78); }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange-500);
  margin-bottom: 12px;
}

.section-head { max-width: 640px; margin: 0 0 44px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--orange-500);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--orange-600); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-secondary {
  background: transparent;
  border-color: rgba(255,255,255,0.4);
  color: #fff;
}
.btn-secondary:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,0.08); }
.btn-outline {
  background: transparent;
  border-color: var(--navy-700);
  color: var(--navy-800);
}
.btn-outline:hover { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: 1.28rem;
  color: var(--navy-900);
}
.brand img { height: 38px; width: auto; }
.brand small {
  display: block;
  font-family: 'Libre Franklin', sans-serif;
  font-weight: 600;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: var(--ink-mute);
  margin-top: 2px;
}

.nav { display: flex; align-items: center; gap: 8px; }
.nav a {
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
}
.nav a:hover { color: var(--navy-900); background: var(--paper-tint-2); }
.nav a.is-active { color: var(--navy-900); background: var(--paper-tint-2); }
.nav-cta { margin-left: 8px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy-900);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- Hero ---------- */
.hero { padding: 64px 0 88px; overflow: hidden; }
.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.hero h1 { margin-bottom: 20px; }
.hero-lede { font-size: 1.12rem; max-width: 46ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-figure {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.hero-figure img { width: 100%; height: 100%; object-fit: cover; }

.hero-stats {
  display: flex;
  gap: 28px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.hero-stat strong {
  display: block;
  font-family: 'Archivo', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--navy-900);
}
.hero-stat span { font-size: 0.85rem; color: var(--ink-mute); }

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

.card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--blue-500); }

.icon-tile {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(140deg, var(--blue-600), var(--navy-800));
  margin-bottom: 18px;
  flex: none;
}
.icon-tile svg { width: 26px; height: 26px; stroke: #fff; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-tile--orange { background: linear-gradient(140deg, var(--orange-500), var(--orange-600)); }
.icon-tile--teal { background: linear-gradient(140deg, var(--teal-500), #0b8f88); }

.service-card h3 { margin-bottom: 8px; }
.service-card p { font-size: 0.96rem; margin-bottom: 0; }

/* ---------- Process steps ---------- */
.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.step { position: relative; padding-top: 8px; }
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--orange-500);
  display: block;
  margin-bottom: 10px;
}
.step h3 { font-size: 1.05rem; }
.step p { font-size: 0.92rem; }

/* ---------- Value / split ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; color: var(--ink); }
.checklist svg { flex: none; width: 20px; height: 20px; margin-top: 2px; stroke: var(--teal-500); fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Badge / pill ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--paper-tint-2);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy-800);
}

/* ---------- Placeholder blocks (for missing photography) ---------- */
.placeholder-block {
  position: relative;
  border-radius: var(--radius-md);
  border: 1.5px dashed var(--border);
  background:
    repeating-linear-gradient(135deg, var(--paper-tint) 0 14px, var(--paper-tint-2) 14px 28px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-mute);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  padding: 16px;
  min-height: 220px;
}

/* ---------- Testimonial ---------- */
.testimonial-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
}
.testimonial-card p.quote {
  font-family: 'Archivo', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy-900);
}
.testimonial-attr { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.testimonial-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(140deg, var(--blue-600), var(--teal-500));
  flex: none;
}
.testimonial-attr strong { display: block; font-size: 0.92rem; color: var(--navy-900); }
.testimonial-attr span { font-size: 0.82rem; color: var(--ink-mute); }

/* ---------- CTA band ---------- */
.cta-band {
  border-radius: var(--radius-lg);
  padding: 56px;
  background: linear-gradient(135deg, var(--navy-900), var(--blue-600));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { color: rgba(255,255,255,0.82); margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: rgba(255,255,255,0.72);
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand img { height: 34px; }
.footer-brand span { font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 1.15rem; color: #fff; }
.site-footer p { color: rgba(255,255,255,0.6); font-size: 0.92rem; }
.site-footer h4 { color: #fff; font-size: 0.92rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 16px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-links a { color: rgba(255,255,255,0.7); font-size: 0.92rem; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Page header (inner pages) ---------- */
.page-header {
  padding: 56px 0 48px;
  background: linear-gradient(160deg, var(--navy-900), var(--navy-800));
  color: #fff;
}
.page-header h1 { color: #fff; margin-bottom: 10px; }
.page-header p { color: rgba(255,255,255,0.78); max-width: 56ch; margin-bottom: 0; }
.breadcrumb { font-size: 0.85rem; color: rgba(255,255,255,0.55); margin-bottom: 16px; }
.breadcrumb a { color: rgba(255,255,255,0.75); }

/* ---------- Service detail rows ---------- */
.service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 56px 0;
  border-bottom: 1px solid var(--border);
}
.service-row:last-child { border-bottom: none; }
.service-row:nth-child(even) .service-row-media { order: -1; }
.service-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.service-tag {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--paper-tint-2);
  color: var(--navy-800);
}

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 18px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label {
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 6px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  font-family: inherit;
  font-size: 0.96rem;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(31, 111, 224, 0.15);
}
.field textarea { resize: vertical; min-height: 130px; }
.field-hint { font-size: 0.78rem; color: var(--ink-mute); margin-top: 4px; }
.form-status {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 600;
  display: none;
}
.form-status.is-success { display: block; background: #e7f7f2; color: #0b8f6b; border: 1px solid #b9ead9; }
.form-status.is-error { display: block; background: #fdecec; color: #c23a2b; border: 1px solid #f4c6c0; }
.form-status.is-pending { display: block; background: var(--paper-tint-2); color: var(--ink-soft); }

/* honeypot field */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.contact-info-list { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 18px; }
.contact-info-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-info-list .icon-tile { margin-bottom: 0; width: 44px; height: 44px; }
.contact-info-list .icon-tile svg { width: 20px; height: 20px; }
.contact-info-list strong { display: block; color: var(--navy-900); font-size: 0.95rem; }
.contact-info-list span, .contact-info-list a { font-size: 0.92rem; color: var(--ink-soft); }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.muted { color: var(--ink-mute); }
.note-banner {
  background: #fff7ea;
  border: 1px solid #f4dfa8;
  color: #8a6416;
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 0.88rem;
  margin-bottom: 28px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-figure { order: -1; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .service-row { grid-template-columns: 1fr; gap: 28px; }
  .service-row:nth-child(even) .service-row-media { order: 0; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav { position: fixed; inset: 76px 0 0 0; background: #fff; flex-direction: column; align-items: stretch; padding: 20px; gap: 4px; transform: translateX(100%); transition: transform 0.22s ease; overflow-y: auto; }
  .nav.is-open { transform: translateX(0); }
  .nav a { padding: 14px 16px; font-size: 1.02rem; }
  .nav-cta { margin: 12px 0 0; }
  .nav-toggle { display: block; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .form-row-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 36px; }
  .section { padding: 56px 0; }
}

/* ==========================================================================
   Projects / portfolio
   ========================================================================== */
.project-filter {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px;
  background: var(--paper-tint-2);
  border-radius: 999px;
  margin-bottom: 48px;
}
.project-filter-btn {
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink-soft);
  background: transparent;
  border: none;
  border-radius: 999px;
  padding: 10px 20px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.project-filter-btn:hover { color: var(--navy-900); }
.project-filter-btn.is-active { background: var(--navy-800); color: #fff; }

.project-group { margin-bottom: 72px; }
.project-group:last-child { margin-bottom: 0; }
.project-group[hidden] { display: none; }
.project-group-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: end;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.project-group-head h2 { margin-bottom: 0; }
.project-group-head p { margin-bottom: 0; }

.project-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.project-card.has-gallery { cursor: pointer; }
.project-card.has-gallery:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--blue-500); }
.project-card.has-gallery:focus-visible { outline: 3px solid var(--blue-500); outline-offset: 2px; }

.project-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--paper-tint-2);
  overflow: hidden;
}
.project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.project-media img + img { display: none; }   /* only the first photo shows on the card */
.project-card.has-gallery:hover .project-media img { transform: scale(1.03); }
.project-media.is-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(135deg, var(--paper-tint) 0 14px, var(--paper-tint-2) 14px 28px);
  border-bottom: 1.5px dashed var(--border);
}
.project-media.is-placeholder span {
  color: var(--ink-mute);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
}
.project-media-chip {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(10, 26, 74, 0.82);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
}
.project-media-chip svg { width: 14px; height: 14px; stroke: #fff; fill: none; stroke-width: 2; }
.project-media-label {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--navy-900);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: var(--shadow-sm);
}

.project-body { padding: 22px 24px 26px; }
.project-body h3 { margin: 10px 0 4px; }
.project-body p { font-size: 0.94rem; margin-bottom: 0; }
.project-meta { font-size: 0.85rem !important; color: var(--ink-mute) !important; margin-bottom: 10px !important; font-weight: 600; }
.project-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}
.project-badge--new { background: #e3effd; color: var(--blue-600); }
.project-badge--reno { background: #fdeee3; color: var(--orange-600); }

/* Lightbox gallery */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(6, 14, 40, 0.94);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 72px 24px;
}
.lightbox.is-open { display: flex; }
.lightbox-figure { margin: 0; max-width: 1100px; width: 100%; display: flex; flex-direction: column; align-items: center; min-height: 0; flex: 1; }
.lightbox-img-wrap { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; width: 100%; }
.lightbox-img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--radius-sm); }
.lightbox-caption {
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  margin-top: 14px;
  text-align: center;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}
.lightbox-caption strong { color: #fff; }
.lightbox-caption .project-media-label { position: static; box-shadow: none; }
.lightbox-count { color: rgba(255,255,255,0.55); font-size: 0.85rem; }
.lightbox-btn {
  position: absolute;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}
.lightbox-btn:hover { background: rgba(255,255,255,0.22); }
.lightbox-btn svg { width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.lightbox-close { top: 12px; right: 16px; }
.lightbox-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lightbox.is-single .lightbox-prev, .lightbox.is-single .lightbox-next { display: none; }
body.lightbox-open { overflow: hidden; }

@media (max-width: 980px) {
  .project-group-head { grid-template-columns: 1fr; gap: 10px; }
}
@media (max-width: 720px) {
  .project-filter { margin-bottom: 36px; }
  .project-filter-btn { padding: 9px 14px; font-size: 0.86rem; }
  .lightbox { padding: 60px 8px 16px; }
  .lightbox-prev, .lightbox-next { top: auto; bottom: 14px; transform: none; }
  .lightbox-prev { left: 16px; }
  .lightbox-next { right: 16px; }
  .lightbox-figure { padding-bottom: 56px; }
}

/* Before / after split cover */
.project-media.is-split { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; background: #fff; }
.project-media.is-split > .split-half { position: relative; overflow: hidden; }
.project-media.is-split > .split-half img { display: block !important; }
.project-media.is-split .project-media-label { top: auto; bottom: 12px; left: 12px; }
.project-media.is-split .split-half--after .project-media-label { background: var(--orange-500); color: #fff; }
.project-media.is-split .project-media-chip { bottom: auto; top: 12px; }
.project-group { scroll-margin-top: 96px; }
