/* Pavalet root landing page styles */
:root {
  --color-bg: #FFFDF8;
  --color-fg: #2A1A06;
  --color-muted: #8A7A64;
  --color-border: rgba(0, 0, 0, 0.06);
  --color-surface: #FBF8F2;
  --color-gold: #C9A84C;
  --color-gold-dark: #8A6A20;
  --color-gold-light: #E8D48B;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  color-scheme: light;
}

html[data-theme="dark"] {
  --color-bg: #1A1714;
  --color-fg: #F0ECE2;
  --color-muted: #9A9080;
  --color-border: rgba(255, 255, 255, 0.08);
  --color-surface: #141210;
  color-scheme: dark;
}

html[data-theme="dark"] body {
  background: var(--color-bg);
}

body {
  margin: 0;
}

.environment-badge {
  background: transparent;
  border: 1px solid currentColor;
  border-block-start: 0;
  border-radius: 0 0 0.375rem 0.375rem;
  color: var(--color-fg);
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 700;
  inset-block-start: env(safe-area-inset-top, 0);
  inset-inline-end: max(0.75rem, env(safe-area-inset-right, 0));
  letter-spacing: 0.06em;
  line-height: 1;
  margin: 0;
  padding: 0.375rem 0.625rem;
  pointer-events: none;
  position: fixed;
  user-select: none;
  z-index: 300;
}

.visually-hidden {
  border: 0;
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.app-shell,
.app-shell * {
  box-sizing: border-box;
}

.app-shell {
  background: var(--color-bg);
  color: var(--color-fg);
  font-family: var(--font-sans);
  min-height: 100dvh;
}

.app-shell a {
  color: inherit;
  text-decoration: none;
}

.app-shell button,
.app-shell input,
.app-shell select {
  font: inherit;
}

.app-shell button {
  cursor: pointer;
}

/* Keep numeric fields keyboard-friendly without browser spinner controls. */
.app-shell input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}

.app-shell input[type="number"]::-webkit-inner-spin-button,
.app-shell input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.nav {
  background: transparent;
  border-bottom: 1px solid transparent;
  inset: 0 0 auto;
  position: fixed;
  transition: background 0.4s, backdrop-filter 0.4s, border-color 0.4s;
  z-index: 100;
}

.nav.is-scrolled {
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  background: rgba(255, 253, 248, 0.9);
  border-bottom-color: var(--color-border);
}

html[data-theme="dark"] .nav.is-scrolled {
  background: rgba(26, 23, 20, 0.9);
}

.nav__inner {
  align-items: center;
  display: flex;
  height: 88px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1200px;
  padding: 0 24px;
  position: relative;
}

.nav__logo-btn {
  align-items: center;
  display: inline-flex;
  margin-left: -8px;
  padding: 4px;
}

.nav__logo {
  display: block;
  height: 3.2rem;
  object-fit: contain;
  width: auto;
}

.nav__wordmark-wrap {
  align-items: center;
  display: flex;
  flex-direction: column;
  left: 50%;
  position: absolute;
  text-decoration: none;
  transform: translateX(-50%);
}

.nav__wordmark-link {
  border-radius: 6px;
  padding: 6px 10px 5px;
}

.nav__wordmark {
  color: #7A5C12;
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 400;
  letter-spacing: 0.3em;
  line-height: 1;
}

html[data-theme="dark"] .nav__wordmark {
  color: var(--color-gold-light);
}

.nav__diamonds {
  align-items: center;
  display: flex;
  gap: 4px;
  margin-top: 3px;
}

.nav__diamond-rule {
  background: currentColor;
  color: #7A5C12;
  height: 1px;
  width: 40px;
}

html[data-theme="dark"] .nav__diamond-rule {
  color: var(--color-gold-light);
}

.nav__diamond {
  background: #7A5C12;
  height: 5px;
  transform: rotate(45deg);
  width: 5px;
}

html[data-theme="dark"] .nav__diamond {
  background: var(--color-gold-light);
}

.nav__links {
  align-items: center;
  display: flex;
  gap: 4px;
}

