/* ============================================================
   MAKS Interiors — Silver / Red / Black brand theme (v4.0)
   Palette sampled from MAKS brand PSDs:
   white #f8f8f8 · silver #c6c6ca · red #db2128 · charcoal #484848
   ============================================================ */

:root {
  --radius-pill: 2em;
  --radius-card: 12px;
  --bg: #f4f4f6;
  --bg-2: #e9e9ec;
  --silver: #c6c6ca;
  --panel: #ffffff;
  --panel-border: rgba(219, 33, 40, 0.22);
  --line: rgba(28, 28, 32, 0.10);
  --red: #db2128;
  --red-bright: #e8232e;
  --red-glow: rgba(219, 33, 40, 0.28);
  --ink: #1c1c1e;
  --text: #3d3d42;
  --text-dim: #6d6d74;
  --font-display: 'Michroma', 'Segoe UI', sans-serif;
  --font-body: 'Rajdhani', 'Segoe UI', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
img, video { max-width: 100%; height: auto; }

html { scroll-behavior: smooth; }

body {
  /* Brand diamond-lattice texture from the brochure, tiled uniformly site-wide */
  background: url('img/brand-pattern.png') repeat top left / 251px 597px var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
}

main, footer { position: relative; z-index: 1; }
header { position: relative; z-index: 60; }

/* --- Typography --- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; letter-spacing: 0.045em; color: var(--ink); }

h1 { font-size: clamp(1.7rem, 4.6vw, 3.3rem); line-height: 1.16; text-transform: uppercase; }
h2 { font-size: clamp(1.4rem, 3vw, 2.2rem); text-transform: uppercase; margin-bottom: 1rem; }
h3 { font-size: 1.1rem; color: var(--red); text-transform: uppercase; }

.accent { color: var(--red); }

.kicker {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--red);
  border: 1px solid var(--panel-border);
  padding: 0.45em 1.2em;
  border-radius: 2em;
  margin-bottom: 1.2rem;
  background: rgba(219, 33, 40, 0.05);
}

p.lead { font-size: 1.15rem; color: var(--text-dim); max-width: 46rem; }

/* --- Navigation --- */
.nav {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 5vw;
  background: rgba(248, 248, 249, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 2px solid var(--red);
  z-index: 50;
}

.brand {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.25rem;
  letter-spacing: 0.14em;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
}
.brand span { color: var(--red); }
.brand img { display: block; height: 40px; width: auto; }

.nav ul { display: flex; gap: 1.8rem; list-style: none; }

.nav a.nav-link {
  color: var(--text-dim);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.4em 0;
  position: relative;
  transition: color 0.25s;
}
.nav a.nav-link::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav a.nav-link:hover, .nav a.nav-link[aria-current="page"] { color: var(--red); }
.nav a.nav-link:hover::after, .nav a.nav-link[aria-current="page"]::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  background: var(--red);
  border: none;
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  min-width: 46px;
  min-height: 44px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(219, 33, 40, 0.3);
  transition: background 0.25s, transform 0.15s;
}
.nav-toggle:active { transform: scale(0.94); }
.nav-toggle[aria-expanded="true"] { background: var(--ink); }

/* ============================================================
   Cover-page hero — an interactive 3D rendition of the brochure
   cover: white field, patterned silver band, red block, logo.
   ============================================================ */
.cover-hero {
  min-height: 86vh;
  position: relative;
  display: flex;
  align-items: center;
  padding: 6rem 5vw 4rem;
  overflow: hidden;
  background: var(--bg);
}

/* Hero carousel: three full-bleed slides cross-fading beneath the grey wash */
.hero-slides { position: absolute; inset: 0; z-index: 0; }
.hero-slide {
  position: absolute;
  inset: 0;
  background: no-repeat center / cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.1s ease, transform 5s ease;
}
.hero-slide.active { opacity: 1; transform: scale(1); }
.hero-dots {
  position: absolute;
  left: 5vw;
  bottom: 1.6rem;
  z-index: 4;
  display: flex;
  gap: 0.55rem;
}
.hero-dots button {
  width: 26px;
  height: 4px;
  border: none;
  border-radius: 2px;
  background: rgba(28, 28, 32, 0.22);
  cursor: pointer;
  transition: background 0.3s;
}
.hero-dots button[aria-current="true"] { background: var(--red); }
.cover-hero > .red-block {
  position: absolute;
  top: 0;
  right: 12%;
  width: 64px;
  height: 108px;
  background: var(--red);
  z-index: 3;
  box-shadow: 0 12px 28px rgba(219, 33, 40, 0.3);
  animation: block-drop-flat 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes block-drop-flat { from { transform: translateY(-120%); } to { transform: translateY(0); } }
.hero-art-caption {
  position: absolute;
  right: 5vw;
  bottom: 1.4rem;
  z-index: 3;
  font-family: var(--font-display);
  font-size: 0.56rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: rgba(248, 248, 249, 0.85);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line);
  border-left: 3px solid var(--red);
  padding: 0.6em 1.2em;
}
.cover-hero::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
}

