:root {
  --h-bg: #f4f0e8;
  --h-bg-soft: #fbf8f1;
  --h-ink: #171513;
  --h-ink-soft: #4f4a43;
  --h-muted: #82796d;
  --h-stone: #d8d0c2;
  --h-gold: #b49a67;
  --h-bordeaux: #6b1f2a;
  --h-white: #fffdf8;
  --h-shadow: 0 26px 70px rgba(23, 21, 19, .14);
  --h-serif: 'Cormorant Garamond', Georgia, serif;
  --h-sans: 'Montserrat', Arial, sans-serif;
  --h-ease: cubic-bezier(.22, .61, .36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 86px;
}

body.hommage-site {
  margin: 0;
  font-family: var(--h-sans);
  color: var(--h-ink);
  background: var(--h-bg);
  line-height: 1.65;
}

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

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

.hommage-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 52px);
  color: var(--h-ink);
  background: rgba(251, 248, 241, .96);
  border-bottom: 1px solid rgba(23, 21, 19, .1);
  box-shadow: 0 14px 42px rgba(23, 21, 19, .12);
  backdrop-filter: blur(14px);
}

.hommage-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.hommage-brand__logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
  opacity: .96;
}

.hommage-brand strong,
.hommage-brand small {
  display: block;
}

.hommage-brand strong {
  font-family: var(--h-serif);
  font-size: 1.25rem;
  letter-spacing: 0;
  line-height: 1;
}

.hommage-brand small {
  margin-top: 3px;
  font-size: .62rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--h-muted);
}

.hommage-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.2vw, 34px);
  font-size: .76rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hommage-nav a {
  opacity: .84;
  transition: opacity .45s var(--h-ease), color .45s var(--h-ease);
}

.hommage-nav a:hover {
  color: var(--h-bordeaux);
  opacity: 1;
}

.hommage-hero {
  position: relative;
  min-height: 86svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--h-white);
  padding: 116px clamp(18px, 6.5vw, 92px) 58px;
}

.hommage-hero__image,
.hommage-hero__veil {
  position: absolute;
  inset: 0;
}

.hommage-hero__image {
  background-image: url('/assets/images/hommages/hero-hommages-ceremonies.png');
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  animation: hommageBreathe 18s var(--h-ease) infinite alternate;
}

.hommage-hero__veil {
  background:
    linear-gradient(90deg, rgba(12, 10, 9, .86) 0%, rgba(12, 10, 9, .58) 43%, rgba(12, 10, 9, .26) 100%),
    linear-gradient(180deg, rgba(12, 10, 9, .18) 0%, rgba(12, 10, 9, .78) 100%);
}

.hommage-hero__content {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  animation: hommageReveal .9s var(--h-ease) both;
}

.hommage-kicker,
.hommage-section__eyebrow {
  margin: 0 0 18px;
  color: var(--h-gold);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.hommage-hero h1,
.hommage-section h2 {
  margin: 0;
  font-family: var(--h-serif);
  font-weight: 600;
  letter-spacing: 0;
  line-height: .98;
}

.hommage-hero h1 {
  max-width: 1080px;
  font-size: clamp(3.25rem, 6.2vw, 7rem);
}

.hommage-hero__lead {
  max-width: 780px;
  margin: 22px 0 0;
  color: rgba(255, 253, 248, .86);
  font-size: clamp(1rem, 1.6vw, 1.22rem);
}

.hommage-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.hommage-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 0;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .11em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .45s var(--h-ease), background .45s var(--h-ease), border-color .45s var(--h-ease);
}

.hommage-btn:hover {
  transform: translateY(-2px);
}

.hommage-btn--primary {
  color: var(--h-white);
  background: var(--h-bordeaux);
  border-color: var(--h-bordeaux);
}

.hommage-btn--ghost {
  color: var(--h-white);
  border-color: rgba(255, 253, 248, .45);
  background: rgba(255, 253, 248, .06);
}

.hommage-section {
  padding: clamp(48px, 6vw, 78px) clamp(18px, 6.5vw, 92px);
  scroll-margin-top: 86px;
}

.hommage-section__head {
  max-width: 780px;
  margin-bottom: clamp(24px, 3.5vw, 38px);
}

.hommage-section h2 {
  max-width: 1050px;
  color: var(--h-ink);
  font-size: clamp(2.15rem, 4.2vw, 4.1rem);
  line-height: 1.02;
}

.hommage-intro {
  background: var(--h-bg-soft);
}