.nav__link {
  align-items: center;
  appearance: none;
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: var(--color-muted);
  display: inline-flex;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  gap: 0.4rem;
  letter-spacing: 0.02em;
  line-height: 1.2;
  margin: 0;
  padding: 8px 16px;
  text-align: center;
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}

.nav__link:hover {
  background: rgba(201, 168, 76, 0.08);
  color: var(--color-gold-dark);
}

.nav__link svg {
  flex: none;
}

.nav__theme-toggle,
.nav__mobile-toggle {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--color-muted);
  display: inline-flex;
  justify-content: center;
  padding: 8px;
}

/* Icon buttons in the nav (theme toggle + admin) match the nav links' color and
   hover treatment. Use inherit so the <button> tracks the same foreground color as
   the <a> links (which resolve via `.app-shell a { color: inherit }`). */
.nav__theme-toggle,
.nav__icon-link {
  align-items: center;
  border-radius: 6px;
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  margin-left: 4px;
  padding: 8px;
  transition: color 0.2s, background 0.2s;
}

.nav__theme-toggle:hover,
.nav__icon-link:hover {
  background: rgba(201, 168, 76, 0.08);
  color: var(--color-gold-dark);
}

html[data-theme="dark"] .nav__theme-toggle:hover,
html[data-theme="dark"] .nav__icon-link:hover {
  color: var(--color-gold-light);
}

.nav__theme-toggle .icon-sun,
html[data-theme="dark"] .nav__theme-toggle .icon-moon {
  display: none;
}

html[data-theme="dark"] .nav__theme-toggle .icon-sun {
  display: inline;
}

.nav__mobile-toggle {
  color: var(--color-fg);
  display: none;
}

.nav__mobile-toggle .icon-x,
.nav.is-menu-open .nav__mobile-toggle .icon-menu {
  display: none;
}

.nav.is-menu-open .nav__mobile-toggle .icon-x {
  display: inline;
}

.mobile-menu {
  align-items: center;
  background: rgba(255, 253, 248, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: none;
  flex-direction: column;
  gap: 8px;
  inset: 0;
  justify-content: center;
  position: fixed;
  z-index: 99;
}

html[data-theme="dark"] .mobile-menu {
  background: rgba(26, 23, 20, 0.98);
}

.mobile-menu.is-open {
  display: flex;
}

.mobile-menu__link {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--color-fg);
  display: inline-flex;
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 500;
  gap: 0.6rem;
  justify-content: center;
  letter-spacing: 0.05em;
  padding: 16px 32px;
  text-align: center;
}

.mobile-menu__link svg {
  flex: none;
}

.mobile-menu__theme-toggle {
  border: 1px solid var(--color-border);
  border-radius: 999px;
  height: 56px;
  margin-top: 8px;
  padding: 0;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
  width: 56px;
}

.mobile-menu__theme-toggle:hover {
  background: rgba(201, 168, 76, 0.08);
  border-color: rgba(201, 168, 76, 0.32);
  color: var(--color-gold-dark);
}

html[data-theme="dark"] .mobile-menu__theme-toggle:hover {
  color: var(--color-gold-light);
}

.mobile-menu__theme-toggle .icon-sun,
html[data-theme="dark"] .mobile-menu__theme-toggle .icon-moon {
  display: none;
}

html[data-theme="dark"] .mobile-menu__theme-toggle .icon-sun {
  display: inline;
}

.mobile-menu__divider,
.footer__divider {
  align-items: center;
  display: flex;
  gap: 4px;
}

.mobile-menu__divider {
  margin-top: 16px;
}

.diamond-line,
.footer__divider .line {
  background: var(--color-gold);
  height: 1px;
  width: 80px;
}

.diamond,
.footer__divider .dot {
  background: var(--color-gold);
  height: 5px;
  transform: rotate(45deg);
  width: 5px;
}

.page {
  padding-top: 88px;
}

.hero {
  align-items: center;
  display: flex;
  height: 65vh;
  justify-content: center;
  min-height: 500px;
  overflow: hidden;
  padding: 80px 24px 60px;
  position: relative;
  scroll-margin-top: 88px;
}

