:root {
  --charcoal: #151515;
  --charcoal-soft: #222120;
  --paper: #f4efe6;
  --paper-bright: #faf8f3;
  --burgundy: #3a0d17;
  --gold: #b9975b;
  --ink: #1a1a1a;
  --muted: #7a746e;
  --line: rgba(26, 26, 26, 0.12);
  --shell: min(1280px, calc(100% - 3rem));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(185, 151, 91, 0.18), transparent 24%),
    linear-gradient(180deg, #f8f3ea 0%, var(--paper) 42%, #f7f2e9 100%);
}

body.lightbox-open,
body.contact-modal-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.gallery-shell {
  width: var(--shell);
  margin: 0 auto;
}

.gallery-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(250, 248, 243, 0.08);
  background: rgba(21, 21, 21, 0.92);
  backdrop-filter: blur(14px);
}

.gallery-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
  width: var(--shell);
  min-height: 84px;
  margin: 0 auto;
}

.gallery-brand {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.gallery-brand__logo {
  width: clamp(4rem, 7vw, 5rem);
  height: auto;
}

.gallery-brand__text {
  display: grid;
  line-height: 1.04;
}

.gallery-brand__text strong {
  color: var(--paper-bright);
  font-size: 1rem;
  font-weight: 800;
}

.gallery-brand__text span {
  color: rgba(250, 248, 243, 0.72);
  font-size: 0.76rem;
}

.gallery-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  margin-inline: auto;
  color: var(--paper-bright);
  font-size: 0.95rem;
}

.gallery-nav a,
.gallery-cta,
.gallery-filter {
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.gallery-nav a:hover,
.gallery-nav a[aria-current="page"] {
  color: var(--gold);
}

.gallery-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0 1.15rem;
  border: 1px solid rgba(185, 151, 91, 0.58);
  color: var(--paper-bright);
  font-size: 0.95rem;
  white-space: nowrap;
}

.gallery-cta:hover {
  color: var(--gold);
  border-color: var(--gold);
}

.gallery-main {
  padding-bottom: 4rem;
}

.gallery-hero {
  position: relative;
  overflow: hidden;
  padding: 4.5rem 0 2.5rem;
}

.gallery-hero__texture {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(58, 13, 23, 0.08), transparent 36%),
    linear-gradient(180deg, rgba(21, 21, 21, 0.02), transparent 100%);
  pointer-events: none;
}

.gallery-hero__inner {
  position: relative;
  display: block;
}

.gallery-copy {
  max-width: 1180px;
  margin: 0 auto;
  text-align: center;
}

.gallery-eyebrow {
  margin: 0 0 0.9rem;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  letter-spacing: 0;
}

h1 {
  max-width: min(1080px, 100%);
  margin-inline: auto;
  font-size: clamp(3.35rem, 5vw, 5.7rem);
  line-height: 1;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1;
}

.gallery-lead {
  max-width: 56rem;
  margin: 1.1rem auto 0;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.75;
}

.gallery-toolbar {
  padding: 0.2rem 0 2rem;
}

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.gallery-filter {
  min-height: 2.85rem;
  padding: 0 1rem;
  border: 1px solid rgba(58, 13, 23, 0.16);
  background: rgba(250, 248, 243, 0.84);
  color: var(--burgundy);
  font-weight: 700;
}

.gallery-filter:hover,
.gallery-filter.is-active {
  border-color: rgba(185, 151, 91, 0.68);
  background: rgba(185, 151, 91, 0.18);
  color: var(--charcoal);
  transform: translateY(-2px);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
}

.gallery-card {
  position: relative;
  display: grid;
  align-content: end;
  width: 100%;
  padding: 0;
  border: 1px solid rgba(26, 26, 26, 0.08);
  min-height: 320px;
  overflow: hidden;
  background: var(--charcoal-soft);
  color: var(--paper-bright);
  isolation: isolate;
  cursor: pointer;
  text-align: left;
  transform: translateY(26px);
  opacity: 0;
  transition: transform 260ms ease, box-shadow 260ms ease, border-color 260ms ease, opacity 700ms ease;
}