.hommage-intro__grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(280px, .62fr);
  gap: clamp(30px, 7vw, 96px);
  align-items: start;
}

.hommage-intro__text {
  color: var(--h-ink-soft);
  font-size: 1.02rem;
}

.hommage-intro__text p {
  margin: 0 0 18px;
}

.hommage-services {
  background: #eee8dd;
}

.hommage-services__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(23, 21, 19, .14);
  border-left: 1px solid rgba(23, 21, 19, .14);
}

.hommage-service {
  min-height: 168px;
  padding: clamp(20px, 2.4vw, 30px);
  border-right: 1px solid rgba(23, 21, 19, .14);
  border-bottom: 1px solid rgba(23, 21, 19, .14);
  background: rgba(255, 253, 248, .34);
  transition: background .55s var(--h-ease), transform .55s var(--h-ease);
}

.hommage-service:hover {
  background: rgba(255, 253, 248, .72);
}

.hommage-service__number {
  display: block;
  margin-bottom: 22px;
  color: var(--h-gold);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .14em;
}

.hommage-service h3 {
  margin: 0;
  max-width: 360px;
  color: var(--h-ink);
  font-family: var(--h-serif);
  font-size: clamp(1.35rem, 1.8vw, 1.8rem);
  font-weight: 600;
  line-height: 1.12;
}

.hommage-service p {
  margin: 16px 0 0;
  color: var(--h-muted);
}

.hommage-gallery {
  background: var(--h-ink);
  color: var(--h-white);
  padding-top: clamp(42px, 5vw, 66px);
  padding-bottom: clamp(42px, 5vw, 66px);
}

.hommage-gallery .hommage-section__eyebrow,
.hommage-gallery h2 {
  color: var(--h-white);
}

.hommage-gallery .hommage-section__eyebrow {
  color: #d0b77d;
}

.hommage-gallery__grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(16px, 2.5vw, 28px);
  align-items: stretch;
}

.hommage-gallery__item {
  position: relative;
  min-height: 300px;
  margin: 0;
  overflow: hidden;
  background: #292521;
}

.hommage-gallery__item img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  opacity: .88;
  transition: transform 1.1s var(--h-ease), opacity 1.1s var(--h-ease);
}

.hommage-gallery__item:hover img {
  transform: scale(1.04);
  opacity: 1;
}

.hommage-gallery__item figcaption {
  position: absolute;
  left: 22px;
  bottom: 18px;
  max-width: calc(100% - 44px);
  color: rgba(255, 253, 248, .86);
  font-size: .86rem;
}

.hommage-gallery__note {
  display: flex;
  align-items: end;
  min-height: 300px;
  padding: clamp(22px, 3vw, 38px);
  color: rgba(255, 253, 248, .74);
  background: linear-gradient(145deg, #2a2723, #171513);
  border: 1px solid rgba(255, 253, 248, .11);
}

.hommage-gallery__note p {
  margin: 0;
  max-width: 360px;
}

.hommage-contact {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(320px, .68fr);
  gap: clamp(32px, 7vw, 96px);
  background: var(--h-bg-soft);
}

.hommage-contact__intro p {
  max-width: 590px;
  color: var(--h-ink-soft);
}

.hommage-contact__details {
  display: grid;
  gap: 8px;
  margin-top: 28px;
  color: var(--h-bordeaux);
  font-weight: 600;
}

.hommage-contact__form {
  padding: clamp(24px, 4vw, 42px);
  background: var(--h-white);
  border: 1px solid rgba(23, 21, 19, .09);
  box-shadow: var(--h-shadow);
}

.hommage-form {
  display: grid;
  gap: 18px;
}

.hommage-form label {
  display: grid;
  gap: 7px;
  color: var(--h-ink-soft);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hommage-form small {
  color: var(--h-muted);
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.hommage-form input,
.hommage-form textarea {
  width: 100%;
  border: 1px solid var(--h-stone);
  border-radius: 0;
  padding: 13px 14px;
  color: var(--h-ink);
  background: #fffaf2;
  font: inherit;
  outline: none;
  transition: border-color .35s var(--h-ease), background .35s var(--h-ease);
}

.hommage-form textarea {
  resize: vertical;
}

.hommage-form input:focus,
.hommage-form textarea:focus {
  border-color: var(--h-gold);
  background: var(--h-white);
}

.hommage-form__honeypot {
  position: absolute;
  left: -9999px;
}

.hommage-form-message,
.hommage-form-errors {
  padding: 18px;
  margin-bottom: 18px;
  border: 1px solid rgba(107, 31, 42, .22);
  background: #fbf5ef;
}

.hommage-form-message strong {
  display: block;
  color: var(--h-bordeaux);
}

.hommage-form-message p,
.hommage-form-errors p {
  margin: 4px 0 0;
}

.hommage-form-errors {
  color: var(--h-bordeaux);
}

.hommage-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 96px;
  padding: 20px clamp(18px, 6.5vw, 92px);
  color: rgba(255, 253, 248, .72);
  background: #10100f;
  font-size: .78rem;
}

.hommage-footer__logo {
  display: inline-flex;
  align-items: center;
  opacity: .72;
  transition: opacity .35s var(--h-ease), transform .35s var(--h-ease);
}

.hommage-footer__logo:hover {
  opacity: .95;
  transform: translateY(-1px);
}

.hommage-footer__logo img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.hommage-footer__legal {
  border: 0;
  padding: 0;
  color: rgba(255, 253, 248, .66);
  background: transparent;
  font: inherit;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color .35s var(--h-ease);
}

.hommage-footer__legal:hover {
  color: #d0b77d;
}

body.hommage-modal-open {
  overflow: hidden;
}

.hommage-legal-modal[hidden] {
  display: none;
}

.hommage-legal-modal {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
}

.hommage-legal-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 16, 15, .72);
  backdrop-filter: blur(8px);
}

