/* The club's introduction page (/about/). Big uppercase titles on wide crowd photos; navy and ball yellow from the crest. */
.ab-page { background: #fff; }
.ab-hero, .ab-growth, .ab-gala, .ab-end { background: var(--navy-deep); }
.ab-wrap { max-width: 1320px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 56px); }
.ab-page h1, .ab-page h2, .ab-page h3 {
  margin: 0;
  font-family: var(--font-score);
  font-weight: 700;
  text-transform: uppercase;
  line-height: .95;
}
.ab-page h2 { font-size: clamp(46px, 7.4vw, 112px); text-wrap: balance; }

.ab-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.ab-btn {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 26px;
  border: 2px solid rgba(255, 255, 255, .78);
  border-radius: 8px;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition: background .15s, color .15s;
}
.ab-btn:hover { background: #fff; color: var(--navy-deep); }
.ab-btn.is-main { background: var(--optic); border-color: var(--optic); color: var(--navy-deep); }
.ab-btn.is-main:hover { background: #fff; border-color: #fff; }
.ab-page main :focus-visible { outline-color: var(--optic); }
.ab-story :focus-visible, .ab-links :focus-visible { outline-color: var(--focus) !important; }

/* Hero: the crowd above, the title on the empty court below them. */
.ab-hero { position: relative; display: flex; align-items: flex-end; min-height: min(94vh, 920px); overflow: hidden; color: #fff; }
.ab-hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.ab-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--navy-deep) 0, rgba(7, 22, 52, .86) 24%, rgba(7, 22, 52, .1) 54%, transparent 62%);
}
.ab-hero-text { position: relative; z-index: 1; width: 100%; max-width: none; padding-bottom: clamp(32px, 5vw, 64px); }
.ab-hero h1 { font-size: 6.4vw; line-height: .95; }
.ab-hero h1 span:first-child { color: var(--optic); }
.ab-hero-sub { margin: 12px 0 20px; font-size: clamp(18px, 2vw, 26px); font-weight: 500; }

