@import './site-navigation.css';

/* One quiet, sequential introduction, shared by both academies. */
.ac-academy {
  --ac-bg: #0d0e10;
  --ac-surface: #111214;
  --ac-text: #ededee;
  --ac-muted: #a2a2a8;
  --ac-faint: #898990;
  --ac-line: #2b2c30;
  --ac-accent: #e49a59;
  --ac-lane: clamp(200px, 28vw, 344px);
  --ac-node-offset: clamp(40px, 8.2vw, 100px);
  min-height: 100vh;
  padding-top: 24px;
  overflow-x: clip;
  background: linear-gradient(#151618 0, var(--ac-bg) 1000px, #0a0b0c 100%);
  color: var(--ac-text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color-scheme: dark;
  -webkit-font-smoothing: antialiased;
}
body:has(.ac-academy) { margin: 0; background: #0d0e10; }
html:has(.ac-academy) { scroll-behavior: smooth; color-scheme: dark; }
.ac-academy *, .ac-academy *::before, .ac-academy *::after { box-sizing: border-box; }
.ac-academy h1, .ac-academy h2, .ac-academy h3, .ac-academy p { margin: 0; }
.ac-academy h1, .ac-academy h2, .ac-academy h3 { font-family: inherit; font-weight: 500; text-wrap: pretty; }
.ac-academy a { color: inherit; text-decoration: none; }
.ac-academy a:focus-visible { outline: 2px solid var(--ac-accent); outline-offset: 5px; }
.ac-academy img { display: block; max-width: 100%; }
.ac-academy svg { display: block; width: 20px; height: 20px; flex-shrink: 0; }
.ac-skip { position: fixed; z-index: 50; top: 10px; left: 10px; padding: 12px 18px; border-radius: 6px; background: #f1f1f3; color: #111214 !important; transform: translateY(-160%); }
.ac-skip:focus { transform: translateY(0); }

.ac-button { transition: background 160ms ease, transform 160ms cubic-bezier(.23, 1, .32, 1); }
.ac-button:active { transform: scale(.97); }

.ac-hero { display: flex; flex-direction: column; align-items: center; padding: 78px 24px 124px; text-align: center; }
.ac-academy .ac-eyebrow { display: flex; align-items: center; justify-content: center; gap: 11px; color: var(--ac-faint); font-size: 11px; font-weight: 500; letter-spacing: .2em; line-height: 1.6; text-transform: uppercase; }
.ac-eyebrow img { width: 20px; height: 20px; object-fit: contain; }
.ac-academy .ac-hero h1 { margin-top: 24px; font-size: clamp(44px, 5.5vw, 68px); font-weight: 550; letter-spacing: -.065em; line-height: 1.08; }
.ac-hero h1 span { color: #b8b8be; }
.ac-academy .ac-hero-intro { max-width: 570px; margin-top: 24px; color: var(--ac-muted); font-size: 17px; line-height: 1.65; text-wrap: pretty; }
.ac-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; margin-top: 34px; padding: 12px 23px; border-radius: 999px; background: #f1f1f3; color: #111214 !important; font-size: 14px; font-weight: 550; }
.ac-button svg { width: 17px; height: 17px; }

.ac-course { padding-bottom: 150px; scroll-margin-top: 112px; }
.ac-course-intro { display: flex; flex-direction: column; align-items: center; padding-inline: 24px; text-align: center; }
.ac-course-intro h2 { margin-top: 16px; font-size: 36px; letter-spacing: -.055em; line-height: 1.15; }
.ac-course-intro > p:not(.ac-eyebrow) { max-width: 510px; margin-top: 18px; color: var(--ac-muted); font-size: 15px; line-height: 1.65; text-wrap: pretty; }
.ac-start-label { margin-top: 20px; padding: 6px 14px; border: 1px solid var(--ac-line); border-radius: 999px; color: var(--ac-faint); font-size: 10px; font-weight: 500; letter-spacing: .16em; line-height: 1.5; text-transform: uppercase; box-shadow: 0 9px 25px #0003; }
.ac-journey { position: relative; isolation: isolate; width: min(1224px, calc(100% - 96px)); margin: 45px auto 0; }
.ac-journey::before { position: absolute; z-index: -1; top: 0; bottom: 0; left: 50%; width: 2px; background: var(--ac-line); content: ''; }
.ac-journey[data-ac-ready]::before { display: none; }
.ac-journey-start { position: absolute; top: 0; left: 50%; width: 0; height: 0; }
.ac-track { position: absolute; z-index: -1; inset: 0; width: 100% !important; height: 100% !important; overflow: visible; pointer-events: none; }
.ac-track-base { stroke: #323033; stroke-width: 2; }
.ac-track-progress { stroke: var(--ac-accent); stroke-width: 3; stroke-linecap: round; }
.ac-guide { position: absolute; z-index: 2; top: 0; left: 50%; width: 34px; height: 34px; transform: translate(-50%, -50%); pointer-events: none; }
.ac-journey[data-ac-ready] .ac-guide { left: 0; }
.ac-guide img { width: 34px; height: 34px; border-radius: 8px; object-fit: contain; filter: drop-shadow(0 3px 6px #0008); }
.ac-academy--lantern .ac-guide img { border-radius: 0; }
.ac-steps { display: grid; gap: 24px; margin: 0; padding: 36px 0 0; list-style: none; }
.ac-step { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) var(--ac-lane) minmax(0, 1fr); align-items: center; scroll-margin-top: 112px; }
.ac-step:nth-child(odd) .ac-lesson { grid-column: 1; }
.ac-step:nth-child(even) .ac-lesson { grid-column: 3; }
.ac-step-number { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 56px; height: 56px; border: 1px solid #343438; border-radius: 50%; background: var(--ac-bg); color: var(--ac-faint); font-size: 18px; font-weight: 500; transform: translate(-50%, -50%); }
.ac-journey[data-ac-ready] .ac-step:nth-child(odd) .ac-step-number { left: calc(50% - var(--ac-node-offset)); }
.ac-journey[data-ac-ready] .ac-step:nth-child(even) .ac-step-number { left: calc(50% + var(--ac-node-offset)); }
.ac-step[data-ac-reached] .ac-step-number { border-color: var(--ac-accent); background: var(--ac-accent); color: #16100a; }
.ac-lesson { min-width: 0; padding: 24px; border: 1px solid var(--ac-line); border-radius: 17px; background: #101113; box-shadow: 0 2px 4px #0002, 0 14px 30px #0003; }
.ac-academy .ac-lesson-label { color: var(--ac-faint); font-size: 10px; font-weight: 550; letter-spacing: .16em; line-height: 1.6; text-transform: uppercase; }
.ac-academy .ac-lesson h3 { margin-top: 10px; color: var(--ac-text); font-size: 20px; font-weight: 500; letter-spacing: -.035em; line-height: 1.35; }
.ac-academy .ac-lesson-description { margin-top: 9px; color: var(--ac-muted); font-size: 13px; line-height: 1.6; }
.ac-video { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; margin-top: 18px; border: 1px solid #ffffff0c; border-radius: 11px; background: #25262a; }
.ac-video::after { position: absolute; inset: 0; background: #0003; content: ''; }
.ac-video-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(2px) saturate(.55); opacity: .8; transform: scale(1.03); }
.ac-video-play { position: absolute; z-index: 1; top: 50%; left: 50%; display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid #ffffff12; border-radius: 50%; background: #0c0d0ee8; color: #d8d8dc; transform: translate(-50%, -50%); }
.ac-video-play svg { width: 22px; height: 22px; }
.ac-video-status { position: absolute; z-index: 1; right: 10px; bottom: 9px; padding: 3px 8px; border: 1px solid #ffffff1a; border-radius: 999px; background: #101113d9; color: #dedee2; font-size: 9px; line-height: 1.5; }
.ac-video--ready { cursor: pointer; }
.ac-academy .ac-takeaway { display: flex; flex-direction: column; gap: 5px; margin-top: 18px; color: var(--ac-muted); font-size: 12px; line-height: 1.6; }
.ac-takeaway > span { color: var(--ac-faint); font-size: 9px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.ac-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; width: min(1120px, calc(100% - 64px)); margin-inline: auto; padding: 25px 0 35px; border-top: 1px solid #ffffff0d; color: var(--ac-faint); font-size: 11px; }
.ac-footer > a:first-child { color: #c4c4ca; font-size: 13px; font-weight: 550; }
.ac-footer p a { color: #c4c4ca; }

@media (hover: hover) and (pointer: fine) {
  .ac-button:hover { background: #d9d9df; }
  .ac-video--ready:hover .ac-video-play { background: #191a1d; color: #fff; }
  .ac-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
}
@media (max-width: 900px) {
  .ac-journey { width: min(560px, calc(100% - 40px)); }
  .ac-journey::before, .ac-journey-start { left: 24px; }
  .ac-step { display: block; padding-left: 68px; }
  .ac-step-number, .ac-journey[data-ac-ready] .ac-step:nth-child(n) .ac-step-number { left: 24px; width: 42px; height: 42px; font-size: 15px; }
  .ac-guide { left: 24px; }
  .ac-steps { gap: 40px; }
  .ac-course { padding-bottom: 100px; }
}
@media (max-width: 600px) {
  .ac-academy { padding-top: 14px; }
  .ac-hero { padding: 66px 24px 90px; }
  .ac-academy .ac-hero h1 { margin-top: 22px; font-size: clamp(34px, 9.4vw, 52px); letter-spacing: -.06em; }
  .ac-academy .ac-hero-intro { max-width: 370px; margin-top: 20px; font-size: 15px; }
  .ac-button { margin-top: 27px; font-size: 13px; }
  .ac-course-intro h2 { font-size: 32px; }
  .ac-course-intro > p:not(.ac-eyebrow) { max-width: 330px; font-size: 14px; }
  .ac-journey { width: calc(100% - 32px); margin-top: 40px; }
  .ac-journey::before, .ac-journey-start { left: 15px; }
  .ac-step { padding-left: 44px; }
  .ac-step-number, .ac-journey[data-ac-ready] .ac-step:nth-child(n) .ac-step-number { left: 15px; width: 30px; height: 30px; font-size: 12px; }
  .ac-guide { left: 15px; width: 28px; height: 28px; }
  .ac-guide img { width: 28px; height: 28px; }
  .ac-lesson { padding: 19px; border-radius: 14px; }
  .ac-academy .ac-lesson-label { font-size: 9px; letter-spacing: .12em; }
  .ac-academy .ac-lesson h3 { font-size: 18px; }
  .ac-academy .ac-lesson-description { font-size: 13px; }
  .ac-video { margin-top: 16px; border-radius: 8px; }
  .ac-video-play { width: 40px; height: 40px; }
  .ac-video-status { right: 7px; bottom: 7px; font-size: 8px; }
  .ac-footer { justify-content: center; gap: 14px 24px; width: calc(100% - 40px); padding-block: 22px 28px; }
  .ac-footer p { flex: 1 1 100%; order: -1; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  html:has(.ac-academy) { scroll-behavior: auto; }
  .ac-academy *, .ac-academy *::before, .ac-academy *::after { scroll-behavior: auto !important; transition: none !important; }
  .ac-guide { display: none; }
}
