:root {
  --green: #073b32;
  --green2: #0b5d45;
  --cream: #f4f1e7;
  --gold: #c7a33a;
  --ink: #16211e;
  --muted: #63706b;
  --white: #fff;
  --line: rgba(7, 59, 50, 0.13);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
  line-height: 1.65;
  background: #fff;
}
img {
  display: block;
  max-width: 100%;
}
a {
  text-decoration: none;
  color: inherit;
}
.nav {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 5vw;
  color: #fff;
  transition: 0.35s;
}
.nav.solid,
.nav.scrolled {
  position: fixed;
  background: rgba(255, 255, 255, 0.96);
  color: var(--green);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(12px);
}
.nav.scrolled .active {
  border-bottom:3px solid var(--gold);
}
.nav.solid .active {
  border-bottom:3px solid var(--gold);

}
.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 0.9;
}
.brand small {
  font-size: 9px;
  letter-spacing: 0.14em;
}
.brand-mark {
  width: 38px;
  height: 38px;
  border: 1px solid currentColor;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: Georgia, serif;
  font-size: 20px;
}
.nav nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 13px;
  font-weight: 600;
}
.nav nav a {
  opacity: 0.86;
    padding:5px 10px;
}
.nav nav a:hover,
.nav nav a.active {
  opacity: 1;
}
.nav-cta {
  padding: 11px 18px;
  border: 1px solid currentColor;
    transition: 0.25s;
}
.nav-cta:hover {
  background: var(--gold);
  color: #fff;
  border:1px solid var(--gold)
}
.menu {
  display: none;
  background: none;
  border: 0;
  color: inherit;
  font-size: 25px;
}
.hero {
  height: 100vh;
  min-height: 650px;
  position: relative;
  overflow: hidden;
  color: #fff;
}
.hero > img,
.page-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position:center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(2, 35, 28, 0.85),
    rgba(2, 35, 28, 0.3) 60%,
    rgba(2, 35, 28, 0.1)
  );
}
.nav {
    background: linear-gradient(
    180deg,
    rgba(2, 35, 28, 0.85),
    rgba(2, 35, 28, 0.3) 90%,
    rgba(2, 35, 28, 0.1)
  );
}
.hero-content {
  position: absolute;
  left: 9vw;
  top: 20%;
  transform: translateY(-42%);
  max-width: 760px;
}
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  margin: 0 0 18px;
}
.green {
  color: var(--green2);
}
.gold-text {
  color: #e0c45d;
}
.hero h1,
.page-hero h1 {
  font-family: "DM Serif Display", Georgia, serif;
  font-weight: 400;
  font-size: clamp(55px, 7vw, 105px);
  line-height: 0.95;
  margin: 0 0 24px;
  letter-spacing: -0.03em;
}
.hero h1 em,
.page-hero h1 em,
h2 em {
  color: #dbc15d;
  font-style: normal;
}
.lead {
  font-size: 18px;
  max-width: 560px;
  color: #eef3ef;
}
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 21px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: 0.25s;
}
.btn:hover {
  transform: translateY(-2px);
}
.gold {
  background: var(--gold);
  color: #10221d;
}
.light-outline {
  border-color: rgba(255, 255, 255, 0.65);
  color: #fff;
}
.green-btn {
  background: var(--green);
  color: #fff;
}
.scroll-cue {
  position: absolute;
  bottom: 30px;
  right: 5vw;
  font-size: 10px;
  letter-spacing: 0.2em;
  display: flex;
  gap: 12px;
  align-items: center;
}
.scroll-cue span {
  font-size: 18px;
}
.section {
  padding: 110px 7vw;
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7vw;
  align-items: start;
}
.split.align-end {
  align-items: end;
}
.split.align-center {
  align-items: center;
}
h2 {
  font-family: "DM Serif Display", Georgia, serif;
  font-weight: 400;
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1.02;
  margin: 0 0 24px;
  letter-spacing: -0.02em;
}
h3 {
  margin: 0 0 8px;
  font-size: 22px;
}
.intro p,
.section-head > p {
  max-width: 650px;
  color: var(--muted);
}
.text-link {
  display: inline-flex;
  gap: 14px;
  margin-top: 20px;
  color: var(--green2);
  font-weight: 700;
  font-size: 13px;
}
.text-link span {
  transition: 0.2s;
}
.text-link:hover span {
  transform: translateX(5px);
}
.dark {
  background: var(--green);
  color: #fff;
}
.section-head {
  margin-bottom: 50px;
}
.section-head.centered {
  text-align: center;
  display: flex;
  align-items: center;
  flex-direction: column;
}
.section-head.centered > p:last-child {
  margin-top: 0;
}
.cards {
  display: grid;
  gap: 1px;
}
.cards.four {
  grid-template-columns: repeat(4, 1fr);
  background: rgba(255, 255, 255, 0.12);
}
.benefit {
  padding: 34px 28px;
  background: var(--green);
}
.benefit span,
.number {
  font-size: 11px;
  color: #d7c05d;
  font-weight: 700;
  letter-spacing: 0.14em;
}
.benefit p {
  color: #c7d5d0;
  font-size: 14px;
}
.image-band {
  height: 620px;
  position: relative;
  overflow: hidden;
  color: #fff;
}
.image-band > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.8);
}
.image-band:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 35, 28, 0.75), transparent 70%);
}
.image-band-copy {
  position: absolute;
  z-index: 2;
  left: 8vw;
  top: 30%;
  transform: translateY(-50%);
  max-width: 620px;
}
.image-band h2 {
  font-size: clamp(45px, 6vw, 80px);
}
.programs {
  background: #fff;
}
.program-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 40px;
}
.program-card {
  background: var(--cream);
  overflow: hidden;
}
.program-card img {
  height: 280px;
  width: 100%;
  object-fit: cover;
  transition: 0.6s;
}
.program-card:hover img {
  transform: scale(1.04);
}
.program-card > div {
  padding: 25px;
}
.center {
  text-align: center;
}
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7vw;
  align-items: center;
}
.feature-img {
  overflow: hidden;
}
.feature-img img {
  width: 100%;
  height: 620px;
  object-fit: cover;
}
.cream {
  background: var(--cream);
}
.check-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px 30px;
  padding: 0;
  margin: 25px 0;
  list-style: none;
}
.check-list li:before {
  content: "✓";
  color: var(--gold);
  font-weight: 700;
  margin-right: 10px;
}
.feature-copy small {
  color: var(--muted);
}
.align-end {
  align-items: end;
}
.mosaic {
  display: grid;
  grid-template-columns: 1.35fr 0.8fr 0.8fr;
  grid-template-rows: 280px 230px;
  gap: 14px;
  margin-top: 45px;
}
.mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.m1 {
  grid-row: span 2;
}
.m4 {
  grid-column: 2 / 4;
}
.cta {
  padding: 110px 7vw;
  background: var(--green);
  color: #fff;
  text-align: center;
}
.cta-inner {
  max-width: 850px;
  margin: auto;
}
.cta-inner p:not(.eyebrow) {
  color: #cbd9d4;
}
.cta .actions {
  justify-content: center;
}
footer {
  background: #062c25;
  color: #d7e0dc;
  padding: 60px 7vw;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 50px;
}
footer .brand {
  color: #fff;
  display: inline-flex;
}
footer p {
  max-width: 330px;
  color: #9fb0aa;
}
footer h4 {
  margin: 0 0 15px;
  color: #fff;
}
footer a,
footer span {
  display: block;
  margin: 8px 0;
  font-size: 13px;
  color: #b7c6c0;
}
.copyright {
  background: #041f1a;
  color: #77908a;
  text-align: center;
  padding: 14px;
  font-size: 11px;
}
.page-hero {
  height: 75vh;
  min-height: 500px;
  position: relative;
  color: #fff;
  overflow: hidden;
}
.about-hero {
  object-position: bottom!important;
}
.program-hero {
  object-position: top!important;

}
.page-hero-content {
  position: absolute;
  left: 9vw;
  bottom: 0;
  transform: translateY(-50%);
  z-index: 2;
}
.page-hero .hero-overlay {
  background: linear-gradient(
    90deg,
    rgba(2, 35, 28, 0.78),
    rgba(2, 35, 28, 0.2)
  );
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 70px;
  border-top: 1px solid var(--line);
}
.step {
  padding: 35px;
  border-right: 1px solid var(--line);
}
.step:last-child {
  border-right: 0;
}
.step b {
  color: var(--gold);
}
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
}
.info {
  padding: 35px;
  background: var(--cream);
}
.info p,
.club p,
.resource p,
.school-card p {
  color: var(--muted);
  font-size: 14px;
}
.history {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7vw;
  align-items: center;
}
.history-image img {
  width: 100%;
  max-height: 650px;
  object-fit: cover;
}
.timeline {
  border-top: 1px solid var(--line);
  margin-top: 35px;
}
.timeline > div {
  display: grid;
  grid-template-columns: 45px 1fr;
  gap: 15px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.timeline span {
  color: var(--gold);
  font-weight: 700;
}
.timeline p {
  margin: 0;
}
.timeline small {
  display: block;
  color: var(--muted);
}
.program-list {
  border-top: 1px solid var(--line);
}
.program-row {
  display: grid;
  grid-template-columns: 70px 1.4fr 0.8fr;
  gap: 35px;
  align-items: center;
  padding: 25px 0;
  border-bottom: 1px solid var(--line);
}
.program-row > span {
  color: var(--gold);
  font-weight: 700;
}
.program-row img {
  width: 220px;
  height: 140px;
  object-fit: cover;
  justify-self: end;
}
.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.12);
}
.resource {
  background: var(--green);
  padding: 35px;
}
.resource b {
  color: #dbc15d;
}
.resource p {
  color: #c7d5d0;
}
.equipment-photo img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  background: #fff;
}
.club-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  margin-top: 60px;
}
.club {
  background: #fff;
  padding: 30px;
}
.ball-section {
  background: var(--green);
  color: #fff;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 580px;
}
.ball-section > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ball-copy {
  padding: 90px 7vw;
}
.ball-copy > p:not(.eyebrow) {
  color: #cbd9d4;
  max-width: 560px;
}
.ball-stats {
  display: flex;
  gap: 40px;
  margin-top: 45px;
}
.ball-stats b {
  display: block;
  font-size: 28px;
  color: #dbc15d;
}
.ball-stats span {
  display: block;
  color: #b9cbc5;
  font-size: 11px;
  max-width: 120px;
}
.school-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.school-card {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
}
.school-card b {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 31px;
  color: var(--green);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 210px;
  gap: 12px;
}
.gallery-item {
  padding: 0;
  border: 0;
  overflow: hidden;
  background: #ddd;
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s;
}
.gallery-item:hover img {
  transform: scale(1.05);
}
.gallery-item.tall {
  grid-row: span 2;
}
.gallery-item.wide {
  grid-column: span 2;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* display: flex; */
  align-items: stretch;
  justify-content: center;
  /* text-align: center; */
  gap: 8vw;
}
.contact-details {
  margin-top: 40px;
  display: grid;
  gap: 18px;
}
.contact-details a,
.contact-details div {
  font-weight: 600;
}
.contact-details span {
  display: block;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.15em;
  margin-bottom: 2px;
}
.contact-form {
  background: #fff;
  padding: 35px;
  width: 45%;
}
.contact-form label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 17px;
}
.contact-form input,
.contact-form textarea {
  display: block;
  width: 100%;
  margin-top: 7px;
  border: 1px solid var(--line);
  padding: 13px;
  font: inherit;
  background: #fff;
  outline: none;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--green2);
}
.form-note {
  font-size: 11px;
  color: var(--muted);
}
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  z-index: 50;
  align-items: center;
  justify-content: center;
  padding: 5vw;
}
.lightbox.open {
  display: flex;
}
.lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
}
.lightbox button {
  position: absolute;
  right: 25px;
  top: 15px;
  background: none;
  border: 0;
  color: #fff;
  font-size: 42px;
  cursor: pointer;
}
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
/* logo */
.logo {
  width:50%;
}
#navLogo{
  width:34%;
}
.brand-logo{
  width: 34%;
}
.footer-logo{
  width: 70%;
}

