:root {
  --color-primary: #0d4f4a;
  --color-primary-dark: #083532;
  --color-accent: #c99a3f;
  --color-accent-soft: #f4ead4;
  --color-ink: #182421;
  --color-muted: #66746f;
  --color-paper: #ffffff;
  --color-cloud: #f6f8f7;
  --color-line: #dfe7e4;
  --color-danger: #b64a3f;
  --color-success: #1f7a53;
  --shadow-sm: 0 8px 24px rgba(15, 31, 29, .08);
  --shadow-md: 0 18px 50px rgba(15, 31, 29, .13);
  --radius: 8px;
  --container: 1180px;
  --header-height: 82px;
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--color-ink);
  background: var(--color-paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background: var(--color-paper) center / cover no-repeat;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 1000;
  padding: 10px 14px;
  color: var(--color-paper);
  background: var(--color-primary-dark);
  border-radius: var(--radius);
  transition: top .18s ease;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--header-height);
  color: var(--color-paper);
  transition: background .25s ease, box-shadow .25s ease, color .25s ease;
}

.site-header.is-solid {
  color: var(--color-ink);
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 10px 28px rgba(7, 31, 29, .08);
  backdrop-filter: blur(18px);
}

.nav {
  width: min(100% - 40px, var(--container));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 142px;
}

.brand-logo {
  width: 168px;
  height: auto;
  max-height: 54px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: .9rem;
  font-weight: 700;
}

.nav-links a {
  text-decoration: none;
  opacity: .86;
  transition: opacity .18s ease, color .18s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  opacity: 1;
  color: var(--color-accent);
}

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  color: inherit;
  background: transparent;
  cursor: pointer;
}

.mobile-toggle span,
.mobile-toggle::before,
.mobile-toggle::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  border-radius: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: .94rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
}

.btn-primary {
  color: var(--color-primary-dark);
  background: var(--color-accent);
  box-shadow: 0 14px 34px rgba(201, 154, 63, .28);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #d7ad55;
  box-shadow: 0 18px 40px rgba(201, 154, 63, .36);
}

.btn-secondary {
  color: var(--color-paper);
  border-color: rgba(255, 255, 255, .42);
  background: rgba(255, 255, 255, .12);
  backdrop-filter: blur(14px);
}

.site-header.is-solid .btn-secondary {
  color: var(--color-primary-dark);
  border-color: rgba(13, 79, 74, .22);
  background: rgba(13, 79, 74, .06);
}

.btn-dark {
  color: var(--color-paper);
  background: var(--color-primary);
}

.btn-dark:hover,
.btn-dark:focus-visible {
  background: var(--color-primary-dark);
  box-shadow: var(--shadow-sm);
}

.btn[disabled] {
  opacity: .7;
  cursor: not-allowed;
  transform: none;
}

.hero {
  min-height: 92svh;
  position: relative;
  display: grid;
  align-items: center;
  color: var(--color-paper);
  overflow: hidden;
  background: var(--color-primary-dark);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: center right / cover no-repeat;
  background-image: var(--hero-image, none);
  filter: brightness(1.22) contrast(1.06) saturate(1.08);
  transform: scale(1.01);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(5, 22, 20, .84) 0%, rgba(5, 22, 20, .38) 48%, rgba(5, 22, 20, 0) 100%),
    linear-gradient(0deg, rgba(5, 22, 20, .3) 0%, rgba(5, 22, 20, 0) 52%, rgba(5, 22, 20, .14) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(100% - 40px, var(--container));
  margin: 0 auto;
  padding: calc(var(--header-height) + 56px) 0 92px;
}

.hero-content {
  max-width: 780px;
}

.hero-logo {
  width: 190px;
  margin-bottom: 34px;
}

.hero h1 {
  max-width: 780px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.3rem, 9vw, 7.2rem);
  line-height: .92;
  font-weight: 500;
  letter-spacing: 0;
}

