:root {
  --purple: #5a00b4;
  --deep-purple: #3d007c;
  --orange: #ff4b00;
  --green: #05a83d;
  --blue: #0867f5;
  --pink: #ee1167;
  --ink: #121017;
  --muted: #5e5868;
  --line: #ece8f4;
  --paper: #fffdfb;
  --shadow: 0 14px 36px rgba(61, 0, 124, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  font-family: Arial, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 0 18%, rgba(109, 27, 198, 0.1), transparent 22%),
    radial-gradient(circle at 100% 100%, rgba(216, 39, 135, 0.08), transparent 18%),
    #fff;
}

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

svg {
  display: block;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 104px;
  padding: 10px clamp(18px, 3.4vw, 52px);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #eee9f6;
  box-shadow: 0 5px 22px rgba(35, 20, 48, 0.08);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  flex: 0 1 390px;
  min-width: 220px;
}

.brand-logo {
  display: block;
  width: auto;
  max-width: 100%;
  height: clamp(70px, 6.6vw, 96px);
  object-fit: contain;
}

.hero h1,
.feature-card h2,
.inner-hero h1,
.section-heading h2,
.site-footer blockquote {
  font-family: Georgia, "Times New Roman", serif;
}

.main-nav {
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  gap: 5px;
  flex: 1 1 auto;
  min-width: 0;
}

.nav-link {
  --nav-color: var(--purple);
  position: relative;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 6px;
  min-width: 82px;
  min-height: 76px;
  padding: 8px 8px;
  border-radius: 5px;
  color: #151019;
  font-size: clamp(0.68rem, 0.8vw, 0.84rem);
  font-weight: 800;
  text-transform: uppercase;
}

.nav-link span {
  white-space: nowrap;
}

.nav-link svg {
  width: 30px;
  height: 30px;
  fill: var(--nav-color);
}

.nav-link::after {
  position: absolute;
  right: 16px;
  bottom: 7px;
  left: 16px;
  height: 4px;
  border-radius: 999px;
  background: var(--nav-color);
  opacity: 0;
  transform: translateY(5px);
  transition: 180ms ease;
  content: "";
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.active {
  background: color-mix(in srgb, var(--nav-color) 8%, white);
  color: var(--nav-color);
}

.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-link.active::after {
  opacity: 1;
  transform: translateY(0);
}

.nav-link.orange {
  --nav-color: var(--orange);
}

.nav-link.green {
  --nav-color: var(--green);
}

.nav-link.pink {
  --nav-color: var(--pink);
}

.nav-link.blue {
  --nav-color: var(--blue);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  place-items: center;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 3px auto;
  background: var(--deep-purple);
}

.hero,
.inner-hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 252, 248, 0.96) 27%, rgba(255, 255, 255, 0.5) 46%, rgba(255, 255, 255, 0.03) 72%),
    url("assets/hero-snapshot.jpg") center right / cover no-repeat;
}

.hero {
  min-height: clamp(420px, 43vw, 600px);
  display: flex;
  align-items: center;
}

.hero::before,
.inner-hero::before,
.site-footer::before,
.site-footer::after {
  position: absolute;
  width: 220px;
  height: 220px;
  pointer-events: none;
  background:
    radial-gradient(circle, transparent 57%, rgba(106, 21, 192, 0.16) 58%, transparent 59%),
    repeating-conic-gradient(from 20deg, rgba(106, 21, 192, 0.18) 0 8deg, transparent 8deg 16deg);
  border-radius: 50%;
  opacity: 0.35;
  content: "";
}

.hero::before,
.inner-hero::before {
  top: -80px;
  left: -78px;
}

.hero-copy {
  width: min(610px, 88vw);
  margin-left: clamp(22px, 5.8vw, 92px);
  padding: 34px 0 46px;
}

.eyebrow {
  margin: 0 0 12px;
  color: #08070a;
  font-size: clamp(1.35rem, 2.1vw, 2.3rem);
  font-weight: 700;
}

.hero h1 {
  margin: 0;
  color: var(--deep-purple);
  font-size: clamp(3rem, 5.6vw, 5.7rem);
  font-weight: 800;
  line-height: 0.92;
}

.hero h1 span {
  display: block;
  color: var(--orange);
}

.divider {
  width: min(390px, 70vw);
  height: 18px;
  margin: 22px 0 18px;
  background:
    radial-gradient(circle at 50% 50%, var(--deep-purple) 0 4px, transparent 5px),
    linear-gradient(90deg, var(--deep-purple), var(--deep-purple)) center / 100% 2px no-repeat;
}