@media (max-width: 900px) {
  .nav {
    padding: 18px 5vw;
  }
  .nav nav {
    display: none;
    position: absolute;
    top: 72px;
    right: 5vw;
    left: 5vw;
    background: #fff;
    color: var(--green);
    padding: 22px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    flex-direction: column;
    align-items: stretch;
  }
  .nav.open nav {
    display: flex;
  }
  .nav.open .nav-cta {
    text-align: center;
  }
  .menu {
    display: block;
  }
  .hero {
    min-height: 600px;
  }
  .hero-content {
    left: 6vw;
    right: 6vw;
  }
  .hero h1,
  .page-hero h1 {
    font-size: clamp(48px, 13vw, 75px);
  }
  .section {
    padding: 80px 6vw;
  }
  .split,
  .feature,
  .history,
  .contact-grid,
  .ball-section {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .cards.four,
  .program-grid,
  .info-grid,
  .club-grid,
  .resource-grid {
    grid-template-columns: 1fr 1fr;
  }
  .program-row {
    grid-template-columns: 45px 1fr;
  }
  .program-row img {
    grid-column: 2;
    justify-self: start;
    width: 100%;
    height: 190px;
  }
  .mosaic {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 250px 190px;
  }
  .m1 {
    grid-row: span 2;
  }
  .m4 {
    grid-column: 2;
  }
  .school-grid {
    grid-template-columns: 1fr 1fr;
  }
  .ball-section > img {
    height: 400px;
    order: -1;
  }
  .ball-copy {
    padding: 70px 6vw;
  }
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 180px;
  }
  .gallery-item.wide {
    grid-column: span 2;
  }
  footer {
    grid-template-columns: 1fr 1fr;
  }
  .feature-img img {
    height: 450px;
  }
  .contact-form {
    width: 100%;
}
}
@media (max-width: 560px) {
  .cards.four,
  .program-grid,
  .info-grid,
  .club-grid,
  .resource-grid,
  .school-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    height: 82vh;
    min-height: 570px;
  }
  .lead {
    font-size: 15px;
  }
  .actions {
    flex-direction: column;
    align-items: stretch;
  }
  .btn {
    width: 100%;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .step {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .mosaic {
    grid-template-columns: 1fr;
    grid-template-rows: 260px 200px 200px 200px;
  }
  .m1 {
    grid-row: auto;
  }
  .m4 {
    grid-column: auto;
  }
  .check-list {
    grid-template-columns: 1fr;
  }
  .program-row {
    grid-template-columns: 35px 1fr;
    gap: 15px;
  }
  .program-row img {
    grid-column: 2;
  }
  .ball-stats {
    gap: 18px;
    flex-wrap: wrap;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
  }
  .gallery-item.tall,
  .gallery-item.wide {
    grid-row: auto;
    grid-column: auto;
  }
  footer {
    grid-template-columns: 1fr;
  }
  .page-hero {
    height: 58vh;
    min-height: 430px;
  }

}

/* Cinematic golf loader — homepage only */
.golf-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #050706;
  color: #fff;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  animation: loaderExit 0.45s ease 3.82s forwards;
}
.golf-loader:before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 45%, rgba(26, 79, 55, 0.22), transparent 42%),
    linear-gradient(180deg, #020403 0%, #07100b 70%, #020403 100%);
  z-index: -3;
}
.loader-vignette {
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 180px rgba(0, 0, 0, 0.88);
  z-index: 8;
  pointer-events: none;
}
.loader-scene {
  position: relative;
  width: min(430px, 74vw);
  height: min(570px, 72vh);
  overflow: visible;
}
.swing-frame {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(0.985);
  filter: brightness(0.82) saturate(0.9);
  animation: frameShow 3.1s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 25px 90px rgba(0, 0, 0, 0.55);
}
.swing-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.frame-1 {
  animation-delay: 0s;
}
.frame-2 {
  animation-delay: 0.92s;
}
.frame-3 {
  animation-delay: 1.72s;
}
.frame-1 {
  clip-path: inset(0);
}
.ball-transition {
  position: absolute;
  width: 105px;
  height: 105px;
  left: 50%;
  top: 58%;
  margin: -52.5px 0 0 -52.5px;
  border-radius: 50%;
  overflow: hidden;
  opacity: 0;
  z-index: 6;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 45px rgba(224, 190, 82, 0.35);
  animation: ballExpand 1.55s cubic-bezier(0.65, 0, 0.18, 1) 2.25s forwards;
}
.ball-transition img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.loader-brand {
  position: absolute;
  z-index: 10;
  left: 50%;
  bottom: 9.5vh;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  white-space: nowrap;
  letter-spacing: 0.22em;
}
.loader-brand-line {
  width: 54px;
  height: 1px;
  background: var(--gold);
  margin-bottom: 13px;
  box-shadow: 0 0 14px rgba(199, 163, 58, 0.7);
}
.loader-brand strong {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 28px;
  letter-spacing: 0.26em;
  font-weight: 400;
  color: #f4f1e7;
}
.loader-brand > span:not(.loader-brand-line) {
  font-size: 9px;
  color: #c7a33a;
  letter-spacing: 0.4em;
  margin-left: 0.4em;
  margin-top: 2px;
}
.loader-brand small {
  margin-top: 16px;
  font-size: 8px;
  color: rgba(231, 236, 232, 0.56);
  letter-spacing: 0.34em;
}
@keyframes frameShow {
  0%,
  25% {
    opacity: 0;
    transform: scale(0.985);
  }
  8%,
  24% {
    opacity: 1;
    transform: scale(1);
  }
  25.5%,
  100% {
    opacity: 0;
    transform: scale(1.015);
  }
}
@keyframes ballExpand {
  0% {
    opacity: 0;
    transform: scale(0.65);
  }
  8% {
    opacity: 1;
    transform: scale(1);
  }
  48% {
    opacity: 1;
    transform: scale(1.15);
  }
  100% {
    opacity: 1;
    transform: scale(22);
  }
}
@keyframes loaderExit {
  0% {
    opacity: 1;
    visibility: visible;
  }
  99% {
    opacity: 0;
    visibility: visible;
  }
  100% {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}
@media (max-width: 560px) {
  .loader-scene {
    width: 72vw;
    height: 68vh;
  }
  .loader-brand {
    bottom: 7vh;
  }
  .loader-brand strong {
    font-size: 24px;
  }
  .loader-brand small {
    font-size: 7px;
  }
  .ball-transition {
    width: 82px;
    height: 82px;
    margin: -41px 0 0 -41px;
  }
  .footer-logo {
    width: 100%!important ;
}
  #navLogo {
    width: 100%;
}
.brand-logo {
    width: 100%;
}

}

