/* Maturo Group — premium editorial corporate */

:root {
  --charcoal: #121110;
  --charcoal-soft: #1c1a18;
  --charcoal-elevated: #24211e;
  --ivory: #f4efe6;
  --ivory-muted: #d8d0c4;
  --ivory-dim: #a79f93;
  --bronze: #a8895a;
  --bronze-soft: #8f7349;
  --line: rgba(244, 239, 230, 0.12);
  --line-strong: rgba(244, 239, 230, 0.22);
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Sora", "Segoe UI", sans-serif;
  --header-h: 5.25rem;
  --container: 72rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--charcoal);
  color: var(--ivory);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0;
}

p { margin: 0; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 1000;
  background: var(--ivory);
  color: var(--charcoal);
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
}

.skip-link:focus {
  top: 1rem;
}

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

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  transform: translate3d(0, 0, 0);
  transition:
    background 0.35s var(--ease),
    border-color 0.35s var(--ease),
    backdrop-filter 0.35s var(--ease),
    transform 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(18, 17, 16, 0.96);
  border-bottom-color: var(--line);
  backdrop-filter: blur(8px);
}

.site-header.is-hidden {
  transform: translate3d(0, -100%, 0);
  pointer-events: none;
}

.site-header.is-open.is-hidden {
  transform: translate3d(0, 0, 0);
  pointer-events: auto;
}

.header-inner {
  width: min(100% - 2rem, calc(var(--container) + 2rem));
  margin-inline: auto;
  height: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  transition: opacity 0.25s var(--ease);
}

.logo:hover { opacity: 0.85; }

.logo img {
  width: clamp(8.5rem, 14vw, 10.75rem);
  height: auto;
  display: block;
}

.logo-footer img {
  width: clamp(10.5rem, 22vw, 13.5rem);
}

.nav-list {
  display: flex;
  justify-content: center;
  gap: clamp(1rem, 2.2vw, 2rem);
}

.nav-list a {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ivory-muted);
  transition: color 0.25s var(--ease);
}

.nav-list a:hover,
.nav-list a:focus-visible {
  color: var(--ivory);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.8rem 1.35rem;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.btn-header {
  border-color: var(--line-strong);
  color: var(--ivory);
  white-space: nowrap;
}

.btn-header:hover,
.btn-header:focus-visible {
  border-color: var(--bronze);
  color: var(--bronze);
}

.btn-primary {
  background: var(--ivory);
  color: var(--charcoal);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--bronze);
  color: var(--charcoal);
}

.btn-secondary {
  border-color: var(--line-strong);
  color: var(--ivory);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  border-color: var(--ivory);
  background: rgba(244, 239, 230, 0.06);
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1.35rem;
  height: 1px;
  margin: 0.35rem auto;
  background: var(--ivory);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.site-header.is-open .nav-toggle span:first-child {
  transform: translateY(4.5px) rotate(45deg);
}

.site-header.is-open .nav-toggle span:last-child {
  transform: translateY(-4.5px) rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  padding: calc(var(--header-h) + 2rem) 0 4.5rem;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1.04);
  animation: hero-drift 18s var(--ease) infinite alternate;
}

@keyframes hero-drift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.08) translate3d(-1.2%, -0.8%, 0); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(18, 17, 16, 0.55) 0%, rgba(18, 17, 16, 0.28) 38%, rgba(18, 17, 16, 0.78) 78%, rgba(18, 17, 16, 0.96) 100%),
    linear-gradient(90deg, rgba(18, 17, 16, 0.55) 0%, rgba(18, 17, 16, 0.15) 55%, rgba(18, 17, 16, 0.35) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
  max-width: 44rem;
  animation: rise 1s var(--ease) both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.eyebrow,
.section-label {
  margin: 0 0 1rem;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--bronze);
}

.hero h1 {
  font-size: clamp(2.6rem, 6.2vw, 4.6rem);
  font-weight: 500;
  max-width: 14ch;
  margin-bottom: 1.25rem;
}