.hero__bg {
  background-image: var(--hero-image);
  background-position: center;
  background-size: cover;
  inset: 0;
  position: absolute;
}

.hero__overlay {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.68) 0%, rgba(0, 0, 0, 0.48) 36%, rgba(0, 0, 0, 0.2) 70%, rgba(0, 0, 0, 0.35) 100%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.36) 0%, rgba(0, 0, 0, 0.24) 48%, rgba(0, 0, 0, 0.58) 100%);
  inset: 0;
  position: absolute;
}

html[data-theme="dark"] .hero__overlay {
  background:
    linear-gradient(90deg, rgba(18, 15, 12, 0.76) 0%, rgba(18, 15, 12, 0.54) 36%, rgba(18, 15, 12, 0.26) 70%, rgba(18, 15, 12, 0.46) 100%),
    linear-gradient(to bottom, rgba(26, 23, 20, 0.56) 0%, rgba(26, 23, 20, 0.42) 48%, rgba(26, 23, 20, 0.78) 100%);
}

.hero__inner {
  animation: fade-in-up 0.6s ease-out;
  max-width: 800px;
  position: relative;
  text-align: center;
  z-index: 1;
}

.hero__ornament {
  color: var(--color-gold-light);
  display: inline-block;
}

.hero__heading {
  color: #FFFFFF;
  font-family: var(--font-serif);
  font-size: clamp(36px, 6vw, 60px);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.15;
  margin: 32px 0 20px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero__heading em {
  color: var(--color-gold-light);
  font-style: italic;
}

.hero__lede {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(16px, 2.5vw, 20px);
  line-height: 1.7;
  margin: 0 auto 48px;
  max-width: 580px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

.search-form {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15), 0 1px 3px rgba(0, 0, 0, 0.08);
  margin: 0 auto;
  max-width: 680px;
  padding: 28px 32px;
}

.search-form__grid {
  align-items: end;
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr 1fr auto;
}

.search-form__label {
  color: #6B6B80;
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  text-align: left;
  text-transform: uppercase;
}

.search-form__select,
.search-form__input {
  background: #FAFAF8;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  color: #2A1A06;
  font-size: 14px;
  height: 48px;
  outline: none;
  padding: 0 16px;
  width: 100%;
}

.search-form__select {
  appearance: none;
  cursor: pointer;
}

/* Dark theme: the hero search card becomes a dark surface so its controls and
   buttons stay legible (it is otherwise a forced-light island in dark mode). */
html[data-theme="dark"] .search-form {
  background: rgba(20, 18, 16, 0.95);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5), 0 1px 3px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] .search-form__label {
  color: var(--color-muted);
}

html[data-theme="dark"] .search-form__select,
html[data-theme="dark"] .search-form__input {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--color-fg);
}

/* =====================================================================
   BUTTON COMPONENT — the canonical Pavalet button. Style: soft tonal gold
   with a hover sheen. Use exactly ONE variant plus optional modifiers.
     Variants:   .primary | .secondary | .ghost
     Modifiers:  .small | .large | .pill | .block
   Works in light + dark, supports [disabled] and prefers-reduced-motion.
   Use these everywhere; do NOT write bespoke button CSS.
   Live reference: /admin/style-guide
   ===================================================================== */
:is(.primary, .secondary, .ghost) {
  align-items: center;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid transparent;
  border-radius: 0.85rem;
  cursor: pointer;
  display: inline-flex;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 400;
  gap: 0.5rem;
  isolation: isolate;
  justify-content: center;
  letter-spacing: 0.01em;
  line-height: 1;
  min-height: 3rem;
  overflow: hidden;
  padding: 0 1.6rem;
  position: relative;
  text-align: center;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.35s ease, border-color 0.35s ease, background-color 0.35s ease, color 0.35s ease;
  white-space: nowrap;
}

:is(.primary, .secondary, .ghost) svg {
  flex: none;
}

/* Diagonal sheen that sweeps across on hover */
:is(.primary, .secondary, .ghost)::before {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.55) 50%, rgba(255, 255, 255, 0) 100%);
  content: "";
  height: 220%;
  left: -160%;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: -60%;
  transform: rotate(18deg);
  transition: left 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.3s ease;
  width: 70%;
  z-index: -1;
}

