/* Shared MVP site styles / assets/css/styles.css */

/* Shared root variables for all pages */
:root {
  --bg: #fcfbf8;
  --surface: #ffffff;
  --surface-soft: #f5f2ec;
  --surface-strong: #efe9df;
  --line: rgba(17, 17, 17, 0.1);
  --text: #111111;
  --muted: rgba(17, 17, 17, 0.72);
  --muted-soft: rgba(17, 17, 17, 0.54);
  --accent: #111111;
  --shadow: 0 20px 60px rgba(17, 17, 17, 0.08);
  --radius: 28px;
  --radius-sm: 18px;
  --max-width: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(17, 17, 17, 0.035), transparent 22%),
    linear-gradient(180deg, #fffdf9 0%, #fcfbf8 55%, #f8f4ed 100%);
  color: var(--text);
  font-family: "Manrope", sans-serif;
}

/* Shared page-loader styling for about.html, collections.html, services.html, consultation.html */
.page-loader-body {
  position: relative;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-shell {
  position: relative;
  z-index: 4;
}

/* index.html: homepage shell */
.home-shell {
  padding-top: 0.5rem;
}

/* Shared branded loader styling */
.page-loader-body .loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  gap: 1rem;
  background:
    radial-gradient(circle at center, rgba(0, 0, 0, 0.06), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 247, 244, 1));
  transition: opacity 700ms ease, visibility 700ms ease;
}