.hero-lead {
  max-width: 38rem;
  color: var(--ivory-muted);
  font-size: 1.02rem;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero-scroll {
  position: absolute;
  right: clamp(1.25rem, 4vw, 3rem);
  bottom: 2rem;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ivory-dim);
}

.hero-scroll::after {
  content: "";
  width: 1px;
  height: 2.5rem;
  background: linear-gradient(to bottom, var(--bronze), transparent);
  animation: scroll-line 1.8s var(--ease) infinite;
}

@keyframes scroll-line {
  0%, 100% { opacity: 0.35; transform: scaleY(0.7); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
}

/* Sections */
.section {
  padding: clamp(5rem, 10vw, 8.5rem) 0;
}

.section-header {
  max-width: 36rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-header h2,
.contact h2,
.opportunities h2,
.division h2,
.about-heading {
  font-size: clamp(2.1rem, 4.2vw, 3.35rem);
  margin-bottom: 1rem;
}

.section-header p,
.contact p,
.opportunities p,
.division p,
.about-copy p {
  color: var(--ivory-muted);
}

.about-copy p + p {
  margin-top: 1.15rem;
}

/* About */
.about {
  background: var(--charcoal);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 6vw, 5.5rem);
  align-items: center;
}

.about-media {
  position: relative;
}

.about-media::before {
  content: "";
  position: absolute;
  inset: 1.25rem -1.25rem -1.25rem 1.25rem;
  border: 1px solid var(--line);
  z-index: 0;
}

.about-media img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.about-copy {
  padding-block: 1rem;
}

.about-heading {
  max-width: 16ch;
  margin-bottom: 1.5rem;
}

/* Portfolio */
.portfolio {
  background:
    linear-gradient(180deg, var(--charcoal) 0%, var(--charcoal-soft) 40%, var(--charcoal) 100%);
  border-top: 1px solid var(--line);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1.25rem, 2.5vw, 1.75rem);
}

.portfolio-card {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
}

.portfolio-card.card-featured {
  grid-column: span 5;
  grid-row: span 2;
}

.portfolio-card.card-wide {
  grid-column: span 7;
}

.portfolio-card.card-tall {
  grid-column: span 4;
}

.portfolio-media {
  display: block;
  overflow: hidden;
  margin-bottom: 1.25rem;
  background: var(--charcoal-elevated);
}

.portfolio-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.8s var(--ease), filter 0.8s var(--ease);
  filter: saturate(0.92) contrast(1.02);
}

.card-featured .portfolio-media img,
.card-tall .portfolio-media img {
  aspect-ratio: 3 / 4;
}

.card-wide .portfolio-media img {
  aspect-ratio: 16 / 10;
}

.portfolio-card:hover .portfolio-media img,
.portfolio-card:focus-within .portfolio-media img {
  transform: scale(1.035);
  filter: saturate(1) contrast(1.04);
}

.portfolio-location {
  margin-bottom: 0.45rem;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bronze);
}

.portfolio-body h3 {
  font-size: clamp(1.55rem, 2.4vw, 2rem);
  margin-bottom: 0.75rem;
}

.portfolio-body p {
  color: var(--ivory-muted);
  font-size: 0.95rem;
  margin-bottom: 1.15rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ivory);
  border-bottom: 1px solid transparent;
  padding-bottom: 0.15rem;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), gap 0.25s var(--ease);
}

.text-link::after {
  content: "→";
  transition: transform 0.25s var(--ease);
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--bronze);
  border-bottom-color: var(--bronze);
  gap: 0.75rem;
}

.text-link:hover::after,
.text-link:focus-visible::after {
  transform: translateX(2px);
}

/* Divisions */
.divisions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 70vh;
  border-top: 1px solid var(--line);
}

.division {
  position: relative;
  min-height: 32rem;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: clamp(2rem, 4vw, 3.5rem);
}

.division + .division {
  border-left: 1px solid var(--line);
}

.division-media {
  position: absolute;
  inset: 0;
}

.division-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}

.division:hover .division-media img {
  transform: scale(1.04);
}

