html,
body {
  margin: 0;
  overflow-x: hidden;
  background: #ffffff;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

.brightwell-page {
  color: #0f172a;
  padding-top: calc(var(--utility-h, 40px) + var(--topbar-h, 76px) + 8px);
}

/* Keep header permanently visible on this page */
#site-header .utility-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
}

#site-header .topbar {
  position: fixed;
  top: var(--utility-h, 40px);
  left: 0;
  right: 0;
}

.section {
  width: min(1200px, 95vw);
  margin: 24px auto 14px;
}

.hero-phil {
  border: none;
  border-radius: 12px;
  background: #ffffff;
  padding: 28px 24px;
  box-shadow: none;
}

.hero-title {
  margin: 0;
  line-height: 1.2;
}

.hero-line {
  display: block;
  font-family: "Sora", system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(24px, 3vw, 38px);
  color: #0f172a;
}

.hero-line.gradient {
  background: linear-gradient(90deg, #257cff 0%, #9333ea 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-meta {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  color: #475569;
  font: 500 12px/1.2 "Plus Jakarta Sans", system-ui;
}

.hero-meta .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #cbd5e1;
}

.hero-subtitle {
  margin: 18px 0 0;
  color: #475569;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-weight: 500;
  line-height: 1.72;
}

.hero-ctas {
  margin-top: 24px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-pill {
  border-radius: 9999px;
}

.btn-orange {
  background: rgba(236, 173, 44, 1) !important;
  border-color: rgba(236, 173, 44, 1) !important;
  color: #fff !important;
  text-decoration: none !important;
}

.hero-stats.card {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.hero-stats.card li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #fff;
  border: none;
  border-radius: 10px;
}

.hero-stats.card li strong {
  font: 800 18px/1 "Plus Jakarta Sans", system-ui;
  color: #0f172a;
}

.hero-stats.card li span {
  font: 600 12px/1.2 "Plus Jakarta Sans", system-ui;
  color: #475569;
}

#viewer {
  position: relative;
  width: 80vw;
  max-width: none;
  aspect-ratio: 16 / 9;
  margin: 20px auto 16px;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
}

#viewer iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.table-title {
  text-align: left;
  font-family: "Plus Jakarta Sans", system-ui;
  font-weight: 700;
  margin: 12px auto 8px;
}

.table-wrap {
  width: min(1200px, 95vw);
  margin: 16px auto 48px;
}

.naming-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}

.naming-table thead th {
  background: #f6f7f9;
  color: #111;
  text-align: left;
  padding: 8px 16px;
  border-bottom: 1px solid #e6e8eb;
  font-weight: 600;
}

.naming-table tbody td {
  padding: 9.6px 16px;
  border-bottom: 1px solid #e6e8eb;
}

.naming-table td.cost,
.naming-table td.avail {
  text-align: right;
  white-space: nowrap;
}

.naming-table tbody tr:hover {
  background: #f9fafb;
}

.naming-table tbody tr[data-pano] {
  cursor: pointer;
}

.naming-table tbody tr.active {
  background: #eef2ff;
}

.media-showcase {
  width: min(1200px, 95vw);
  margin: 16px auto 24px;
}

.media-showcase .hero-ctas.center {
  width: 100%;
  min-height: 0;
  padding: 110px 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* This page: remove footer top gap so visual centering matches full white space */
#site-footer .site-footer {
  margin-top: 0;
}

.media-hero {
  width: 100vw;
  margin: 24px calc(50% - 50vw) 16px;
  height: 70vh;
  position: relative;
}

.media-hero .frame {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 0;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
}

.media-hero iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 0;
  outline: 0;
}

@media (min-aspect-ratio: 16 / 9) {
  .media-hero iframe {
    width: 100vw;
    height: 56.25vw;
  }
}

@media (max-aspect-ratio: 16 / 9) {
  .media-hero iframe {
    width: 177.78vh;
    height: 100vh;
  }
}

.feature {
  width: min(1400px, 96vw);
  margin: 28px auto;
  display: grid;
  grid-template-columns: minmax(320px, 520px) 1fr;
  align-items: center;
  gap: 24px;
}

