:root {
  --navy: #063f72;
  --navy-deep: #052d52;
  --turquoise: #08c9c4;
  --ink: #17324a;
  --muted: #687d8e;
  --line: rgba(6, 63, 114, 0.12);
  --white: #fff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0%, rgba(8, 201, 196, 0.16), transparent 30rem),
    linear-gradient(180deg, #f7fcfd 0%, #eef7fa 100%);
}

body.modal-open { overflow: hidden; }
.shell { width: min(100% - 32px, 1040px); margin: 0 auto; padding: 30px 0 64px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo { width: min(220px, 52vw); height: auto; display: block; mix-blend-mode: multiply; }
.back {
  color: var(--navy);
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
}
.hero { text-align: center; padding: 64px 16px 38px; }
.eyebrow { color: #008f91; font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
h1 { margin: 12px 0; color: var(--navy-deep); font-size: clamp(34px, 7vw, 62px); line-height: 1; letter-spacing: -.045em; }
.hero p { max-width: 620px; margin: 0 auto; color: var(--muted); font-size: clamp(16px, 3vw, 19px); line-height: 1.6; }
.filters { display: flex; justify-content: center; gap: 8px; margin: -12px 0 28px; }
.filter {
  appearance: none;
  padding: 10px 18px;
  color: var(--navy);
  background: rgba(255,255,255,.8);
  border: 1px solid var(--line);
  border-radius: 999px;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}
.filter.active { color: var(--white); background: var(--navy); border-color: var(--navy); }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 20px; }
.art-card {
  appearance: none;
  padding: 0;
  overflow: hidden;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 18px 48px rgba(5, 45, 82, .09);
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.art-card:hover { transform: translateY(-4px); box-shadow: 0 24px 60px rgba(5, 45, 82, .15); }
.art-image-wrap { display: block; overflow: hidden; background: #e8f2f5; }
.art-image-wrap img { width: 100%; height: auto; display: block; }
.art-copy { display: grid; gap: 5px; padding: 17px 18px 19px; }
.art-copy strong { font-size: 15px; }
.art-copy small { color: var(--muted); }
.format-badge { justify-self: start; margin-top: 6px; padding: 5px 9px; color: #007d80; background: rgba(8,201,196,.12); border-radius: 999px; font-size: 11px; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.empty {
  max-width: 680px;
  margin: 12px auto 0;
  padding: 50px 28px;
  text-align: center;
  background: rgba(255, 255, 255, .82);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 20px 55px rgba(5, 45, 82, .08);
}
.empty-mark {
  width: 58px;
  height: 58px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  color: var(--white);
  font-weight: 850;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--navy), var(--turquoise));
}
.empty h2 { margin: 0 0 8px; color: var(--navy-deep); }
.empty p { margin: 0; color: var(--muted); line-height: 1.55; }
.consult {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: 38px;
  padding: 24px 26px;
  color: var(--white);
  background: linear-gradient(135deg, var(--navy-deep), var(--navy));
  border-radius: 24px;
}
.consult strong { display: block; font-size: 18px; }
.consult span { display: block; margin-top: 4px; color: rgba(255,255,255,.72); font-size: 14px; }
.consult a { flex: 0 0 auto; color: var(--navy-deep); background: var(--turquoise); text-decoration: none; font-weight: 850; padding: 13px 18px; border-radius: 999px; }
.lightbox { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 24px; background: rgba(2, 22, 39, .88); }
.lightbox[hidden] { display: none; }
.lightbox-inner { position: relative; width: min(92vw, 620px); max-height: 92vh; overflow: auto; background: var(--white); border-radius: 24px; }
.lightbox img { width: 100%; height: auto; display: block; }
.lightbox-copy { padding: 17px 20px 20px; }
.lightbox-copy strong { display: block; color: var(--navy-deep); }
.lightbox-copy small { color: var(--muted); }
.lightbox-actions { display: flex; gap: 10px; margin-top: 16px; }
.lightbox-actions button,
.lightbox-actions a {
  flex: 1;
  appearance: none;
  padding: 11px 14px;
  border-radius: 999px;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.lightbox-actions button { color: var(--white); background: var(--navy); border: 1px solid var(--navy); }
.lightbox-actions a { color: var(--navy); background: var(--white); border: 1px solid var(--line); }
.lightbox-close { position: absolute; top: 12px; right: 12px; width: 42px; height: 42px; border: 0; border-radius: 50%; color: var(--white); background: rgba(2, 22, 39, .78); font-size: 25px; cursor: pointer; }

@media (max-width: 760px) {
  .shell { width: min(100% - 24px, 1040px); padding-top: 20px; }
  .back { padding: 9px 12px; font-size: 12px; }
  .hero { padding: 48px 8px 30px; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .art-card { border-radius: 18px; }
  .art-copy { padding: 13px 14px 15px; }
  .consult { align-items: flex-start; flex-direction: column; }
}

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