.page-loader-body .loader.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.page-loader-body .loader-mark {
  font-family: "Bodoni Moda", serif;
  font-size: clamp(2rem, 4vw, 4rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.page-loader-body .loader-line {
  width: min(26rem, calc(100% - 4rem));
  height: 2px;
  background: rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

.page-loader-body .loader-line span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0), #111111, rgba(0, 0, 0, 0));
  transition: width 180ms linear;
}

.page-loader-body .loader-copy {
  margin: 0;
  color: var(--muted);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

/* Shared page container and spacing */
.container {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
}

.page-section {
  padding: 5rem 0;
}

.page-section-accent {
  padding-top: 0;
}

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

/* Shared header styling for all pages */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(14px);
  background: rgba(252, 251, 248, 0.9);
  border-bottom: 1px solid rgba(17, 17, 17, 0.06);
}

.nav-bar {
  min-height: 5.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

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

.brand-logo,
.footer-logo {
  width: 3rem;
  height: 3rem;
  object-fit: contain;
  border-radius: 999px;
  background: #fff;
}

.brand-stack {
  display: grid;
  gap: 0.1rem;
}

.brand-mark,
h1,
h2,
h3 {
  font-family: "Bodoni Moda", serif;
}

.brand-mark {
  font-size: 1.3rem;
  line-height: 1;
}

.brand-tag,
.eyebrow,
.card-label {
  color: var(--muted-soft);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-links a {
  color: var(--muted);
  transition: color 180ms ease;
}

.nav-links a:hover,
.nav-links a.is-current {
  color: var(--text);
}

.nav-links a.button {
  color: #ffffff;
}

.nav-toggle {
  display: none;
  min-width: 2.9rem;
  min-height: 2.9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
}

.nav-backdrop,
.nav-close {
  display: none;
}

/* Shared buttons, quick action groups, and footer links */
.button-group,
.section-actions,
.cta-actions,
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.button,
.button-secondary,
.text-link {
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.button,
.button-secondary {
  min-height: 3.2rem;
  padding: 0 1.35rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
}

.button {
  background: var(--accent);
  color: #ffffff;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  border-color: var(--line);
}

.button:hover,
.button-secondary:hover,
.text-link:hover {
  transform: translateY(-1px);
}

.text-link {
  color: var(--text);
  width: fit-content;
  font-weight: 600;
}

.eyebrow {
  display: inline-block;
}

/* Shared typography styling */
h1,
h2,
h3 {
  margin: 0;
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(3rem, 7vw, 5.6rem);
}

h2 {
  font-size: clamp(2.2rem, 5vw, 4rem);
}

h3 {
  font-size: clamp(1.45rem, 3vw, 2rem);
}

p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.lead,
.section-copy {
  font-size: 1rem;
  max-width: 60ch;
}

/* index.html: homepage hero layout */
.home-hero {
  padding-top: 4rem;
}

.home-hero-grid,
.split-layout,
.footer-grid {
  display: grid;
  gap: 1.5rem;
}

.home-hero-grid {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.95fr);
  align-items: center;
}

.split-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.footer-grid {
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.8fr) minmax(0, 0.95fr);
  align-items: start;
  justify-items: start;
}

/* Shared content cards and layout panels */
.hero-copy,
.content-panel,
.reading-panel,
.section-header,
.cta-panel,
.info-card,
.hero-card,
.faq-item {
  display: grid;
  gap: 1rem;
}

.hero-visual {
  position: relative;
  min-height: 36rem;
}

/* index.html: homepage image cards */
.hero-card,
.media-panel,
.content-panel,
.reading-panel,
.info-card,
.gallery-card,
.cta-panel {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-card,
.gallery-card,
.media-panel {
  overflow: hidden;
}

.hero-card img,
.media-panel img,
.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-card-large {
  position: absolute;
  inset: 0 14% 10% 0;
}

.hero-card-small {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(15rem, 30vw);
  aspect-ratio: 4 / 5;
}

/* Shared card body spacing */
.content-panel,
.reading-panel,
.info-card,
.cta-panel {
  padding: 1.6rem;
}

.reading-panel {
  max-width: 56rem;
}

.media-panel {
  min-height: 24rem;
}

/* index.html and services.html: highlight pills */
.meta-pill {
  min-height: 2.7rem;
  padding: 0 1rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(17, 17, 17, 0.08);
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
}

/* Shared card grid styling */
.card-grid {
  display: grid;
  gap: 1.25rem;
}

.card-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* collections.html and index.html: gallery styling */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.gallery-grid-home .gallery-card {
  aspect-ratio: 0.9;
}

.gallery-card {
  aspect-ratio: 0.82;
}

.gallery-card button {
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
}

/* index.html: homepage CTA section */
.cta-panel {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

/* Footer: shared footer styling for all pages */
.site-footer {
  padding: 2.25rem 0 2.5rem;
  border-top: 1px solid rgba(17, 17, 17, 0.08);
}

.footer-grid {
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr) minmax(0, 1fr);
  align-items: start;
  gap: 1.75rem;
}

.footer-brand {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.footer-brand p {
  max-width: 34ch;
  margin-top: 0.35rem;
  font-size: 0.95rem;
  line-height: 1.7;
}

.footer-brand strong {
  font-family: "Bodoni Moda", serif;
  font-weight: 500;
  font-size: 1.2rem;
}

.footer-column {
  display: grid;
  gap: 0.9rem;
  align-content: start;
  min-width: 0;
}

.footer-label {
  margin: 0;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted-soft);
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
  min-width: 0;
}

.footer-links a {
  white-space: nowrap;
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: color 180ms ease;
}

.footer-nav a.is-current {
  color: var(--text);
}

.footer-nav a::after {
  content: "↗";
  color: inherit;
  font-size: 0.9em;
  font-weight: 700;
  line-height: 1;
  opacity: 0;
  transform: translateX(-0.18rem) translateY(0.02rem);
  transition: opacity 180ms ease, transform 180ms ease, color 180ms ease;
  flex: none;
}

.footer-nav a:hover,
.footer-nav a.is-current {
  color: var(--text);
}

.footer-nav a:hover::after,
.footer-nav a.is-current::after {
  color: var(--text);
  opacity: 1;
  transform: translateX(0) translateY(0);
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.15rem 0;
  width: fit-content;
}

.footer-social a:hover {
  color: var(--text);
}

.social-badge {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(247, 242, 235, 0.92));
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.social-badge--icon {
  padding: 0;
  overflow: hidden;
}

.social-label {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.footer-bottom {
  margin-top: 1.75rem;
  padding-top: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-top: 1px solid rgba(17, 17, 17, 0.08);
  color: var(--muted-soft);
  font-size: 0.92rem;
}

/* admin.html: consultation dashboard */
.admin-body .page-loader {
  z-index: 200;
}

.admin-page {
  padding-top: 2rem;
  padding-bottom: 3rem;
}

.admin-shell {
  display: grid;
  gap: 1.5rem;
}

.admin-card {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.6rem;
  display: grid;
  gap: 1rem;
}

.admin-login-form {
  max-width: 30rem;
  display: grid;
  gap: 1rem;
}

.admin-dashboard-card {
  gap: 1.25rem;
}

.admin-dashboard-header {
  display: grid;
  gap: 1rem;
}

.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
}

.admin-table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 0.95rem 1rem;
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted-soft);
  background: rgba(17, 17, 17, 0.02);
}

.admin-table td {
  color: var(--muted);
  line-height: 1.65;
}

.admin-table tbody tr:hover {
  background: rgba(17, 17, 17, 0.02);
}

[data-state="success"] {
  color: #0a6b37;
}

[data-state="error"] {
  color: #a31b1b;
}

[data-state="loading"] {
  color: var(--muted);
}

/* collections-gallery.html: dedicated gallery header */
.gallery-page .page-hero {
  padding-top: 6.25rem;
}

.gallery-page-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  position: fixed;
  top: calc(0.75rem + env(safe-area-inset-top));
  left: 50%;
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0;
  padding: 1rem 1.15rem;
  transform: translateX(-50%);
  z-index: 40;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 999px;
  background: rgba(252, 251, 248, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.gallery-page-close {
  min-width: 3.2rem;
  padding: 0;
  font-size: 1.6rem;
  line-height: 1;
}

.gallery-page-title {
  justify-self: start;
  text-align: left;
  font-weight: 700;
}

.gallery-page-spacer {
  width: 3.2rem;
  height: 3.2rem;
}

.gallery-page-copy {
  text-align: center;
  margin-bottom: 1.5rem;
}

/* services.html: process list styling */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.8rem;
  color: var(--muted);
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.feature-list li::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  margin-top: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

/* consultation.html: link styling */
.footer-links a {
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--text);
}

/* consultation.html: form styling */
form {
  display: grid;
  gap: 1rem;
}

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

.field {
  display: grid;
  gap: 0.5rem;
}

.field-full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted-soft);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 18px;
  padding: 0.95rem 1rem;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
}

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