.hero-copy { max-width: 46rem; position: relative; z-index: 5; }
.hero-copy h1 { font-size: clamp(2rem, 5vw, 3.8rem); }
.hero-copy .sub { margin-top: 1.4rem; font-size: 1.22rem; color: var(--text); }

/* Grey gradient wash over the artwork — the text takes precedence */
.cover-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(236, 236, 239, 0.96) 0%, rgba(236, 236, 239, 0.88) 34%, rgba(224, 224, 228, 0.55) 62%, rgba(210, 210, 215, 0.28) 100%),
    linear-gradient(180deg, rgba(236, 236, 239, 0.55) 0%, transparent 30%, transparent 68%, rgba(224, 224, 228, 0.72) 100%);
}

/* The concept artwork, framed like a gallery piece inside the band */
.art-frame {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 50%;
  margin: 0;
  background: #fff;
  padding: 14px 14px 10px;
  border: 1px solid rgba(28, 28, 32, 0.14);
  box-shadow: 0 26px 54px rgba(28, 28, 32, 0.30);
  transform: translateZ(58px) translateY(-50%);
  animation: art-in 1.2s 0.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes art-in {
  from { opacity: 0; transform: translateZ(58px) translateY(calc(-50% + 36px)); }
  to { opacity: 1; transform: translateZ(58px) translateY(-50%); }
}
.art-frame img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid rgba(28, 28, 32, 0.08);
}
.art-frame figcaption {
  padding-top: 9px;
  font-family: var(--font-display);
  font-size: 0.56rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-align: center;
}
.art-frame figcaption::after {
  content: '';
  display: block;
  width: 34px;
  height: 2px;
  margin: 7px auto 0;
  background: var(--red);
}

