:root {
  --bg: #000000;
  --bg-soft: #090909;
  --bg-deep: #050505;
  --panel: rgba(15, 14, 13, 0.9);
  --panel-strong: #121212;
  --surface: rgba(18, 16, 14, 0.9);
  --surface-soft: rgba(255, 255, 255, 0.02);
  --gold: #d7b66e;
  --gold-soft: #f0d89a;
  --gold-deep: #b5883d;
  --gold-glow: rgba(215, 182, 110, 0.35);
  --text: #f7f3eb;
  --muted: #c2b9a8;
  --border: rgba(215, 182, 110, 0.2);
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.52);
  --glow: rgba(215, 182, 110, 0.38);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  max-width: 100%;
  font-family: "Inter", sans-serif;
  background-color: var(--bg-deep);
  background:
    radial-gradient(circle at 20% 0%, rgba(215, 182, 110, 0.14), transparent 28%),
    radial-gradient(circle at 80% 100%, rgba(188, 135, 64, 0.1), transparent 24%),
    linear-gradient(180deg, #0d0b09 0%, #070707 28%, #000000 100%);
  color: var(--text);
  color-scheme: dark;
  position: relative;
  overflow-x: hidden;
  background-attachment: fixed;
  animation: ambientDrift 18s ease-in-out infinite alternate;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  width: 36rem;
  height: 36rem;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.2;
  pointer-events: none;
  z-index: 0;
  animation: pulseGlow 10s ease-in-out infinite alternate;
  transition: transform 0.2s ease-out, opacity 0.2s ease-out;
}

body::before {
  top: -12rem;
  left: -8rem;
  background: radial-gradient(circle at var(--pointer-x, 50%) var(--pointer-y, 50%), rgba(215, 182, 110, 0.42), rgba(215, 182, 110, 0.12) 26%, transparent 60%);
  transform: translate3d(calc((var(--pointer-x, 50%) - 50%) * 0.08), calc((var(--pointer-y, 50%) - 50%) * 0.08), 0);
  opacity: 0.82;
}

body::after {
  right: -10rem;
  bottom: -12rem;
  background: radial-gradient(circle at 50% 50%, rgba(188, 135, 64, 0.16), rgba(188, 135, 64, 0.06) 30%, transparent 70%);
  animation-delay: 1.5s;
  opacity: 0.8;
}

body::selection {
  background: rgba(215, 182, 110, 0.25);
}

body::before {
  box-shadow: 0 0 180px rgba(215, 182, 110, 0.22);
}

body .page-shell::before {
  content: "";
  position: fixed;
  left: 56%;
  top: 46%;
  width: min(46vw, 600px);
  height: min(46vw, 600px);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(215, 182, 110, 0.14) 0%, rgba(215, 182, 110, 0.08) 18%, rgba(215, 182, 110, 0.03) 36%, transparent 72%);
  filter: blur(18px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.85;
}

img {
  max-width: 100%;
  display: block;
}

.about-grid,
.booking-panel,
.contact-form,
.booking-form,
.portal-form,
.portal-card,
.admin-panel,
.admin-login-box,
.edit-modal,
.feature-panel,
.price-card,
.terms-wrap {
  background-color: rgba(10, 10, 10, 0.82);
}

a { color: inherit; }

main,
.footer,
.topbar {
  position: relative;
  z-index: 1;
}

.page-shell {
  position: relative;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding-bottom: 64px;
}

.topbar {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 18px 18px;
  margin-top: 14px;
  background: rgba(7, 7, 7, 0.82);
  border: 1px solid rgba(215, 182, 110, 0.12);
  border-radius: 24px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
  z-index: 12;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  width: 88px;
  height: 88px;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  filter: none;
  animation: floaty 5s ease-in-out infinite;
}

