/* ===========================================================================
   Cryton Moyo Painters — theme
   Plain CSS. Blue & white. Custom properties below; no build step.
   =========================================================================== */

:root {
  /* Blues */
  --blue-950: #0f1b3d;
  --blue-900: #16265c;
  --blue-800: #1e3a8a;   /* primary */
  --blue-700: #274bb0;
  --blue-600: #3b82f6;   /* accent */
  --blue-500: #60a5fa;
  --blue-100: #dbe6fb;
  --blue-50:  #f4f6fb;   /* alt surface */

  --ink:   #17203a;      /* headings */
  --body:  #47506a;      /* body text */
  --muted: #6b7590;
  --line:  #e3e8f4;
  --white: #ffffff;

  --ok: #16a34a;

  --font-head: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 4px 14px rgba(23, 37, 84, .08);
  --shadow: 0 14px 40px rgba(23, 37, 84, .12);
  --wrap: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.14;
  margin: 0 0 .5em;
  font-weight: 700;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.1rem, 1.4rem + 3.2vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 1.3rem + 1.9vw, 2.5rem); }
h3 { font-size: 1.24rem; }

p { margin: 0 0 1rem; }
a { color: var(--blue-700); text-decoration: none; }
a:hover { color: var(--blue-600); }

strong { color: var(--ink); font-weight: 650; }

/* ---------- layout ------------------------------------------------------- */

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 1.4rem; }

.section { padding: clamp(3.4rem, 2rem + 6vw, 6rem) 0; }
.section--alt { background: var(--blue-50); }
.section--navy {
  background: radial-gradient(1200px 500px at 80% -10%, #22347e 0%, transparent 60%), var(--blue-900);
  color: #cdd8ef;
}
.section--navy h2, .section--navy h3 { color: #fff; }
.section--navy .lead { color: #dce4f7; }

.section-head { max-width: 40rem; margin-bottom: 2.6rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-head);
  font-weight: 700; font-size: .8rem; letter-spacing: .13em; text-transform: uppercase;
  color: var(--blue-600); margin: 0 0 .9rem;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; display: inline-block; }
.section--navy .eyebrow { color: var(--blue-500); }

.lead { font-size: 1.16rem; color: var(--body); }
.center { text-align: center; }
.mt-1 { margin-top: .8rem; }
.mt-2 { margin-top: 1.6rem; }
.accent { color: var(--blue-600); }

/* ---------- buttons ---------------------------------------------------- */

.btn {
  --btn-bg: var(--blue-600);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-head); font-weight: 600; font-size: .98rem;
  padding: .85rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
  background: var(--btn-bg); color: var(--btn-fg); cursor: pointer;
  box-shadow: 0 10px 22px rgba(59, 130, 246, .28);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  white-space: nowrap;
}
.btn:hover { background: var(--blue-700); color: #fff; transform: translateY(-1px); box-shadow: 0 14px 28px rgba(59, 130, 246, .34); }
.btn:active { transform: translateY(0); }

.btn--ghost { background: transparent; color: var(--blue-800); border-color: var(--blue-100); box-shadow: none; }
.btn--ghost:hover { background: var(--blue-50); color: var(--blue-800); border-color: var(--blue-500); }

.btn--light { background: #fff; color: var(--blue-800); box-shadow: 0 10px 22px rgba(0,0,0,.18); }
.btn--light:hover { background: #eef3ff; color: var(--blue-900); }

.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); box-shadow: none; }
.btn--outline-light:hover { background: rgba(255,255,255,.1); color: #fff; }

.btn--lg { padding: 1.02rem 2rem; font-size: 1.05rem; }
.btn--sm { padding: .55rem 1.05rem; font-size: .86rem; box-shadow: 0 6px 14px rgba(59,130,246,.24); }

.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---------- header / nav --------------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 1.5rem; height: 76px; }

.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--ink); font-family: var(--font-head); }
.brand svg { width: 38px; height: 38px; flex: none; }
.brand span { display: flex; flex-direction: column; line-height: 1.08; font-weight: 700; font-size: 1.06rem; letter-spacing: -.01em; }
.brand b { color: var(--blue-600); font-weight: 800; }
.brand small { font-size: .68rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }

