:root {
  --ink: #171820;
  --muted: #4e6fa8;
  --line: #d7e3e5;
  --paper: #ffffff;
  --mist: #d7e3e5;
  --aqua: #2fa9d6;
  --aqua-dark: #4e2a84;
  --coral: #4069b1;
  --sun: #4e6fa8;
  --blue: #4069b1;
  --violet: #4e2a84;
  --shadow: 0 20px 60px rgba(78, 42, 132, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #f7fbfc;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

body.nav-open {
  overflow: hidden;
}

body.modal-open {
  overflow: hidden;
}

body.is-loaded .site-header {
  animation: headerDrop 520ms ease both;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 74px;
  padding: 12px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(215, 227, 229, 0.9);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  transition:
    box-shadow 180ms ease,
    background 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 32px rgba(78, 42, 132, 0.1);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-logo {
  width: 220px;
  height: auto;
  object-fit: contain;
  object-position: center;
  transform-origin: left center;
  transition: transform 180ms ease;
}

.brand:hover .brand-logo {
  transform: scale(1.025);
}

.brand strong,
.brand small {
  display: block;
  letter-spacing: 0;
}

.brand strong {
  font-size: 1rem;
}

.brand small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(10px, 1.5vw, 22px);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 750;
}

.site-nav a {
  position: relative;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}

.site-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -2px;
  left: 0;
  height: 2px;
  background: var(--aqua);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--aqua-dark);
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: calc(100vh - 74px);
  max-height: 820px;
  display: grid;
  align-items: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto -12% 12% 42%;
  z-index: 1;
  height: 32%;
  background:
    linear-gradient(105deg, rgba(78, 42, 132, 0), rgba(47, 169, 214, 0.22), rgba(78, 42, 132, 0));
  transform: rotate(-12deg) translateX(-8%);
  animation: lightSweep 9s ease-in-out infinite;
  pointer-events: none;
}

.hero img,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero img {
  object-fit: cover;
  object-position: 70% 42%;
  transform: scale(1.02);
  animation: heroDrift 18s ease-in-out infinite alternate;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.9) 34%, rgba(255, 255, 255, 0.28) 65%, rgba(255, 255, 255, 0.05) 100%),
    linear-gradient(0deg, rgba(47, 169, 214, 0.18), rgba(78, 42, 132, 0.08));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(690px, calc(100% - 36px));
  margin-left: clamp(18px, 6vw, 86px);
  padding-bottom: 70px;
  opacity: 0;
  transform: translateY(18px);
  animation: heroIntro 700ms ease 160ms forwards;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--aqua-dark);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
  letter-spacing: 0;
}

h1 {
  max-width: 12ch;
  margin-bottom: 22px;
  font-size: clamp(3.2rem, 8vw, 6.9rem);
  line-height: 0.88;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 0.98;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.35rem;
}

p {
  color: var(--muted);
  line-height: 1.65;
}

.hero-content p:not(.eyebrow) {
  max-width: 55ch;
  font-size: 1.12rem;
}

.hero-actions,
.section-heading,
.site-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 850;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.button.primary {
  background: var(--aqua);
  color: #fff;
}

.button.primary:hover {
  background: var(--aqua-dark);
  box-shadow: 0 14px 30px rgba(78, 42, 132, 0.18);
  transform: translateY(-2px);
}

.button.secondary {
  border-color: rgba(78, 111, 168, 0.34);
  background: rgba(255, 255, 255, 0.82);
}

.button.secondary:hover {
  border-color: var(--aqua);
  color: var(--aqua-dark);
  transform: translateY(-2px);
}

.quick-links {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 36px));
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: -48px auto 0;
}

.quick-links a,
.class-card,
.camp-panel,
.portal-card,
.registration-form,
.waiver-form,
.testimonial-card,
details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.quick-links a {
  min-height: 116px;
  padding: 20px;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.quick-links a:hover {
  border-color: rgba(47, 169, 214, 0.45);
  box-shadow: 0 22px 52px rgba(78, 42, 132, 0.16);
  transform: translateY(-5px);
}

.quick-links strong,
.quick-links span {
  display: block;
}

.quick-links strong {
  margin-bottom: 8px;
  font-size: 1.15rem;
}

.quick-links span {
  color: var(--muted);
  line-height: 1.45;
}

.section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 92px 0;
  scroll-margin-top: 90px;
}

.intro,
.split,
.form-section,
.portal {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: start;
}