.tagline {
  max-width: 620px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, .86);
  font-size: clamp(1.05rem, 2vw, 1.32rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.event-strip {
  width: min(100% - 40px, var(--container));
  margin: -38px auto 0;
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  color: var(--color-ink);
  background: rgba(255, 255, 255, .88);
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.event-fact {
  padding: 22px 24px;
  border-right: 1px solid var(--color-line);
}

.event-fact:last-child {
  border-right: 0;
}

.fact-label,
.count-label,
.detail-label,
.field label,
.checkbox-field label {
  display: block;
  color: var(--color-muted);
  font-size: .78rem;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

.fact-value {
  display: block;
  margin-top: 8px;
  font-weight: 800;
  line-height: 1.3;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(66px, 1fr));
  gap: 10px;
  margin-top: 36px;
  max-width: 560px;
}

.count-box {
  padding: 16px 12px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .12);
  backdrop-filter: blur(16px);
}

.count-value {
  display: block;
  font-size: clamp(1.55rem, 4vw, 2.4rem);
  font-weight: 900;
  line-height: 1;
}

.count-label {
  margin-top: 7px;
  color: rgba(255, 255, 255, .72);
}

.section {
  padding: 108px 0;
}

.section-inner {
  width: min(100% - 40px, var(--container));
  margin: 0 auto;
}

.section-title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.35rem, 5vw, 4.2rem);
  line-height: 1;
  font-weight: 500;
  letter-spacing: 0;
}

.section-lede {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--color-muted);
  font-size: 1.08rem;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  gap: 64px;
  align-items: start;
}

.about-copy {
  position: sticky;
  top: 118px;
}

.agenda-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.agenda-card {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 18px;
  padding: 24px;
  background: var(--color-paper);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.agenda-icon {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  color: var(--color-primary);
  background: var(--color-accent-soft);
  border-radius: var(--radius);
}

.agenda-card h3 {
  margin: 0 0 6px;
  font-size: 1.08rem;
  line-height: 1.3;
}

.agenda-card p {
  margin: 0;
  color: var(--color-muted);
}

.details-section {
  color: var(--color-paper);
  background: var(--color-primary-dark);
}

.details-layout {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: 52px;
  align-items: stretch;
}

.details-section .section-lede {
  color: rgba(255, 255, 255, .72);
}

.venue-panel {
  min-height: 470px;
  border-radius: var(--radius);
  background: center / cover no-repeat;
  box-shadow: 0 28px 60px rgba(0, 0, 0, .22);
  overflow: hidden;
}

.venue-panel-content {
  min-height: 470px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 34px;
  background: linear-gradient(0deg, rgba(5, 22, 20, .86), rgba(5, 22, 20, .08));
}

.venue-panel h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
  font-weight: 500;
}

.venue-panel p {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, .78);
}

.detail-list {
  display: grid;
  gap: 14px;
}

.detail-item {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 16px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .06);
}

.detail-icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: var(--color-accent);
  border: 1px solid rgba(201, 154, 63, .42);
  border-radius: var(--radius);
}

.detail-value {
  margin: 5px 0 0;
  color: rgba(255, 255, 255, .9);
  font-weight: 700;
}

.rsvp-section {
  background: var(--color-cloud);
}

.rsvp-layout {
  display: grid;
  grid-template-columns: minmax(280px, .68fr) minmax(0, 1.32fr);
  gap: 44px;
  align-items: start;
}

.rsvp-note {
  padding: 26px;
  border-radius: var(--radius);
  color: var(--color-paper);
  background: var(--color-primary);
  box-shadow: var(--shadow-md);
}

.rsvp-note h3 {
  margin: 0;
  font-size: 1.12rem;
}

.rsvp-note p {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, .78);
}

.form-card,
.success-card,
.legal-card {
  padding: clamp(24px, 5vw, 42px);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .9);
  box-shadow: var(--shadow-md);
}

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

.field {
  min-width: 0;
}

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

.field label {
  margin-bottom: 8px;
  color: var(--color-ink);
}

.required {
  color: var(--color-danger);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 13px 14px;
  color: var(--color-ink);
  border: 1px solid #cfd9d5;
  border-radius: var(--radius);
  background: var(--color-paper);
  outline: 0;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.field textarea {
  min-height: 118px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(13, 79, 74, .11);
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--color-danger);
  background: #fffafa;
}

.error-message {
  min-height: 18px;
  margin-top: 6px;
  color: var(--color-danger);
  font-size: .84rem;
  line-height: 1.35;
}

.checkbox-field {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  margin-top: 4px;
}

.checkbox-field input {
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--color-primary);
}

.checkbox-field label {
  color: var(--color-ink);
  text-transform: none;
  font-size: .94rem;
  line-height: 1.45;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 24px;
}

.form-status {
  min-height: 22px;
  color: var(--color-muted);
  font-size: .92rem;
  font-weight: 700;
}

.form-status.is-error {
  color: var(--color-danger);
}

