body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  min-height: 100%;
}

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

:root {
  --navy:      #0f1f30;
  --sage:      #7d9471;
  --sage-lt:   #b8c9a8;
  --burgundy: #5a1e1e;
  --teal:      #4a7a78;
  --stone:     #e8e4dc;
  --off-white:#f5f2ec;
}

html, body {
  height: 100%;
  background: var(--navy);
  color: var(--stone);
  font-family: 'Source Sans 3', sans-serif;
}

/* ── OPTION A: GLOBAL SLIDESHOW (Original Color Transitions) ── */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
}

.bg-slideshow {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-color: #0f1f30; 
  transition: background-color 4s cubic-bezier(0.4, 0.0, 0.2, 1);
}

/* Original grain for slideshow pages only */
.bg-slideshow::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.035;
  pointer-events: none;
  z-index: 2;
}

.bg-slideshow::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 10% 100%, rgba(125,148,113,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 90% 5%,  rgba(74,122,120,0.12) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(90,30,30,0.07) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

/* ── UI Elements (Remaining original code) ── */

.rule-top, .rule-bottom {
  position: fixed;
  left: 0; right: 0;
  margin:0 auto;
  width:90%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.4) 20%, rgba(255,255,255,0.4) 80%, transparent 100%);
  z-index: 10;
}
.rule-top    { top: 48px; }
.rule-bottom { bottom: 48px; }

.corner {
  position: fixed;
  width: 28px; height: 28px;
  border-color: rgba(255,255,255,0.35);
  border-style: solid;
  z-index: 10;
}
.corner-tl { top: 28px;    left: 28px;  border-width: 1px 0 0 1px; }
.corner-tr { top: 28px;    right: 28px; border-width: 1px 1px 0 0; }
.corner-bl { bottom: 28px; left: 28px;  border-width: 0 0 1px 1px; }
.corner-br { bottom: 28px; right: 28px; border-width: 0 1px 1px 0; }

.stage {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  padding: 80px 40px;
  text-align: center;
}

.logo-wrap {
  margin-bottom: 36px;
  opacity: 0;
  transform: translateY(-16px);
  animation: fadeUp 1s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
}

.logo-box {
  display: inline-block;
  padding: 0;
  position: relative;
}

.logo-box img {
  display: block;
  width: 350px;
  height: auto;
}

.wordmark {
  opacity: 0;
  transform: translateY(12px);
  animation: fadeUp 1s cubic-bezier(0.22, 1, 0.36, 1) 0.65s forwards;
}

.wordmark h1 {
  font-family: 'Libre Baskerville', serif;
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--off-white);
  line-height: 1;
}

.wordmark .sub {
  font-family: 'Source Sans 3', sans-serif;
  font-size: clamp(0.75rem, 1.5vw, 0.95rem);
  font-weight: 300;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--sage-lt);
  margin-top: 10px;
}

.divider {
  width: 56px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #fff, transparent);
  margin: 40px auto;
  opacity: 0;
  animation: fadeIn 0.8s ease 1.1s forwards;
}

.copy {
  max-width: 550px;
  opacity: 0;
  animation: fadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) 1.25s forwards;
}

.copy p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 300;
  line-height: 1.7;
  color: #d6d4d0;
  font-style: italic;
  font-family: 'Libre Baskerville', serif;
}

.copy .tagline {
  font-family: 'Source Sans 3', sans-serif;
  font-style: normal;
  font-size: clamp(0.72rem, 1.2vw, 0.82rem);
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #fff;
  margin-top: 24px;
  display: block;
}

.footer {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  opacity: 0;
  animation: fadeIn 0.8s ease 1.8s forwards;
}

.footer span {
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  to { opacity: 1; }
}

.form-trigger-wrap {
  margin-top: 28px;
}

.form-trigger {
  border: 1px solid rgba(240,240,240,0.55);
  background: rgba(255,255,255,0.09);
  color: #f5f2ec;
  border-radius: 999px;
  padding: 10px 24px;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .22s ease, background .22s ease, border .22s ease;
}

.form-trigger {
  opacity: 0;
  animation: fadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) 1.55s forwards;
}

.form-trigger:hover,
.form-trigger:focus {
  background: rgba(255,255,255,0.3);
  border-color: rgba(255,255,255,0.95);
  transform: translateY(-1px);
}

.gf-lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.gf-lightbox.active {
  display: flex;
}

.gf-lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(12, 18, 28, 0.78);
  backdrop-filter: blur(1px);
}

.gf-lightbox-panel {
  position: relative;
  width: min(92vw, 780px);
  max-height: 86vh;
  background: rgba(15, 31, 48, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  overflow: auto;
  z-index: 1;
  padding: 18px;
}

.gf-close {
  position: absolute;
  top: 12px;
  right: 14px;
  border: none;
  background: transparent;
  color: #f5f2ec;
  font-size: 1.2rem;
  cursor: pointer;
}

.gf-lightbox-content {
  margin-top: 22px;
}

.gform_wrapper .gform_footer .gform_button,
.gform_wrapper .gform_body .gform_button {
  border: 1px solid rgba(240,240,240,0.55);
  background: rgba(255,255,255,0.12);
  color: #f5f2ec;
  border-radius: 999px;
  padding: 10px 24px;
  font-size: 0.95rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .22s ease, background .22s ease, border .22s ease;
}

.gform_wrapper .gform_footer .gform_button:hover,
.gform_wrapper .gform_body .gform_button:hover,
.gform_wrapper .gform_footer .gform_button:focus,
.gform_wrapper .gform_body .gform_button:focus {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.95);
  transform: translateY(-1px);
}

@media (max-width: 500px) {
  .rule-top     { top: 32px; }
  .rule-bottom  { bottom: 32px; }
  .corner-tl, .corner-tr { top: 16px; }
  .corner-bl, .corner-br { bottom: 16px; }
  .corner-tl, .corner-bl { left: 16px; }
  .corner-tr, .corner-br { right: 16px; }
}