.intro-copy p,
.split p,
.form-section p,
.portal p {
  font-size: 1.06rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 28px 0 0;
}

.stats div {
  min-height: 122px;
  padding: 18px;
  border-left: 5px solid var(--coral);
  background: var(--mist);
}

.stats dt {
  margin-bottom: 8px;
  color: var(--aqua-dark);
  font-size: 2rem;
  font-weight: 950;
}

.stats dd {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
}

.section-heading {
  justify-content: space-between;
  margin-bottom: 26px;
}

.section-heading .eyebrow,
.section-heading h2 {
  width: 100%;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.class-card {
  min-height: 280px;
  padding: 24px;
  box-shadow: none;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.class-card:hover,
.camp-panel:hover,
.portal-card:hover,
.registration-form:hover,
details:hover {
  border-color: rgba(47, 169, 214, 0.48);
  box-shadow: 0 18px 44px rgba(78, 42, 132, 0.12);
  transform: translateY(-4px);
}

.class-card span {
  display: inline-block;
  margin-bottom: 34px;
  color: var(--aqua-dark);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.class-card:nth-child(2) {
  border-top: 5px solid var(--sun);
}

.class-card:nth-child(3) {
  border-top: 5px solid var(--blue);
}

.class-card:nth-child(4) {
  border-top: 5px solid var(--violet);
}

.class-card:first-child {
  border-top: 5px solid var(--coral);
}

.split {
  width: 100%;
  max-width: none;
  padding-right: max(18px, calc((100% - 1180px) / 2));
  padding-left: max(18px, calc((100% - 1180px) / 2));
  background: linear-gradient(135deg, var(--mist), rgba(47, 169, 214, 0.12));
}

.camp-panel {
  padding: 28px;
}

.camp-panel ul {
  display: grid;
  gap: 12px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.camp-panel li,
.invoice-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.camp-panel li span,
.invoice-row span {
  color: var(--muted);
}

.schedule-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.schedule-table [role="row"] {
  display: grid;
  grid-template-columns: 0.8fr repeat(3, 1fr);
}

.schedule-table span {
  min-height: 62px;
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  line-height: 1.35;
}

.schedule-table span:last-child {
  border-right: 0;
}

.schedule-table [role="row"]:last-child span {
  border-bottom: 0;
}

.table-head span {
  background: var(--aqua-dark);
  color: #fff;
  font-weight: 900;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-auto-rows: 230px;
  gap: 16px;
}

.gallery-grid figure {
  position: relative;
  min-height: 230px;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--mist);
  transition:
    box-shadow 180ms ease,
    transform 180ms ease;
}

.gallery-grid figure:hover {
  box-shadow: 0 20px 54px rgba(78, 42, 132, 0.16);
  transform: translateY(-5px);
}

.gallery-grid figure:first-child {
  grid-row: span 2;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 500ms ease;
}

.gallery-grid figure:hover img {
  transform: scale(1.04);
}

.gallery-grid figcaption {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  font-weight: 850;
}

.gallery-tile {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0)),
    var(--aqua);
}

.gallery-tile::before {
  content: "";
  position: absolute;
  inset: 22px;
  border: 12px solid rgba(255, 255, 255, 0.55);
  border-radius: 8px;
  transition: transform 220ms ease;
}

.gallery-tile:hover::before {
  transform: scale(0.94) rotate(-2deg);
}

.gallery-tile.mats {
  background-color: var(--coral);
}

.gallery-tile.bars {
  background-color: var(--blue);
}

.gallery-tile.party {
  background-color: var(--sun);
}

.testimonials {
  width: 100%;
  max-width: none;
  padding-right: max(18px, calc((100% - 1180px) / 2));
  padding-left: max(18px, calc((100% - 1180px) / 2));
  background:
    linear-gradient(135deg, rgba(78, 42, 132, 0.08), rgba(47, 169, 214, 0.12)),
    #fff;
}

.testimonial-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.testimonial-card {
  min-height: 230px;
  display: grid;
  align-content: space-between;
  gap: 22px;
  padding: 24px;
}

.testimonial-card p {
  position: relative;
  margin-bottom: 0;
  color: var(--ink);
  font-size: 1.12rem;
}

.testimonial-card p::before {
  content: open-quote;
}

.testimonial-card p::after {
  content: close-quote;
}

.testimonial-card strong {
  color: var(--aqua-dark);
}

.registration-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 24px;
  box-shadow: none;
}

.registration-form label,
.portal-login label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 800;
}