.form-status.is-success {
  color: var(--color-success);
}

.spinner {
  width: 18px;
  height: 18px;
  margin-right: 10px;
  border: 2px solid rgba(8, 53, 50, .22);
  border-top-color: var(--color-primary-dark);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

.visually-hidden,
.honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

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

.success-mark {
  width: 78px;
  height: 78px;
  margin: 0 auto 24px;
  color: var(--color-paper);
  background: var(--color-success);
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 18px 40px rgba(31, 122, 83, .26);
  animation: successPop .55s cubic-bezier(.2, 1.2, .4, 1) both;
}

.success-card h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1;
  font-weight: 500;
}

.success-card p {
  max-width: 540px;
  margin: 18px auto 0;
  color: var(--color-muted);
}

.site-footer {
  color: var(--color-paper);
  background: #061c1a;
  padding: 56px 0 34px;
}

.footer-inner {
  width: min(100% - 40px, var(--container));
  margin: 0 auto;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.footer-logo {
  width: 164px;
}

.social-links {
  display: flex;
  gap: 10px;
}

.social-links a {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--color-paper);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: var(--radius);
  text-decoration: none;
  transition: color .18s ease, border-color .18s ease, background .18s ease;
}

.social-links a:hover,
.social-links a:focus-visible {
  color: var(--color-primary-dark);
  border-color: var(--color-accent);
  background: var(--color-accent);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  padding-top: 26px;
  color: rgba(255, 255, 255, .72);
  font-size: .92rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--color-accent);
}

.legal-page {
  min-height: 100svh;
  padding-top: var(--header-height);
  background: var(--color-cloud);
}

.legal-hero {
  padding: 72px 0 34px;
  color: var(--color-paper);
  background: var(--color-primary-dark);
}

.legal-hero .section-inner {
  display: grid;
  gap: 18px;
}

.legal-card {
  margin: 44px auto 80px;
  width: min(100% - 40px, 860px);
}

.legal-card h2 {
  margin: 28px 0 8px;
  font-size: 1.25rem;
}

.legal-card h2:first-child {
  margin-top: 0;
}

.legal-card p,
.legal-card li {
  color: var(--color-muted);
}

.legal-card a {
  color: var(--color-primary);
  font-weight: 800;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes successPop {
  0% {
    opacity: 0;
    transform: scale(.7);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }
}

@media (max-width: 980px) {
  :root {
    --header-height: 74px;
  }

  .mobile-toggle {
    display: inline-block;
  }

  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    color: var(--color-ink);
    background: rgba(255, 255, 255, .96);
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 14px 12px;
  }

  .nav-links .btn {
    margin-top: 8px;
  }

  .event-strip,
  .about-grid,
  .details-layout,
  .rsvp-layout {
    grid-template-columns: 1fr;
  }

  .event-strip {
    margin-top: 0;
    border-radius: 0;
    width: 100%;
  }

  .event-fact {
    border-right: 0;
    border-bottom: 1px solid var(--color-line);
  }

  .event-fact:last-child {
    border-bottom: 0;
  }

  .about-copy {
    position: static;
  }
}

@media (max-width: 720px) {

  .nav,
  .hero-inner,
  .section-inner,
  .footer-inner {
    width: min(100% - 28px, var(--container));
  }

  .brand-logo {
    width: 136px;
  }

  .hero-inner {
    padding-top: calc(var(--header-height) + 28px);
    padding-bottom: 58px;
  }

  .hero-logo {
    width: 152px;
    margin-bottom: 28px;
  }

  .hero h1 {
    font-size: clamp(2.95rem, 15vw, 4.25rem);
  }

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

  .section {
    padding: 76px 0;
  }

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

  .agenda-card,
  .detail-item {
    grid-template-columns: 1fr;
  }

  .footer-top,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .form-actions .btn {
    width: 100%;
  }
}

/* EnmaSco brand redesign layer */
:root {
  --color-primary: #c12026;
  --color-primary-dark: #0a0a0c;
  --color-accent: #c12026;
  --color-accent-soft: #2a1014;
  --color-ink: #ffffff;
  --color-muted: #8a8d91;
  --color-paper: #121418;
  --color-cloud: #0a0a0c;
  --color-line: #1f2833;
  --color-danger: #c12026;
  --color-success: #00ff66;
  --color-radar: #00a3ff;
  --shadow-sm: 0 10px 24px rgba(0, 0, 0, .38);
  --shadow-md: 0 28px 70px rgba(0, 0, 0, .42);
  --radius: 0;
}