.divider::after {
  display: block;
  width: 60px;
  height: 18px;
  margin: auto;
  border: 2px solid var(--deep-purple);
  border-top: 0;
  border-radius: 0 0 50px 50px;
  background: #fffaf7;
  content: "";
}

.hero-text {
  max-width: 590px;
  margin: 0 0 26px;
  color: #16121c;
  font-size: clamp(1rem, 1.25vw, 1.22rem);
  font-weight: 500;
  line-height: 1.55;
}

.cta,
.feature-card a,
.profile-card a,
.contact-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  border-radius: 6px;
  font-weight: 800;
  text-transform: uppercase;
}

.cta {
  padding: 0 28px;
  background: linear-gradient(135deg, var(--purple), #7400d6);
  color: white;
  box-shadow: 0 12px 24px rgba(90, 0, 180, 0.24);
}

.cta svg {
  width: 27px;
  height: 27px;
  fill: currentColor;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(14px, 1.35vw, 20px);
  padding: 24px clamp(18px, 3vw, 46px);
  background:
    linear-gradient(rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.9)),
    linear-gradient(90deg, rgba(88, 0, 180, 0.08), rgba(255, 79, 0, 0.08), rgba(0, 106, 245, 0.07));
}

.feature-card {
  --accent: var(--purple);
  min-height: 302px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 22px 22px 18px;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, white);
  border-radius: 8px;
  background:
    radial-gradient(circle at 82% 26%, color-mix(in srgb, var(--accent) 11%, transparent), transparent 32%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), color-mix(in srgb, var(--accent) 5%, white));
  box-shadow: var(--shadow);
}

.feature-card::before {
  align-self: flex-end;
  height: 0;
  color: color-mix(in srgb, var(--accent) 18%, transparent);
  font-size: 4.7rem;
  line-height: 0;
  transform: translateY(42px);
  content: "\2726";
}

.card-icon {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  color: var(--accent);
}

.card-icon svg {
  width: 52px;
  height: 52px;
  fill: currentColor;
}

.feature-card h2 {
  margin: 18px 0 4px;
  color: var(--accent);
  font-size: clamp(1.05rem, 1.4vw, 1.28rem);
  font-weight: 800;
  line-height: 1.15;
  text-transform: uppercase;
}

.feature-card h2::after {
  display: block;
  width: 54px;
  height: 3px;
  margin-top: 8px;
  border-radius: 999px;
  background: var(--accent);
  content: "";
}

.feature-card p,
.profile-card p,
.info-panel p,
.contact-copy p {
  color: #19131f;
  font-size: 0.96rem;
  font-weight: 500;
  line-height: 1.55;
}

.feature-card p {
  margin: 10px 0 18px;
}

.feature-card a {
  justify-content: space-between;
  width: 100%;
  margin-top: auto;
  padding: 0 16px;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  background: rgba(255, 255, 255, 0.56);
  font-size: 0.9rem;
  white-space: nowrap;
}

.blue-card {
  --accent: var(--blue);
}

.green-card {
  --accent: var(--green);
}

.orange-card {
  --accent: var(--orange);
}

.pink-card {
  --accent: var(--pink);
}

.inner-hero {
  min-height: 330px;
  display: flex;
  align-items: center;
  padding: clamp(44px, 7vw, 86px) clamp(22px, 6vw, 92px);
}

.inner-hero > div {
  max-width: 720px;
}

.inner-hero h1 {
  margin: 0 0 14px;
  color: var(--deep-purple);
  font-size: clamp(2.9rem, 5vw, 5rem);
  line-height: 0.95;
}

.inner-hero p:last-child {
  max-width: 620px;
  margin: 0;
  font-size: clamp(1rem, 1.3vw, 1.22rem);
  font-weight: 600;
  line-height: 1.6;
}

.content-section {
  padding: clamp(34px, 5vw, 70px) clamp(20px, 5.8vw, 92px);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 24px;
}

.section-heading p {
  margin: 0 0 8px;
  color: var(--orange);
  font-weight: 800;
  text-transform: uppercase;
}

.section-heading h2 {
  margin: 0;
  color: var(--deep-purple);
  font-size: clamp(2rem, 3vw, 3.2rem);
  line-height: 1.05;
}

.listing-grid,
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.profile-card,
.info-panel,
.contact-form,
.contact-copy {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.profile-card,
.info-panel {
  padding: 24px;
}

.avatar {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--orange));
  color: white;
  font-weight: 900;
}