/* Cinematic Apex Golf loader */
.apex-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  overflow: hidden;
  background: #020604;
  display: grid;
  place-items: center;
  animation: loaderExit 900ms cubic-bezier(0.76, 0, 0.18, 1) 3.15s forwards;
}
.apex-loader .loader-art {
  position: absolute;
  inset: 0;
  background-image: url("assets/apex-loader.png");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transform: scale(1);
  transform-origin: 70.5% 46%;
  animation: ballRush 3.45s cubic-bezier(0.2, 0.75, 0.18, 1) forwards;
  will-change: transform, opacity;
}
.apex-loader .loader-fade {
  position: absolute;
  inset: 0;
  background: #fff;
  opacity: 0;
  animation: ballWhite 3.45s cubic-bezier(0.72, 0, 0.12, 1) 2.82s forwards;
  pointer-events: none;
}
@keyframes ballRush {
  0% {
    transform: scale(1);
    filter: brightness(0.94);
  }
  70% {
    transform: scale(1.9);
    filter: brightness(1);
  }
  100% {
    transform: scale(8.8);
    filter: brightness(1.05);
  }
}
@keyframes ballWhite {
  0% {
    opacity: 0;
  }
  58% {
    opacity: 0;
  }
  82% {
    opacity: 0.18;
  }
  100% {
    opacity: 1;
  }
}
@keyframes loaderExit {
  0% {
    opacity: 1;
    visibility: visible;
  }
  78% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}
@media (max-width: 700px) {
  .apex-loader .loader-art {
    background-position: center;
    transform-origin: 70% 46%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .apex-loader .loader-art {
    animation: none;
  }
  .apex-loader .loader-fade {
    animation: none;
    opacity: 0;
  }
  .apex-loader {
    animation: loaderExit 300ms ease 500ms forwards;
  }
}
