/* JiVa Athletes (athletes.html)
   The site's palette inverted into the JiVa Premium lockup: deep navy ground, gold headlines,
   warm cream text, gold hairlines. Loaded after site.css. */

.ath-page {
  --ink: #0b1830;
  --ink-2: #0f2142;
  --ink-3: #142a52;
  --gold-t: #d6bc7e;
  --cream: #f3ecdc;
  --cream-2: rgba(243, 236, 220, .74);
  --cream-3: rgba(243, 236, 220, .5);
  --gline: rgba(201, 169, 97, .24);
  --gline-2: rgba(201, 169, 97, .42);
  background: var(--ink); color: var(--cream);
}
.ath-html { background: #0b1830; }
.ath-page ::selection { background: var(--gold); color: #140f03; }
.ath-page :focus-visible { outline-color: var(--gold); }

/* the white page folding away into navy on a direct visit */
.ath-wipe { position: fixed; inset: 0; z-index: 200; background: #fff; pointer-events: none; clip-path: circle(150% at 50% 42%); animation: ath-wipe 1s cubic-bezier(.7, 0, .2, 1) .08s forwards; }
@keyframes ath-wipe { to { clip-path: circle(0% at 50% 42%); } }
.ath-arrived .ath-wipe { display: none; }

/* nav */
.ath-page .nav .wm b { color: var(--gold-t); }
.ath-page .nav .wm small { color: var(--cream-3); letter-spacing: .36em; }
.ath-page .nav.is-solid { background: rgba(11, 24, 48, .86); border-bottom-color: var(--gline); }
.ath-page .nav .btn-ghost { background: transparent; color: var(--cream); border-color: var(--gline-2); }
.ath-page .nav .btn-ghost:hover { border-color: var(--gold); }
.btn-gold { background: var(--gold); color: #140f03; border-color: var(--gold); }
.btn-gold:hover { background: #d6bc7e; border-color: #d6bc7e; }
.btn-ghost-gold { background: transparent; color: var(--gold-t); border: 1px solid var(--gline-2); }
.btn-ghost-gold:hover { border-color: var(--gold); }

/* hero */
.ath-hero { position: relative; padding: calc(72px + clamp(48px, 8vw, 112px)) 0 clamp(64px, 9vw, 128px); overflow: hidden; }
.ath-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gline); }
.ath-hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
.ath-kicker { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin: 0 0 var(--space-5); }
.ath-title { font-family: var(--serif); font-weight: 600; font-size: clamp(3.2rem, 1.6rem + 6.4vw, 8.4rem); line-height: .96; letter-spacing: -.015em; margin: 0; color: var(--gold-t); }
.ath-title > span { display: inline-block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; vertical-align: top; }
.ath-title em { display: inline-block; font-style: italic; font-weight: 500; color: var(--gold); }
.ath-title > span:first-child { display: block; width: fit-content; }
.ath-title b { display: inline-block; font-weight: 600; color: var(--cream); }
.ath-rule { display: block; width: min(320px, 50%); height: 1px; margin: clamp(28px, 3.4vw, 44px) 0; background: var(--gold); transform-origin: left; }
.ath-lede { margin: 0; max-width: 54ch; font-size: clamp(1.0625rem, 1rem + .35vw, 1.3rem); line-height: 1.6; color: var(--cream-2); }
.ath-ctas { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: var(--space-6); }
.ath-link { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--cream-2); border-bottom: 1px solid var(--gline-2); padding-bottom: 4px; }
.ath-link:hover { color: var(--gold-t); border-color: var(--gold); }
.ath-hero-media { margin: 0; }
.ath-hero-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-stage); border: 1px solid var(--gline); }
.ath-hero-media figcaption { margin-top: 12px; color: var(--cream-3); font-size: 10.5px; }

/* entrance: the headline rises, the gold rule draws, then the rest settles.
   --w waits for the white page to fold away on a direct visit; 0 when arriving from the site's navy sweep. */
