/* ============================================================
   Medina Masonry — v5 "coursed"
   Same black / white / signal-red direction as v4, rebuilt so
   the structure reads as masonry: the work section is laid as a
   running bond with mortar joints, and section facts are set as
   a drawing title block rather than stat tiles.
   (v3 "trade-luxe" is archived in themes/.)
   ============================================================ */

:root {
  --bg: #0d0d0d;
  --bg-alt: #131313;
  --card: #171717;
  --white: #f5f5f2;
  --dim: rgba(245, 245, 242, 0.64);
  --faint: rgba(245, 245, 242, 0.38);
  --rule: rgba(245, 245, 242, 0.22);
  --rule-strong: rgba(245, 245, 242, 0.45);
  --mortar: #24241f;          /* joint colour between wall tiles */
  --red: #e5312b;
  --verde: #2f7d5e;
  --ink-on-red: #fff;
  --font-display: "Anton", "Arial Narrow", Impact, sans-serif;
  --font-body: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --container: 1200px;
  --header-h: 74px;
  --joint: 4px;               /* mortar joint width */
  --ease-out: cubic-bezier(0.22, 0.61, 0.21, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scrollbar-color: #2a2a2a #0d0d0d; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--white);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* film grain — concrete texture */
body::after {
  content: "";
  position: fixed; inset: -50%;
  z-index: 90; pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

a { color: var(--white); }
a:hover { color: var(--red); }

::selection { background: var(--red); color: var(--ink-on-red); }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #3a3a3a; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--red); }

:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.container { width: min(var(--container), 100% - 2.5rem); margin-inline: auto; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

.skip-link {
  position: absolute; left: 50%; top: 0; transform: translate(-50%, -110%);
  z-index: 200; background: var(--red); color: var(--ink-on-red);
  padding: 0.7rem 1.2rem; font-weight: 700; font-size: 0.85rem;
  text-transform: uppercase; letter-spacing: 0.12em; text-decoration: none;
  transition: transform 0.2s var(--ease-out);
}
.skip-link:focus-visible { transform: translate(-50%, 0); color: var(--ink-on-red); }

/* ---------- tricolor ribbon ---------- */
.tricolor { display: flex; height: 5px; }
.tricolor span { flex: 1; }
.tricolor span:nth-child(1) { background: var(--red); }
.tricolor span:nth-child(2) { background: var(--white); }
.tricolor span:nth-child(3) { background: var(--verde); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: transparent;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}
.site-header.scrolled {
  background: rgba(13, 13, 13, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--rule);
}

.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding-block: 0.9rem;
}

.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--white); }
.brand-mark {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  background: var(--red); color: var(--ink-on-red);
  font-family: var(--font-display); font-size: 1.4rem; letter-spacing: 0.02em;
  position: relative;
  transition: transform 0.3s var(--ease-out);
}
.brand:hover .brand-mark { transform: rotate(-3deg); }
.brand-mark::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: linear-gradient(to right, var(--red) 33.3%, var(--white) 33.3% 66.6%, var(--verde) 66.6%);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--font-display); font-size: 1.05rem; font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; }
.brand-text small { font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--dim); }

.nav-links { display: flex; align-items: center; gap: 1.6rem; }
.nav-links > a:not(.btn) {
  text-decoration: none; color: var(--white); font-weight: 500; font-size: 0.92rem;
  text-transform: uppercase; letter-spacing: 0.1em;
  padding: 0.3rem 0;
  background: linear-gradient(var(--red), var(--red)) no-repeat 0 100% / 0 2px;
  transition: background-size 0.25s var(--ease-out);
}
.nav-links > a:not(.btn):hover { color: var(--white); background-size: 100% 2px; }

