:root {
  --navy-950: #04132f;
  --navy-900: #071f4d;
  --navy-800: #0a3278;
  --royal: #1464d2;
  --gold: #c99532;
  --gold-light: #f1ce82;
  --ivory: #fff9ee;
  --muted: #d5d8e1;
  --wine: #8c1738;
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }
body {
  background: var(--navy-950);
  color: var(--ivory);
  font-family: 'Manrope', sans-serif;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: var(--navy-950);
  transition: opacity .75s var(--ease), visibility .75s var(--ease);
}
.preloader.done { opacity: 0; visibility: hidden; }
.preloader-emblem { display: grid; place-items: center; gap: 13px; }
.preloader-mark,
.brand-seal,
.divider-seal {
  display: grid;
  place-items: center;
  border: 1px solid rgba(241,206,130,.7);
  color: var(--gold-light);
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
}
.preloader-mark { width: 70px; height: 70px; border-radius: 50%; font-size: 1.4rem; letter-spacing: 2px; animation: sealPulse 1.8s ease-in-out infinite; }
.preloader-logo { overflow: hidden; border-radius: 12px; background: #fff; }
.preloader-logo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.18); }
.preloader-line { width: 44px; height: 1px; background: var(--gold); }
.preloader small { color: rgba(255,249,238,.65); font-size: .63rem; letter-spacing: .2rem; text-transform: uppercase; }
@keyframes sealPulse { 50% { transform: scale(1.06); box-shadow: 0 0 34px rgba(201,149,50,.25); } }

.gate-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 38px;
  pointer-events: none;
  animation: dropIn .9s var(--ease) .35s both;
}
.gate-brand { display: flex; align-items: center; gap: 14px; pointer-events: auto; }
.brand-seal { width: 48px; height: 48px; border-radius: 50%; background: rgba(4,19,47,.46); backdrop-filter: blur(14px); font-size: 1rem; letter-spacing: 1px; }
.brand-seal-image { width: 58px; height: 58px; overflow: hidden; border-radius: 10px; background: #fff; backdrop-filter: none; }
.brand-seal-image img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.18); }
.brand-copy { display: grid; gap: 2px; }
.brand-copy strong { font-family: 'Cormorant Garamond', serif; font-size: 1.35rem; letter-spacing: .17rem; font-weight: 700; }
.brand-copy b { color: var(--gold-light); font-weight: 700; }
.brand-copy small { color: rgba(255,249,238,.66); font-size: .62rem; letter-spacing: .06rem; }
.gate-tag { display: flex; align-items: center; gap: 9px; color: rgba(255,249,238,.72); font-size: .68rem; letter-spacing: .18rem; text-transform: uppercase; }
.gate-tag span { width: 26px; height: 1px; background: var(--gold); }
@keyframes dropIn { from { opacity: 0; transform: translateY(-18px); } }