.gallery-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.gallery-card:hover {
  transform: translateY(-4px);
  border-color: rgba(185, 151, 91, 0.45);
  box-shadow: 0 24px 68px rgba(26, 26, 26, 0.18);
}

.gallery-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms ease, filter 700ms ease;
}

.gallery-card:hover img {
  transform: scale(1.045);
  filter: saturate(1.06);
}

.gallery-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(21, 21, 21, 0.06) 0%, rgba(21, 21, 21, 0.22) 42%, rgba(21, 21, 21, 0.88) 100%);
}

.gallery-card__content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.7rem;
  padding: 1.2rem;
}

.gallery-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  color: rgba(250, 248, 243, 0.78);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gallery-card__content h3 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.9rem, 2.5vw, 2.85rem);
  line-height: 0.98;
}

.gallery-card__content p {
  max-width: 38rem;
  margin: 0;
  color: rgba(250, 248, 243, 0.82);
  line-height: 1.7;
}

.gallery-card--featured {
  grid-column: span 7;
  min-height: 560px;
}

.gallery-card--portrait {
  grid-column: span 5;
  min-height: 560px;
}

.gallery-card--standard {
  grid-column: span 4;
  min-height: 430px;
}

.gallery-card--wide {
  grid-column: span 8;
  min-height: 430px;
}

.gallery-card--compact {
  grid-column: span 4;
  min-height: 360px;
}

.partners-section {
  position: relative;
  overflow: hidden;
  margin-top: 4.5rem;
  padding: 0.4rem 0 0;
}

.partners-section__head {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 1.6rem;
  text-align: center;
}

.partners-section__head h2 {
  max-width: min(1060px, 36ch);
  margin-inline: auto;
  font-size: clamp(2.3rem, 3.4vw, 3.8rem);
  line-height: 1.04;
  text-wrap: balance;
}

.partners-marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 0.85rem 0;
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.partners-marquee::before,
.partners-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: min(10vw, 8rem);
  pointer-events: none;
  z-index: 2;
}

.partners-marquee::before {
  left: 0;
  background: linear-gradient(90deg, rgba(244, 239, 230, 0.96), rgba(244, 239, 230, 0));
}

.partners-marquee::after {
  right: 0;
  background: linear-gradient(270deg, rgba(244, 239, 230, 0.96), rgba(244, 239, 230, 0));
}

.partners-track {
  display: flex;
  align-items: stretch;
  gap: 1rem;
  width: max-content;
  animation: partners-marquee 34s linear infinite;
  will-change: transform;
}

.partners-marquee:hover .partners-track {
  animation-play-state: paused;
}

.partner-card {
  position: relative;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0.8rem;
  width: clamp(220px, 20vw, 290px);
  min-height: 150px;
  padding: 1.25rem 1.15rem 1.1rem;
  border: 1px solid rgba(58, 13, 23, 0.12);
  background:
    linear-gradient(180deg, rgba(250, 248, 243, 0.92), rgba(255, 255, 255, 0.82)),
    rgba(255, 255, 255, 0.72);
  box-shadow: 0 16px 40px rgba(26, 26, 26, 0.08);
  backdrop-filter: blur(14px);
  transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
}

.partner-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(135deg, rgba(185, 151, 91, 0.14), transparent 58%);
  transition: opacity 240ms ease;
}

.partner-card:hover {
  transform: translateY(-4px);
  border-color: rgba(185, 151, 91, 0.34);
  box-shadow: 0 24px 54px rgba(26, 26, 26, 0.12);
}

.partner-card:hover::before {
  opacity: 1;
}

.partner-card > * {
  position: relative;
  z-index: 1;
}

.partner-logo {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 62px;
}

.partner-logo img {
  max-width: min(190px, 100%);
  max-height: 56px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: saturate(0.96) contrast(1.02);
}

.partner-logo--wordmark {
  color: var(--ink);
  font-weight: 800;
  text-align: center;
}

.partner-logo--wordmark.partner-logo--leep {
  font-size: 2rem;
  letter-spacing: 0.36rem;
}

.partner-logo--wordmark.partner-logo--sanchez {
  gap: 0.18rem;
}

.partner-logo--wordmark.partner-logo--sanchez strong {
  font-size: 1.35rem;
  letter-spacing: 0.02em;
}