.nav-toggle {
  display: none;
  background: none; border: 0; color: var(--white); cursor: pointer; padding: 0.5rem;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.9rem 1.7rem;
  font-family: var(--font-body); font-size: 0.92rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  border: 2px solid transparent;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-solid { background: var(--red); color: var(--ink-on-red); }
.btn-solid:hover { background: var(--white); color: #0d0d0d; }
.btn-ghost { border-color: var(--rule-strong); color: var(--white); background: transparent; }
.btn-ghost:hover { border-color: var(--white); background: var(--white); color: #0d0d0d; }
.btn-small { padding: 0.5rem 1.05rem; font-size: 0.85rem; }
.btn-wide { width: 100%; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  margin-top: calc(-1 * var(--header-h));
  padding-top: var(--header-h);
  display: flex; align-items: flex-end;
  isolation: isolate;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background-image: url("images/hero.jpg");
  background-size: cover;
  background-position: 50% 28%;
}
/* Three scrims, each with one job: a solid bed under the header so the
   nav never floats on photo; a left-weighted wash so the headline has
   contrast while the stone stays legible on the right; and a bottom
   ramp that lands on the panel colour exactly, so there is no seam. */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg,
      rgba(10, 10, 10, 0.9) 0,
      rgba(10, 10, 10, 0.66) 88px,
      rgba(10, 10, 10, 0.16) 220px,
      rgba(10, 10, 10, 0) 34%),
    linear-gradient(100deg,
      rgba(10, 10, 10, 0.86) 0%,
      rgba(10, 10, 10, 0.62) 34%,
      rgba(10, 10, 10, 0.22) 62%,
      rgba(10, 10, 10, 0.08) 100%),
    linear-gradient(180deg,
      rgba(10, 10, 10, 0) 40%,
      rgba(13, 13, 13, 0.72) 82%,
      var(--bg-alt) 100%);
}
.hero-inner {
  padding-block: clamp(4rem, 9vh, 7rem) clamp(2.4rem, 6vh, 4.6rem);
  animation: riseIn 0.9s var(--ease-out) both;
  animation-delay: 0.15s;
}
@keyframes riseIn {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}
.hero-place {
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(245, 245, 242, 0.78);
}
.hero h1 {
  font-family: var(--font-display); font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(2.5rem, min(8vw, 10vh), 6.4rem);
  line-height: 0.95; letter-spacing: 0.005em;
  max-width: 15ch;
  margin-block: clamp(0.7rem, 1.8vh, 1rem) 0;
}
.hero-rule {
  width: clamp(120px, 22vw, 300px); height: 5px;
  background: var(--red);
  margin-block: clamp(1rem, 2.4vh, 1.6rem);
}
.lede { max-width: 50ch; font-size: clamp(1rem, min(1.4vw, 1.9vh), 1.12rem); color: rgba(245, 245, 242, 0.88); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: clamp(1.4rem, 3vh, 2.2rem); }

/* ---------- spec block (drawing title block) ---------- */
.spec { background: var(--bg-alt); }
.spec-list {
  display: grid; grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.spec-row {
  display: flex; flex-direction: column; gap: 0.35rem;
  padding: 1.5rem 1.5rem 1.5rem 0;
  border-left: 1px solid var(--rule);
  padding-left: 1.5rem;
}
.spec-row:first-child { border-left: 0; padding-left: 0; }
.spec-row dt {
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--faint);
}
/* Every value is body type at one size, so no glyph can out-shout
   its neighbour — this is the fix for the old stat strip. */
.spec-row dd {
  font-size: 1.02rem; font-weight: 600; line-height: 1.35;
  color: var(--white);
}
.spec-note {
  padding-block: 1.4rem;
  font-size: 0.92rem; color: var(--dim);
}
.spec-note a { color: var(--white); border-bottom: 2px solid var(--red); text-decoration: none; }
.spec-note a:hover { color: var(--red); }

/* ---------- marquee (site tape) ---------- */
.marquee {
  background: var(--red);
  overflow: hidden;
  padding-block: 0.85rem;
}
.marquee-track {
  display: flex; align-items: center; gap: 2.6rem;
  width: max-content;
  animation: marqueeScroll 34s linear infinite;
}
.marquee-track span {
  font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
}
.marquee-track i {
  width: 8px; height: 8px; flex: none;
  background: #0d0d0d;
  transform: rotate(45deg);
}
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee:hover .marquee-track { animation-play-state: paused; }

/* ---------- sections ---------- */
.section { padding-block: 6rem; }
.section-alt { background: var(--bg-alt); }

.section-head { max-width: 60ch; margin-bottom: 3rem; }
.section-head h2, .about-copy h2, .contact-copy h2 {
  font-family: var(--font-display); font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 0.98; margin-bottom: 1rem;
  letter-spacing: 0.005em;
}
.section-sub { color: var(--dim); max-width: 52ch; }

/* ---------- the wall (work gallery) ------------------------
   Tiles are laid in courses of two wide and three tall units.
   The joints of one course never line up with the next, which
   is what makes it read as a running bond rather than a grid.
   The mortar is the container background showing through the gap.
   ---------------------------------------------------------- */
.wall {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--joint);
  background: var(--mortar);
  border-block: var(--joint) solid var(--mortar);
  width: min(calc(var(--container) + 8rem), 100%);
  margin-inline: auto;
}
.brick {
  position: relative;
  overflow: hidden;
  background: var(--card);
  cursor: zoom-in;
  margin: 0;
}
.brick-wide { grid-column: span 3; aspect-ratio: 3 / 2; }
.brick-tall { grid-column: span 2; aspect-ratio: 3 / 4; }
.brick img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s var(--ease-out), filter 0.35s ease;
}
/* Elevations sit in the upper part of their frame, so a centred crop
   fills the tile with driveway. Anchor those to the house instead. */