.form-status {
  min-height: 1.5rem;
  font-size: 0.94rem;
}

/* consultation.html: dedicated page layout */
.consultation-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 1.5rem;
  align-items: start;
}

.consultation-sidebar,
.consultation-form-panel,
.process-card,
.quick-card {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.consultation-form-panel,
.consultation-sidebar,
.process-card,
.quick-card {
  padding: 1.6rem;
}

.consultation-sidebar,
.consultation-sidebar-stack,
.process-card,
.quick-card,
.consultation-hero-copy {
  display: grid;
  gap: 1rem;
}

.process-grid,
.quick-grid {
  display: grid;
  gap: 1rem;
}

.process-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.quick-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.process-number {
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  font-family: "Bodoni Moda", serif;
}

.consultation-note {
  padding: 1rem 0 0;
  border-top: 1px solid rgba(17, 17, 17, 0.08);
}

.quick-card a {
  font-weight: 600;
}

/* policy pages: terms-of-service.html and privacy-policy.html */
.policy-stack {
  display: grid;
  gap: 1rem;
}

.policy-section {
  display: grid;
  gap: 1rem;
}

.policy-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.85rem;
}

.policy-list li {
  position: relative;
  padding-left: 1.25rem;
  line-height: 1.8;
  color: var(--muted);
}

.policy-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.82rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: var(--accent);
}

.terms-acceptance,
.privacy-contact {
  display: grid;
  gap: 1rem;
}

.terms-form {
  display: grid;
  gap: 1rem;
}

.terms-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem 1.05rem;
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--muted);
  line-height: 1.7;
}

.terms-checkbox input {
  margin-top: 0.25rem;
  width: 1rem;
  height: 1rem;
  flex: none;
  accent-color: var(--accent);
}