.division-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 17, 16, 0.25) 0%, rgba(18, 17, 16, 0.78) 68%, rgba(18, 17, 16, 0.94) 100%);
}

.division-content {
  position: relative;
  z-index: 1;
  max-width: 28rem;
}

.division-content h2 {
  margin-bottom: 1rem;
}

/* Opportunities */
.opportunities {
  background: var(--charcoal-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.opportunities-inner {
  max-width: 42rem;
  padding: clamp(1rem, 3vw, 2rem) 0;
}

.opportunities h2 {
  max-width: 16ch;
}

.opportunities p {
  margin: 0 0 2rem;
  max-width: 38rem;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: end;
  border-top: 1px solid var(--line);
  padding-top: clamp(2.5rem, 5vw, 4rem);
}

.contact h2 {
  max-width: 12ch;
}

.contact-block {
  border: 1px solid var(--line);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: rgba(244, 239, 230, 0.02);
}

.contact-label {
  margin-bottom: 0.75rem;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bronze);
}

.contact-item + .contact-item {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.contact-email,
.contact-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  transition: color 0.25s var(--ease);
}

.contact-email .icon-mail,
.contact-phone .icon-phone {
  width: 0.85em;
  height: 0.85em;
  color: var(--bronze);
  opacity: 0.85;
}

.contact-email:hover,
.contact-email:focus-visible,
.contact-phone:hover,
.contact-phone:focus-visible {
  color: var(--bronze);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
  background: #0e0d0c;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line);
}

.footer-tagline {
  margin-top: 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ivory-dim);
}

.footer-heading {
  margin-bottom: 1rem;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bronze);
}

.icon {
  width: 0.85em;
  height: 0.85em;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

.footer-nav a,
.footer-contact a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--ivory-muted);
  font-size: 0.92rem;
  margin-bottom: 0.55rem;
  transition: color 0.25s var(--ease);
}

.footer-nav .icon-external {
  width: 0.78em;
  height: 0.78em;
  opacity: 0.55;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), color 0.25s var(--ease);
}