/* The 3D silver band (right side, like the cover) */
.cover-band-3d {
  position: absolute;
  top: -4%; bottom: -4%;
  right: 4vw;
  width: min(34vw, 430px);
  z-index: 1;
  transform-style: preserve-3d;
  transform: rotateY(-10deg) rotateX(2deg);
  transition: transform 0.35s ease-out;
  background:
    url('img/brand-pattern.png') repeat top left / 251px 597px,
    linear-gradient(180deg, #cdcdd1, #c2c2c7);
  box-shadow: -24px 0 60px rgba(28, 28, 32, 0.16);
  border-left: 1px solid rgba(255,255,255,0.6);
}
.cover-band-3d .red-block {
  position: absolute;
  top: 0;
  right: 16%;
  width: 17%;
  max-width: 66px;
  height: 108px;
  background: var(--red);
  transform: translateZ(46px);
  box-shadow: 0 14px 30px rgba(219, 33, 40, 0.35);
  animation: block-drop 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes block-drop { from { transform: translateZ(46px) translateY(-120%); } to { transform: translateZ(46px) translateY(0); } }

.cover-band-3d .band-logo {
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 22%;
  text-align: left;
  transform: translateZ(60px);
  animation: logo-rise 1.2s 0.25s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes logo-rise { from { opacity: 0; transform: translateZ(60px) translateY(34px); } to { opacity: 1; transform: translateZ(60px) translateY(0); } }
.band-logo img { width: 100%; max-width: 300px; height: auto; display: block; filter: drop-shadow(0 6px 16px rgba(28,28,32,0.18)); }
.band-logo .band-links {
  margin-top: 1.1rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.7;
}
.band-logo .band-links a { display: block; color: var(--red); text-decoration: none; }
.band-logo .band-links a b { color: var(--ink); }
.band-logo .band-links a:hover { text-decoration: underline; }

/* Floating 3D diamonds drifting in front of the band */
.dia {
  position: absolute;
  width: 18px; height: 18px;
  border: 2px solid var(--red);
  opacity: 0.55;
  transform-style: preserve-3d;
  animation: dia-float 9s ease-in-out infinite, dia-spin 7s linear infinite;
}
.dia.d1 { top: 18%; left: -8%; animation-delay: 0s, 0s; }
.dia.d2 { top: 44%; left: 104%; width: 12px; height: 12px; animation-delay: -3s, -2s; }
.dia.d3 { top: 68%; left: -5%; width: 24px; height: 24px; opacity: 0.35; animation-delay: -6s, -4s; }
.dia.d4 { top: 8%; left: 55%; width: 10px; height: 10px; animation-delay: -1.5s, -5s; }
@keyframes dia-float { 0%, 100% { margin-top: 0; } 50% { margin-top: -26px; } }
@keyframes dia-spin { from { transform: rotate3d(1, 1, 0, 45deg) rotateZ(0deg); } to { transform: rotate3d(1, 1, 0, 45deg) rotateZ(360deg); } }

@media (max-width: 900px) {
  .cover-hero { padding-top: 5rem; min-height: 72vh; }
  .cover-band-3d { right: -14vw; width: 52vw; opacity: 0.55; }
  .hero-copy { max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .cover-band-3d, .red-block, .band-logo, .dia { animation: none !important; transition: none !important; }
}

/* --- Buttons --- */
.btn-row { display: flex; gap: 1rem; margin-top: 2.4rem; flex-wrap: wrap; }

.btn {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.95em 2.2em;
  border-radius: var(--radius-pill);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  display: inline-block;
}
.btn-primary {
  background: linear-gradient(135deg, var(--red), #b0181e);
  color: #fff;
  box-shadow: 0 4px 18px var(--red-glow);
}
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: -80%;
  width: 50%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}
.btn-primary:hover::after { left: 130%; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 26px var(--red-glow); }
.btn-ghost { border: 1px solid rgba(28,28,32,0.25); color: var(--ink); background: rgba(255,255,255,0.6); }
.btn-ghost:hover { border-color: var(--red); color: var(--red); }

/* --- Sections & grids --- */
section { padding: 4.5rem 5vw; }
section.alt { background: rgba(233,233,236,0.72); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.grid { display: grid; gap: 1.4rem; margin-top: 2.4rem; }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); }
.grid.cols-2 { grid-template-columns: 1fr 1fr; }
.band-clear { max-width: min(58vw, 54rem); }
@media (max-width: 1000px) {
  .band-clear { max-width: 100%; }
  .grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 1.8rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(28,28,32,0.05);
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 42px; height: 3px;
  background: var(--red);
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.card:hover::before { width: 100%; }
.card:hover { transform: translateY(-5px); border-color: var(--red); box-shadow: 0 10px 30px rgba(219, 33, 40, 0.14); }
.card h3 { margin-bottom: 0.6rem; }
.card p { color: var(--text-dim); font-size: 0.98rem; }

/* --- Stats strip --- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr)); gap: 1rem; text-align: center; }
.stat .num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--red);
}
.stat .label { font-size: 0.8rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-dim); }

/* --- Interactive statement --- */
.statement {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(1.25rem, 2.6vw, 1.9rem);
  line-height: 1.55;
  max-width: 58rem;
  margin-top: 1.6rem;
  color: var(--ink);
}
.statement .w {
  color: rgba(28, 28, 32, 0.22);
  transition: color 0.35s ease;
}
.statement .w.lit { color: var(--ink); }
.statement .w.key { font-weight: 600; }
.statement .w.key.lit { color: var(--red); }

/* --- Project ticker --- */
.ticker-wrap {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.8);
  padding: 1.1rem 0;
  position: relative;
}
.ticker {
  display: flex;
  gap: 3.5rem;
  width: max-content;
  animation: ticker 46s linear infinite;
}
.ticker-wrap:hover .ticker { animation-play-state: paused; }
.ticker span {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  white-space: nowrap;
}
.ticker span::before { content: '◆'; color: var(--red); margin-right: 1.1rem; font-size: 0.6rem; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* --- Project tiles --- */
.tile {
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  background:
    linear-gradient(160deg, rgba(219,33,40,0.09), rgba(233,233,236,0.95) 70%),
    repeating-linear-gradient(45deg, rgba(28,28,32,0.03) 0 12px, transparent 12px 24px),
    var(--silver);
  box-shadow: 0 2px 10px rgba(28,28,32,0.06);
  transition: transform 0.25s, box-shadow 0.25s;
}
.tile:hover { transform: scale(1.02); box-shadow: 0 12px 34px rgba(219, 33, 40, 0.16); }
.tile .tag {
  position: absolute; top: 1rem; left: 1rem;
  font-family: var(--font-display); font-size: 0.62rem;
  letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--red); border: 1px solid var(--panel-border);
  padding: 0.35em 0.9em; border-radius: 2em; background: rgba(255,255,255,0.85);
}
.tile .info { padding: 1.2rem; width: 100%; background: linear-gradient(transparent, rgba(248,248,249,0.95)); }
.tile .info h3 { color: var(--ink); font-size: 1rem; }
.tile .info p { color: var(--text-dim); font-size: 0.85rem; }

/* --- Timeline / list --- */
.spec-list { list-style: none; margin-top: 1.4rem; }
.spec-list li {
  padding: 0.85rem 0 0.85rem 1.6rem;
  border-bottom: 1px solid var(--line);
  position: relative;
  color: var(--text-dim);
}
.spec-list li strong { color: var(--ink); }
.spec-list li::before {
  content: '▸';
  color: var(--red);
  position: absolute; left: 0;
}

/* --- Forms --- */
form.contact-form { display: grid; gap: 1rem; max-width: 40rem; margin-top: 2rem; }
.contact-form input, .contact-form textarea, .contact-form select {
  background: var(--panel);
  border: 1px solid rgba(28,28,32,0.18);
  border-radius: var(--radius-card);
  padding: 0.9em 1.1em;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(219,33,40,0.14);
}
.contact-form .form-note { color: var(--red); }

/* --- Footer --- */
footer {
  border-top: 2px solid var(--red);
  padding: 3rem 5vw 2rem;
  background: rgba(233,233,236,0.8);
}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 2rem; }
footer h4 { font-size: 0.8rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--red); margin-bottom: 0.9rem; }
footer a { color: var(--text-dim); text-decoration: none; display: block; padding: 0.22em 0; font-size: 0.95rem; }
footer a:hover { color: var(--red); }
footer p { color: var(--text-dim); font-size: 0.92rem; }
.copyright { margin-top: 2.4rem; padding-top: 1.2rem; border-top: 1px solid var(--line); font-size: 0.8rem; color: #8b8b92; text-align: center; letter-spacing: 0.08em; }

/* --- Portfolio: filters, tag badges, customise mode --- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  margin-bottom: 0.6rem;
}
.filter-btn {
  font-family: var(--font-display);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.7em 1.3em;
  border: 1px solid rgba(28, 28, 32, 0.2);
  border-radius: 2em;
  background: rgba(255, 255, 255, 0.85);
  color: var(--text-dim);
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.filter-btn:hover { border-color: var(--red); color: var(--red); }
.filter-btn[aria-pressed="true"] {
  background: linear-gradient(135deg, var(--red), #b0181e);
  border-color: var(--red);
  color: #fff;
}
/* Small tag notification on each photograph */
.pf-gallery figure { position: relative; }
.pf-badge {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-display);
  font-size: 0.56rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  background: rgba(248, 248, 249, 0.92);
  border: 1px solid var(--line);
  border-radius: 2em;
  padding: 0.45em 1em;
  box-shadow: 0 2px 8px rgba(28, 28, 32, 0.14);
  pointer-events: none;
}
.pf-badge::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  animation: badge-pulse 2s ease-in-out infinite;
}
@keyframes badge-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(219, 33, 40, 0.45); }
  50% { box-shadow: 0 0 0 5px rgba(219, 33, 40, 0); }
}