.profile-card h3,
.info-panel h3,
.contact-copy h2 {
  margin: 18px 0 8px;
  color: var(--deep-purple);
}

.profile-card a {
  margin-top: 8px;
  padding: 0 16px;
  border: 1px solid var(--purple);
  color: var(--purple);
}

.timeline {
  display: grid;
  gap: 16px;
  max-width: 920px;
}

.timeline article {
  padding: 22px 24px;
  border-left: 5px solid var(--orange);
  border-radius: 0 8px 8px 0;
  background: white;
  box-shadow: var(--shadow);
}

.timeline h3 {
  margin: 0 0 8px;
  color: var(--deep-purple);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 24px;
}

.contact-copy,
.contact-form {
  padding: 28px;
}

.contact-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 20px 0 0;
  list-style: none;
  font-weight: 700;
}

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

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

.contact-form input,
.contact-form textarea,
.contact-form select,
.search-form input {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #ddd4eb;
  border-radius: 6px;
  font: inherit;
}

.contact-form button {
  border: 0;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  color: white;
  cursor: pointer;
}

.wide-form {
  max-width: 1120px;
  margin: 0 auto;
}

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

.checkbox-row {
  display: flex !important;
  align-items: center;
  gap: 10px;
  align-self: end;
  min-height: 48px;
}

.checkbox-row input {
  width: auto;
}

.profile-admin-form {
  gap: 20px;
}

.form-section {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
}

.form-section legend {
  padding: 0 8px;
  color: var(--deep-purple);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  font-weight: 900;
}

.checkbox-grid-wrap {
  display: grid;
  gap: 10px;
}

.checkbox-grid-wrap p {
  margin: 0;
  color: var(--deep-purple);
  font-weight: 800;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.checkbox-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: #201729;
  font-weight: 700;
}

.checkbox-grid input {
  width: auto;
}

.alert {
  max-width: 1120px;
  margin: 0 auto 20px;
  padding: 14px 16px;
  border: 1px solid rgba(5, 168, 61, 0.22);
  border-radius: 8px;
  background: rgba(5, 168, 61, 0.1);
  color: #087930;
  font-weight: 800;
}

.alert.error {
  border-color: rgba(238, 17, 103, 0.25);
  background: rgba(238, 17, 103, 0.1);
  color: #b40748;
}

.search-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  margin-bottom: 24px;
}

.search-form button,
.calendar-nav a,
.admin-btn,
.login-card button,
.admin-actions button {
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--purple), #7400d6);
  color: #fff;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
}

.search-form button,
.admin-btn,
.login-card button {
  padding: 0 18px;
}

.event-list {
  display: grid;
  gap: 16px;
}

.event-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 22px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.event-item time {
  display: grid;
  place-items: center;
  min-height: 82px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--purple), var(--orange));
  color: #fff;
  font-weight: 900;
  text-align: center;
}

.event-item h3 {
  margin: 0 0 8px;
  color: var(--deep-purple);
}

.event-item p {
  margin: 0 0 8px;
  line-height: 1.55;
}

.calendar-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.calendar-nav h2 {
  margin: 0;
  color: var(--deep-purple);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.6rem, 3vw, 2.7rem);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.calendar-head,
.calendar-cell {
  min-height: 112px;
  padding: 12px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.calendar-head {
  min-height: auto;
  background: var(--deep-purple);
  color: #fff;
  font-weight: 900;
  text-align: center;
}

.calendar-cell strong {
  display: block;
  margin-bottom: 8px;
  color: var(--deep-purple);
}

.calendar-cell span,
.calendar-cell a {
  display: block;
  margin-top: 6px;
  padding: 6px 8px;
  border-radius: 5px;
  background: rgba(255, 75, 0, 0.1);
  color: #a73300;
  font-size: 0.82rem;
  font-weight: 800;
}

.muted-cell {
  background: #faf8fd;
}

.empty-state {
  padding: 26px;
  border: 1px dashed #d7cbe8;
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

.tribute-hero {
  color: #fff;
  background:
    linear-gradient(90deg, rgba(28, 12, 44, 0.94), rgba(69, 0, 110, 0.72), rgba(255, 255, 255, 0.04)),
    url("assets/hero-snapshot.jpg") center right / cover no-repeat;
}

.tribute-hero h1,
.tribute-hero .eyebrow,
.tribute-hero p:last-child {
  color: #fff;
}

.tribute-section {
  background:
    linear-gradient(rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.98)),
    radial-gradient(circle at 12% 18%, rgba(90, 0, 180, 0.12), transparent 26%),
    radial-gradient(circle at 92% 78%, rgba(255, 75, 0, 0.1), transparent 22%);
}

.tribute-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.tribute-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(90, 0, 180, 0.16);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.tribute-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: linear-gradient(90deg, var(--deep-purple), var(--orange));
  content: "";
}