.ath-page { --w: .72s; }
.ath-arrived .ath-page { --w: .05s; }
.ath-title b { animation: ath-rise 1.15s var(--ease) calc(var(--w) + .1s) both; }
.ath-title > span > em { animation: ath-rise 1.15s var(--ease) calc(var(--w) + .25s) both; }
.ath-rule { animation: ath-draw 1.1s cubic-bezier(.65, 0, .25, 1) calc(var(--w) + .65s) both; }
.ath-lede { animation: ath-fade 1s var(--ease) calc(var(--w) + .9s) both; }
.ath-ctas { animation: ath-fade 1s var(--ease) calc(var(--w) + 1.05s) both; }
.ath-hero-media img { animation: ath-unveil 1.4s cubic-bezier(.7, 0, .2, 1) calc(var(--w) + .4s) both; }
.ath-hero-media figcaption { animation: ath-fade 1s var(--ease) calc(var(--w) + 1.35s) both; }
@keyframes ath-rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes ath-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes ath-fade { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes ath-unveil { from { clip-path: inset(100% 0 0 0 round 12px); } to { clip-path: inset(0 0 0 0 round 12px); } }

/* sections */
.ath-sec { padding: clamp(72px, 10vw, 144px) 0; border-bottom: 1px solid var(--gline); }
.ath-two { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.ath-two-head { align-items: end; margin-bottom: var(--space-7); }
.ath-eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin: 0 0 var(--space-4); }
.ath-h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(2.2rem, 1.4rem + 2.6vw, 3.8rem); line-height: 1.02; letter-spacing: -.01em; margin: 0; color: var(--gold-t); text-wrap: balance; max-width: 18ch; }
.ath-prose p, .ath-prose-p { margin: 0 0 1.2em; font-size: clamp(1.03rem, 1rem + .2vw, 1.15rem); line-height: 1.7; color: var(--cream-2); max-width: 58ch; }
.ath-prose p:last-child, .ath-prose-p { margin-bottom: 0; }
.ath-prose p:first-child { color: var(--cream); }

.ath-belief { padding: clamp(72px, 10vw, 144px) 0; background: var(--ink-2); border-bottom: 1px solid var(--gline); }
.ath-quote { margin: 0 auto; max-width: 26ch; text-align: center; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.6rem); line-height: 1.14; color: var(--cream); text-wrap: balance; }
.ath-quote::before { content: ""; display: block; width: 1px; height: 56px; margin: 0 auto var(--space-5); background: var(--gold); }

.ath-pillars { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--gline-2); }
.ath-pillars li { padding: var(--space-5) var(--space-4) var(--space-5) 0; border-right: 1px solid var(--gline); }
.ath-pillars li + li { padding-left: var(--space-4); }
.ath-pillars li:last-child { border-right: 0; }
.ath-pillars .n, .ath-steps .n { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; color: var(--gold); }
.ath-pillars h3 { margin: var(--space-4) 0 10px; font-size: 18px; font-weight: 600; color: var(--cream); letter-spacing: -.005em; }
.ath-pillars p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--cream-2); }
.ath-fine { margin: var(--space-6) 0 0; font-size: 13px; color: var(--cream-3); }

/* apply */
.ath-apply { background: var(--ink-2); }
.ath-form-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.ath-form-intro p { color: var(--cream-2); line-height: 1.7; max-width: 46ch; margin: var(--space-4) 0 0; }
.ath-steps { list-style: none; margin: var(--space-6) 0 0; padding: 0; border-top: 1px solid var(--gline); }
.ath-steps li { display: grid; grid-template-columns: 44px 1fr; padding: 14px 0; border-bottom: 1px solid var(--gline); color: var(--cream); font-size: 15px; }