.registration-form input,
.registration-form select,
.portal-login input {
  width: 100%;
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

.registration-form button,
.form-note {
  grid-column: 1 / -1;
}

.form-note,
.portal-note,
.login-helper,
.waiver-note {
  min-height: 24px;
  margin: 0;
  color: var(--aqua-dark);
  font-weight: 800;
}

.waiver-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: start;
}

.waiver-form {
  display: grid;
  gap: 16px;
  padding: 24px;
  box-shadow: none;
}

.waiver-copy {
  max-height: 360px;
  overflow-y: auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fbfc;
}

.waiver-document {
  min-width: 680px;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.82rem;
  line-height: 1.55;
  white-space: pre-line;
}

.waiver-copy::-webkit-scrollbar {
  width: 10px;
}

.waiver-copy::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: var(--muted);
}

.waiver-copy::-webkit-scrollbar-track {
  background: var(--line);
}

.waiver-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 800;
}

.waiver-form input[type="text"],
.waiver-form select,
.waiver-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

.waiver-form textarea {
  resize: vertical;
  line-height: 1.45;
}

.waiver-check {
  display: flex !important;
  align-items: center;
  grid-template-columns: auto 1fr;
}

.waiver-check input {
  width: 20px;
  height: 20px;
  accent-color: var(--aqua);
}

.waiver-note {
  color: var(--aqua-dark);
}


.login-helper {
  min-height: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.portal {
  width: 100%;
  max-width: none;
  padding-right: max(18px, calc((100% - 1180px) / 2));
  padding-left: max(18px, calc((100% - 1180px) / 2));
  background: #171820;
  color: #fff;
}

.portal .eyebrow,
.portal p {
  color: #d7e3e5;
}

.portal-card {
  padding: 28px;
  color: var(--ink);
}

.portal-login {
  display: grid;
  gap: 16px;
}

.portal-login h3 {
  margin-bottom: 0;
}

.invoice-row strong {
  font-size: 1.25rem;
}

.faq-list {
  display: grid;
  gap: 12px;
}

details {
  padding: 0 18px;
  box-shadow: none;
}

summary {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 1.05rem;
  font-weight: 900;
  cursor: pointer;
}

summary::after {
  content: "+";
  color: var(--coral);
  font-size: 1.6rem;
  line-height: 1;
}

details[open] summary::after {
  content: "-";
}

details p {
  margin-bottom: 18px;
}

.site-footer {
  justify-content: center;
  min-height: 104px;
  padding: 24px 18px;
  border-top: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  text-align: center;
}

.site-footer strong {
  color: var(--ink);
}

.portal-page {
  min-height: 100vh;
  background: #eef5f7;
}

.admin-page {
  min-height: 100vh;
  background: #eef5f7;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(18px, 4vw, 52px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
}

.admin-header h1 {
  margin-bottom: 0;
  font-size: clamp(2.2rem, 5vw, 4rem);
}

.admin-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.theme-controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-shell {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 36px 0 80px;
}

.admin-form {
  display: grid;
  gap: 18px;
}

.admin-panel {
  display: grid;
  gap: 22px;
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(78, 42, 132, 0.08);
}

.admin-panel h2 {
  margin-bottom: 0;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
}

.color-grid,
.image-grid,
.text-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.color-control,
.image-control,
.text-control {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 850;
}

.color-control {
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fbfc;
}

.color-control span {
  grid-column: 1 / -1;
}

.color-control input[type="color"] {
  width: 52px;
  height: 42px;
  padding: 0;
  border: 0;
  background: transparent;
}

.color-control input[type="text"],
.image-control input,
.text-control input,
.text-control textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

.image-control {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fbfc;
}

.image-control img {
  width: 100%;
  height: 150px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.text-control textarea {
  resize: vertical;
  line-height: 1.5;
}

.text-control span,
.color-control span,
.image-control span {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.admin-save-panel {
  align-items: center;
  grid-template-columns: 1fr auto;
}

.admin-note {
  margin: 0;
  color: var(--muted);
  font-weight: 850;
}

.portal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 82px;
  padding: 14px clamp(18px, 4vw, 52px);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.portal-shell {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 44px 0 80px;
}

.portal-welcome {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 24px;
  align-items: stretch;
  margin-bottom: 24px;
}

.portal-welcome h1 {
  max-width: 12ch;
  margin-bottom: 16px;
  font-size: clamp(2.8rem, 6vw, 5.4rem);
}

.portal-welcome > div:first-child,
.portal-balance,
.portal-feature-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(78, 42, 132, 0.08);
}

.portal-welcome > div:first-child {
  padding: clamp(24px, 4vw, 42px);
}

.portal-balance {
  display: grid;
  align-content: center;
  gap: 14px;
  padding: 28px;
}

.portal-balance span,
.feature-label,
.portal-feature-card dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.portal-balance strong {
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.portal-feature-card {
  min-height: 260px;
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 24px;
}

.portal-feature-card h2 {
  margin-bottom: 0;
  font-size: 1.6rem;
  line-height: 1.1;
}

.portal-feature-card dl {
  display: grid;
  gap: 14px;
  margin: 0;
}

.portal-feature-card dd {
  margin: 4px 0 0;
  color: var(--ink);
  font-weight: 850;
}

.portal-feature-card p {
  margin-bottom: 0;
}

.portal-feature-card.wide {
  grid-column: span 2;
}

.portal-list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.portal-list-row span {
  color: var(--muted);
}

.portal-modal[hidden] {
  display: none;
}

.portal-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 18px;
}

.portal-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(23, 24, 32, 0.58);
  backdrop-filter: blur(10px);
}

.portal-modal-panel {
  position: relative;
  z-index: 1;
  width: min(620px, 100%);
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 28px 90px rgba(23, 24, 32, 0.28);
}

.portal-modal-panel h2 {
  margin-bottom: 18px;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 1.6rem;
  line-height: 1;
}

.portal-message-form {
  display: grid;
  gap: 14px;
}

.portal-message-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 850;
}