.brand-tag {
  margin: 0;
  font-size: 0.82rem;
  letter-spacing: 0.22rem;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.main-nav a,
.inline-link {
  position: relative;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.72rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

.main-nav a::after,
.inline-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-soft), transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.main-nav a.active,
.main-nav a:hover,
.inline-link:hover {
  color: var(--gold-soft);
}

.main-nav a.active::after,
.main-nav a:hover::after,
.inline-link:hover::after {
  transform: scaleX(1);
}

.nav-cta,
.primary-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.nav-cta,
.primary-btn {
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  color: #111;
  box-shadow: 0 14px 32px rgba(195, 147, 64, 0.28);
  position: relative;
  overflow: hidden;
}

.nav-cta::before,
.primary-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.45) 35%, transparent 60%);
  transform: translateX(-140%);
  animation: shimmer 4.5s ease-in-out infinite;
}

.nav-cta {
  padding: 0.85rem 1.2rem;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.primary-btn,
.secondary-btn {
  padding: 0.95rem 1.55rem;
  border: 1px solid var(--border);
}

.secondary-btn {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
}

.nav-cta:hover,
.primary-btn:hover,
.secondary-btn:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 18px 44px rgba(215, 182, 110, 0.22);
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 40px;
  padding: 72px 0 52px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--gold-soft);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.7rem;
  font-weight: 700;
}

h1, h2, h3 {
  margin: 0;
  letter-spacing: -0.04em;
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
}

h1 {
  font-size: clamp(4rem, 6vw, 6.2rem);
  line-height: 0.88;
  text-shadow: 0 12px 30px rgba(0, 0, 0, 0.26);
}

h2 {
  font-size: clamp(2.5rem, 4vw, 3.6rem);
  line-height: 1;
}

h3 {
  font-size: clamp(1.8rem, 2vw, 2.35rem);
}

.intro {
  max-width: 620px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin-top: 34px;
}

.hero-stats div {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 16px;
  border: 1px solid rgba(215, 182, 110, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
}

.hero-stats strong {
  color: var(--gold-soft);
  font-size: clamp(1.5rem, 1.5vw, 2rem);
}

.hero-stats span {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-copy .intro {
  max-width: 660px;
}

.hero-visual {
  position: relative;
  min-height: 620px;
  border-radius: 32px;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(215, 182, 110, 0.10), rgba(8, 8, 8, 0.96));
  border: 1px solid rgba(215, 182, 110, 0.18);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255,255,255,0.08);
  transition: transform 0.25s ease;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255,255,255,0.18), transparent 35%);
  pointer-events: none;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: -25%;
  background: linear-gradient(120deg, transparent 25%, rgba(255,255,255,0.10) 48%, rgba(215,180,110,0.18) 50%, transparent 75%);
  transform: translateX(-28%) rotate(10deg);
  animation: goldSweep 8s ease-in-out infinite;
  pointer-events: none;
}

.visual-card {
  position: absolute;
  border-radius: 28px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.26);
  transition: transform 0.35s ease, box-shadow 0.35s ease, filter 0.35s ease;
  animation: floaty 9s ease-in-out infinite alternate;
  transform-style: preserve-3d;
}

.visual-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.12), transparent 38%, rgba(215,182,110,0.08) 100%);
  opacity: 0.8;
}

.visual-card:hover {
  transform: scale(1.02) translateY(-4px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  filter: saturate(1.08) contrast(1.04);
}

.card-one {
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 30px;
  animation-delay: 0.2s;
}

.card-two {
  top: 26px;
  right: 24px;
  width: 180px;
  height: 220px;
  animation-delay: 0.8s;
}

.card-three {
  right: 32px;
  bottom: 28px;
  width: 210px;
  height: 250px;
  animation-delay: 1.1s;
}

.section-box {
  margin-top: 18px;
  padding: 52px 0;
  position: relative;
}

.section-box:not(.about):not(.hero) {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.about {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.section-heading {
  margin-bottom: 28px;
}

.split-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 32px;
  align-items: start;
}

.about-copy,
.contact-grid p,
.feature-panel p,
.portal-card li,
.terms-copy p,
.area-card p,
.category-card p,
.service-card p,
.team-body p {
  color: var(--muted);
  line-height: 1.8;
}

.about-points {
  display: grid;
  gap: 22px;
}

.point-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 18px;
  padding: 22px 20px;
  border: 1px solid rgba(215, 182, 110, 0.15);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.015), rgba(215,182,110,0.02));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 18px 26px rgba(0,0,0,0.12);
}