.hommage-legal-modal__box {
  position: relative;
  width: min(760px, 100%);
  max-height: min(760px, 86svh);
  overflow: auto;
  padding: clamp(26px, 4vw, 44px);
  color: var(--h-ink);
  background: var(--h-white);
  border: 1px solid rgba(23, 21, 19, .1);
  box-shadow: 0 28px 86px rgba(0, 0, 0, .28);
}

.hommage-legal-modal__box h2 {
  margin: 0 0 18px;
  font-family: var(--h-serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 600;
  line-height: 1;
}

.hommage-legal-modal__content {
  color: var(--h-ink-soft);
  font-size: .95rem;
}

.hommage-legal-modal__content p {
  margin: 0 0 12px;
}

.hommage-legal-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(23, 21, 19, .14);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.hommage-legal-modal__close span,
.hommage-legal-modal__close span::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 1px;
  background: var(--h-ink);
  content: "";
}

.hommage-legal-modal__close span {
  transform: translate(-50%, -50%) rotate(45deg);
}

.hommage-legal-modal__close span::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

@keyframes hommageBreathe {
  from { transform: scale(1.04); }
  to { transform: scale(1.1); }
}

@keyframes hommageReveal {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 920px) {
  .hommage-header {
    align-items: flex-start;
  }

  .hommage-nav {
    display: none;
  }

  .hommage-hero {
    min-height: 82svh;
    padding-top: 112px;
  }

  .hommage-hero h1 {
    max-width: 100%;
    font-size: clamp(3rem, 10vw, 5.8rem);
  }

  .hommage-hero__veil {
    background:
      linear-gradient(180deg, rgba(12, 10, 9, .64) 0%, rgba(12, 10, 9, .82) 100%);
  }

  .hommage-intro__grid,
  .hommage-contact,
  .hommage-gallery__grid {
    grid-template-columns: 1fr;
  }

  .hommage-services__grid {
    grid-template-columns: 1fr 1fr;
  }

  .hommage-gallery__item,
  .hommage-gallery__note {
    min-height: 260px;
  }
}

@media (max-width: 620px) {
  .hommage-header {
    padding: 14px 16px;
  }

  .hommage-brand__logo {
    width: 38px;
    height: 38px;
  }

  .hommage-brand strong {
    font-size: 1.05rem;
  }

  .hommage-brand small {
    font-size: .56rem;
  }

  .hommage-hero {
    min-height: 88svh;
    padding: 96px 18px 38px;
  }

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

  .hommage-hero__lead {
    font-size: .98rem;
  }

  .hommage-hero__actions,
  .hommage-btn {
    width: 100%;
  }

  .hommage-section {
    padding: 54px 18px;
  }

  .hommage-services__grid {
    grid-template-columns: 1fr;
  }

  .hommage-service {
    min-height: 152px;
  }

  .hommage-contact__form {
    padding: 22px 18px;
  }

  .hommage-footer {
    flex-direction: column;
    justify-content: center;
    padding: 22px 18px;
  }

  .hommage-footer__logo img {
    width: 54px;
    height: 54px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