.partner-logo--wordmark.partner-logo--sanchez span {
  color: rgba(26, 26, 26, 0.72);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
}

.partner-name {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

.contact-cta {
  position: relative;
  overflow: hidden;
  margin-top: 4rem;
  padding: 4rem 0 3.25rem;
  background:
    linear-gradient(135deg, rgba(58, 13, 23, 0.96) 0%, rgba(32, 18, 22, 0.98) 46%, rgba(21, 21, 21, 1) 100%),
    var(--charcoal);
  color: var(--paper-bright);
}

.contact-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(250, 248, 243, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(250, 248, 243, 0.06) 1px, transparent 1px);
  background-size: 82px 82px;
  mask-image: linear-gradient(90deg, transparent 0%, #000 22%, #000 78%, transparent 100%);
}

.contact-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(620px, 700px);
  width: var(--shell);
  margin: 0 auto;
  gap: clamp(1.4rem, 2.8vw, 3.2rem);
  align-items: center;
  justify-items: stretch;
  text-align: left;
}

.contact-copy {
  max-width: 680px;
}

.contact-shell h2 {
  max-width: 690px;
  margin-inline: 0;
  color: var(--paper-bright);
  font-size: clamp(2.55rem, 3.35vw, 4.2rem);
  line-height: 1.04;
  text-wrap: balance;
}

.section-support {
  margin: 0;
  color: rgba(250, 248, 243, 0.72);
  font-size: 1rem;
  line-height: 1.75;
  text-wrap: pretty;
}

.contact-shell .section-support {
  max-width: 610px;
  margin: 1rem 0 0;
}

.contact-card {
  position: relative;
  display: grid;
  gap: 1.05rem;
  justify-self: stretch;
  width: 100%;
  padding: 1.05rem;
  overflow: hidden;
  border: 1px solid rgba(250, 248, 243, 0.18);
  background:
    linear-gradient(135deg, rgba(250, 248, 243, 0.11), rgba(250, 248, 243, 0.05)),
    rgba(21, 21, 21, 0.28);
  text-align: left;
  backdrop-filter: blur(16px);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.24);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.contact-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-top: 2px solid rgba(185, 151, 91, 0.62);
}

.contact-card:hover {
  transform: translateY(-4px);
  border-color: rgba(185, 151, 91, 0.48);
  box-shadow: 0 30px 84px rgba(0, 0, 0, 0.32);
}

.button-full {
  width: 100%;
}

.contact-card .button-primary {
  position: relative;
  overflow: hidden;
}

.contact-card .button-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-120%) skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transition: transform 620ms ease;
}

.contact-card .button-primary:hover::after {
  transform: translateX(120%) skewX(-18deg);
}

.contact-list {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  justify-content: space-between;
  gap: 0.8rem 1.05rem;
}

.contact-list p {
  display: grid;
  gap: 0.15rem;
  margin: 0;
  min-width: 0;
}

.contact-list span {
  color: rgba(250, 248, 243, 0.6);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-list a,
.contact-list strong {
  color: var(--paper-bright);
  font-weight: 600;
  font-size: 0.92rem;
  overflow-wrap: normal;
  word-break: normal;
  white-space: nowrap;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: var(--shell);
  margin: 0 auto;
  padding: 0.85rem 0 1rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.footer-brand,
.footer-meta {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.footer-logo {
  width: 2.5rem;
  height: auto;
  object-fit: contain;
}

.footer-brand p {
  margin: 0;
}

.footer-meta a:hover {
  color: var(--burgundy);
}

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 220ms ease, visibility 220ms ease;
}

.contact-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.contact-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.74);
  backdrop-filter: blur(10px);
}

.contact-modal__panel {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  padding: clamp(1.4rem, 2vw, 2rem);
  border: 1px solid rgba(250, 248, 243, 0.14);
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(58, 13, 23, 0.96), rgba(21, 21, 21, 0.98));
  color: var(--paper-bright);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.34);
  transform: translateY(14px) scale(0.98);
  transition: transform 280ms ease;
}

.contact-modal.is-open .contact-modal__panel {
  transform: translateY(0) scale(1);
}