:is(.primary, .secondary, .ghost):hover::before {
  left: 160%;
  opacity: 1;
}

:is(.primary, .secondary, .ghost):active {
  transform: translateY(0);
}

/* Primary — soft tonal gold wash; quiet so it never overpowers a heading */
.primary {
  background-color: rgba(201, 168, 76, 0.16);
  background-image: linear-gradient(180deg, rgba(232, 212, 139, 0.45) 0%, rgba(201, 168, 76, 0.3) 100%);
  border-color: rgba(138, 106, 32, 0.3);
  box-shadow: none;
  color: #3A2A08;
}

.primary:hover {
  background-image: linear-gradient(180deg, rgba(232, 212, 139, 0.58) 0%, rgba(201, 168, 76, 0.42) 100%);
  border-color: rgba(138, 106, 32, 0.5);
  transform: translateY(-1px);
}

.primary:active {
  background-image: linear-gradient(180deg, rgba(201, 168, 76, 0.5) 0%, rgba(201, 168, 76, 0.42) 100%);
  border-color: rgba(138, 106, 32, 0.6);
  transform: translateY(0);
}

.primary:focus-visible {
  border-color: rgba(138, 106, 32, 0.5);
  box-shadow: 0 0 0 2px var(--color-bg), 0 0 0 4px var(--color-gold-dark);
  outline: none;
}

/* Secondary — flat tonal outline */
.secondary {
  background-color: rgba(232, 212, 139, 0.14);
  border-color: rgba(138, 106, 32, 0.3);
  box-shadow: none;
  color: #5A4514;
}

.secondary:hover {
  background-color: rgba(201, 168, 76, 0.22);
  border-color: rgba(138, 106, 32, 0.5);
  color: #5A4514;
  transform: translateY(-1px);
}

.secondary:active {
  background-color: rgba(201, 168, 76, 0.28);
  border-color: rgba(138, 106, 32, 0.6);
  transform: translateY(0);
}

.secondary:focus-visible {
  border-color: rgba(138, 106, 32, 0.5);
  box-shadow: 0 0 0 2px var(--color-bg), 0 0 0 4px var(--color-gold-dark);
  outline: none;
}

/* Ghost — lowest emphasis, very soft tan border */
.ghost {
  background-color: rgba(201, 168, 76, 0.06);
  border-color: rgba(138, 106, 32, 0.22);
  color: var(--color-fg);
}

.ghost:hover {
  background-color: rgba(232, 212, 139, 0.16);
  border-color: rgba(138, 106, 32, 0.45);
  color: #5A4514;
  transform: translateY(-1px);
}

.ghost:active {
  background-color: rgba(201, 168, 76, 0.16);
  border-color: rgba(138, 106, 32, 0.5);
  transform: translateY(0);
}

.ghost:focus-visible {
  border-color: rgba(138, 106, 32, 0.45);
  box-shadow: 0 0 0 2px var(--color-bg), 0 0 0 4px var(--color-gold-dark);
  outline: none;
}

/* Size + shape modifiers */
:is(.primary, .secondary, .ghost).pill {
  border-radius: 999px;
}

:is(.primary, .secondary, .ghost).small {
  font-size: 0.85rem;
  min-height: 2.5rem;
  padding: 0 1.1rem;
}

:is(.primary, .secondary, .ghost).large {
  font-size: 1rem;
  min-height: 3.4rem;
  padding: 0 2rem;
}

:is(.primary, .secondary, .ghost).block {
  width: 100%;
}

/* Disabled */
:is(.primary, .secondary, .ghost)[disabled],
:is(.primary, .secondary, .ghost):disabled {
  background-color: rgba(138, 122, 100, 0.08);
  background-image: none;
  border-color: var(--color-border);
  box-shadow: none;
  color: var(--color-muted);
  cursor: not-allowed;
  opacity: 0.5;
  transform: none;
}