.tribute-portrait {
  height: 230px;
  background:
    linear-gradient(135deg, rgba(61, 0, 124, 0.08), rgba(255, 75, 0, 0.08)),
    #f9f4ff;
}

.tribute-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.78);
}

.tribute-content {
  padding: 22px;
}

.tribute-years {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(61, 0, 124, 0.09);
  color: var(--deep-purple);
  font-size: 0.8rem;
  font-weight: 900;
}

.tribute-card h3 {
  margin: 0 0 8px;
  color: var(--deep-purple);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
}

.tribute-card p {
  line-height: 1.62;
}

.legacy-note .info-panel {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.legacy-note .profile-action {
  width: auto;
  margin-top: 12px;
}

.directory-section {
  background:
    linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.96)),
    linear-gradient(90deg, rgba(90, 0, 180, 0.08), rgba(255, 75, 0, 0.06));
}

.directory-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.directory-toolbar .section-heading {
  margin-bottom: 0;
}

.request-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 28px;
  padding: 24px;
  border: 1px solid rgba(90, 0, 180, 0.18);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(90, 0, 180, 0.1), rgba(255, 75, 0, 0.08)), #fff;
  box-shadow: var(--shadow);
}

.request-banner h2 {
  margin: 0 0 8px;
  color: var(--deep-purple);
  font-family: Georgia, "Times New Roman", serif;
}

.request-banner p {
  margin: 0;
  color: #24162d;
  line-height: 1.55;
}

.directory-submit,
.directory-card > a,
.profile-action,
.back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 6px;
  font-weight: 800;
  text-transform: uppercase;
}

.directory-submit {
  flex: 0 0 auto;
  padding: 0 20px;
  border: 1px solid var(--purple);
  color: var(--purple);
  background: #fff;
}

.directory-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.magician-directory-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.directory-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 390px;
  padding: 24px;
  border: 1px solid rgba(90, 0, 180, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.directory-card-top {
  display: flex;
  align-items: center;
  gap: 16px;
}

.profile-photo {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.55), transparent 30%),
    linear-gradient(135deg, var(--purple), var(--orange));
  color: white;
  font-size: 1.2rem;
  font-weight: 900;
  box-shadow: 0 14px 30px rgba(90, 0, 180, 0.22);
}

.profile-photo.image-photo {
  object-fit: cover;
  border: 3px solid #fff;
}