.terms-form .button[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Shared lightbox styling */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(17, 17, 17, 0.84);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

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

.lightbox-inner {
  width: min(100%, 1040px);
  display: grid;
  gap: 1rem;
}

.lightbox-close {
  justify-self: end;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.lightbox-frame {
  overflow: hidden;
  border-radius: var(--radius);
  background: #ffffff;
}

.lightbox-frame img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  background: #ffffff;
}

.lightbox-caption {
  color: rgba(255, 255, 255, 0.82);
}

/* Shared reveal animation styling */
.reveal {
  opacity: 1;
  transform: none;
}

.js-ready .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 480ms ease, transform 480ms ease;
}

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

/* index.html: homepage intro cleanup after the preserved loader finishes */
.cinema-body #cinema-canvas,
.cinema-body .cinema-noise,
.cinema-body .cinema-vignette,
.cinema-body .cinema-spotlight {
  transition: opacity 360ms ease;
}

.cinema-body.intro-complete #cinema-canvas,
.cinema-body.intro-complete .cinema-noise,
.cinema-body.intro-complete .cinema-vignette,
.cinema-body.intro-complete .cinema-spotlight {
  opacity: 0;
}

@media (max-width: 980px) {
  .home-hero-grid,
  .split-layout,
  .card-grid-3,
  .gallery-grid,
  .footer-grid,
  .cta-panel {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 30rem;
  }

  .footer-grid {
    gap: 1.25rem;
  }

  .consultation-grid,
  .process-grid,
  .quick-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
  }

  .nav-toggle::before {
    content: "☰";
    font-size: 1.35rem;
    line-height: 1;
  }

  .nav-links {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100dvh;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.15rem;
    padding: calc(4.5rem + env(safe-area-inset-top)) 1.25rem 2rem;
    border-radius: 0;
    border: 0;
    background: rgba(252, 251, 248, 0.78);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    box-shadow: none;
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    text-align: center;
    transition: transform 180ms ease, opacity 140ms ease, visibility 0s linear 180ms;
    z-index: 3;
  }

  .nav-links.is-open {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: transform 180ms ease, opacity 140ms ease, visibility 0s;
  }

  .nav-links a {
    color: var(--muted);
    font-weight: 650;
    font-size: 1.35rem;
    transition: color 180ms ease, transform 180ms ease;
  }

  .nav-links a.button {
    width: auto;
    align-self: center;
    color: #ffffff;
    transition: transform 180ms ease, color 180ms ease;
  }

  .nav-links a:hover,
  .nav-links a:focus-visible,
  .nav-links a:active {
    color: var(--text);
    transform: translateY(-1px);
  }

  .nav-links a.button:hover,
  .nav-links a.button:focus-visible,
  .nav-links a.button:active,
  .nav-links a.button.is-current {
    color: #ffffff;
    transform: translateY(-1px);
  }

  .nav-links a.is-current {
    color: var(--text);
  }

  .nav-close {
    display: inline-flex;
    position: absolute;
    top: max(1rem, env(safe-area-inset-top));
    right: 1rem;
    align-items: center;
    justify-content: center;
    min-width: 2.9rem;
    min-height: 2.9rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--text);
    font-size: 1.45rem;
    line-height: 1;
  }

  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(17, 17, 17, 0.26);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 160ms ease, visibility 0s linear 220ms;
    z-index: 1;
  }

  .nav-backdrop.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 160ms ease, visibility 0s;
  }

  body.nav-open {
    overflow: hidden;
  }

  body.nav-open .site-header {
    z-index: 9999;
  }
}

@media (max-width: 820px) {
  .page-section {
    padding: 4rem 0;
  }

  .hero-visual {
    min-height: auto;
    display: grid;
    gap: 1rem;
  }

  .hero-card-large,
  .hero-card-small {
    position: relative;
    inset: auto;
    width: 100%;
    aspect-ratio: 4 / 5;
  }

  .button,
  .button-secondary {
    width: 100%;
  }

  .button-secondary.gallery-page-close {
    width: auto;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .footer-grid {
    gap: 1.15rem;
  }

  .footer-brand {
    gap: 0.85rem;
  }

  .footer-links {
    gap: 0.7rem;
  }

  .footer-nav a {
    font-size: 0.9rem;
  }

  .footer-social a {
    gap: 0.6rem;
  }
}