.ath-form, .ath-done { background: var(--ink); border: 1px solid var(--gline); border-radius: var(--r-stage); padding: clamp(24px, 3.4vw, 44px); }
.f-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
.f-wide { grid-column: 1 / -1; }
.f { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.f > span, .f legend { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--cream-2); padding: 0; }
.f legend { margin-bottom: 8px; }
.f input { width: 100%; height: 50px; padding: 0 14px; border-radius: var(--r-input); border: 1px solid var(--gline-2); background: rgba(243, 236, 220, .04); color: var(--cream); font: inherit; font-size: 16px; transition: border-color .2s, background .2s; }
.f input::placeholder { color: var(--cream-3); }
.f input:focus { outline: none; border-color: var(--gold); background: rgba(243, 236, 220, .07); }
.f input[aria-invalid="true"] { border-color: #e08a7a; }
.f input[type=number] { -moz-appearance: textfield; }
.f input::-webkit-outer-spin-button, .f input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.f-choice { display: flex; gap: 10px; flex-wrap: wrap; }
.f-choice legend { width: 100%; }
.f-choice label { position: relative; }
.f-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.f-choice span { display: inline-flex; align-items: center; height: 44px; padding: 0 18px; border: 1px solid var(--gline-2); border-radius: var(--r-ctl); color: var(--cream-2); cursor: pointer; transition: all .2s; font-size: 15px; }
.f-choice input:checked + span { background: var(--gold); border-color: var(--gold); color: #140f03; }
.f-choice input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 3px; }
.f-choice[aria-invalid="true"] span { border-color: #e08a7a; }
.f-check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 14px; line-height: 1.55; color: var(--cream-2); cursor: pointer; }
.f-check input { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; margin: 1px 0 0; border: 1px solid var(--gline-2); border-radius: 4px; background: transparent; display: grid; place-items: center; cursor: pointer; }
.f-check input::after { content: ""; width: 9px; height: 5px; border-left: 1.5px solid #140f03; border-bottom: 1.5px solid #140f03; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.f-check input:checked { background: var(--gold); border-color: var(--gold); }
.f-check input:checked::after { opacity: 1; }
.f-check input[aria-invalid="true"] { border-color: #e08a7a; }
.f-guardian { display: grid; gap: 16px; padding: 18px; border: 1px dashed var(--gline-2); border-radius: var(--r-ctl); background: rgba(201, 169, 97, .05); }
.f-guardian[hidden] { display: none; }
.f-note { margin: 0; font-size: 14px; color: var(--gold-t); }
.f-error { margin: 18px 0 0; color: #f0a796; font-size: 14px; }
.f-submit { margin-top: var(--space-5); width: 100%; }
.f-submit[disabled] { opacity: .6; cursor: progress; }
.f-fine { margin: 14px 0 0; font-size: 12.5px; color: var(--cream-3); text-align: center; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.ath-done { text-align: left; }
.ath-done p { color: var(--cream-2); line-height: 1.7; margin: var(--space-4) 0 0; max-width: 46ch; }
.ath-done .mono { color: var(--cream-3); }
.ath-done .mono b { color: var(--gold-t); font-weight: 500; }
.ath-done .btn { margin-top: var(--space-5); }
.ath-tick { display: block; width: 48px; height: 48px; margin-bottom: var(--space-4); border: 1px solid var(--gold); border-radius: 50%; position: relative; }
.ath-tick::after { content: ""; position: absolute; left: 15px; top: 16px; width: 16px; height: 8px; border-left: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold); transform: rotate(-45deg); }

.ath-foot { background: var(--ink); border-top: 0; }
.ath-foot .legal { border-top-color: var(--gline); color: var(--cream-3); margin-top: 0; }
.ath-foot a { color: var(--gold-t); text-decoration: underline; text-underline-offset: 3px; }

/* reveal on scroll uses the site's .rv; on navy the default colours are overridden above */

@media (max-width: 1023px) {
  .ath-hero-grid, .ath-two, .ath-form-grid { grid-template-columns: 1fr; }
  .ath-hero-media { max-width: 420px; }
  .ath-pillars { grid-template-columns: 1fr 1fr; }
  .ath-pillars li, .ath-pillars li + li { padding: var(--space-4) var(--space-4) var(--space-4) 0; border-right: 0; border-bottom: 1px solid var(--gline); }
  .ath-pillars li:nth-child(even) { padding-left: var(--space-4); border-left: 1px solid var(--gline); }
}
@media (max-width: 599px) {
  .f-grid { grid-template-columns: 1fr; }
  .ath-pillars { grid-template-columns: 1fr; }
  .ath-pillars li:nth-child(even) { padding-left: 0; border-left: 0; }
  .ath-hero-media { max-width: none; }
  .ath-hero-media img { aspect-ratio: 4 / 3.4; object-position: 50% 55%; }
}
@media (prefers-reduced-motion: reduce) {
  .ath-wipe { display: none; }
  .ath-title > span > em, .ath-title b, .ath-rule, .ath-lede, .ath-ctas, .ath-hero-media img, .ath-hero-media figcaption { animation: none !important; }
}