/* --- Scroll reveal (progressive enhancement: content is visible without JS) --- */
.reveal { transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1), filter 0.8s ease; }
.reveal.reveal-init { opacity: 0; transform: translateY(34px) scale(0.98); filter: blur(4px); }
.reveal.visible { opacity: 1; transform: none; filter: none; }

/* --- Breadcrumb / page hero (cover-page design grid) --- */
.page-hero {
  padding: 5rem 5vw 3rem;
  background: rgba(248,248,249,0.55);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.page-hero > * { position: relative; z-index: 2; }

/* Full-height patterned silver band with red block — the brochure cover
   carried through every sub-page as a rectangular column. Any future page
   gets this automatically by including:
   <div class="page-band" aria-hidden="true"><span class="red-block"></span></div> */
.page-band {
  position: absolute;
  top: 0; bottom: 0;
  right: 6%;
  width: min(30%, 380px);
  z-index: -1;
  pointer-events: none;
  background:
    url('img/brand-pattern.png') repeat top left / 251px 597px,
    linear-gradient(180deg, #cbcbcf, #c2c2c7);
}
.page-red-block {
  /* Identical to the homepage hero block: same position, size and
     drop animation; anchored to the page so it scrolls away with it. */
  position: absolute;
  top: 68px;
  right: 12%;
  width: 64px;
  height: 108px;
  background: var(--red);
  z-index: 2;
  pointer-events: none;
  box-shadow: 0 12px 28px rgba(219, 33, 40, 0.3);
  animation: block-drop-flat 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@media (max-width: 900px) {
  .page-band { right: -12%; opacity: 0.55; }
}

/* --- Lightbox: click any gallery photo to expand in a closable pop-up --- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 4vh 4vw;
  background: rgba(28, 28, 32, 0.78);
  backdrop-filter: blur(4px);
}
.lightbox.open { display: flex; animation: lb-in 0.25s ease both; }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
.lightbox-panel {
  position: relative;
  background: #fff;
  padding: 14px 14px 10px;
  border-top: 4px solid var(--red);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
  max-width: min(1100px, 92vw);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  animation: lb-panel 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes lb-panel { from { transform: translateY(26px) scale(0.97); opacity: 0; } to { transform: none; opacity: 1; } }
.lightbox-panel img {
  max-width: 100%;
  max-height: calc(92vh - 90px);
  object-fit: contain;
  display: block;
}
.lightbox-caption {
  padding-top: 9px;
  font-family: var(--font-display);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-align: center;
}
.lightbox-close {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: var(--red);
  color: #fff;
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s;
}
.lightbox-close:hover { transform: scale(1.12); }
.gallery figure { cursor: zoom-in; }

/* --- Photo tiles & galleries --- */
.tile img.ph {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.tile:hover img.ph { transform: scale(1.05); }
.tile .tag, .tile .info { position: relative; z-index: 2; }
.tile .info { background: linear-gradient(transparent, rgba(20,20,22,0.82)); }
.tile.has-photo .info h3 { color: #fff; }
.tile.has-photo .info p { color: rgba(255,255,255,0.82); }

.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 1.4rem; margin-top: 2.4rem; }
.gallery figure {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--panel);
  box-shadow: 0 2px 10px rgba(28,28,32,0.06);
}
.gallery img { width: 100%; height: 280px; object-fit: cover; display: block; transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
.gallery figure { transition: box-shadow 0.35s ease, transform 0.35s ease; }
.gallery figure:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(28,28,32,0.14); }
.gallery figure:hover img { transform: scale(1.045); }
.gallery figcaption {
  padding: 0.8rem 1.1rem;
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  border-top: 2px solid var(--red);
}

/* --- Responsive --- */
@media (max-width: 1000px) {
  .nav ul {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: #ffffff;
    border-top: 3px solid var(--red);
    border-bottom: 3px solid var(--red);
    box-shadow: 0 18px 40px rgba(28, 28, 32, 0.22);
    padding: 0.4rem 0 0.6rem;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
  }
  .nav ul.open { display: flex; animation: menu-drop 0.25s ease both; }
  @keyframes menu-drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
  .nav ul li { padding: 0; border-bottom: 1px solid rgba(28, 28, 32, 0.07); }
  .nav ul li:last-child { border-bottom: none; }
  .nav ul a.nav-link {
    display: block;
    padding: 1rem 6vw;
    font-size: 0.88rem;
    color: var(--ink);
    border-left: 4px solid transparent;
  }
  .nav ul a.nav-link::after { display: none; }
  .nav ul a.nav-link:hover { color: var(--red); background: rgba(219, 33, 40, 0.05); }
  .nav ul a.nav-link[aria-current="page"] {
    color: var(--red);
    border-left-color: var(--red);
    background: rgba(219, 33, 40, 0.07);
    font-weight: 700;
  }
  .nav-toggle { display: block; }
}

/* --- Small screens: keep every main element present and legible --- */
@media (max-width: 900px) {
  section { padding: 3rem 6vw; }
  .page-hero { padding: 3.6rem 6vw 2.4rem; }
  .page-red-block { right: calc(5vw - 9px); height: 84px; opacity: 0.9; }
  .hero-art-caption { right: 4vw; left: 4vw; text-align: center; bottom: 0.9rem; }
  .cover-hero > .red-block { right: 6%; width: 46px; height: 84px; }
  .filter-bar { gap: 0.45rem; }
  .filter-btn { padding: 0.6em 1em; font-size: 0.58rem; }
  .gallery img { height: 220px; }
  .lightbox { padding: 2vh 3vw; }
  .lightbox-close { top: -12px; right: -12px; }
  .btn-row .btn { flex: 1 1 auto; text-align: center; }
  .ticker span { font-size: 0.68rem; }
  footer { padding: 2.4rem 6vw 1.6rem; }
}
@media (max-width: 900px) and (orientation: landscape) {
  .cover-hero { min-height: 100vh; }
}
@media (max-width: 640px) {
  .page-red-block, .cover-hero > .red-block { width: 30px; height: 52px; right: calc(5vw + 8px); }
  .band-clear { max-width: 100%; }
  .filter-bar { justify-content: flex-start; }
  .hero-dots { bottom: 3.4rem; }
}
@media (max-width: 360px) {
  body { font-size: 15px; }
  .btn { padding: 0.85em 1.4em; font-size: 0.72rem; }
  .gallery img { height: 180px; }
  .footer-grid { gap: 1.4rem; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .hero-copy h1 { font-size: clamp(2rem, 9.5vw, 2.6rem); }
  h1 { font-size: clamp(1.7rem, 8vw, 2.4rem); }
  h2 { font-size: clamp(1.25rem, 6vw, 1.7rem); }
  p.lead, .hero-copy .sub { font-size: 1.02rem; }
  .statement { font-size: 1.15rem; }
  .kicker { font-size: 0.62rem; letter-spacing: 0.24em; }
  .gallery { gap: 1rem; }
  .gallery img { height: 200px; }
  .pf-badge { font-size: 0.5rem; padding: 0.4em 0.8em; }
  .brand img { height: 34px; }
  .cover-hero { min-height: 64vh; padding: 4.2rem 6vw 3rem; }
}

/* --- Band photo (Mission page): a framed photograph set into the grey
       band, overlapping its dark leading edge --- */
.band-photo {
  position: absolute;
  top: 215px;
  right: calc(6% + 46px);
  width: min(30%, 372px);
  margin: 0;
  z-index: 0;
  pointer-events: none;
}
.band-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 6px solid #fff;
  box-shadow: 0 20px 48px rgba(28, 28, 32, 0.26);
}
.band-photo::before {
  /* thin silver outline offset behind the print */
  content: "";
  position: absolute;
  inset: 14px -12px -12px 14px;
  border: 1px solid var(--silver);
  pointer-events: none;
}
.band-photo figcaption {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  margin-top: 0.75rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
}
.band-photo figcaption::before {
  content: "";
  width: 9px; height: 9px;
  background: var(--red);
  border-radius: 50%;
  animation: badge-pulse 2s infinite;
}
@media (max-width: 900px) {
  /* On phones the photo joins the page flow beneath the text */
  .band-photo {
    position: static;
    width: auto;
    max-width: 30rem;
    margin: 1.8rem 5vw 0;
    pointer-events: auto;
  }
  .band-photo::before { display: none; }
}

/* --- Band video (Services page): the Mission band-photo frame carrying
       an autoplaying, muted, looping site video; removed on mobile --- */
.band-video {
  position: absolute;
  top: 210px;
  right: calc(6% + 46px);
  width: min(30%, 372px);
  margin: 0;
  z-index: 0;
}
.band-video video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 6px solid #fff;
  box-shadow: 0 20px 48px rgba(28, 28, 32, 0.26);
  background: var(--bg-2);
}
.band-video::before {
  content: "";
  position: absolute;
  inset: 14px -12px -12px 14px;
  border: 1px solid var(--silver);
  pointer-events: none;
}
.band-video figcaption {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  margin-top: 0.75rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
}
.band-video figcaption::before {
  content: "";
  width: 9px; height: 9px;
  background: var(--red);
  border-radius: 50%;
  animation: badge-pulse 2s infinite;
}
@media (max-width: 900px) {
  /* Removed entirely in the mobile view, as specified */
  .band-video { display: none; }
}

/* --- v6.0: portfolio tiles cycle through additional gallery frames --- */
.frames { position: relative; display: block; }
.frames .frame-b {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.1s ease;
}
.frames.swap .frame-b { opacity: 1; }

/* --- v6.0: mission band slideshow — fixed 3:4 frame, no gaps, no dots --- */
.band-photo .bp-frames {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 6px solid #fff;
  box-shadow: 0 20px 48px rgba(28, 28, 32, 0.26);
  background: var(--bg-2);
}
.band-photo .bp-frames img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  border: none;
  box-shadow: none;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.band-photo .bp-frames img.active { opacity: 1; }

/* --- v6.0: services as compact CTA-style chips --- */
.svc-chips { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 1.8rem; }
.svc-chip {
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(28, 28, 32, 0.25);
  border-radius: var(--radius-pill);
  padding: 0.9em 1.6em;
  transition: border-color 0.25s, color 0.25s, transform 0.2s;
}
.svc-chip:hover { border-color: var(--red); color: var(--red); transform: translateY(-2px); }
@media (max-width: 640px) { .svc-chip { font-size: 0.6rem; padding: 0.8em 1.3em; } }

/* --- v6.0: contact cards — keep hyperlinks, drop the underline --- */
.card a { text-decoration: none; }

/* --- v6.1: compact contact cards --- */
.contact-cards { max-width: min(58vw, 44rem); }
.contact-cards .card { padding: 1rem 1.3rem 1.1rem; }
.contact-cards .card h3 { font-size: 0.82rem; }
.contact-cards .card p { font-size: 0.95rem; line-height: 1.5; margin-top: 0.3rem; }
@media (max-width: 1000px) { .contact-cards { max-width: 100%; } }

/* --- v6.2: compact boxes on phone screens --- */
@media (max-width: 640px) {
  .card { padding: 1rem 1.15rem 1.1rem; }
  .card h3 { font-size: 0.88rem; }
  .card p { font-size: 0.95rem; line-height: 1.5; }
  .grid { gap: 0.9rem; }
  .contact-cards .card { padding: 0.85rem 1.05rem 0.95rem; }
  .contact-cards .card h3 { font-size: 0.78rem; }
}

/* --- v6.3: lightbox navigation arrows --- */
.lightbox-prev, .lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s, background 0.2s, color 0.2s;
  z-index: 2;
}
.lightbox-prev { left: -18px; }
.lightbox-next { right: -18px; }
.lightbox-prev:hover, .lightbox-next:hover { background: var(--red); color: #fff; transform: translateY(-50%) scale(1.1); }
@media (max-width: 640px) {
  .lightbox-prev { left: -8px; }
  .lightbox-next { right: -8px; }
  .lightbox-prev, .lightbox-next { width: 38px; height: 38px; }
}