/* Growth: the same court, a few balls and then one for every player. */
.ab-growth { padding: clamp(64px, 9vw, 130px) 0; color: #fff; }
.ab-lead { max-width: 44em; margin: 24px 0 0; font-size: clamp(17px, 1.6vw, 21px); line-height: 1.6; color: rgba(255, 255, 255, .86); }
.ab-courts { display: grid; grid-template-columns: 5fr 8fr; gap: clamp(20px, 3vw, 44px); align-items: end; margin-top: clamp(36px, 5vw, 64px); }
.ab-court { margin: 0; }
.ab-court figcaption { margin-bottom: 14px; font-family: var(--font-score); text-transform: uppercase; line-height: 1; }
.ab-court figcaption b { display: block; font-size: clamp(22px, 2.6vw, 34px); font-weight: 600; color: rgba(255, 255, 255, .72); }
.ab-court figcaption span { display: block; margin-top: 4px; font-size: clamp(36px, 4.4vw, 58px); font-weight: 700; }
.ab-court.is-now figcaption span { font-size: clamp(56px, 8vw, 112px); color: var(--optic); }
.ab-court svg { display: block; width: 100%; height: auto; }
.ab-runoff { fill: #0d2c74; }
.ab-surface { fill: #1857d6; }
.ab-kitchen { fill: #2a68e0; }
.ab-lines { fill: none; stroke: #fff; stroke-width: 2.5; }
.ab-ball { fill: var(--optic); stroke: rgba(7, 22, 52, .35); stroke-width: 1; }
@media (prefers-reduced-motion: no-preference) {
  .ab-ball { opacity: 0; transform-box: fill-box; transform-origin: center; }
  .is-on .ab-ball { animation: ab-drop .42s cubic-bezier(.3, 1.6, .5, 1) var(--at) forwards; }
  @keyframes ab-drop { from { opacity: 0; transform: scale(2.2); } to { opacity: 1; transform: scale(1); } }
}

/* The years: wide photos in turn on the left and right, each under its own big year. */
.ab-story { padding: clamp(64px, 9vw, 130px) 0; background: var(--paper); color: var(--navy-deep); }
.ab-story h2 { margin-bottom: clamp(40px, 6vw, 88px); }
.ab-year { display: grid; grid-template-columns: 8fr 4fr; gap: 0 clamp(20px, 3vw, 44px); align-items: end; margin-top: clamp(44px, 6vw, 88px); }
.ab-year.is-right { grid-template-columns: 4fr 8fr; }
.ab-year-num {
  grid-column: 1 / -1;
  margin: 0 0 -.17em;
  position: relative;
  z-index: 1;
  font-family: var(--font-score);
  font-weight: 700;
  font-size: clamp(96px, 17vw, 250px);
  line-height: .8;
  color: var(--optic);
  -webkit-text-stroke: 2px var(--navy-deep);
  paint-order: stroke fill;
}
.ab-year.is-right .ab-year-num { text-align: right; }
.ab-year-photo { display: block; overflow: hidden; border-radius: 10px; }
.ab-year-photo img { display: block; width: 100%; aspect-ratio: 16 / 9.4; object-fit: cover; object-position: 50% 80%; transition: transform .35s; }
.ab-year-photo:hover img { transform: scale(1.02); }
.ab-year-photo { outline: 1px solid rgba(7, 22, 52, .1); outline-offset: -1px; }
.ab-year-photo.is-whole img { aspect-ratio: auto; height: auto; }
.ab-year.is-both { grid-template-columns: 1fr; }
.ab-both { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 2vw, 28px); }
.ab-both img { display: block; width: 100%; height: auto; border-radius: 10px; }
.ab-year.is-both .ab-year-text { margin-top: 16px; }
.ab-year.is-right .ab-year-photo { grid-column: 2; grid-row: 2; }
.ab-year.is-right .ab-year-text { grid-column: 1; grid-row: 2; text-align: right; }
.ab-year-text h3 { font-size: clamp(32px, 3.8vw, 54px); }
.ab-year-text p { margin: 10px 0 12px; color: var(--muted); font-size: 16px; }
.ab-more { font-weight: 700; color: var(--navy); }

.ab-pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 2vw, 28px); margin-top: clamp(20px, 3vw, 44px); }
.ab-pair a { color: var(--navy-deep); font-weight: 700; text-decoration: none; }
.ab-pair img { display: block; width: 100%; aspect-ratio: 16 / 9.4; object-fit: cover; border-radius: 10px; margin-bottom: 10px; }
.ab-pair a:hover span { text-decoration: underline; }

.ab-next { display: grid; grid-template-columns: auto 1fr auto; gap: clamp(20px, 3vw, 44px); align-items: center; margin-top: clamp(56px, 7vw, 100px); padding: clamp(24px, 3vw, 44px); border-radius: 14px; background: var(--navy-deep); color: #fff; }
.ab-next .ab-year-num { grid-column: auto; margin: 0; color: var(--optic); -webkit-text-stroke: 0; font-size: clamp(80px, 11vw, 160px); }
.ab-next h3 { font-size: clamp(32px, 3.8vw, 54px); }
.ab-next p { margin: 8px 0 0; color: rgba(255, 255, 255, .8); }

/* Off court: one big photo and a mix of smaller ones. */
.ab-gala { padding: clamp(64px, 9vw, 130px) 0; color: #fff; }
.ab-gala h2 { margin-bottom: clamp(32px, 4vw, 56px); }
.ab-mosaic { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: clamp(150px, 19vw, 280px); gap: clamp(8px, 1vw, 14px); }
.ab-mosaic img { grid-column: span 5; width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.ab-mosaic .is-wide { grid-column: span 7; grid-row: span 2; }
.ab-mosaic .is-half { grid-column: span 6; grid-row: span 1; }

.ab-links { padding: clamp(56px, 7vw, 100px) 0; background: var(--paper); color: var(--navy-deep); }
.ab-links h2 { font-size: clamp(38px, 5vw, 72px); }
.ab-links ul { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 44px); margin: clamp(24px, 3vw, 44px) 0 0; padding: 0; }
.ab-links a { display: block; padding-top: 16px; border-top: 4px solid var(--navy-deep); color: inherit; text-decoration: none; }
.ab-links a:hover b { color: var(--navy); text-decoration: underline; text-decoration-color: var(--optic); text-decoration-thickness: 4px; text-underline-offset: 5px; }
.ab-links b { display: block; font-family: var(--font-score); font-weight: 700; font-size: clamp(30px, 3.2vw, 46px); line-height: 1; text-transform: uppercase; }
.ab-links span { display: block; margin-top: 8px; color: var(--muted); font-size: 16px; }

/* Closing: the 2024 crowd, the invitation on the court below them. */
.ab-end { position: relative; display: flex; align-items: flex-end; min-height: clamp(560px, 58vw, 1200px); overflow: hidden; color: #fff; }
.ab-end-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.ab-end::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--navy-deep) 0, rgba(7, 22, 52, .78) 26%, transparent 56%); }
.ab-end-text { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 14px 24px; width: 100%; padding-bottom: clamp(28px, 4vw, 52px); }
.ab-end h2 { grid-column: 1 / -1; }
.ab-mark { margin: 0; font-size: clamp(26px, 3vw, 38px); }

@media (max-width: 760px) {
  .ab-hero { min-height: calc(100svh - 64px); }
  .ab-hero-photo { height: 54%; object-position: 42% 40%; }
  .ab-hero-text { padding-bottom: 96px; }
  .ab-hero h1 { font-size: 9.4vw; }
  .ab-hero h1 span { display: block; }
  .ab-hero h1 span:first-child { font-size: 17vw; line-height: .92; }
  .ab-hero::after { background: linear-gradient(to top, var(--navy-deep) 0, var(--navy-deep) 46%, transparent 60%); }
  .ab-btn { flex: 1 1 auto; justify-content: center; }
  .ab-courts { grid-template-columns: 1fr; }
  .ab-year, .ab-year.is-right { grid-template-columns: 1fr; }
  .ab-year.is-right .ab-year-num { text-align: left; }
  .ab-year.is-right .ab-year-photo, .ab-year.is-right .ab-year-text { grid-column: 1; grid-row: auto; text-align: left; }
  .ab-year-text { margin-top: 14px; }
  .ab-pair, .ab-both { grid-template-columns: 1fr; }
  .ab-next { grid-template-columns: 1fr; }
  .ab-mosaic { grid-auto-rows: auto; }
  .ab-mosaic img, .ab-mosaic .is-wide, .ab-mosaic .is-half { grid-column: 1 / -1; grid-row: auto; height: auto; aspect-ratio: 3 / 2; }
  .ab-links ul { grid-template-columns: 1fr; }
  .ab-end { min-height: 620px; }
  .ab-end-text { grid-template-columns: 1fr; gap: 20px; }
  .ab-end-photo { object-position: 50% 0; height: 66%; }
  .ab-end::after { background: linear-gradient(to top, var(--navy-deep) 0, var(--navy-deep) 34%, transparent 66%); }
}

/* ----- motion: everything under .ab-motion, set by about.js unless the visitor asks for reduced motion ----- */
.ab-progress { position: fixed; z-index: 40; top: 0; left: 0; width: 100%; height: 3px; background: var(--optic); transform: scaleX(0); transform-origin: left; pointer-events: none; }
.ab-story { position: relative; overflow: hidden; }
.ab-story > .ab-wrap { position: relative; }
.ab-rally { display: none; position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.ab-motion .ab-rally { display: block; }
.ab-rally path { fill: none; stroke: rgba(7, 22, 52, .24); stroke-width: 2; stroke-dasharray: 1; }
.ab-rally circle { fill: var(--optic); stroke: var(--navy-deep); stroke-width: 2; }
@media (max-width: 760px) { .ab-rally circle { r: 7px; } }

.ab-motion .ab-hero { isolation: isolate; }
.ab-motion .ab-hero-photo { animation: ab-close-in 18s ease-out both; }
@keyframes ab-close-in { from { transform: scale(1.14); } to { transform: scale(1); } }
.ab-motion .ab-hero h1 span { display: inline-block; animation: ab-rise .9s cubic-bezier(.2, .8, .2, 1) both; }
.ab-motion .ab-hero h1 span:last-child { animation-delay: .16s; }
@keyframes ab-rise { from { opacity: 0; transform: translateY(46px); } to { opacity: 1; transform: none; } }
.ab-motion .ab-hero-sub, .ab-motion .ab-hero .ab-actions { animation: ab-rise .8s ease-out .5s both; }

.ab-motion [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .7s ease-out var(--delay, 0ms), transform .8s cubic-bezier(.2, .8, .2, 1) var(--delay, 0ms); }
.ab-motion [data-reveal].is-in { opacity: 1; transform: none; }
.ab-motion .ab-mosaic img[data-reveal] { transform: scale(.94); }
.ab-motion .ab-mosaic img[data-reveal].is-in { transform: none; }
.ab-motion .ab-year-num[data-reveal].is-in { transform: translateX(var(--drift, 0)); transition: opacity .7s ease-out, transform .35s linear; }

/* The photo is wiped, not its box: a fully clipped box would never count as seen. */
.ab-motion [data-wipe] img { clip-path: inset(0 100% 0 0); transition: clip-path 1.15s cubic-bezier(.7, 0, .2, 1) var(--delay, 0ms), transform .5s ease; }
.ab-motion [data-wipe].is-in img { clip-path: inset(0 0 0 0); }

/* The courts draw themselves, then the balls land. */
.ab-motion .ab-lines { stroke-dasharray: 2600; stroke-dashoffset: 2600; }
.ab-motion .is-on .ab-lines { animation: ab-draw 1.3s ease-out forwards; }
@keyframes ab-draw { to { stroke-dashoffset: 0; } }

/* Light passing over what comes next. */
.ab-motion .ab-next .ab-year-num { background: linear-gradient(100deg, var(--optic) 40%, #fff 50%, var(--optic) 60%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: ab-light 5s linear infinite; font-variant-numeric: tabular-nums; }
@keyframes ab-light { from { background-position: 120% 0; } to { background-position: -40% 0; } }
.ab-motion .ab-end-photo { transform: scale(1.1); will-change: transform; }


/* VCP Pickleball Club: Ban điều hành, Nhóm sinh hoạt and Nhà tài trợ as the links' cards, without a link. */
.ab-club + .ab-club { padding-top: 0; }
.ab-club ul { grid-template-columns: repeat(4, 1fr); }
.ab-club li > div { padding-top: 16px; border-top: 4px solid var(--navy-deep); }
.ab-club b { font-size: clamp(24px, 2.4vw, 34px); }
.ab-club small { display: block; margin-top: 6px; color: var(--navy); font-weight: 600; font-size: 14px; }
#ab-groups ul, #sponsors ul { grid-template-columns: repeat(3, 1fr); }
.ab-end-contact { grid-column: 1 / -1; margin: 0; color: rgba(255, 255, 255, .82); font-size: 16px; }
@media (max-width: 760px) {
  .ab-club ul, #ab-groups ul, #sponsors ul { grid-template-columns: 1fr 1fr; gap: 20px 16px; }
  #ab-groups ul { grid-template-columns: 1fr; }
}