.footer-contact .icon-mail,
.footer-contact .icon-phone {
  width: 0.95em;
  height: 0.95em;
  opacity: 0.7;
  color: var(--bronze);
  transition: opacity 0.25s var(--ease), color 0.25s var(--ease);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-nav a:hover,
.footer-nav a:focus-visible,
.footer-contact a:hover,
.footer-contact a:focus-visible {
  color: var(--ivory);
}

.footer-nav a:hover .icon-external,
.footer-nav a:focus-visible .icon-external {
  opacity: 1;
  color: var(--bronze);
  transform: translate(1px, -1px);
}

.footer-contact a:hover .icon-mail,
.footer-contact a:focus-visible .icon-mail,
.footer-contact a:hover .icon-phone,
.footer-contact a:focus-visible .icon-phone {
  opacity: 1;
  color: var(--bronze);
}

.footer-base {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.5rem;
  font-size: 0.78rem;
  color: var(--ivory-dim);
}

.footer-base a {
  border-bottom: 1px solid transparent;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.footer-base a:hover,
.footer-base a:focus-visible {
  color: var(--ivory);
  border-bottom-color: var(--bronze);
}

.footer-credit {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.footer-credit .icon-heart {
  width: 0.85em;
  height: 0.85em;
  color: var(--bronze);
  transform-origin: center;
  opacity: 0.85;
  animation: heart-beat 2.4s ease-in-out infinite;
  will-change: transform, opacity;
}

@keyframes heart-beat {
  0%, 100% {
    transform: scale(1);
    opacity: 0.75;
  }
  14% {
    transform: scale(1.08);
    opacity: 1;
  }
  28% {
    transform: scale(1);
    opacity: 0.8;
  }
  42% {
    transform: scale(1.05);
    opacity: 0.95;
  }
  56%, 100% {
    transform: scale(1);
    opacity: 0.75;
  }
}

@media (prefers-reduced-motion: reduce) {
  .footer-credit .icon-heart {
    animation: none;
    opacity: 0.85;
  }
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

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

/* Responsive */
@media (max-width: 1100px) {
  .portfolio-card,
  .portfolio-card.card-featured,
  .portfolio-card.card-wide,
  .portfolio-card.card-tall {
    grid-column: span 6;
    grid-row: auto;
  }

  .card-featured .portfolio-media img,
  .card-tall .portfolio-media img {
    aspect-ratio: 4 / 5;
  }
}

@media (max-width: 900px) {
  .header-inner {
    grid-template-columns: 1fr auto auto;
  }

  .nav-toggle { display: block; }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    background: rgba(18, 17, 16, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 1.25rem 1.25rem 1.75rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
  }

  .site-header.is-open .nav {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.1rem;
  }

  .btn-header {
    display: none;
  }

  .about-grid,
  .contact-grid,
  .divisions,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .division + .division {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .division {
    min-height: 26rem;
  }

  .about-media {
    max-width: 28rem;
  }

  .hero-scroll { display: none; }
}

@media (max-width: 640px) {
  :root { --header-h: 4.5rem; }

  .portfolio-card,
  .portfolio-card.card-featured,
  .portfolio-card.card-wide,
  .portfolio-card.card-tall {
    grid-column: span 12;
  }

  .hero {
    align-items: center;
    padding-bottom: 3rem;
  }

  .hero h1 {
    max-width: none;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .about-media::before {
    inset: 0.85rem -0.85rem -0.85rem 0.85rem;
  }

  .footer-base {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-media img {
    animation: none;
    transform: none;
  }

  .hero-content {
    animation: none;
  }
}

/* ─────────────────────────────────────────
   Site opener — editorial logo handoff
───────────────────────────────────────── */

html.has-opener,
html.has-opener body {
  overflow: hidden;
}

html.has-opener .site-header .logo {
  opacity: 0;
  visibility: hidden;
}

/* Must beat has-opener so the header mark is already there during handoff */
html.has-opener .site-header .logo.is-revealed {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.2s linear;
}

html.has-opener .hero-content,
html.has-opener .hero-scroll {
  opacity: 0;
  animation: none;
}

html.is-ready .hero-content {
  animation: rise 1s var(--ease) both;
}

html.is-ready .hero-scroll {
  opacity: 1;
  transition: opacity 0.8s var(--ease) 0.35s;
}

.site-header .logo.is-revealed {
  opacity: 1;
  visibility: visible;
}

.site-opener {
  display: none;
}

html.has-opener .site-opener {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  background: var(--charcoal);
  color: var(--ivory);
  pointer-events: all;
}

.opener-veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 45%, rgba(168, 137, 90, 0.1), transparent 70%),
    linear-gradient(180deg, #0e0d0c 0%, var(--charcoal) 45%, #171513 100%);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.opener-veil::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.opener-stage {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(14.5rem, 58vw);
  overflow: visible;
}

.opener-line {
  position: absolute;
  top: 48%;
  left: 50%;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--bronze), transparent);
  transform: translate(-50%, -50%);
  transition: width 0.7s var(--ease), opacity 0.5s var(--ease);
  opacity: 0.9;
}

.site-opener.is-line .opener-line {
  width: min(12rem, 52vw);
}

.site-opener.is-maturo .opener-line {
  opacity: 0;
}

#opener-logo-mount {
  width: 100%;
  transform-origin: center center;
  will-change: transform;
  transition: transform 0.95s cubic-bezier(0.65, 0.05, 0.2, 1);
}

.opener-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.opener-letter {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center bottom;
}

.opener-letter-maturo {
  transform: translateY(18px) scale(0.94);
  transition:
    opacity 0.95s var(--ease) calc(var(--i) * 140ms),
    transform 1.1s var(--ease) calc(var(--i) * 140ms),
    filter 1.1s var(--ease) calc(var(--i) * 140ms);
  filter: blur(4px);
}

.site-opener.is-maturo .opener-letter-maturo {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.opener-letter-group {
  transform: translateY(14px);
  transition:
    opacity 0.95s var(--ease) calc(var(--i) * 140ms),
    transform 1.1s var(--ease) calc(var(--i) * 140ms);
}

.site-opener.is-group .opener-letter-group {
  opacity: 1;
  transform: translateY(0);
}

.opener-tag {
  margin-top: 1.6rem;
  margin-right: -0.18em; /* offset trailing letter-spacing for true optical center */
  align-self: center;
  flex-shrink: 0;
  width: max-content;
  max-width: none;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap !important;
  color: var(--ivory-dim);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.site-opener.is-tag .opener-tag {
  opacity: 1;
  transform: translateY(0);
}

.site-opener.is-exit {
  pointer-events: none;
}

.site-opener.is-exit .opener-veil {
  opacity: 0;
  transition: opacity 0.9s var(--ease);
}

.site-opener.is-exit .opener-stage {
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.7s var(--ease), transform 0.8s var(--ease);
}

.site-opener.is-gone {
  visibility: hidden;
  pointer-events: none;
}

@media (max-width: 640px) {
  .opener-stage {
    width: min(11.5rem, 54vw);
  }

  .opener-tag {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    margin-right: -0.14em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-opener {
    display: none;
  }

  html.has-opener .site-header .logo,
  html.has-opener .hero-content,
  html.has-opener .hero-scroll {
    opacity: 1;
    visibility: visible;
    animation: none;
  }
}

/* Inner pages */
.page-inner .site-header {
  background: rgba(18, 17, 16, 0.55);
}

.page-hero {
  position: relative;
  min-height: 88svh;
  display: grid;
  align-items: end;
  padding: calc(var(--header-h) + 2rem) 0 4.5rem;
  overflow: hidden;
}

.page-hero-media {
  position: absolute;
  inset: 0;
}

.page-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

.page-hero-content {
  position: relative;
  z-index: 1;
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
  max-width: 44rem;
}

.page-hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.4rem);
  max-width: 14ch;
  margin-bottom: 1.25rem;
}

.occasion-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.75rem;
}

.occasion-list li {
  border: 1px solid var(--line);
  padding: 0.45rem 0.75rem;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ivory-muted);
}

.events-gallery {
  border-top: 1px solid var(--line);
  background: var(--charcoal-soft);
}

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

.gallery-item {
  grid-column: span 4;
  padding: 0;
  border: 0;
  background: var(--charcoal-elevated);
  overflow: hidden;
  cursor: zoom-in;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform 0.7s var(--ease), filter 0.7s var(--ease);
  filter: saturate(0.94);
}

.gallery-wide {
  grid-column: span 8;
}

.gallery-wide img {
  aspect-ratio: 16 / 10;
}

.gallery-tall {
  grid-column: span 4;
}

.gallery-tall img {
  aspect-ratio: 3 / 4;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.04);
  filter: saturate(1);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  background: rgba(10, 9, 8, 0.94);
  padding: 4rem 3.5rem;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-image {
  max-width: min(92vw, 56rem);
  max-height: 86vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  border: 0;
  background: transparent;
  color: var(--ivory);
  font-family: var(--font-body);
  cursor: pointer;
}

.lightbox-close {
  top: 1.25rem;
  right: 1.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ivory-muted);
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.4rem;
  line-height: 1;
  color: var(--ivory-dim);
}

.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover,
.lightbox-close:focus-visible,
.lightbox-prev:focus-visible,
.lightbox-next:focus-visible {
  color: var(--ivory);
}

.nav-list a[aria-current="page"] {
  color: var(--ivory);
}

@media (max-width: 900px) {
  .gallery-item,
  .gallery-wide,
  .gallery-tall {
    grid-column: span 6;
  }
}

@media (max-width: 640px) {
  .gallery-item,
  .gallery-wide,
  .gallery-tall {
    grid-column: span 12;
  }

  .lightbox {
    padding: 4rem 1rem;
  }

  .lightbox-prev { left: 0.25rem; }
  .lightbox-next { right: 0.25rem; }
}