.profile-photo.large {
  width: clamp(104px, 13vw, 150px);
  height: clamp(104px, 13vw, 150px);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.current-photo {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffafc;
}

.current-photo img {
  width: 86px;
  height: 86px;
  flex: 0 0 auto;
  border: 3px solid #fff;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 12px 24px rgba(90, 0, 180, 0.16);
}

.current-photo p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.profile-status {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 6px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(5, 168, 61, 0.11);
  color: #087930;
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.directory-card h3 {
  margin: 0;
  color: var(--deep-purple);
  font-size: 1.35rem;
}

.profile-role {
  margin: 4px 0 0;
  color: var(--orange);
  font-weight: 800;
}

.directory-card > p {
  margin: 0;
  color: #23182c;
  line-height: 1.62;
}

.profile-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: auto 0 0;
}

.profile-meta div {
  padding: 12px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fffafc;
}

.profile-meta dt {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.profile-meta dd {
  margin: 0;
  color: var(--deep-purple);
  font-weight: 900;
}

.directory-card > a,
.profile-action {
  gap: 10px;
  width: 100%;
  padding: 0 18px;
  background: linear-gradient(135deg, var(--purple), #7400d6);
  color: white;
  box-shadow: 0 12px 24px rgba(90, 0, 180, 0.2);
}

.magician-card {
  padding: 0;
  overflow: hidden;
}

.magician-card-photo {
  width: 100%;
  height: 320px;
  object-fit: cover;
  background:
    linear-gradient(135deg, rgba(90, 0, 180, 0.08), rgba(255, 77, 0, 0.08)),
    #fff;
}

.magician-card-body {
  padding: 18px 18px 0;
}

.magician-card-body h3,
.dealer-card h3 {
  margin: 0 0 6px;
  color: var(--deep-purple);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.42rem;
}

.magician-card .profile-meta {
  margin: auto 18px 0;
}

.magician-card > a {
  width: calc(100% - 36px);
  margin: 0 18px 18px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 720px;
  margin: 22px 0 0;
}

.hero-stats div {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
}

.hero-stats dt {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-stats dd {
  margin: 4px 0 0;
  color: #fff;
  font-weight: 900;
}

.dealer-card {
  overflow: hidden;
  border: 1px solid rgba(5, 168, 61, 0.18);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.dealer-card > img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.dealer-card-body {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.dealer-card-body p {
  margin: 0;
  line-height: 1.58;
}

.event-detail-hero {
  min-height: 430px;
  display: grid;
  align-content: center;
  gap: 20px;
  padding: clamp(36px, 5vw, 68px) clamp(20px, 5.8vw, 92px);
  color: #fff;
  background-position: center;
  background-size: cover;
}

.event-detail-hero h1 {
  max-width: 900px;
  margin: 0 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 5vw, 5rem);
  line-height: 0.96;
}

.event-detail-hero p {
  max-width: 760px;
  margin: 0;
  font-weight: 700;
  line-height: 1.55;
}

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

.profile-masonry-gallery {
  column-count: 5;
  column-gap: 16px;
}

.profile-masonry-gallery a {
  position: relative;
  display: block;
  break-inside: avoid;
  overflow: hidden;
  margin: 0 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  cursor: zoom-in;
}

.profile-masonry-gallery a::after {
  content: "View";
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 6px 9px;
  border-radius: 999px;
  color: #fff;
  background: rgba(36, 0, 78, 0.78);
  font-size: 0.72rem;
  font-weight: 900;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.profile-masonry-gallery img {
  width: 100%;
  display: block;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  transition: transform 0.24s ease;
}

.profile-masonry-gallery a:hover img {
  transform: scale(1.04);
}

.profile-masonry-gallery a:hover::after,
.profile-masonry-gallery a:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.lightbox-active {
  overflow: hidden;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(18px, 4vw, 48px);
  background: rgba(13, 3, 28, 0.92);
}

.gallery-lightbox.open {
  display: flex;
}

.gallery-lightbox figure {
  width: min(100%, 1120px);
  margin: 0;
  text-align: center;
}

.gallery-lightbox img {
  max-width: 100%;
  max-height: 78vh;
  border: 8px solid rgba(255, 255, 255, 0.94);
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.46);
}

.gallery-lightbox figcaption {
  min-height: 28px;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 800;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  cursor: pointer;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
}

.lightbox-close {
  top: 18px;
  right: 18px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 2rem;
  line-height: 1;
}

.lightbox-nav {
  top: 50%;
  width: 52px;
  height: 68px;
  border-radius: 8px;
  font-size: 3rem;
  transform: translateY(-50%);
}

.lightbox-prev {
  left: 18px;
}

.lightbox-next {
  right: 18px;
}

.lightbox-close:hover,
.lightbox-nav:hover,
.lightbox-close:focus-visible,
.lightbox-nav:focus-visible {
  background: rgba(255, 255, 255, 0.24);
  outline: 2px solid #ffd36d;
  outline-offset: 2px;
}

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

.profile-admin-gallery figcaption {
  display: grid;
  gap: 8px;
}

.profile-admin-gallery figcaption strong,
.profile-admin-gallery figcaption span {
  display: block;
}

.profile-admin-gallery button {
  width: fit-content;
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 5px;
  background: #f5eefc;
  color: var(--deep-purple);
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.profile-gallery-table {
  min-width: 920px;
}

.gallery-row-thumb {
  width: 112px;
  height: 78px;
  display: block;
  border: 3px solid #fff;
  border-radius: 6px;
  object-fit: cover;
  box-shadow: 0 10px 22px rgba(90, 0, 180, 0.16);
}

.gallery-grid figure,
.admin-gallery figure {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.gallery-grid img,
.admin-gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.gallery-grid figcaption,
.admin-gallery figcaption {
  padding: 10px 12px;
  color: var(--muted);
  font-weight: 800;
}

.text-link,
.tribute-card a {
  color: var(--deep-purple);
  font-weight: 900;
}

.admin-thumb {
  width: 54px;
  height: 54px;
  border: 2px solid #fff;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 8px 16px rgba(90, 0, 180, 0.15);
}

.profile-hero {
  padding: clamp(36px, 5vw, 68px) clamp(20px, 5.8vw, 92px);
  color: white;
  background:
    linear-gradient(135deg, rgba(36, 0, 78, 0.96), rgba(90, 0, 180, 0.84)),
    url("assets/hero-snapshot.jpg") center / cover no-repeat;
}

.back-link {
  width: fit-content;
  min-height: 42px;
  margin-bottom: 24px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.profile-hero-grid {
  display: grid;
  grid-template-columns: auto minmax(0, 780px);
  align-items: center;
  gap: clamp(20px, 4vw, 42px);
}

.profile-hero h1 {
  margin: 0 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 5vw, 5rem);
  line-height: 0.95;
}

.profile-hero p:not(.profile-status) {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 1.3vw, 1.22rem);
  font-weight: 600;
  line-height: 1.6;
}

.artist-hero {
  position: relative;
  overflow: hidden;
}

.artist-hero::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -190px;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 184, 0, 0.18), transparent 62%);
  pointer-events: none;
}

.artist-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(240px, 360px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 5vw, 56px);
}

.artist-photo-frame {
  position: relative;
  width: min(100%, 360px);
  aspect-ratio: 4 / 5;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 26px 65px rgba(17, 0, 38, 0.36);
}

.artist-photo-frame img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 6px;
  object-fit: cover;
}

.artist-hero-copy {
  min-width: 0;
}

.artist-stage {
  margin-bottom: 14px !important;
  color: #ffd36d !important;
  font-weight: 900 !important;
}

.hero-booking-link {
  width: fit-content;
  margin-top: 24px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  border-color: transparent;
}

.artist-profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.7fr);
  gap: 22px;
  align-items: start;
}