.brick-top img { object-position: 50% 32%; }
.brick:hover img,
.brick:focus-visible img { transform: scale(1.05); filter: brightness(1.05); }

/* The caption always reads — a photograph nobody can identify is not
   a portfolio. It sits on its own scrim rather than a solid bar, and
   hover only deepens it. */
.brick figcaption {
  position: absolute; inset: auto 0 0 0;
  padding: 2.8rem 1.15rem 1rem;
  font-size: 0.78rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.09em;
  color: rgba(245, 245, 242, 0.9);
  background: linear-gradient(180deg, transparent, rgba(8, 8, 8, 0.55) 45%, rgba(8, 8, 8, 0.9));
  transition: color 0.25s ease, background 0.25s ease;
}
.brick:hover figcaption,
.brick:focus-visible figcaption {
  color: var(--white);
  background: linear-gradient(180deg, transparent, rgba(8, 8, 8, 0.7) 40%, rgba(8, 8, 8, 0.96));
}
.brick::after {
  content: ""; position: absolute; inset: 0;
  border: 2px solid transparent;
  transition: border-color 0.2s ease;
  pointer-events: none;
}
.brick:hover::after, .brick:focus-visible::after { border-color: var(--red); }

/* ---------- services ---------- */
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 2.6rem 2.2rem;
}
.service { padding-top: 1.4rem; border-top: 1px solid var(--rule); transition: border-color 0.2s ease; }
.service:hover { border-top-color: var(--red); }
/* a two-course bond mark, drawn rather than iconified: the same
   structural note on every card instead of six weak pictograms */
.course {
  display: block; width: 58px; height: 16px; margin-bottom: 1rem;
  background:
    linear-gradient(90deg, var(--red) 0 25px, transparent 25px 28px, var(--red) 28px 58px) top / 58px 7px no-repeat,
    linear-gradient(90deg, var(--red) 0 15px, transparent 15px 18px, var(--red) 18px 47px, transparent 47px 50px, var(--red) 50px 58px) bottom / 58px 7px no-repeat;
}
.service h3 {
  font-family: var(--font-display); font-weight: 400;
  font-size: 1.3rem; letter-spacing: 0.04em; text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.service p { font-size: 0.95rem; color: var(--dim); }

/* ---------- standard band ---------- */
.band { position: relative; isolation: isolate; overflow: hidden; }
.band-bg {
  position: absolute; inset: 0; z-index: -2;
  background-image: url("images/band.jpg");
  background-size: cover; background-position: 50% 42%;
}
.band::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.84), rgba(10, 10, 10, 0.7));
}
.band-inner { padding-block: 7rem; }
.band-line {
  font-family: var(--font-display); font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(1.6rem, 3.6vw, 2.8rem);
  line-height: 1.06; max-width: 22ch;
  border-left: 6px solid var(--red);
  padding-left: clamp(1.1rem, 2.5vw, 2rem);
}