.feature.alt {
  grid-template-columns: minmax(320px, 520px) 1fr;
}

.feature.alt .media {
  order: 2;
}

.feature.alt .copy {
  order: 1;
}

.feature .media {
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 18px 46px rgba(2, 6, 23, 0.12);
  background: #000;
}

.feature .media.bleed-right {
  margin-right: calc(50% - 50vw);
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  box-shadow: none;
}

.feature .media.bleed-left {
  margin-left: calc(50% - 50vw);
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  box-shadow: none;
}

.pano-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 0;
}

.pano-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.feature .copy {
  padding: clamp(6px, 1.2vw, 12px);
}

.fx-title {
  margin: 0 0 8px;
  font: 800 clamp(20px, 2.8vw, 30px) / 1.2 "Sora", "Plus Jakarta Sans", system-ui;
  color: #0f172a;
}

.fx-lead {
  margin: 0;
  color: #475569;
  font: 500 clamp(14px, 1.6vw, 16px) / 1.6 "Plus Jakarta Sans", system-ui;
}

.feature[data-reveal] .fx-title,
.feature[data-reveal] .fx-lead,
.feature[data-reveal].is-in .fx-title,
.feature[data-reveal].is-in .fx-lead {
  opacity: 1;
  transform: none;
}

.feature[data-reveal].is-in .fx-lead {
  transition-delay: 0.08s;
}

.feature-table {
  margin-top: 26px;
  margin-bottom: 12px;
}

.feature-table .table-wrap {
  margin: 10px auto 14px;
}

.btn-unique-donate {
  display: block;
  width: max-content;
  margin: 0 auto;
  height: 46px;
  padding: 0 26px;
  border-radius: 9999px;
  background: rgba(236, 173, 44, 1);
  border: 1px solid rgba(236, 173, 44, 1);
  color: #fff;
  box-shadow: 0 10px 28px rgba(236, 173, 44, 0.32);
  text-decoration: none;
  line-height: 46px;
}

#survey-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#survey-backdrop.visible {
  opacity: 1;
  pointer-events: auto;
}

#survey-panel {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(600px, 90vw);
  height: 100%;
  background: #fff;
  color: #1b0825;
  z-index: 1001;
  transition: right 0.4s ease;
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.3);
  padding: 16px;
  overflow: auto;
  display: flex;
  flex-direction: column;
}

#survey-panel.open {
  right: 0;
}

#survey-close {
  background: none;
  border: 0;
  font-size: 28px;
  align-self: flex-end;
  cursor: pointer;
}

.survey-section {
  margin-top: 14px;
}

.survey-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

@media (min-width: 600px) {
  .survey-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.survey-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f9f9f9;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #ccc;
  cursor: pointer;
  font-size: 0.92rem;
}

.survey-progress {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #fff;
  padding: 10px 0;
  border-bottom: 2px solid #eee;
  margin: 12px 0;
}

.survey-progress .t {
  font-size: 0.8rem;
  text-align: center;
  color: #555;
  margin-bottom: 4px;
}

.survey-progress .bar {
  height: 8px;
  background: #eee;
  border-radius: 5px;
  overflow: hidden;
}

.survey-progress .bar > i {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #fff, #fa9828);
  transition: width 0.3s ease;
}

.survey-input,
.survey-textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.95rem;
}

.survey-textarea {
  min-height: 90px;
  resize: vertical;
}

.survey-other-wrap {
  display: none;
  margin-top: 8px;
}

.survey-consent {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #ddd;
}

.survey-submit {
  margin-top: 10px;
  width: 100%;
  padding: 10px;
  font-size: 1rem;
  background: #000;
  color: #fff;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

@media (max-width: 900px) {
  .hero-stats.card {
    grid-template-columns: 1fr 1fr;
  }

  .feature,
  .feature.alt {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .feature .media.bleed-right,
  .feature .media.bleed-left {
    margin-right: 0;
    margin-left: 0;
    border-radius: 16px;
    box-shadow: 0 18px 46px rgba(2, 6, 23, 0.12);
  }
}

@media (max-width: 680px) {
  .hero-stats.card {
    grid-template-columns: 1fr;
  }
}