.artist-main-panel,
.artist-side-panel,
.capability-card,
.booking-copy,
.booking-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.artist-main-panel,
.artist-side-panel,
.capability-card,
.booking-copy {
  padding: clamp(22px, 3vw, 32px);
}

.artist-main-panel > p,
.artist-highlight p,
.capability-card p,
.booking-copy p {
  margin: 0;
  color: #251c2d;
  line-height: 1.7;
}

.artist-highlight {
  margin-top: 24px;
  padding: 20px;
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  background: #fff9eb;
}

.artist-highlight h3,
.artist-side-panel h2,
.capability-card h2,
.booking-copy h2 {
  margin: 0 0 12px;
  color: var(--deep-purple);
  font-family: Georgia, "Times New Roman", serif;
}

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

.video-link-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.video-link-grid a {
  min-height: 44px;
  padding: 0 18px;
  color: var(--deep-purple);
  border: 1px solid rgba(90, 0, 180, 0.22);
  background: #fff;
}

.booking-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.65fr) minmax(0, 1.35fr);
  gap: 22px;
  align-items: start;
}

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

.booking-copy .eyebrow {
  margin-bottom: 8px;
  color: var(--pink);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.booking-form {
  padding: clamp(22px, 3vw, 30px);
}

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

.profile-detail {
  display: grid;
  grid-template-columns: 1.25fr 1fr 0.85fr;
  gap: 22px;
}

.profile-detail .info-panel h2 {
  margin: 0 0 12px;
  color: var(--deep-purple);
}

.detail-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
  color: #19131f;
  line-height: 1.55;
}

.site-footer {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(36, 0, 78, 0.96), rgba(83, 0, 152, 0.94)),
    url("assets/hero-snapshot.jpg") center / cover no-repeat;
}

.site-footer::before {
  top: -122px;
  right: -70px;
  opacity: 0.22;
}

.site-footer::after {
  bottom: -150px;
  left: -92px;
  opacity: 0.18;
}

.footer-main,
.footer-bottom {
  position: relative;
  z-index: 1;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(260px, 1.35fr) repeat(3, minmax(160px, 0.7fr));
  gap: clamp(24px, 4vw, 54px);
  padding: clamp(42px, 5vw, 72px) clamp(22px, 5.8vw, 92px) 34px;
}

.footer-brand .brand {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 10px 14px 10px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.18);
}

.footer-brand .brand {
  width: min(360px, 100%);
}

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

.footer-brand p,
.footer-contact p {
  max-width: 370px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.68;
}

.footer-links,
.footer-contact {
  display: grid;
  align-content: start;
  gap: 11px;
}

.footer-links h2,
.footer-contact h2 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-links h2::after,
.footer-contact h2::after {
  display: block;
  width: 42px;
  height: 3px;
  margin-top: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--orange), #ffd36a);
  content: "";
}