.gate-wrap { display: flex; width: 100vw; height: 100vh; position: relative; }
.gate-panel {
  position: relative;
  display: flex;
  flex: 1;
  min-width: 0;
  height: 100vh;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
  transition: flex .95s var(--ease);
}
.gate-wrap:hover .gate-panel { flex: .92; }
.gate-wrap .gate-panel:hover { flex: 1.18; }
.panel-media,
.panel-scrim,
.panel-pattern { position: absolute; inset: 0; }
.panel-media { z-index: -4; transition: transform 1.2s var(--ease); }
.panel-video,
.panel-fallback { width: 100%; height: 100%; object-fit: cover; }
.panel-video { display: block; filter: saturate(1.08) contrast(1.04); transform: scale(1.035); transition: transform 1.3s var(--ease), filter 1s var(--ease); }
.panel-fallback { display: none; }
.gate-panel:hover .panel-video { transform: scale(1); filter: saturate(1.2) contrast(1.02); }
.panel-scrim { z-index: -3; transition: background .75s var(--ease); }
.panel-wedding .panel-scrim { background: linear-gradient(180deg, rgba(4,19,47,.56), rgba(87,11,35,.25) 46%, rgba(4,19,47,.94)); }
.panel-commercial .panel-scrim { background: linear-gradient(180deg, rgba(4,19,47,.58), rgba(10,50,120,.22) 46%, rgba(4,19,47,.95)); }
.gate-panel:hover .panel-scrim { background: linear-gradient(180deg, rgba(4,19,47,.42), rgba(4,19,47,.09) 45%, rgba(4,19,47,.9)); }
.panel-pattern {
  z-index: -2;
  opacity: .14;
  background-image: radial-gradient(circle at center, transparent 0 6px, rgba(241,206,130,.45) 6.5px 7px, transparent 7.5px), linear-gradient(45deg, transparent 49.5%, rgba(241,206,130,.2) 50%, transparent 50.5%);
  background-size: 72px 72px, 72px 72px;
  mask-image: linear-gradient(to bottom, transparent, #000 38%, #000);
}

.panel-content { position: relative; z-index: 4; width: min(620px, 90%); padding: 0 clamp(28px, 5vw, 76px) 88px; transition: transform .55s var(--ease); }
.gate-panel:hover .panel-content { transform: translateY(-8px); }
.panel-eyebrow { display: block; margin-bottom: 14px; color: var(--gold-light); font-size: .72rem; font-weight: 700; letter-spacing: .19rem; text-transform: uppercase; }
.panel-content h1 { color: var(--ivory); font-family: 'Cormorant Garamond', serif; font-size: clamp(3rem, 5.8vw, 5.6rem); font-weight: 600; line-height: .82; letter-spacing: -.045em; }
.panel-content h1 em { color: var(--gold-light); font-weight: 500; }
.panel-content p { max-width: 470px; margin: 26px 0 28px; color: rgba(255,249,238,.79); font-size: .98rem; line-height: 1.75; }
.panel-cta { display: inline-flex; align-items: center; gap: 13px; padding: 12px 0; border-bottom: 1px solid rgba(241,206,130,.5); color: var(--ivory); font-size: .72rem; font-weight: 700; letter-spacing: .14rem; text-transform: uppercase; }
.panel-cta i { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid rgba(241,206,130,.65); border-radius: 50%; color: var(--gold-light); font-style: normal; transition: transform .4s var(--ease), background .4s; }
.gate-panel:hover .panel-cta i { transform: rotate(45deg); background: var(--gold); color: var(--navy-950); }
.panel-note { position: absolute; z-index: 5; right: 34px; bottom: 92px; color: rgba(255,249,238,.54); font-size: .61rem; letter-spacing: .18rem; text-transform: uppercase; writing-mode: vertical-rl; }

.gate-divider { position: absolute; z-index: 35; inset: 0 auto 0 50%; width: 66px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 13px; pointer-events: none; }
.divider-line { width: 1px; height: 28%; background: linear-gradient(transparent, rgba(241,206,130,.72)); }
.divider-line:last-child { background: linear-gradient(rgba(241,206,130,.72), transparent); }
.divider-seal { width: 54px; height: 54px; border-radius: 50%; background: rgba(4,19,47,.7); backdrop-filter: blur(12px); font-size: .9rem; box-shadow: 0 0 40px rgba(4,19,47,.5); }

.gate-panel { opacity: 0; }
.panel-wedding { animation: enterLeft 1.1s var(--ease) .18s forwards; }
.panel-commercial { animation: enterRight 1.1s var(--ease) .18s forwards; }
@keyframes enterLeft { from { opacity: 0; transform: translateX(-35px); } to { opacity: 1; transform: none; } }
@keyframes enterRight { from { opacity: 0; transform: translateX(35px); } to { opacity: 1; transform: none; } }

.gate-footer { position: fixed; z-index: 45; inset: auto 0 0; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 38px; color: rgba(255,249,238,.56); font-size: .64rem; letter-spacing: .07rem; text-transform: uppercase; pointer-events: none; }
.gate-footer a { pointer-events: auto; transition: color .25s; }
.gate-footer a:hover { color: var(--gold-light); }
.gate-address { max-width: 46%; overflow: hidden; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.scroll-hint::before { content: '✦'; margin-right: 9px; color: var(--gold-light); }

@media (max-width: 1100px) {
  .gate-address { display: none; }
}

@media (max-width: 820px) {
  body { overflow-y: auto; overflow-x: hidden; }
  .gate-header { padding: 18px 20px; }
  .gate-tag { display: none; }
  .brand-copy small { display: none; }
  .gate-wrap { height: auto; min-height: 100vh; flex-direction: column; }
  .gate-panel,
  .gate-wrap:hover .gate-panel,
  .gate-wrap .gate-panel:hover { flex: none; width: 100%; height: 52vh; min-height: 420px; }
  .gate-divider { inset: 50% 0 auto; width: 100%; height: 58px; transform: translateY(-50%); flex-direction: row; }
  .divider-line { width: 30%; height: 1px; background: linear-gradient(90deg, transparent, rgba(241,206,130,.72)); }
  .divider-line:last-child { background: linear-gradient(90deg, rgba(241,206,130,.72), transparent); }
  .divider-seal { width: 48px; height: 48px; }
  .panel-content { padding: 0 28px 38px; }
  .panel-content h1 { font-size: clamp(3rem, 13vw, 4.5rem); }
  .panel-content p { margin: 16px 0 18px; font-size: .88rem; line-height: 1.55; }
  .panel-note { display: none; }
  .gate-footer { position: absolute; padding: 12px 20px; justify-content: center; }
  .gate-footer span:first-child { display: none; }
  .gate-address { display: none; }
}

@media (max-width: 520px) {
  .brand-seal { width: 42px; height: 42px; }
  .brand-copy strong { font-size: 1.08rem; }
  .panel-content { padding-inline: 22px; }
  .panel-eyebrow { font-size: .63rem; letter-spacing: .11rem; }
  .panel-cta { font-size: .64rem; letter-spacing: .08rem; }
}

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