/* ---------- about ---------- */
.about-grid {
  display: grid; grid-template-columns: 5fr 6fr;
  gap: clamp(2rem, 5vw, 4.5rem); align-items: start;
}
.about-media { position: relative; margin: 0; }
.about-media img { width: 100%; }
/* offset frame, drawn from the image box so it always registers */
.about-media::before {
  content: ""; position: absolute;
  inset: 1.5rem -1.5rem -1.5rem 1.5rem;
  border: 3px solid var(--red);
  z-index: -1;
}
.about-media figcaption {
  position: absolute; left: 0; bottom: 0;
  background: #0d0d0d;
  border-left: 4px solid var(--red);
  padding: 0.85rem 1.2rem;
  display: flex; flex-direction: column; line-height: 1.3;
}
.about-media figcaption strong { font-family: var(--font-display); font-weight: 400; font-size: 1.05rem; letter-spacing: 0.04em; text-transform: uppercase; }
.about-media figcaption span { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red); }
.about-copy p { color: var(--dim); }
.about-copy p + p { margin-top: 1rem; }
.about-facts {
  list-style: none; margin-block: 1.7rem;
  display: grid; gap: 0.6rem;
}
.about-facts li { position: relative; padding-left: 1.5rem; font-size: 0.95rem; font-weight: 500; color: var(--white); }
.about-facts li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 0.55rem; height: 0.55rem;
  background: var(--red);
}
.about-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* ---------- contact ---------- */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem); align-items: start;
}
.contact-copy > p { color: var(--dim); max-width: 44ch; }
.contact-email {
  display: inline-block; margin-block: 1.4rem 1.8rem;
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.6rem, 3.6vw, 2.6rem);
  letter-spacing: 0.01em;
  color: var(--white); text-decoration: none;
  border-bottom: 4px solid var(--red);
  padding-bottom: 3px;
  transition: color 0.2s ease;
  overflow-wrap: anywhere;
}
.contact-email:hover { color: var(--red); }
.contact-actions { margin-bottom: 1.8rem; }
/* the dead space under the old contact column is now carrying the
   same title-block treatment as the spec strip */
.contact-meta { display: grid; gap: 0; border-top: 1px solid var(--rule); }
.contact-meta > div {
  display: grid; grid-template-columns: 9rem 1fr; gap: 1rem;
  padding-block: 0.85rem;
  border-bottom: 1px solid var(--rule);
}
.contact-meta dt {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--faint); padding-top: 0.25em;
}
.contact-meta dd { font-size: 0.98rem; font-weight: 600; }

.contact-form {
  background: var(--card);
  border: 1px solid var(--rule-strong);
  padding: 2.2rem;
}
.field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.2rem; }
.field label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
.field .req { color: var(--red); letter-spacing: 0.1em; }
.field .opt { color: var(--faint); letter-spacing: 0.1em; }
.field .hint { margin-top: 0.1rem; font-size: 0.78rem; letter-spacing: 0; text-transform: none; color: var(--faint); }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 1rem;
  color: var(--white); background: #0d0d0d;
  border: 1px solid var(--rule-strong); border-radius: 0;
  padding: 0.8rem 0.9rem;
  transition: border-color 0.2s ease;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--dim) 50%), linear-gradient(135deg, var(--dim) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat; }
.field select option { color: #0d0d0d; background: var(--white); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--red);
  box-shadow: inset 0 0 0 1px var(--red);
}
.field input[aria-invalid="true"] { border-color: var(--red); }
.field textarea { resize: vertical; min-height: 96px; }
.form-note { margin-top: 1rem; font-size: 0.85rem; color: var(--faint); }
.form-note a { color: var(--white); border-bottom: 2px solid var(--red); text-decoration: none; }
.form-note a:hover { color: var(--red); }
/* Honeypot: moved off-screen rather than display:none, which some bots
   detect and skip. aria-hidden and tabindex keep people away from it. */
.field-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
/* Collapsed to nothing: Turnstile reserves widget space even when it will
   pass invisibly. script.js reveals it only if the visitor must interact. */
.turnstile-slot { height: 0; overflow: hidden; }
.turnstile-slot.is-interactive { height: auto; overflow: visible; margin-bottom: 1.2rem; }

/* ---------- mobile sticky CTA ---------- */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: none;
  /* one equal column per button; minmax(0, …) stops a long label from
     widening its column past the viewport */
  grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0.6rem;
  padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom, 0px));
  background: rgba(13, 13, 13, 0.94);
  backdrop-filter: blur(10px);
  border-top: 2px solid var(--red);
  transform: translateY(110%);
  transition: transform 0.35s var(--ease-out);
}
.mobile-cta.show { transform: none; }
.mobile-cta .btn { padding-inline: 0.6rem; font-size: 0.82rem; letter-spacing: 0.08em; }