.nav-links { list-style: none; display: flex; gap: .3rem; margin: 0 0 0 auto; padding: 0; }
.nav-links a {
  position: relative; display: block; padding: .55rem .95rem; border-radius: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: .95rem; color: var(--body);
}
.nav-links a:hover { color: var(--blue-800); background: var(--blue-50); }
.nav-links a.is-active { color: var(--blue-800); }
.nav-links a.is-active::after {
  content: ""; position: absolute; left: .95rem; right: .95rem; bottom: .12rem; height: 2px;
  background: var(--blue-600); border-radius: 2px;
}

.nav-cta { display: flex; align-items: center; gap: .6rem; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; cursor: pointer; padding: 0; position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 50%; width: 20px; height: 2px; background: var(--ink);
  border-radius: 2px; transform: translateX(-50%); transition: transform .18s ease, opacity .18s ease;
}
.nav-toggle span { top: 50%; margin-top: -1px; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav.open .nav-toggle span { background: transparent; }
.nav.open .nav-toggle span::before { transform: translateX(-50%) translateY(6px) rotate(45deg); }
.nav.open .nav-toggle span::after { transform: translateX(-50%) translateY(-6px) rotate(-45deg); }

/* ---------- hero -------------------------------------------------------- */

.hero { position: relative; overflow: hidden; background: var(--blue-50); }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(680px 340px at 88% 6%, rgba(59,130,246,.16), transparent 70%),
    linear-gradient(180deg, #fff 0%, var(--blue-50) 100%);
}
.hero .wrap { position: relative; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center;
  padding: clamp(3rem, 1.6rem + 6vw, 5.6rem) 0 clamp(4.6rem, 3rem + 6vw, 6.6rem);
}
.hero h1 span.accent { display: block; }
.hero .lead { max-width: 34rem; }

.hero-points { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; gap: .7rem; }
.hero-points li { display: flex; align-items: center; gap: .7rem; font-weight: 500; color: var(--body); }
.hero-points svg { width: 22px; height: 22px; color: var(--blue-600); flex: none; }

.hero-card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: 22px;
  box-shadow: var(--shadow); padding: 1.4rem;
}
.hero-card .frame { border-radius: 16px; overflow: hidden; background: linear-gradient(160deg, #1e3a8a, #16265c); }
.hero-card figcaption {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  margin-top: 1rem; padding: 0 .4rem; font-size: .9rem; color: var(--muted);
}
.hero-card .pill {
  font-family: var(--font-head); font-weight: 700; font-size: .78rem; color: var(--blue-800);
  background: var(--blue-100); padding: .3rem .7rem; border-radius: 999px;
}

/* ---------- trust strip ------------------------------------------------- */

.trust {
  margin-top: -3.2rem; position: relative; z-index: 2;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.trust div { padding: 1.3rem 1.4rem; text-align: center; border-right: 1px solid var(--line); }
.trust div:last-child { border-right: 0; }
.trust b { display: block; font-family: var(--font-head); font-size: clamp(1.1rem, 4.4vw, 1.35rem); color: var(--blue-800); line-height: 1.1; }
.trust span { display: block; margin-top: .3rem; font-size: .84rem; color: var(--muted); }

/* ---------- grids / cards -------------------------------------------------- */

.grid { display: grid; gap: 1.3rem; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow-sm);
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--blue-100); }
.card h3 { margin-bottom: .4rem; }
.card p { margin: 0; font-size: .98rem; }
.card .ico {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: var(--blue-50); color: var(--blue-600); margin-bottom: 1rem;
}
.card .ico svg { width: 26px; height: 26px; }

.card--navy {
  background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.12); box-shadow: none;
}
.card--navy:hover { border-color: rgba(255,255,255,.28); }
.card--navy h3 { color: #fff; }
.card--navy p { color: #c3cfec; }
.card--navy .ico { background: rgba(96,165,250,.16); color: #9cc2ff; }

/* ---------- steps ----------------------------------------------------------- */

.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 1.1rem; grid-template-columns: repeat(4, 1fr); }
.steps li {
  counter-increment: s; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.3rem; box-shadow: var(--shadow-sm); position: relative;
}
.steps li::before {
  content: counter(s); position: absolute; top: -14px; left: 1.3rem;
  width: 34px; height: 34px; border-radius: 10px; background: var(--blue-600); color: #fff;
  font-family: var(--font-head); font-weight: 700; display: grid; place-items: center; font-size: .95rem;
  box-shadow: 0 8px 16px rgba(59,130,246,.32);
}
.steps h3 { font-size: 1.06rem; margin: .5rem 0 .3rem; }
.steps p { margin: 0; font-size: .92rem; }

/* ---------- split -------------------------------------------------------- */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.split + .split { margin-top: clamp(2.6rem, 1.6rem + 4vw, 4.5rem); }
.split.reverse .split-media { order: -1; }

.split-media {
  border-radius: var(--radius); overflow: hidden; background: linear-gradient(160deg, #1e3a8a, #16265c);
  box-shadow: var(--shadow); min-height: 260px; display: grid; place-items: center; padding: 1.5rem;
}

.checklist { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; gap: .7rem; }
.checklist li { display: flex; gap: .7rem; align-items: flex-start; }
.checklist svg { width: 22px; height: 22px; color: var(--blue-600); flex: none; margin-top: .18rem; }
.section--navy .checklist li { color: #d3ddf5; }
.section--navy .checklist svg { color: var(--blue-500); }

/* ---------- areas ------------------------------------------------------------ */

.area-list { columns: 2; column-gap: 2.5rem; list-style: none; padding: 0; margin: 1.4rem 0 0; }
.area-list li { break-inside: avoid; padding: .5rem 0 .5rem 1.6rem; position: relative; }
.area-list li::before {
  content: ""; position: absolute; left: 0; top: .95rem; width: 8px; height: 8px; border-radius: 50%;
  background: var(--blue-500);
}
.section--navy .area-list li { color: #d3ddf5; border-bottom: 1px solid rgba(255,255,255,.08); }

/* ---------- gallery ---------------------------------------------------------- */

.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.shot {
  margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform .14s ease, box-shadow .14s ease;
}
.shot:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.shot .img { aspect-ratio: 4 / 3; background: linear-gradient(160deg, #274bb0, #16265c); position: relative; }
.shot .img svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.shot figcaption { padding: 1rem 1.15rem 1.2rem; }
.shot .tag {
  font-family: var(--font-head); font-weight: 700; font-size: .72rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--blue-600);
}
.shot h3 { font-size: 1.02rem; margin: .25rem 0 .3rem; }
.shot p { margin: 0; font-size: .9rem; color: var(--muted); }

/* ---------- CTA band ------------------------------------------------------- */

.cta-band {
  background: linear-gradient(120deg, var(--blue-800), var(--blue-600));
  color: #fff; border-radius: var(--radius); padding: clamp(2rem, 1.4rem + 3vw, 3.2rem);
  display: flex; align-items: center; justify-content: space-between; gap: 1.6rem; flex-wrap: wrap;
  box-shadow: var(--shadow);
}
.cta-band h2 { color: #fff; margin: 0 0 .3rem; }
.cta-band p { color: #dfe9ff; margin: 0; }

/* ---------- page hero / breadcrumb -------------------------------------- */

.page-hero { background: var(--blue-50); border-bottom: 1px solid var(--line); padding: clamp(2.4rem, 1.6rem + 4vw, 4rem) 0; }
.page-hero h1 { margin-bottom: .4rem; }
.page-hero p { max-width: 46rem; font-size: 1.1rem; margin: 0; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: .8rem; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--blue-600); }

/* ---------- FAQ ----------------------------------------------------------- */

.faq { display: grid; gap: .8rem; max-width: 48rem; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 1.3rem;
  box-shadow: var(--shadow-sm);
}
.faq summary {
  list-style: none; cursor: pointer; padding: 1.1rem 2rem 1.1rem 0; position: relative;
  font-family: var(--font-head); font-weight: 600; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; color: var(--blue-600); font-weight: 400; line-height: 1;
}
.faq details[open] summary::after { content: "\2013"; }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq p { margin: 1rem 0; font-size: .98rem; }

/* ---------- contact ---------------------------------------------------------- */

.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem; align-items: start; }

.info-list { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; gap: 1.1rem; }
.info-list li { display: flex; gap: .9rem; align-items: flex-start; }
.info-list .ico {
  width: 42px; height: 42px; border-radius: 11px; background: var(--blue-50); color: var(--blue-600);
  display: grid; place-items: center; flex: none;
}
.info-list .ico svg { width: 22px; height: 22px; }
.info-list strong { display: block; }
.info-list a { color: var(--body); }
.info-list a:hover { color: var(--blue-600); }

.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.map-embed iframe { width: 100%; height: 300px; border: 0; }

/* ---------- forms ----------------------------------------------------------- */

.form-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem;
  box-shadow: var(--shadow);
}
.field { margin-bottom: 1rem; }
.field.row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { display: block; font-family: var(--font-head); font-weight: 600; font-size: .86rem; color: var(--ink); margin-bottom: .35rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .7rem .85rem;
  transition: border-color .12s ease, box-shadow .12s ease;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(59,130,246,.16);
}
.form-note { font-size: .85rem; color: var(--muted); margin: .9rem 0 0; }
.form-status.is-ok { color: var(--ok); }

/* ---------- footer ------------------------------------------------------------ */

.site-footer { background: var(--blue-950); color: #b9c4e2; padding: 3.4rem 0 1.8rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem; }
.site-footer .brand { color: #fff; }
.site-footer .brand small { color: #8ea0c8; }
.site-footer h4 { color: #fff; font-size: .95rem; margin: 0 0 .8rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.site-footer a { color: #b9c4e2; font-size: .93rem; }
.site-footer a:hover { color: #fff; }
.site-footer p { font-size: .93rem; color: #9aa8cd; }
.footer-bottom {
  margin-top: 2.6rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: .83rem; color: #8595bd;
}

/* ---------- responsive ---------------------------------------------------- */

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .hero-card { max-width: 460px; }
  .grid.cols-3 { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 1.8rem; }
  .split.reverse .split-media { order: 0; }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.6rem; }
  .trust { grid-template-columns: 1fr 1fr; }
  .trust div:nth-child(2) { border-right: 0; }
  .trust div:nth-child(1), .trust div:nth-child(2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 860px) {
  .nav { height: 66px; }
  .brand svg { width: 32px; height: 32px; }
  .brand small { display: none; }
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; margin: 0; padding: .6rem 1.4rem 1.2rem;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: transform .18s ease, opacity .18s ease;
  }
  .nav.open .nav-links { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links a { padding: .85rem .2rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-links a.is-active::after { display: none; }
  .nav-cta .btn--sm { padding: .5rem .9rem; font-size: .82rem; box-shadow: none; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .grid.cols-3, .grid.cols-2, .steps, .gallery-grid, .footer-grid { grid-template-columns: 1fr; }
  .field.row { grid-template-columns: 1fr; }
  .trust { grid-template-columns: 1fr; }
  .trust div { border-right: 0; border-bottom: 1px solid var(--line); }
  .trust div:last-child { border-bottom: 0; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 380px) {
  .nav-cta .btn--sm { display: none; }
}

/* ===========================================================================
   Page loader — a paint roller rides along a curve, laying down the line
   behind it, then the home page is revealed. The roller-follows-the-path
   motion is driven by the inline <script> after the #page-loader div
   (getPointAtLength on the stroke), so there are no CSS keyframes here.

   Home page only, and only the first visit per browser session: the inline
   <head> script adds html.loading just once, and this rule is what makes the
   overlay show. No overflow:hidden lock — the fixed opaque overlay already
   covers everything, and locking scroll makes the page jump sideways by the
   scrollbar width the moment it's released. (Same call as the SafeList site.)
   =========================================================================== */

.page-loader {
  position: fixed; inset: 0; z-index: 9999;
  display: none; flex-direction: column; align-items: center; justify-content: center; gap: 1.1rem;
  background: var(--blue-50);
  transition: opacity .45s ease;
}
html.loading .page-loader { display: flex; }
.page-loader.is-hiding { opacity: 0; pointer-events: none; }

.pl-art { width: 300px; max-width: 74vw; height: auto; overflow: visible; }
.pl-stroke { fill: none; stroke: var(--blue-600); stroke-width: 22; stroke-linecap: round; }
.pl-roller { will-change: transform; }

.pl-word {
  font-family: var(--font-head); font-weight: 800; font-size: 1.5rem; letter-spacing: -.01em;
  color: var(--ink); opacity: 0; transition: opacity .5s ease;
}
.pl-word.show { opacity: 1; }
.pl-word b { color: var(--blue-600); }
.pl-word small { display: block; font-size: .62rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); margin-top: .2rem; }

@media (prefers-reduced-motion: reduce) {
  .pl-word { transition: none; }
  .page-loader { transition-duration: .2s; }
}

/* ===========================================================================
   Gallery page — masonry of real photos, category filter, lightbox
   =========================================================================== */

.gallery-tools { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2rem; }
.gallery-filter {
  font-family: var(--font-head); font-weight: 600; font-size: .9rem;
  padding: .5rem 1.05rem; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--body); cursor: pointer; transition: all .12s ease;
}
.gallery-filter:hover { border-color: var(--blue-500); color: var(--blue-800); }
.gallery-filter.is-active { background: var(--blue-600); border-color: var(--blue-600); color: #fff; }

.masonry { column-count: 3; column-gap: 1rem; }
.masonry figure {
  break-inside: avoid; margin: 0 0 1rem; position: relative; overflow: hidden;
  border-radius: var(--radius-sm); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  cursor: zoom-in; background: var(--blue-50);
}
.masonry figure.is-hidden { display: none; }
.masonry img { width: 100%; height: auto; display: block; transition: transform .3s ease; }
.masonry figure:hover img { transform: scale(1.03); }
.masonry figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.4rem .9rem .7rem; color: #fff; font-size: .82rem; font-weight: 500;
  background: linear-gradient(to top, rgba(11, 18, 40, .82), transparent);
  opacity: 0; transform: translateY(6px); transition: opacity .2s ease, transform .2s ease;
}
.masonry figure:hover figcaption { opacity: 1; transform: translateY(0); }
.masonry .tag {
  display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: .64rem;
  letter-spacing: .09em; text-transform: uppercase; color: var(--blue-500); margin-bottom: .15rem;
}

@media (max-width: 900px) { .masonry { column-count: 2; } }
@media (max-width: 560px) {
  .masonry { column-count: 1; }
  .masonry figcaption { opacity: 1; transform: none; }
}

.lightbox {
  position: fixed; inset: 0; z-index: 9998; display: none;
  align-items: center; justify-content: center; padding: 3vh 3vw;
  background: rgba(9, 14, 30, .92);
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 100%; max-height: 94vh; border-radius: 8px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lightbox-close {
  position: absolute; top: 1.1rem; right: 1.4rem; width: 44px; height: 44px;
  border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff;
  font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.lightbox-close:hover { background: rgba(255,255,255,.22); }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.12); color: #fff; font-size: 1.6rem; cursor: pointer;
}
.lightbox-nav:hover { background: rgba(255,255,255,.22); }
.lightbox-prev { left: 1.2rem; }
.lightbox-next { right: 1.2rem; }
.lightbox-cap {
  position: absolute; left: 0; right: 0; bottom: 1.1rem; text-align: center;
  color: #dbe6f4; font-size: .9rem; padding: 0 1rem;
}
@media (max-width: 560px) { .lightbox-nav { top: auto; bottom: 1rem; transform: none; } .lightbox-prev { left: 30%; } .lightbox-next { right: 30%; } }