.contact-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  aspect-ratio: 1;
  border: 1px solid rgba(250, 248, 243, 0.18);
  border-radius: 999px;
  background: transparent;
  color: var(--paper-bright);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transform: rotate(45deg);
  transition: border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.contact-modal__close:hover {
  border-color: rgba(185, 151, 91, 0.7);
  color: var(--gold);
  transform: rotate(45deg) scale(1.04);
}

.contact-modal__eyebrow {
  margin: 0 0 0.55rem;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.contact-modal__panel h2 {
  color: var(--paper-bright);
  max-width: 13ch;
  font-size: clamp(2.2rem, 4vw, 3.3rem);
}

.contact-modal__intro,
.contact-modal__target {
  margin: 0.7rem 0 0;
  color: rgba(250, 248, 243, 0.76);
}

.contact-modal__target strong {
  color: var(--paper-bright);
}

.contact-form {
  margin-top: 1.45rem;
}

.contact-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.contact-form label {
  display: grid;
  gap: 0.45rem;
}

.contact-form span {
  color: rgba(250, 248, 243, 0.72);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(250, 248, 243, 0.15);
  border-radius: 8px;
  background: rgba(250, 248, 243, 0.06);
  color: var(--paper-bright);
  padding: 0.9rem 1rem;
  outline: none;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(185, 151, 91, 0.72);
  background: rgba(250, 248, 243, 0.1);
  box-shadow: 0 0 0 3px rgba(185, 151, 91, 0.16);
}

.contact-form textarea {
  resize: vertical;
  min-height: 10rem;
}

.contact-form__message {
  margin-top: 1rem;
}

.contact-form__status {
  min-height: 1.5rem;
  margin: 0.95rem 0 0;
  color: rgba(250, 248, 243, 0.76);
}

.contact-form__status[data-state="success"] {
  color: #d8f0dc;
}

.contact-form__status[data-state="error"] {
  color: #ffd0d0;
}

.contact-form__actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 0.55rem;
}

.button.button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.2rem;
  padding: 0 1.45rem;
  border: 1px solid transparent;
  background: var(--gold);
  color: var(--charcoal);
  font-weight: 800;
}

.contact-form__actions .button-primary:disabled {
  opacity: 0.7;
  cursor: wait;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 220ms ease, visibility 220ms ease;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.82);
  backdrop-filter: blur(10px);
}

.lightbox__panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  width: min(1180px, 100%);
  max-height: calc(100svh - 3rem);
  overflow: hidden;
  background: #121212;
  color: var(--paper-bright);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
  transform: translateY(12px) scale(0.985);
  transition: transform 260ms ease;
}

.lightbox.is-open .lightbox__panel {
  transform: translateY(0) scale(1);
}

.lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  width: 2.5rem;
  aspect-ratio: 1;
  border: 1px solid rgba(250, 248, 243, 0.16);
  border-radius: 999px;
  background: rgba(21, 21, 21, 0.45);
  color: var(--paper-bright);
  font-size: 1.5rem;
  line-height: 1;
  transform: rotate(45deg);
  cursor: pointer;
}

.lightbox__media {
  min-height: 100%;
  background: #0c0c0c;
}

.lightbox__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lightbox__content {
  display: grid;
  align-content: center;
  gap: 1rem;
  padding: clamp(1.6rem, 3vw, 2.8rem);
  background:
    linear-gradient(160deg, rgba(58, 13, 23, 0.44), transparent 44%),
    #161616;
}

.lightbox__content h2 {
  color: var(--paper-bright);
  font-size: clamp(2rem, 3.2vw, 3.3rem);
}

.lightbox__meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  color: rgba(250, 248, 243, 0.72);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lightbox__content p:last-child {
  margin: 0;
  color: rgba(250, 248, 243, 0.82);
  line-height: 1.75;
}

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

  .gallery-card--featured,
  .gallery-card--portrait,
  .gallery-card--standard,
  .gallery-card--wide,
  .gallery-card--compact {
    grid-column: span 6;
  }

  .lightbox__media {
    max-height: 46svh;
  }
}