.footer-links a,
.footer-contact a {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 700;
  transition: color 160ms ease, transform 160ms ease;
}

.footer-links a:hover,
.footer-links a:focus-visible,
.footer-contact a:hover,
.footer-contact a:focus-visible {
  color: #fff;
  transform: translateX(3px);
}

.footer-contact strong {
  color: #fff;
}

.socials {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
}

.socials a {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  color: #fff;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
  transition: transform 160ms ease, filter 160ms ease;
}

.socials a:hover,
.socials a:focus-visible {
  transform: translateY(-3px);
  filter: brightness(1.08);
}

.socials svg {
  width: 23px;
  height: 23px;
  fill: currentColor;
}

.facebook {
  background: #1769c2;
}

.instagram {
  background: linear-gradient(135deg, #7024c4, #fb145f, #ffcf21);
}

.youtube {
  background: #d80b0b;
}

.whatsapp {
  background: #07a63b;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px clamp(22px, 5.8vw, 92px);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(18, 0, 38, 0.34);
}

.footer-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.94rem;
}

.site-footer blockquote {
  margin: 0;
  color: #fff;
  font-size: clamp(0.94rem, 1.1vw, 1.12rem);
  font-weight: 700;
  font-style: italic;
  text-align: right;
}

.site-footer blockquote::before {
  color: #ffd36a;
  content: "\201C ";
}

.site-footer blockquote::after {
  color: var(--orange);
  content: " \201D \2726";
}

.login-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(36, 0, 78, 0.9), rgba(90, 0, 180, 0.65)),
    url("assets/hero-snapshot.jpg") center / cover no-repeat;
}

.login-card {
  width: min(430px, 100%);
  display: grid;
  gap: 14px;
  padding: 30px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.28);
}

.login-card h1 {
  margin: 0;
  color: var(--deep-purple);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.3rem;
}

.login-card p {
  margin: 0 0 8px;
  color: var(--muted);
}

.login-card label {
  display: grid;
  gap: 8px;
  color: var(--deep-purple);
  font-weight: 800;
}

.login-card input {
  padding: 13px 14px;
  border: 1px solid #ddd4eb;
  border-radius: 6px;
  font: inherit;
}