.portal-message-form input,
.portal-message-form select,
.portal-message-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

.portal-message-form textarea {
  resize: vertical;
  line-height: 1.5;
}

.modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.message-note {
  min-height: 24px;
  margin: 0;
  color: var(--aqua-dark);
  font-weight: 850;
}

.payment-shell {
  display: grid;
  gap: 22px;
}

.payment-hero,
.payment-summary-card,
.payment-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(78, 42, 132, 0.08);
}

.payment-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(26px, 5vw, 46px);
}

.payment-hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -65% 48%;
  height: 230px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 169, 214, 0.2), transparent 68%);
  pointer-events: none;
}

.payment-hero h1 {
  max-width: 12ch;
  margin-bottom: 14px;
  font-size: clamp(2.8rem, 6vw, 5rem);
}

.payment-hero p:not(.eyebrow) {
  max-width: 62ch;
  margin-bottom: 0;
}

.payment-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
  gap: 18px;
  align-items: start;
}

.payment-summary-card,
.payment-form {
  display: grid;
  gap: 16px;
  padding: clamp(22px, 4vw, 32px);
}

.payment-summary-card h2,
.payment-form h2 {
  margin-bottom: 0;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.total-row strong {
  font-size: 1.55rem;
}

.demo-warning {
  margin: 4px 0 0;
  padding: 14px;
  border: 1px solid rgba(78, 42, 132, 0.18);
  border-radius: 8px;
  background: rgba(215, 227, 229, 0.36);
  color: var(--ink);
  font-weight: 800;
}

.payment-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 850;
}