.point-item:hover {
  transform: translateY(-2px);
  border-color: rgba(215, 182, 110, 0.3);
}

.point-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  width: 52px;
  border-radius: 14px;
  background: rgba(215, 182, 110, 0.1);
  color: var(--gold-soft);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  font-weight: 700;
}

.point-item p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.team-grid, .portfolio-categories, .area-grid, .portal-grid, .service-grid {
  display: grid;
  gap: 22px;
}

.team-grid, .portfolio-categories {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.area-grid, .portal-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.portal-support-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.service-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.area-card a {
  display: inline-block;
  margin-top: 14px;
  color: var(--gold-soft);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.area-image {
  height: 170px;
  margin-bottom: 18px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.area-price-list {
  margin-top: 16px;
  padding: 14px 16px 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(215, 182, 110, 0.06);
}

.area-price-list strong {
  display: block;
  margin-bottom: 8px;
  color: var(--gold-soft);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.7rem;
}

.area-price-list ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.9rem;
}

.team-card, .category-card, .area-card, .portal-card, .service-card {
  border: 1px solid rgba(215, 182, 110, 0.15);
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(15, 14, 13, 0.82));
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover, .category-card:hover, .area-card:hover, .portal-card:hover, .service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(215, 182, 110, 0.35);
  box-shadow: 0 22px 36px rgba(0, 0, 0, 0.16);
}

.team-image {
  height: 260px;
  background-size: cover;
  background-position: center;
  transition: transform 0.35s ease;
}

.team-card:hover .team-image {
  transform: scale(1.04);
}

.team-body {
  padding: 20px 18px 22px;
}

.team-body h3 {
  font-size: 2rem;
}

.category-card, .area-card, .portal-card, .service-card {
  padding: 24px;
}

.category-card a, .service-card a {
  display: inline-block;
  margin-top: 12px;
  color: var(--gold-soft);
  text-decoration: none;
  font-weight: 600;
}

.feature-panel {
  padding: 28px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(215, 182, 110, 0.12), rgba(255, 255, 255, 0.02));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.feature-panel a {
  color: var(--gold-soft);
  text-decoration: none;
  font-weight: 700;
}

.video-showcase-section {
  padding-top: 16px;
}

.video-showcase {
  display: grid;
  gap: 18px;
}

.video-frame {
  position: relative;
  min-height: 500px;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid rgba(215, 182, 110, 0.2);
  background:
    linear-gradient(135deg, rgba(12, 12, 12, 0.78), rgba(23, 18, 12, 0.5)),
    radial-gradient(circle at 50% 30%, rgba(215, 182, 110, 0.16), transparent 38%),
    linear-gradient(120deg, #090909, #14110d 50%, #080808);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.video-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #090909;
}

.video-overlay {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  display: grid;
  gap: 12px;
  max-width: 540px;
  z-index: 1;
}

.video-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(215, 182, 110, 0.28);
  background: rgba(215, 182, 110, 0.08);
  color: var(--gold-soft);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.video-overlay h3 {
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1;
}

.video-overlay p {
  margin: 0;
  max-width: 48ch;
  color: var(--muted);
  line-height: 1.8;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.gallery-item {
  position: relative;
  min-height: 260px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--border);
  background-size: cover;
  background-position: center;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.2);
  transition: transform 0.35s ease, box-shadow 0.35s ease, filter 0.35s ease;
}

.gallery-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.10), transparent 30%, rgba(215,182,110,0.10) 100%);
  opacity: 0.75;
}

.gallery-item:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.28);
  filter: saturate(1.12) contrast(1.04);
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 52%, rgba(0, 0, 0, 0.62) 100%);
}

.gallery-item.tall {
  min-height: 330px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 30px;
  align-items: start;
}