.admin-body {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px 1fr;
  background: #f7f3fb;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px;
  background: linear-gradient(180deg, #30005f, #5a00b4);
  color: #fff;
}

.admin-logo {
  display: block;
  margin-bottom: 26px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  font-weight: 900;
}

.admin-sidebar nav {
  display: grid;
  gap: 8px;
}

.admin-sidebar a:not(.admin-logo) {
  padding: 12px 14px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 800;
}

.admin-shell {
  min-width: 0;
  padding: clamp(18px, 3vw, 38px);
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.admin-topbar p,
.admin-topbar h1 {
  margin: 0;
}

.admin-topbar p {
  color: var(--orange);
  font-weight: 900;
  text-transform: uppercase;
}

.admin-topbar h1 {
  color: var(--deep-purple);
  font-family: Georgia, "Times New Roman", serif;
}

.admin-topbar span {
  font-weight: 800;
}

.admin-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.admin-cards article,
.admin-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.admin-cards article {
  padding: 22px;
}

.admin-cards span {
  color: var(--muted);
  font-weight: 800;
}

.admin-cards strong {
  display: block;
  margin-top: 8px;
  color: var(--deep-purple);
  font-size: 2.1rem;
}

.admin-panel {
  padding: 22px;
}

.admin-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.admin-panel-head h2 {
  margin: 0;
  color: var(--deep-purple);
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.filter-tabs a {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--deep-purple);
  font-weight: 800;
}

.table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.admin-table th,
.admin-table td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  color: var(--deep-purple);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.status-pill {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  background: #eee9f6;
  color: var(--deep-purple);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.status-pill.approved,
.status-pill.published {
  background: rgba(5, 168, 61, 0.1);
  color: #087930;
}

.status-pill.pending,
.status-pill.draft {
  background: rgba(255, 75, 0, 0.1);
  color: #a73300;
}

.status-pill.rejected {
  background: rgba(238, 17, 103, 0.1);
  color: #b40748;
}

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

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

.admin-actions a,
.admin-actions button {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 5px;
  background: #f5eefc;
  color: var(--deep-purple);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

@media (max-width: 1320px) {
  .brand {
    flex-basis: 320px;
    min-width: 190px;
  }

  .brand-logo {
    height: 86px;
  }

  .main-nav {
    gap: 2px;
  }

  .nav-link {
    min-width: 72px;
    padding-inline: 6px;
  }

  .nav-link svg {
    width: 27px;
    height: 27px;
  }

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

  .directory-grid,
  .magician-directory-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .profile-masonry-gallery {
    column-count: 4;
  }
}

@media (max-width: 980px) {
  .site-header {
    min-height: 84px;
    padding: 10px 16px;
  }

  .brand {
    flex: 1 1 auto;
  }

  .brand-logo {
    height: 76px;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    right: 16px;
    left: 16px;
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
  }

  .site-header.open .main-nav {
    display: grid;
  }

  .nav-link {
    min-height: 68px;
  }

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

  .profile-masonry-gallery {
    column-count: 3;
  }

  .hero {
    min-height: 650px;
    align-items: flex-start;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 253, 248, 0.96) 42%, rgba(255, 255, 255, 0.06) 76%),
      url("assets/hero-snapshot.jpg") center bottom / cover no-repeat;
  }

  .hero-copy {
    width: auto;
    margin: 0;
    padding: 42px 20px 260px;
  }

  .inner-hero {
    min-height: 420px;
    align-items: flex-start;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 253, 248, 0.96) 52%, rgba(255, 255, 255, 0.1) 84%),
      url("assets/hero-snapshot.jpg") center bottom / cover no-repeat;
  }

  .feature-grid,
  .listing-grid,
  .info-grid,
  .contact-layout,
  .directory-grid,
  .tribute-grid,
  .gallery-grid,
  .admin-gallery,
  .profile-detail,
  .artist-hero-grid,
  .artist-profile-layout,
  .artist-capabilities,
  .booking-section,
  .booking-form .form-grid,
  .form-grid,
  .checkbox-grid,
  .admin-cards {
    grid-template-columns: 1fr;
  }

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

  .profile-masonry-gallery {
    column-count: 2;
  }

  .event-item {
    grid-template-columns: 1fr;
  }

  .calendar-grid {
    display: grid;
    grid-template-columns: 1fr;
    border: 0;
    box-shadow: none;
    gap: 10px;
    background: transparent;
  }

  .calendar-head,
  .muted-cell {
    display: none;
  }

  .calendar-cell {
    min-height: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
  }

  .admin-body {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    height: auto;
  }

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

  .directory-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .request-banner {
    align-items: flex-start;
    flex-direction: column;
  }

  .request-banner .directory-submit {
    width: 100%;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .directory-submit {
    width: 100%;
  }

  .profile-hero-grid {
    grid-template-columns: 1fr;
  }

  .artist-photo-frame {
    width: min(100%, 320px);
  }

  .booking-copy {
    position: static;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-brand p,
  .footer-contact p {
    max-width: none;
  }

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

@media (max-width: 460px) {
  .brand {
    min-width: 0;
  }

  .brand-logo {
    height: 62px;
  }

  .main-nav {
    grid-template-columns: 1fr;
  }

  .magician-directory-grid {
    grid-template-columns: 1fr;
  }

  .profile-masonry-gallery {
    column-count: 1;
  }

  .gallery-lightbox {
    padding: 54px 12px 18px;
  }

  .gallery-lightbox img {
    border-width: 4px;
  }

  .lightbox-close {
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
  }

  .lightbox-nav {
    top: auto;
    bottom: 18px;
    width: 46px;
    height: 46px;
    font-size: 2.2rem;
    transform: none;
  }

  .lightbox-prev {
    left: calc(50% - 58px);
  }

  .lightbox-next {
    right: calc(50% - 58px);
  }

  .hero h1 {
    font-size: 3rem;
  }

  .eyebrow {
    font-size: 1.28rem;
  }

  .cta {
    width: 100%;
  }

  .footer-main {
    padding-inline: 18px;
  }

  .footer-brand .brand {
    width: 100%;
  }

  .footer-bottom {
    padding-inline: 18px;
  }

  .site-footer blockquote {
    text-align: left;
  }

  .directory-card-top {
    align-items: flex-start;
  }

  .profile-meta {
    grid-template-columns: 1fr;
  }

  .search-form,
  .calendar-nav {
    grid-template-columns: 1fr;
    display: grid;
  }

  .calendar-nav h2 {
    order: -1;
  }

  .admin-panel-head,
  .admin-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-sidebar nav {
    grid-template-columns: 1fr;
  }
}