body {
  color: #ffffff;
  background:
    linear-gradient(rgba(31, 40, 51, .38) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 40, 51, .38) 1px, transparent 1px),
    #0a0a0c;
  background-size: 42px 42px;
  font-family: Inter, Roboto, "Segoe UI", Arial, sans-serif;
}

body::before {
  background:
    radial-gradient(circle at 78% 12%, rgba(0, 163, 255, .11), transparent 32%),
    radial-gradient(circle at 72% 44%, transparent 0 18%, rgba(193, 32, 38, .08) 18.4% 18.8%, transparent 19.2% 28%, rgba(0, 163, 255, .07) 28.4% 28.8%, transparent 29.2%);
  opacity: .55;
}

.site-header {
  color: #ffffff;
  background: linear-gradient(180deg, rgba(10, 10, 12, .88), rgba(10, 10, 12, .34));
  border-bottom: 1px solid rgba(31, 40, 51, .7);
}

.site-header.is-solid {
  color: #ffffff;
  background: rgba(10, 10, 12, .94);
  border-bottom-color: #1f2833;
  box-shadow: none;
}

.brand-logo {
  width: 230px;
  max-height: 64px;
}

.hero-logo {
  width: min(290px, 70vw);
  margin-bottom: 26px;
}

.nav-links {
  font-family: Rajdhani, Orbitron, Inter, sans-serif;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.nav-links a {
  opacity: .92;
}

.mobile-toggle,
.btn,
.count-box,
.event-strip,
.agenda-card,
.detail-item,
.rsvp-note,
.form-card,
.success-card,
.legal-card,
.field input,
.field select,
.field textarea,
.social-links a {
  border-radius: 0;
}

.btn,
.count-box,
.event-strip,
.agenda-card,
.detail-item,
.rsvp-note,
.form-card,
.success-card,
.legal-card,
.social-links a {
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}

.btn {
  min-height: 50px;
  font-family: Rajdhani, Orbitron, Inter, sans-serif;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.btn-primary,
.btn-dark {
  color: #ffffff;
  background: #c12026;
  box-shadow: 0 0 0 1px rgba(193, 32, 38, .7), 0 0 22px rgba(193, 32, 38, .24);
}

.btn-primary:hover,
.btn-primary:focus-visible,
.btn-dark:hover,
.btn-dark:focus-visible {
  background: #e0252c;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .18), 0 0 34px rgba(193, 32, 38, .42);
}

.btn-secondary,
.site-header.is-solid .btn-secondary {
  color: #ffffff;
  border-color: #1f2833;
  background: rgba(18, 20, 24, .74);
}

.hero {
  min-height: 94svh;
  color: #ffffff;
  background: #0a0a0c;
}

.hero-media {
  filter: brightness(.82) contrast(1.16) saturate(1.06);
}

.hero::before {
  background:
    linear-gradient(90deg, rgba(10, 10, 12, .95) 0%, rgba(10, 10, 12, .72) 42%, rgba(10, 10, 12, .2) 100%),
    linear-gradient(0deg, rgba(10, 10, 12, .78) 0%, rgba(10, 10, 12, .14) 50%, rgba(10, 10, 12, .72) 100%),
    linear-gradient(rgba(0, 163, 255, .1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 163, 255, .1) 1px, transparent 1px);
  background-size: auto, auto, 56px 56px, 56px 56px;
}

.hero-content::before {
  content: "SYS_INIT // RSVP_ACCESS";
  display: block;
  margin-bottom: 18px;
  color: #c12026;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .12em;
}

.hero h1,
.section-title,
.success-card h2 {
  font-family: Rajdhani, Orbitron, Inter, sans-serif;
  font-weight: 800;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.hero h1 {
  color: #ffffff;
  max-width: 860px;
  font-size: clamp(3.1rem, 8vw, 6.7rem);
  line-height: .9;
}

.tagline {
  color: rgba(255, 255, 255, .78);
}

.countdown {
  width: 100%;
  gap: 12px;
}

.count-box {
  border-color: rgba(193, 32, 38, .42);
  background: rgba(18, 20, 24, .78);
  box-shadow: inset 0 2px 0 #c12026;
}

.count-value,
.fact-value,
.detail-value {
  color: #ffffff;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.count-label,
.fact-label,
.detail-label,
.field label {
  color: #8a8d91;
  font-family: Rajdhani, Orbitron, Inter, sans-serif;
  letter-spacing: .09em;
}

.event-strip {
  color: #ffffff;
  background: rgba(18, 20, 24, .96);
  border: 1px solid #1f2833;
  box-shadow: var(--shadow-md);
}

.event-fact {
  border-right-color: #1f2833;
}

.section {
  background:
    linear-gradient(rgba(31, 40, 51, .22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 40, 51, .22) 1px, transparent 1px),
    #0a0a0c;
  background-size: 42px 42px;
}

.section-lede,
.agenda-card p,
.rsvp-note p,
.success-card p,
.legal-card p,
.legal-card li {
  color: #b5b8bc;
}

.about-grid {
  align-items: start;
}

.agenda-card,
.detail-item,
.form-card,
.success-card,
.legal-card {
  background: rgba(18, 20, 24, .96);
  border: 1px solid #1f2833;
  box-shadow: none;
}

.agenda-card,
.detail-item,
.form-card {
  border-top: 2px solid #c12026;
}

.agenda-icon,
.detail-icon {
  color: #ffffff;
  background: #1f2833;
  border: 1px solid rgba(193, 32, 38, .55);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .03);
}

.agenda-card h3,
.rsvp-note h3,
.legal-card h2 {
  color: #ffffff;
  font-family: Rajdhani, Orbitron, Inter, sans-serif;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.details-section {
  background:
    linear-gradient(135deg, rgba(193, 32, 38, .12), transparent 30%),
    #0f1115;
  color: #ffffff;
}

.rsvp-section {
  background: #0a0a0c;
}

.rsvp-note {
  background: linear-gradient(145deg, #121418, #0a0a0c);
  border: 1px solid #1f2833;
  border-left: 4px solid #c12026;
}

.field input,
.field select,
.field textarea {
  color: #ffffff;
  border-color: #1f2833;
  background: #0a0a0c;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #62666d;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: #c12026;
  box-shadow: 0 0 0 3px rgba(193, 32, 38, .16), 0 0 22px rgba(193, 32, 38, .16);
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: #c12026;
  background: #16090b;
}

.checkbox-field label {
  color: #d6d8da;
}

.checkbox-field input {
  accent-color: #c12026;
}

.form-status,
.footer-bottom {
  color: #8a8d91;
}

.success-mark {
  color: #0a0a0c;
  background: #00ff66;
  box-shadow: 0 0 28px rgba(0, 255, 102, .34);
}

.site-footer {
  background: #050506;
  border-top: 1px solid #1f2833;
}

.footer-logo {
  width: 260px;
}

.social-links a {
  border-color: #1f2833;
}

.social-links a:hover,
.social-links a:focus-visible {
  color: #ffffff;
  border-color: #c12026;
  background: #c12026;
}

.legal-page {
  background: #0a0a0c;
}

.legal-hero {
  background:
    linear-gradient(135deg, rgba(193, 32, 38, .16), transparent 32%),
    #0a0a0c;
  border-bottom: 1px solid #1f2833;
}

.legal-card a,
.footer-links a:hover,
.footer-links a:focus-visible,
.nav-links a:hover,
.nav-links a:focus-visible {
  color: #c12026;
}

@media (max-width: 980px) {
  .nav-links {
    color: #ffffff;
    background: rgba(10, 10, 12, .98);
    border-color: #1f2833;
  }

  .event-fact {
    border-bottom-color: #1f2833;
  }
}

@media (max-width: 720px) {
  .brand-logo {
    width: 176px;
  }

  .hero-logo {
    width: min(250px, 76vw);
  }

  .hero h1 {
    max-width: 8.5ch;
    font-size: clamp(2.35rem, 10.5vw, 3.05rem);
    letter-spacing: .015em;
  }

  .tagline {
    width: 100%;
    max-width: calc(100vw - 28px);
    overflow-wrap: anywhere;
  }

  .hero-content {
    width: calc(100vw - 28px);
    max-width: calc(100vw - 28px);
    overflow: hidden;
  }

  .countdown {
    width: calc(100vw - 28px);
    max-width: calc(100vw - 28px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  body {
    overflow-x: hidden;
  }

  .hero-inner,
  .hero-content {
    width: min(330px, calc(100vw - 28px)) !important;
    max-width: min(330px, calc(100vw - 28px)) !important;
  }

  .hero-inner {
    margin-left: 14px !important;
    margin-right: 14px !important;
  }

  .countdown {
    width: 100% !important;
    max-width: 100% !important;
    grid-template-columns: 1fr !important;
  }

  .count-box {
    min-width: 0 !important;
    width: auto !important;
  }
}

/* Compact hero registration form */
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 460px);
  gap: clamp(28px, 5vw, 68px);
  align-items: center;
}

.hero-rsvp-panel {
  position: relative;
  z-index: 3;
  align-self: center;
}

.rsvp-panel-header {
  padding: 22px 24px 0;
  border: 1px solid #1f2833;
  border-bottom: 0;
  background: rgba(18, 20, 24, .94);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
}

.rsvp-panel-header h2 {
  margin: 0;
  color: #ffffff;
  font-family: Rajdhani, Orbitron, Inter, sans-serif;
  font-size: clamp(1.45rem, 2vw, 2rem);
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1;
  text-transform: uppercase;
}

.rsvp-panel-header p {
  margin: 10px 0 0;
  color: #8a8d91;
  font-size: .92rem;
}

.compact-form {
  padding: 24px;
  border-top: 2px solid #c12026;
  background: rgba(18, 20, 24, .94);
  backdrop-filter: blur(14px);
}

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

.compact-form .field input,
.compact-form .field select {
  min-height: 46px;
}

.compact-form .field textarea {
  min-height: 92px;
}

.optional-label {
  color: #8a8d91;
  font-size: .72rem;
  font-weight: 800;
}

[hidden] {
  display: none !important;
}

@media (max-width: 1180px) {
  .hero-inner {
    grid-template-columns: minmax(0, .96fr) minmax(340px, .72fr);
  }
}

@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .hero-rsvp-panel {
    width: min(100%, 560px);
    align-self: start;
  }
}

@media (max-width: 720px) {
  .hero-inner {
    width: min(100% - 28px, var(--container)) !important;
    max-width: var(--container) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .hero-content,
  .hero-rsvp-panel,
  .countdown {
    width: 100% !important;
    max-width: 100% !important;
  }

  .tagline {
    width: 100% !important;
    max-width: 32ch !important;
    font-size: .94rem !important;
    line-height: 1.45 !important;
    overflow-wrap: anywhere;
  }

  .hero-content,
  .hero-rsvp-panel {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .hero-content {
    overflow: visible !important;
  }

  .compact-form,
  .rsvp-panel-header {
    padding-left: 18px;
    padding-right: 18px;
  }

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

/* Premium UI Enhancements: Hover effects & Glassmorphism */
.agenda-card,
.detail-item,
.rsvp-note,
.form-card,
.success-card,
.legal-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  backdrop-filter: blur(14px);
  background: rgba(18, 20, 24, 0.76); /* more transparent for glass effect */
}

.agenda-card:hover,
.detail-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  border-color: rgba(193, 32, 38, 0.6);
}

.site-header.is-solid {
  backdrop-filter: blur(18px);
  background: rgba(10, 10, 12, 0.85);
}

.event-strip {
  backdrop-filter: blur(16px);
  background: rgba(18, 20, 24, 0.82);
}

/* Scroll-driven Entry Animations */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes section-reveal {
      from {
        opacity: 0;
        transform: translateY(40px) scale(0.96);
      }
      to {
        opacity: 1;
        transform: translateY(0) scale(1);
      }
    }

    .about-grid > *,
    .agenda-card,
    .details-layout > *,
    .detail-item,
    .rsvp-note,
    .form-card {
      animation: section-reveal auto linear backwards;
      animation-timeline: view(block);
      animation-range: entry 5% cover 25%;
    }
  }
}

/* Icon specific hero logo styling */
.hero-logo {
  width: 96px !important;
  height: auto;
  margin-bottom: 36px !important;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.6));
  animation: heroIconFloat 6s ease-in-out infinite;
}

@keyframes heroIconFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* Side by side layout for About and Details */
.about-details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 64px;
  align-items: start;
}
@media (max-width: 980px) {
  .about-details-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .about-grid {
    gap: 32px;
  }
}

@media (max-width: 720px) {
  .hero h1 {
    max-width: 100%;
    font-size: clamp(2.35rem, 10.5vw, 3.05rem);
    letter-spacing: 0.015em;
    line-height: 1.1;
  }
  
  .tagline {
    font-size: 1rem !important;
  }
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translateX(-50%) translateY(-50%);
  object-fit: cover;
  z-index: 0;
  opacity: 0.8;
}