:is(.primary, .secondary, .ghost)[disabled]::before,
:is(.primary, .secondary, .ghost):disabled::before {
  display: none;
}

/* Dark theme — tonal gold wash with translucent light-gold borders */
html[data-theme="dark"] .primary {
  background-color: rgba(201, 168, 76, 0.1);
  background-image: linear-gradient(180deg, rgba(232, 212, 139, 0.16) 0%, rgba(201, 168, 76, 0.1) 100%);
  border-color: rgba(232, 212, 139, 0.4);
  color: var(--color-gold-light);
}

html[data-theme="dark"] .primary:hover {
  background-image: linear-gradient(180deg, rgba(232, 212, 139, 0.24) 0%, rgba(201, 168, 76, 0.16) 100%);
  border-color: rgba(232, 212, 139, 0.65);
  color: #F4E7B6;
}

html[data-theme="dark"] .primary:active {
  background-image: linear-gradient(180deg, rgba(232, 212, 139, 0.3) 0%, rgba(201, 168, 76, 0.22) 100%);
  border-color: #F4E7B6;
}

html[data-theme="dark"] .secondary {
  background-color: rgba(232, 212, 139, 0.12);
  border-color: rgba(232, 212, 139, 0.4);
  color: var(--color-gold-light);
}

html[data-theme="dark"] .secondary:hover {
  background-color: rgba(232, 212, 139, 0.2);
  border-color: rgba(232, 212, 139, 0.65);
  color: #F4E7B6;
}

html[data-theme="dark"] .secondary:active {
  background-color: rgba(232, 212, 139, 0.26);
  border-color: #F4E7B6;
}

html[data-theme="dark"] .ghost {
  background-color: rgba(232, 212, 139, 0.06);
  border-color: rgba(232, 212, 139, 0.24);
  color: var(--color-fg);
}

html[data-theme="dark"] .ghost:hover {
  background-color: rgba(232, 212, 139, 0.14);
  border-color: rgba(232, 212, 139, 0.5);
  color: var(--color-gold-light);
}

html[data-theme="dark"] .ghost:active {
  background-color: rgba(232, 212, 139, 0.2);
  border-color: var(--color-gold-light);
}

html[data-theme="dark"] .primary:focus-visible,
html[data-theme="dark"] .secondary:focus-visible,
html[data-theme="dark"] .ghost:focus-visible {
  border-color: var(--color-gold-light);
  box-shadow: 0 0 0 2px var(--color-bg), 0 0 0 4px var(--color-gold-light);
}

html[data-theme="dark"] :is(.primary, .secondary, .ghost)::before {
  background: linear-gradient(90deg, rgba(255, 248, 224, 0) 0%, rgba(255, 248, 224, 0.35) 50%, rgba(255, 248, 224, 0) 100%);
}

@media (prefers-reduced-motion: reduce) {
  :is(.primary, .secondary, .ghost) {
    transition: box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
  }

  :is(.primary, .secondary, .ghost):hover,
  :is(.primary, .secondary, .ghost):active {
    transform: none;
  }

  :is(.primary, .secondary, .ghost)::before {
    transition: none;
  }

  :is(.primary, .secondary, .ghost):hover::before {
    left: -160%;
    opacity: 0;
  }
}

.trust-list {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  justify-content: center;
  margin-top: 36px;
}