.contact-form,
.booking-form,
.portal-form {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.contact-form input,
.contact-form textarea,
.booking-form input,
.booking-form select,
.booking-form textarea,
.portal-form input,
.portal-form textarea {
  width: 100%;
  border: 1px solid rgba(215, 182, 110, 0.18);
  border-radius: 12px;
  background: rgba(12, 12, 12, 0.8);
  color: var(--text);
  padding: 0.9rem 1rem;
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus,
.booking-form input:focus,
.booking-form select:focus,
.booking-form textarea:focus,
.portal-form input:focus,
.portal-form textarea:focus {
  outline: none;
  border-color: rgba(215, 182, 110, 0.45);
  box-shadow: 0 0 0 3px rgba(215, 182, 110, 0.1);
}

.contact-form textarea,
.booking-form textarea,
.portal-form textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-form button,
.booking-form button,
.portal-form button {
  display: inline-flex;
  justify-content: center;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  color: #111;
  padding: 0.9rem 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.contact-form button:hover,
.booking-form button:hover,
.portal-form button:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.form-row {
  display: grid;
  gap: 14px;
}

.two-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.booking-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
}

.booking-panel,
.portal-message {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.02);
}

.booking-panel ul {
  margin: 16px 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
  line-height: 2;
}

.booking-form label,
.portal-form label {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-weight: 500;
}

.success-banner {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(116, 201, 134, 0.4);
  background: rgba(116, 201, 134, 0.08);
  color: #dff7e5;
  margin-bottom: 12px;
}

.full-width {
  width: 100%;
}

.page-header {
  padding-top: 36px;
}

.portfolio-categories {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card {
  background: linear-gradient(160deg, rgba(215, 182, 110, 0.08), rgba(255, 255, 255, 0.02));
}

.service-card.featured {
  border-color: rgba(215, 182, 110, 0.48);
  transform: translateY(-4px);
}

.service-card .tag {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(215, 182, 110, 0.32);
  background: rgba(215, 182, 110, 0.08);
  color: var(--gold-soft);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.portal-card ul {
  margin: 14px 0 0;
  padding-left: 1.1rem;
}

.portal-card a {
  color: var(--gold-soft);
  text-decoration: none;
}

.family-dashboard-header {
  display: grid;
  gap: 20px;
  padding: 26px 28px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(215, 182, 110, 0.1), rgba(255, 255, 255, 0.02));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.family-dashboard-title,
.portal-student-heading,
.portal-invoice-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.family-dashboard-title h1,
.portal-student-heading h3,
.portal-invoice h3 {
  margin: 0;
}

.family-snapshot {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(10, 10, 10, 0.38);
}

.family-snapshot > div {
  display: grid;
  gap: 8px;
  padding: 14px 18px;
  border-right: 1px solid var(--border);
}

.family-snapshot > div:last-child { border-right: 0; }
.family-snapshot span { color: var(--muted); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; }
.family-snapshot strong { color: var(--gold-soft); font-size: 1.2rem; }

.portal-workspace {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: start;
  gap: 22px;
}

.portal-sidebar {
  position: sticky;
  top: 132px;
  display: grid;
  gap: 6px;
  padding: 16px 12px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(10, 10, 10, 0.76);
}

.portal-sidebar .eyebrow {
  margin: 0 8px 8px;
}

.portal-tab {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.86rem;
  text-align: left;
  cursor: pointer;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.portal-tab:hover,
.portal-tab.is-active {
  border-color: var(--border);
  background: rgba(215, 182, 110, 0.08);
  color: var(--gold-soft);
}

.portal-tab.is-active {
  box-shadow: inset 3px 0 var(--gold);
}

.portal-view-stack { min-width: 0; }
.portal-view[hidden] { display: none !important; }
.portal-section { display: grid; gap: 20px; }

.parents-page .portal-section {
  margin-top: 0;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(10, 10, 10, 0.58);
}

.parents-page .portal-section .section-heading {
  margin-bottom: 14px;
}
.portal-student-list,
.portal-invoice-list,
.portal-request-list { display: grid; gap: 14px; }

.portal-student,
.portal-invoice,
.portal-request-item {
  min-width: 0;
  padding: 22px;
  border: 1px solid rgba(215, 182, 110, 0.15);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(15, 14, 13, 0.82));
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.portal-student:hover,
.portal-invoice:hover,
.portal-request-item:hover {
  transform: translateY(-2px);
  border-color: rgba(215, 182, 110, 0.35);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.16);
}

.portal-student-heading { margin-bottom: 14px; }
.portal-student-heading .eyebrow,
.portal-invoice .eyebrow { margin: 0 0 5px; }
.portal-student .portal-form { padding: 14px; border-radius: 16px; }
.portal-add-student { display: grid; gap: 10px; padding-top: 20px; border-top: 1px solid var(--border); }
.portal-add-student h3,
.portal-add-student p { margin: 0; }
.portal-add-student p,
.portal-requests-section > p { color: var(--muted); }

.portal-removal-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.portal-removal-form label { display: grid; gap: 7px; color: var(--muted); font-size: 0.78rem; }
.portal-removal-form input {
  width: 100%;
  padding: 0.72rem 0.8rem;
  border: 1px solid rgba(215, 182, 110, 0.18);
  border-radius: 10px;
  background: rgba(12, 12, 12, 0.8);
  color: var(--text);
  font: inherit;
}

.portal-invoice-top { align-items: flex-start; }
.portal-invoice h3 { font-size: 1rem; }
.portal-invoice-amount { color: var(--gold-soft); font-size: 1.2rem; white-space: nowrap; }
.portal-invoice-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; color: var(--muted); font-size: 0.78rem; }
.portal-status { display: inline-flex; align-items: center; padding: 5px 9px; border: 1px solid rgba(215, 182, 110, 0.22); border-radius: 999px; color: var(--gold-soft); font-size: 0.7rem; white-space: nowrap; }

.portal-requests-section .portal-form { max-width: 680px; }
.text-action {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 40px;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(215, 182, 110, 0.08);
  color: var(--gold-soft);
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
}

.portal-request-review { display: grid; gap: 12px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); }
.portal-request-review h3,
.portal-request-item h4,
.portal-request-item p { margin: 0; }
.portal-request-item { display: grid; gap: 9px; }
.portal-request-item p { color: var(--muted); font-size: 0.8rem; overflow-wrap: anywhere; }
.portal-request-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }

@media (max-width: 760px) {
  .family-dashboard-header { padding: 20px; }
  .family-dashboard-title { align-items: flex-start; flex-direction: column; }
  .family-snapshot { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .family-snapshot > div:nth-child(2) { border-right: 0; }
  .family-snapshot > div:nth-child(-n + 2) { border-bottom: 1px solid rgba(215, 182, 110, 0.14); }
  .portal-workspace { grid-template-columns: 1fr; gap: 14px; }
  .portal-sidebar { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 12px; border-radius: 16px; }
  .portal-sidebar .eyebrow { grid-column: 1 / -1; }
  .portal-tab { min-height: 44px; padding: 8px 10px; font-size: 0.78rem; }
  .parents-page .portal-section { padding: 22px 16px; border-radius: 20px; }
  .portal-removal-form { grid-template-columns: 1fr; }
  .portal-invoice-top { align-items: flex-start; }
}

.welcome-pack-section {
  display: grid;
  gap: 28px;
}

.welcome-pack-card {
  padding: 26px;
}

.welcome-pack-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.welcome-pack-header a {
  color: var(--gold-soft);
  text-decoration: none;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pdf-preview-frame {
  position: relative;
  width: 100%;
  height: 480px;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid rgba(215, 182, 110, 0.2);
  border-radius: 18px;
  background: rgba(10, 10, 10, 0.88);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.welcome-pack-viewer {
  height: min(76vh, 860px);
  margin-top: 0;
}

.pdf-preview-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: #090909;
}

.day-grid,
.info-grid,
.price-card {
  display: grid;
  gap: 18px;
}

.day-grid,
.info-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.price-card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.02);
}

.price-card ul {
  margin: 14px 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
  line-height: 2;
}

.price-card li {
  margin-bottom: 0.3rem;
}

.terms-wrap {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 30px 28px;
}

.footer {
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 16px 12px;
}