.payment-form input {
  width: 100%;
  min-height: 52px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

.payment-form input:focus {
  outline: 3px solid rgba(47, 169, 214, 0.22);
  border-color: var(--aqua);
}

.payment-field-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.payment-note {
  min-height: 24px;
  margin: 0;
  color: var(--aqua-dark);
  font-weight: 850;
}

.payment-note.success {
  padding: 14px;
  border: 1px solid rgba(47, 169, 214, 0.28);
  border-radius: 8px;
  background: rgba(47, 169, 214, 0.1);
}

.profile-list {
  grid-template-columns: repeat(3, 1fr);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 620ms ease var(--reveal-delay, 0ms),
    transform 620ms ease var(--reveal-delay, 0ms);
}

.quick-links a.reveal.is-visible:hover,
.gallery-grid figure.reveal.is-visible:hover {
  transform: translateY(-5px);
}

.class-card.reveal.is-visible:hover,
.camp-panel.reveal.is-visible:hover,
.portal-card.reveal.is-visible:hover,
.registration-form.reveal.is-visible:hover,
details.reveal.is-visible:hover {
  transform: translateY(-4px);
}

.portal-page .portal-welcome,
.portal-page .portal-feature-card,
.payment-page .payment-hero,
.payment-page .payment-summary-card,
.payment-page .payment-form {
  animation: riseIn 620ms ease both;
}

.portal-page .portal-feature-card:nth-child(2) {
  animation-delay: 70ms;
}

.portal-page .portal-feature-card:nth-child(3) {
  animation-delay: 140ms;
}

.portal-page .portal-feature-card:nth-child(4) {
  animation-delay: 210ms;
}

.portal-page .portal-feature-card:nth-child(5) {
  animation-delay: 280ms;
}

@keyframes headerDrop {
  from {
    opacity: 0;
    transform: translateY(-14px);
  }

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

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

@keyframes heroDrift {
  from {
    transform: scale(1.02) translate3d(0, 0, 0);
  }

  to {
    transform: scale(1.075) translate3d(-1.2%, -1%, 0);
  }
}

@keyframes lightSweep {
  0%,
  100% {
    opacity: 0.15;
    transform: rotate(-12deg) translateX(-10%);
  }

  50% {
    opacity: 0.44;
    transform: rotate(-12deg) translateX(8%);
  }
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .hero img,
  .hero-content,
  .reveal {
    opacity: 1;
    transform: none;
  }

  .hero::before {
    display: none;
  }
}

@media (max-width: 1040px) {
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 25;
    width: 100%;
    height: calc(100vh - 74px);
    display: grid;
    align-content: start;
    justify-content: stretch;
    gap: 0;
    padding: 18px;
    overflow-y: auto;
    background: #fff;
    box-shadow: 0 30px 70px rgba(78, 42, 132, 0.2);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition:
      opacity 180ms ease,
      transform 180ms ease;
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    color: var(--ink);
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
  }

  .menu-toggle {
    display: block;
  }

  .quick-links,
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .intro,
  .split,
  .form-section,
  .portal {
    grid-template-columns: 1fr;
  }

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

  .portal-welcome,
  .portal-grid,
  .payment-layout {
    grid-template-columns: 1fr 1fr;
  }

  .color-grid,
  .image-grid,
  .text-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .site-header {
    min-height: 68px;
  }

  .site-nav {
    height: calc(100vh - 68px);
  }

  .brand-logo {
    width: 176px;
    height: auto;
  }

  .hero {
    min-height: 720px;
    align-items: end;
  }

  .hero img {
    object-position: 52% 68%;
  }

  .hero-overlay {
    background:
      linear-gradient(0deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.9) 45%, rgba(255, 255, 255, 0.12) 100%),
      linear-gradient(0deg, rgba(47, 169, 214, 0.16), rgba(78, 42, 132, 0.06));
  }

  .hero-content {
    width: calc(100% - 36px);
    margin: 0 auto;
    padding-bottom: 78px;
  }

  h1 {
    max-width: 9ch;
    font-size: clamp(3rem, 16vw, 4.7rem);
  }

  .hero-actions,
  .button,
  .quick-links,
  .card-grid,
  .stats,
  .schedule-table [role="row"],
  .gallery-grid,
  .registration-form {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    display: grid;
  }

  .quick-links {
    margin-top: -36px;
  }

  .section {
    padding: 70px 0;
  }

  .schedule-table {
    display: grid;
    gap: 12px;
    overflow: visible;
    border: 0;
    background: transparent;
  }

  .schedule-table [role="row"] {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
  }

  .schedule-table span {
    min-height: 48px;
    border-right: 0;
  }

  .schedule-table span::before {
    min-width: 98px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
  }

  .schedule-table [role="row"]:not(.table-head) span:nth-child(1)::before {
    content: "Day";
  }

  .schedule-table [role="row"]:not(.table-head) span:nth-child(2)::before {
    content: "Morning";
  }

  .schedule-table [role="row"]:not(.table-head) span:nth-child(3)::before {
    content: "Afternoon";
  }

  .schedule-table [role="row"]:not(.table-head) span:nth-child(4)::before {
    content: "Evening";
  }

  .table-head {
    display: none !important;
  }

  .gallery-grid figure:first-child {
    grid-row: span 1;
  }

  .portal-topbar,
  .portal-welcome,
  .portal-grid,
  .profile-list,
  .modal-actions,
  .payment-layout,
  .payment-field-grid,
  .admin-save-panel,
  .color-grid,
  .image-grid,
  .testimonial-track,
  .waiver-section,
  .text-grid {
    grid-template-columns: 1fr;
  }

  .portal-topbar,
  .admin-header {
    display: grid;
  }

  .portal-feature-card.wide {
    grid-column: auto;
  }
}