/* ---------- footer ---------- */
.site-footer { background: #0a0a0a; color: var(--dim); }
.footer-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 2rem; padding-block: 3rem 2rem;
}
.site-footer strong {
  display: block; font-family: var(--font-display); color: var(--white);
  font-weight: 400; margin-bottom: 0.5rem; font-size: 1rem;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.site-footer p { font-size: 0.92rem; line-height: 1.7; }
.site-footer a { color: var(--white); text-decoration: none; border-bottom: 2px solid var(--red); }
.site-footer a:hover { color: var(--red); }
.footer-base { border-top: 1px solid var(--rule); padding-block: 1.2rem; }
.footer-base p { font-size: 0.82rem; color: var(--faint); }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  background: rgba(8, 8, 8, 0.95);
  padding: clamp(1rem, 4vw, 3rem);
  animation: lbFade 0.22s ease both;
}
@keyframes lbFade { from { opacity: 0; } to { opacity: 1; } }
.lightbox[hidden] { display: none; }
.lightbox figure { max-width: min(1000px, 100%); text-align: center; }
.lightbox img {
  max-width: 100%; max-height: 80vh; margin-inline: auto;
  border: 1px solid var(--rule-strong);
}
.lightbox figcaption { margin-top: 1rem; color: var(--dim); font-size: 0.88rem; text-transform: uppercase; letter-spacing: 0.12em; }
.lightbox-close, .lightbox-nav {
  position: absolute; z-index: 2;
  background: #0d0d0d; color: var(--white);
  border: 1px solid var(--rule-strong);
  width: 46px; height: 46px; font-size: 1.15rem;
  display: grid; place-items: center; cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.lightbox-close:hover, .lightbox-nav:hover { background: var(--red); color: #fff; border-color: var(--red); }
.lightbox-close { top: 1.2rem; right: 1.2rem; }
.lightbox-prev { left: clamp(0.6rem, 3vw, 2rem); top: 50%; transform: translateY(-50%); }
.lightbox-next { right: clamp(0.6rem, 3vw, 2rem); top: 50%; transform: translateY(-50%); }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .spec-list { grid-template-columns: repeat(3, 1fr); }
  .spec-row:nth-child(3n + 1) { border-left: 0; padding-left: 0; }
  .spec-row:nth-child(n + 4) { border-top: 1px solid var(--rule); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  /* courses of two: wide tiles full width, tall tiles in pairs */
  .wall { grid-template-columns: repeat(2, 1fr); }
  .brick-wide { grid-column: span 2; aspect-ratio: 16 / 9; }
  .brick-tall { grid-column: span 1; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-alt); border-bottom: 1px solid var(--rule-strong);
    padding: 0.5rem 1.5rem 1.3rem;
  }
  .nav-links.open { display: flex; }
  .nav-links > a:not(.btn) { padding: 0.9rem 0; border-bottom: 1px solid var(--rule); background: none; }
  .nav-links .btn { margin-top: 1rem; }

  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 460px; }
  .about-media::before { inset: 1rem -1rem -1rem 1rem; }
  .section { padding-block: 4.5rem; }
  .band-inner { padding-block: 5rem; }

  .mobile-cta { display: grid; }
  body.has-mobile-cta { padding-bottom: 76px; }
}

@media (max-width: 620px) {
  .spec-list { grid-template-columns: 1fr 1fr; }
  .spec-row { padding-block: 1.1rem; }
  .spec-row:nth-child(3n + 1) { border-left: 1px solid var(--rule); padding-left: 1.5rem; }
  .spec-row:nth-child(2n + 1) { border-left: 0; padding-left: 0; }
  .spec-row:nth-child(n + 3) { border-top: 1px solid var(--rule); }
  .services-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-facts { grid-template-columns: 1fr; }
  .contact-form { padding: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.4rem; }
  .contact-meta > div { grid-template-columns: 7.5rem 1fr; gap: 0.75rem; }
  .lightbox-nav { width: 40px; height: 40px; }
  /* single course on phones */
  .wall { grid-template-columns: 1fr; }
  .brick-wide, .brick-tall { grid-column: span 1; }
  .brick-tall { aspect-ratio: 4 / 5; }
}