.contact-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.contact-box p {
  margin: 0;
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(24px) scale(0.985);
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.3s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@keyframes floaty {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

@keyframes ambientDrift {
  0% { background-position: 0% 50%, 100% 100%, 0% 0%; }
  100% { background-position: 25% 30%, 80% 90%, 0% 100%; }
}

@keyframes goldSweep {
  0% { transform: translate3d(-20%, 0, 0) rotate(10deg); opacity: 0; }
  12% { opacity: 0.7; }
  50% { opacity: 1; }
  100% { transform: translate3d(24%, 0, 0) rotate(10deg); opacity: 0; }
}

@keyframes pulseGlow {
  0% { transform: scale(0.9); opacity: 0.18; }
  50% { transform: scale(1.08); opacity: 0.28; }
  100% { transform: scale(0.92); opacity: 0.22; }
}

@keyframes shimmer {
  0% { transform: translateX(-140%); }
  35%, 100% { transform: translateX(140%); }
}

@media (max-width: 980px) {
  .hero,
  .about-grid,
  .footer-inner,
  .contact-grid,
  .booking-layout {
    display: block;
  }

  .hero { padding-top: 28px; }
  .hero-visual { margin-top: 28px; min-height: 480px; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .team-grid, .portfolio-categories, .area-grid, .portal-grid, .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topbar {
    flex-wrap: wrap;
    justify-content: center;
    padding-top: 16px;
  }

  .main-nav {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px 16px;
  }
}

@media (max-width: 760px) {
  body {
    overflow-x: hidden;
  }

  .pdf-preview-frame {
    height: 320px;
  }

  .welcome-pack-viewer {
    height: 420px;
  }

  .welcome-pack-header {
    display: block;
  }

  .page-shell {
    width: min(100% - 18px, 1280px);
    padding-bottom: 40px;
  }

  .topbar {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 16px 14px;
    border-radius: 18px;
  }

  .brand-wrap {
    width: 100%;
    justify-content: center;
    min-width: 0;
  }

  .brand-logo {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
  }

  .brand-tag {
    letter-spacing: 0.14rem;
    font-size: 0.72rem;
    text-align: center;
  }

  .main-nav {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 14px;
  }

  .main-nav a,
  .inline-link {
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    white-space: nowrap;
  }

  .nav-cta {
    width: 100%;
    max-width: none;
  }

  .hero {
    gap: 24px;
    padding-top: 18px;
  }

  h1 {
    font-size: clamp(2.8rem, 16vw, 4.2rem);
    word-break: break-word;
  }

  h2 {
    font-size: clamp(2.1rem, 9vw, 3rem);
    word-break: break-word;
  }

  .hero-actions,
  .hero-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .hero-actions {
    margin-top: 24px;
  }

  .primary-btn,
  .secondary-btn,
  .nav-cta {
    width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .point-item {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 12px;
    padding: 18px 16px;
  }

  .point-number {
    width: 42px;
    height: 42px;
    font-size: 0.7rem;
  }

  .about-grid,
  .contact-grid,
  .booking-layout,
  .day-grid,
  .info-grid,
  .two-up {
    grid-template-columns: 1fr;
  }

  .team-grid, .portfolio-categories, .area-grid, .portal-grid, .service-grid, .gallery-grid {
    grid-template-columns: 1fr;
  }

  .section-box {
    padding: 38px 0;
  }

  .split-header {
    display: block;
  }

  .team-image {
    height: 220px;
  }

  .video-frame {
    min-height: 340px;
  }

  .video-overlay {
    left: 18px;
    right: 18px;
    bottom: 18px;
  }

  .video-frame::before {
    width: 84px;
    height: 84px;
  }

  .gallery-item,
  .gallery-item.tall {
    min-height: 220px;
  }

  .footer-inner {
    display: block;
    padding-top: 18px;
  }

  .contact-box {
    margin-top: 18px;
  }

  .contact-form,
  .booking-form,
  .portal-form {
    padding: 14px;
  }

  .contact-form input,
  .contact-form textarea,
  .booking-form input,
  .booking-form select,
  .booking-form textarea,
  .portal-form input,
  .portal-form textarea {
    font-size: 16px;
  }
}