@media (max-width: 860px) {
  :root {
    --shell: min(1280px, calc(100% - 1.5rem));
  }

  .gallery-header__inner {
    min-height: auto;
    padding: 1rem 0;
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 0.9rem;
  }

  .gallery-nav {
    order: 3;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .gallery-cta {
    order: 2;
    flex-basis: 100%;
    margin-inline: auto;
  }

  .gallery-card--featured,
  .gallery-card--portrait,
  .gallery-card--standard,
  .gallery-card--wide,
  .gallery-card--compact {
    grid-column: 1 / -1;
    min-height: 400px;
  }

  .contact-shell {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .partners-section {
    margin-top: 3.6rem;
  }

  .contact-shell h2,
  .contact-shell .section-support {
    margin-inline: auto;
  }

  .contact-card {
    width: min(100%, 700px);
    max-width: 700px;
  }

  .contact-list {
    grid-template-columns: repeat(3, max-content);
    justify-content: center;
    gap: 0.75rem 1.25rem;
  }

  .contact-list a,
  .contact-list strong {
    font-size: clamp(0.84rem, 1.35vw, 0.92rem);
    white-space: nowrap;
  }

  .contact-form__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .gallery-brand {
    min-width: 0;
  }

  .gallery-brand__logo {
    width: 3.35rem;
  }

  .gallery-brand__text strong {
    font-size: 0.94rem;
  }

  .gallery-brand__text span {
    font-size: 0.7rem;
  }

  .gallery-hero {
    padding-top: 3rem;
  }

  h1 {
    font-size: clamp(2.65rem, 13vw, 4rem);
  }

  .gallery-toolbar {
    padding-top: 0.45rem;
  }

  .gallery-filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
  }

  .gallery-filter {
    width: 100%;
    min-height: 3rem;
    padding: 0.75rem 0.9rem;
    justify-content: center;
    text-align: center;
    line-height: 1.25;
  }

  .gallery-filter:first-child {
    grid-column: 1 / -1;
  }

  .gallery-card {
    min-height: 350px;
  }

  .partners-section__head h2 {
    max-width: 18ch;
  }

  .partners-track {
    gap: 0.8rem;
    animation-duration: 26s;
  }

  .partner-card {
    width: 210px;
    min-height: 136px;
    padding: 1rem 0.9rem;
  }

  .partner-logo img {
    max-width: min(150px, 100%);
    max-height: 48px;
  }

  .contact-card {
    max-width: 100%;
  }

  .contact-list {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .contact-list a,
  .contact-list strong {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .site-footer,
  .footer-brand,
  .footer-meta {
    flex-wrap: wrap;
    text-align: center;
    justify-content: center;
  }

  .site-footer {
    gap: 0.45rem 0.9rem;
  }

  .contact-modal {
    padding: 0.85rem;
  }

  .contact-modal__panel {
    width: 100%;
    max-height: calc(100svh - 1.7rem);
    overflow-y: auto;
    padding: 1.15rem 1rem 1rem;
    border-radius: 10px;
  }

  .contact-modal__close {
    top: 0.8rem;
    right: 0.8rem;
    width: 2.25rem;
  }

  .contact-modal__panel h2 {
    max-width: none;
    padding-right: 2.4rem;
    font-size: clamp(1.9rem, 9vw, 2.45rem);
  }

  .contact-modal__intro,
  .contact-modal__target {
    font-size: 0.94rem;
  }

  .contact-form {
    margin-top: 1.2rem;
  }

  .contact-form__grid {
    gap: 0.85rem;
  }

  .contact-form label {
    gap: 0.35rem;
  }

  .contact-form input,
  .contact-form textarea {
    padding: 0.82rem 0.9rem;
  }

  .contact-form textarea {
    min-height: 8.5rem;
  }

  .contact-form__message {
    margin-top: 0.85rem;
  }

  .contact-form__actions {
    margin-top: 0.7rem;
  }

  .contact-form__actions .button-primary {
    width: 100%;
  }

  .gallery-card__content {
    padding: 1rem;
  }

  .gallery-card__content h3 {
    font-size: 2rem;
  }

  .lightbox {
    padding: 0.8rem;
  }

  .lightbox__panel {
    max-height: calc(100svh - 1.6rem);
  }

  .lightbox__content {
    padding: 1.15rem 1rem 1.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}

@keyframes partners-marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-50% - 0.5rem));
  }
}