.trust-list__item {
  align-items: center;
  color: rgba(255, 255, 255, 0.9);
  display: flex;
  font-size: 13px;
  font-weight: 500;
  gap: 8px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.trust-list__item svg {
  color: var(--color-gold-light);
}

.section-block {
  margin: 0 auto;
  max-width: 1100px;
  padding: 100px 24px;
}

.section-block__head,
.gallery__head {
  margin-bottom: 64px;
  text-align: center;
}

.section-block__title {
  color: var(--color-fg);
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.15;
  margin: 0 0 12px;
}

.section-block__lede {
  color: var(--color-muted);
  font-size: 17px;
  line-height: 1.6;
  margin: 0 auto;
  max-width: 560px;
}

.feature-grid {
  display: grid;
  gap: 48px;
  grid-template-columns: repeat(3, 1fr);
}

.feature-card {
  text-align: center;
}

.feature-card__icon {
  align-items: center;
  background: rgba(201, 168, 76, 0.1);
  border-radius: 50%;
  display: flex;
  height: 64px;
  justify-content: center;
  margin: 0 auto 24px;
  width: 64px;
}

html[data-theme="dark"] .feature-card__icon {
  background: rgba(201, 168, 76, 0.15);
}

.feature-card__icon svg {
  color: var(--color-gold);
}

.feature-card__title {
  color: var(--color-fg);
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0;
  margin: 0 0 12px;
}

.feature-card__desc {
  color: var(--color-muted);
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
}

.gallery {
  background: var(--color-surface);
  padding: 80px 24px;
}

.gallery__inner {
  margin: 0 auto;
  max-width: 1000px;
}

.gallery__row-top {
  align-items: center;
  display: flex;
  height: 320px;
  justify-content: center;
  position: relative;
}

.gallery__tile,
.gallery__tile-static {
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  cursor: default;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.gallery__tile {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  position: absolute;
  width: 32%;
}

.gallery__tile img,
.gallery__tile-static img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.gallery__tile--a {
  left: 0;
  top: 24px;
  transform: rotate(-3deg);
  z-index: 1;
}

.gallery__tile--b {
  left: 34%;
  top: 0;
  transform: rotate(0deg);
  z-index: 2;
}

.gallery__tile--c {
  left: 68%;
  top: 24px;
  transform: rotate(3deg);
  z-index: 1;
}

.gallery__tile:hover,
.gallery__tile-static:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  transform: rotate(0deg) scale(1.04);
  z-index: 3;
}

.gallery__row-bottom {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-top: 24px;
}

.gallery__tile-static {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  width: 38%;
}

.gallery__tile-static--a {
  transform: rotate(-2deg);
}

.gallery__tile-static--b {
  transform: rotate(2deg);
}

.manifesto {
  background: var(--color-bg);
  overflow: hidden;
  padding: 100px 24px;
  position: relative;
}

.manifesto__inner {
  margin: 0 auto;
  max-width: 780px;
}

.section-label {
  align-items: center;
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.section-label__rule {
  background: var(--color-gold);
  height: 1px;
  width: 40px;
}

.section-label__text {
  color: var(--color-gold-dark);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.manifesto__heading {
  color: var(--color-fg);
  font-family: var(--font-serif);
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.2;
  margin: 0 0 28px;
}

.manifesto__heading em {
  color: var(--color-gold);
  font-style: italic;
}

.manifesto__body {
  color: var(--color-muted);
  font-size: clamp(16px, 2vw, 19px);
  font-weight: 300;
  line-height: 1.8;
  margin: 0;
}

.services-overview {
  padding: 100px 24px;
  scroll-margin-top: 88px;
}

.services-overview__inner {
  margin: 0 auto;
  max-width: 1100px;
}

.services-overview__intro {
  margin-bottom: 64px;
  margin-left: auto;
  margin-right: auto;
  max-width: 700px;
  text-align: center;
}

.services-overview__intro .section-label {
  justify-content: center;
}

.services-overview__intro p {
  color: var(--color-fg);
  font-size: 17px;
  line-height: 1.8;
  margin: 0 0 12px;
}

.services-overview__intro p.is-bold {
  font-weight: 600;
}

.services-overview__intro p.is-secondary {
  color: var(--color-muted);
  font-size: 15px;
}

.services-overview__grid {
  display: grid;
  gap: 48px 64px;
  grid-template-columns: repeat(2, 1fr);
}

.service-preview {
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 28px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.service-preview:hover {
  border-color: rgba(201, 168, 76, 0.27);
  box-shadow: 0 4px 20px rgba(201, 168, 76, 0.07);
}

.service-preview__rule {
  background: linear-gradient(to right, var(--color-gold), var(--color-gold-dark));
  height: 2px;
  margin-bottom: 16px;
  width: 32px;
}

.service-preview__title {
  color: var(--color-fg);
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0;
  margin: 0 0 12px;
}

.service-preview__body p {
  color: var(--color-muted);
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
}

.service-preview__body p + p {
  margin-top: 12px;
}

.cta {
  background: rgba(201, 168, 76, 0.08);
  padding: 80px 24px;
  text-align: center;
}

html[data-theme="dark"] .cta {
  background: rgba(201, 168, 76, 0.1);
}

.cta__title {
  color: var(--color-fg);
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.15;
  margin: 0 0 12px;
}

.cta__body {
  color: var(--color-muted);
  font-size: 17px;
  line-height: 1.7;
  margin: 0 auto 32px;
  max-width: 520px;
}

.footer {
  border-top: 1px solid var(--color-border);
  padding: 32px 24px;
}

.footer__inner {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 0 auto;
  max-width: 1200px;
}

.footer__divider .line {
  width: 100px;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}

.footer__link {
  background: transparent;
  border: 0;
  color: var(--color-muted);
  font-size: 13px;
  letter-spacing: 0.02em;
  padding: 0;
  transition: color 0.2s;
}

.footer__link:hover {
  color: var(--color-fg);
}

.footer__copy {
  color: var(--color-muted);
  font-size: 12px;
  margin: 0;
  opacity: 0.6;
}

.dialog-overlay {
  align-items: center;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: none;
  inset: 0;
  justify-content: center;
  padding: 24px;
  position: fixed;
  z-index: 200;
}

.dialog-overlay.is-open {
  display: flex;
}

.dialog {
  animation: fade-in-up 0.2s ease-out;
  background: #FFFFFF;
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.2);
  max-height: 80vh;
  max-width: 640px;
  overflow: auto;
  padding: 32px 36px;
  width: 100%;
}

html[data-theme="dark"] .dialog {
  background: #1E1B18;
}

.dialog__close-row {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 8px;
}

.dialog__close {
  background: transparent;
  border: 0;
  color: #888888;
  padding: 4px;
  transition: color 0.2s;
}

.dialog__close:hover {
  color: #444444;
}

.dialog h2 {
  color: var(--color-fg);
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 0;
  margin: 0 0 16px;
}

.dialog h3 {
  color: var(--color-fg);
  font-size: 15px;
  font-weight: 600;
  margin: 20px 0 8px;
}

.dialog p {
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.8;
  margin: 0;
}

.dialog [data-dialog-panel] {
  display: none;
}

.dialog [data-dialog-panel].is-active {
  display: block;
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .nav__logo {
    height: 2.4rem;
  }

  .nav__wordmark {
    font-size: 20px;
  }

  .nav__diamond-rule {
    width: 24px;
  }

  .nav__links {
    display: none;
  }

  .nav__mobile-toggle {
    display: inline-flex;
  }

  .hero {
    height: auto;
    min-height: 0;
    padding-bottom: 36px;
    padding-top: 16px;
  }

  .hero__ornament {
    display: none;
  }

  .hero__heading {
    margin-top: 32px;
  }

  .search-form {
    margin-bottom: 0;
    padding: 24px;
  }

  .search-form__grid,
  .feature-grid,
  .services-overview__grid {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .services-overview__grid {
    gap: 40px;
  }

  .gallery__row-top {
    height: auto;
    margin: 0 auto;
    max-width: 520px;
  }

  .gallery__tile {
    position: static;
    width: 100%;
  }

  .gallery__tile--a,
  .gallery__tile--b,
  .gallery__tile--c,
  .gallery__tile-static--a,
  .gallery__tile-static--b {
    transform: none;
  }

  .gallery__tile--a,
  .gallery__tile--c {
    display: none;
  }

  .gallery__row-bottom {
    align-items: center;
    flex-direction: column;
    margin-left: auto;
    margin-right: auto;
    max-width: 520px;
  }

  .gallery__tile-static {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .nav__inner {
    padding: 0 16px;
  }

  .nav__wordmark {
    font-size: 17px;
  }

  .nav__diamond-rule {
    width: 18px;
  }

  .hero,
  .section-block,
  .gallery,
  .manifesto,
  .services-overview,
  .cta,
  .footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .dialog {
    padding: 24px;
  }
}
