/* /certification · Certified AI Consultant program page
   Loads after /styles.css. Dark hero and dark close from the homepage system;
   the document between them sits on a light ground (higher-education feel)
   with the same tokens re-valued on the .doc wrapper. */

/* ---------- hero (dark, homepage system) ---------- */
.hero--caic { height: 1080px; }
.hero--caic .layer--far { bottom: 20px; }
.hero--caic .layer--mid { bottom: -40px; }
.chero { position: relative; z-index: 3; max-width: 1140px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; padding-top: 140px; }
.chero__lockup { display: inline-flex; align-items: center; gap: 12px; }
.chero__mark { width: 34px; height: 34px; border-radius: 50%; background: #070809; display: grid; place-items: center; box-shadow: 0 0 0 1px rgba(255,255,255,.14), 0 0 22px rgba(55,189,248,.5); }
.chero__mark img { width: 20px; height: 20px; filter: drop-shadow(0 0 5px rgba(55,189,248,.9)); }
.chero__brand, .chero__kind { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.chero__brand { color: var(--fg); }
.chero__kind { color: var(--fg-3); }
.chero__sep { width: 1px; height: 14px; background: var(--line-2); }
.chero__title { margin-top: 26px; font-size: 62px; line-height: 1.06; letter-spacing: -.045em; font-weight: 400; color: #f7f8fa; }
.chero__title .line { display: block; overflow: hidden; padding-bottom: .04em; }
.chero__title .line > span { display: block; transform: translateY(110%); transition: transform 1.1s var(--ease); }
.chero__title.is-in .line > span { transform: none; }
.chero__title.is-in .line:nth-child(2) > span { transition-delay: .08s; }
.chero__sub { margin-top: 22px; font-size: 16px; line-height: 25px; color: rgba(255,255,255,.78); max-width: 46ch; }
.chero__cta { margin-top: 34px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.chero__cta .btn--ghost { height: 44px; padding: 0 22px; font-weight: 400; }
.chero__note { margin-top: 20px; font-size: 13px; line-height: 20px; color: var(--fg-3); }
.chero__note a { color: var(--fg-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.chero__note a:hover { color: var(--fg); }
.chero__plate { justify-self: end; margin-top: 8px; perspective: 1100px; }

/* the credential plate: real markup, dark object, tilts under the pointer */
.plate {
  position: relative; width: 380px; min-height: 486px; padding: 30px; border-radius: 22px;
  display: flex; flex-direction: column; color: #f4f5f7;
  background: linear-gradient(160deg, #111215 0%, #0a0b0d 100%);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 1px 0 rgba(255,255,255,.10) inset, 0 50px 120px -40px rgba(0,0,0,.9), 0 0 90px -30px rgba(55,189,248,.32);
  transform: perspective(1100px) rotateX(var(--rx, 2deg)) rotateY(var(--ry, -7deg));
  transition: transform .6s var(--ease); will-change: transform;
}
.plate__top { display: flex; align-items: center; justify-content: space-between; }
.plate__avatar { width: 44px; height: 44px; border-radius: 50%; background: #070809; display: grid; place-items: center; box-shadow: 0 0 0 2px rgba(255,255,255,.16), 0 0 24px rgba(55,189,248,.5); }
.plate__avatar img { width: 28px; height: 28px; filter: drop-shadow(0 0 6px rgba(55,189,248,.9)); }
.plate__brand { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(244,245,247,.64); }
.plate__title { margin-top: 52px; font-size: 30px; line-height: 1.12; letter-spacing: -.035em; font-weight: 500; color: #f4f5f7; }
.plate__abbr { margin-top: 10px; font-family: var(--mono); font-size: 12px; letter-spacing: .22em; color: rgba(244,245,247,.40); }
.plate__rows { margin: 32px 0 0; }
.plate__rows > div { display: grid; grid-template-columns: 84px 1fr; gap: 12px; padding: 11px 0; border-top: 1px solid rgba(255,255,255,.08); }
.plate__rows dt { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: rgba(244,245,247,.40); padding-top: 2px; }
.plate__rows dd { margin: 0; font-size: 13px; line-height: 19px; color: rgba(244,245,247,.64); }
.plate__foot { margin-top: auto; padding-top: 22px; display: inline-flex; align-items: center; gap: 10px; font-size: 12px; color: rgba(244,245,247,.64); }
.plate__foot .chip__dot { background: #37bdf8; box-shadow: 0 0 8px rgba(55,189,248,.7); }
.plate__sheen { position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(115deg, rgba(255,255,255,.07) 0%, rgba(255,255,255,0) 38%), radial-gradient(520px circle at var(--mx, 28%) var(--my, 18%), rgba(255,255,255,.06), transparent 46%); }

/* ---------- the document: light ground ---------- */
.doc {
  --bg: #f5f6f8; --bg-2: #ffffff; --bg-3: #eceef2;
  --line: rgba(11,13,18,.09); --line-2: rgba(11,13,18,.16);
  --fg: #0b0d12; --fg-2: rgba(11,13,18,.66); --fg-3: rgba(11,13,18,.62); --fg-4: rgba(11,13,18,.58);
  position: relative; z-index: 8; background: var(--bg); color: var(--fg);
}
.doc .chip { background: rgba(11,13,18,.05); border-color: rgba(11,13,18,.06); color: var(--fg-2); }
.doc .chip__dot { box-shadow: 0 0 8px rgba(55,189,248,.45); }
.doc .h2 { color: var(--fg); }
.doc .h2--single { font-size: 38px; line-height: 48px; }
.doc .section-head { margin-bottom: 44px; }
.doc .section-head__p { color: var(--fg-2); font-size: 16px; line-height: 25px; }
.doc .cross::before, .doc .cross::after { background: var(--fg-2); }
.doc [data-type] .ch { filter: blur(4px); }
.doc [data-type].is-typed .ch { filter: blur(0); }
.doc .qa { background: #fff; border-color: var(--line); box-shadow: 0 1px 2px rgba(11,13,18,.04), 0 10px 30px -20px rgba(11,13,18,.25); }
.doc .qa summary { color: var(--fg); }
.doc .qa__chev { background: rgba(11,13,18,.04); border-color: var(--line); }
.doc .qa__chev::after { border-color: var(--fg-2); }
.doc .qa__a { color: var(--fg-2); }
.doc .faq__card { background: #fff; border-color: var(--line); box-shadow: 0 1px 2px rgba(11,13,18,.04), 0 10px 30px -20px rgba(11,13,18,.25); }
.doc .faq__card h4 { color: var(--fg); }
.doc .faq__card p, .doc .faq__card a { color: var(--fg-2); }
.doc .faq__card a:hover { color: var(--fg); }
.doc .plan__rows li { color: var(--fg); border-color: var(--line); }
.doc .plan__rows i { background: rgba(55,189,248,.14); }
.doc .plan__rows i::after { border-color: #1a8fcb; }

/* section rhythm */
.overview, .tracks, .curriculum, .cred, .people, .faq { padding: 100px 0; background: var(--bg); }
.curriculum { padding-top: 30px; }
.cred { padding-top: 60px; }
.doc .faq { padding-bottom: 130px; }

/* ---------- facts strip: white card over the hero seam ---------- */
.facts { position: relative; z-index: 6; margin-top: -76px; padding-top: 0; background: transparent; }
.facts__grid { margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: 0 2px 4px rgba(11,13,18,.04), 0 30px 80px -30px rgba(11,13,18,.35); overflow: clip; }
.facts__grid > div { padding: 30px 32px 28px; border-right: 1px solid var(--line); }
.facts__grid > div:last-child { border-right: 0; }
.facts__grid dt { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3); }
.facts__grid dd { margin: 14px 0 0; font-size: 30px; line-height: 36px; letter-spacing: -.03em; font-weight: 500; color: var(--fg); }
.facts__grid small { display: block; margin-top: 6px; font-size: 13px; line-height: 19px; color: var(--fg-2); }

/* ---------- overview ---------- */
.overview { padding-top: 110px; }
.overview__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: start; }
.overview__copy p { font-size: 20px; line-height: 31px; letter-spacing: -.01em; color: var(--fg); text-wrap: pretty; }
.marks { list-style: none; margin: 30px 0 0; padding: 0; border-top: 1px solid var(--line); }
.marks li { position: relative; padding: 14px 0 14px 26px; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 22px; color: var(--fg-2); }
.marks li::before { content: ''; position: absolute; left: 4px; top: 22px; width: 6px; height: 6px; border-radius: 50%; background: #37bdf8; box-shadow: 0 0 8px rgba(55,189,248,.5); }

/* ---------- tracks (the signature move) ---------- */
.tracks { padding-top: 20px; }
.tracks__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 12px; border-radius: 26px; background: var(--bg-3); border: 1px solid var(--line); }
.track { text-align: left; display: flex; flex-direction: column; min-height: 280px; padding: 32px 34px 26px; border-radius: 18px; background: rgba(255,255,255,.55); border: 1px solid transparent; transition: background .35s, border-color .35s, box-shadow .5s var(--ease); }
.track:hover { background: rgba(255,255,255,.8); }
.track.is-active { background: #fff; border-color: var(--line); box-shadow: 0 2px 4px rgba(11,13,18,.04), 0 24px 60px -30px rgba(11,13,18,.35), 0 0 0 4px rgba(55,189,248,.10); }
.track:focus-visible { outline: 2px solid #37bdf8; outline-offset: 3px; }
.track__label { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3); transition: color .3s; }
.track__label .chip__dot { background: rgba(11,13,18,.18); box-shadow: none; transition: background .3s, box-shadow .3s; }
.track.is-active .track__label { color: var(--fg); }
.track.is-active .track__label .chip__dot { background: #37bdf8; box-shadow: 0 0 8px rgba(55,189,248,.6); }
.track__title { display: block; margin-top: 40px; font-size: 22px; line-height: 29px; letter-spacing: -.02em; font-weight: 500; color: var(--fg); max-width: 22ch; }
.track__p { display: block; margin-top: 14px; font-size: 14.5px; line-height: 22px; color: var(--fg-2); max-width: 44ch; }
.track__foot { margin-top: auto; padding-top: 28px; display: inline-flex; align-items: center; gap: 12px; font-size: 13.5px; color: var(--fg-2); }
.t { transition: opacity .24s var(--ease); }
html.is-swapping .t { opacity: 0; }

/* ---------- curriculum ---------- */
.syllabus { display: grid; grid-template-columns: 280px 1fr; gap: 72px; align-items: stretch; margin-top: 12px; }
.rail { position: relative; }
.rail__sticky { position: sticky; top: 100px; padding-left: 28px; }
.rail__track { position: absolute; left: 0; top: 10px; bottom: 10px; width: 1px; background: var(--line-2); }
.rail__track i { position: absolute; left: -1px; top: 0; width: 3px; height: 100%; border-radius: 2px; transform-origin: 50% 0; transform: scaleY(0); background: linear-gradient(180deg, #1a8fcb, #37bdf8); box-shadow: 0 0 10px rgba(55,189,248,.5); will-change: transform; }
.rail__phases { list-style: none; margin: 0; padding: 0; }
.rail__phases li { position: relative; display: grid; grid-template-columns: 30px 1fr; padding: 14px 0; }
.rail__phases li::before { content: ''; position: absolute; left: -31px; top: 20px; width: 7px; height: 7px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px var(--line-2); transition: background .3s, box-shadow .3s; }
.rail__phases b { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .08em; color: var(--fg-3); padding-top: 3px; transition: color .3s; }
.rail__phases span { font-size: 15px; font-weight: 500; letter-spacing: -.01em; color: var(--fg-3); transition: color .3s; }
.rail__phases small { grid-column: 2; margin-top: 4px; font-size: 12.5px; line-height: 18px; color: var(--fg-4); transition: color .3s; }
.rail__phases li.is-active::before { background: #37bdf8; box-shadow: 0 0 0 1px rgba(55,189,248,.4), 0 0 10px rgba(55,189,248,.7); }
.rail__phases li.is-active b { color: #1a8fcb; }
.rail__phases li.is-active span { color: var(--fg); }
.rail__phases li.is-active small { color: var(--fg-2); }
.rail__switch { margin-top: 26px; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 999px; background: var(--bg-3); border: 1px solid var(--line); }
.rail__switch button { height: 36px; border-radius: 999px; font-size: 13px; color: var(--fg-2); transition: background .25s, color .25s, box-shadow .25s; }
.rail__switch button[aria-checked="true"] { background: #fff; color: var(--fg); box-shadow: 0 1px 2px rgba(11,13,18,.08), 0 4px 12px -6px rgba(11,13,18,.3); }
.rail__switch button:focus-visible { outline: 2px solid #37bdf8; outline-offset: 2px; }

.phase + .phase { margin-top: 72px; }
.phase__num { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3); }
.phase__title { margin-top: 12px; font-size: 28px; line-height: 34px; letter-spacing: -.03em; font-weight: 500; color: var(--fg); }
.phase__lead { margin-top: 12px; font-size: 16px; line-height: 24px; color: var(--fg-2); max-width: 52ch; }
.pillar { margin-top: 28px; padding: 30px 34px 26px; border-radius: 20px; background: #fff; border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(11,13,18,.04), 0 16px 40px -28px rgba(11,13,18,.3); }
.pillar__head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.pillar__num { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3); }
.pillar__title { font-size: 20px; line-height: 26px; letter-spacing: -.02em; font-weight: 500; color: var(--fg); }
.pillar__p { margin-top: 14px; font-size: 15px; line-height: 23px; color: var(--fg-2); text-wrap: pretty; }
.pillar__more { margin-top: 18px; border-top: 1px solid var(--line); }
.pillar__more summary { list-style: none; display: flex; align-items: center; justify-content: space-between; padding: 14px 0 2px; font-size: 13.5px; color: var(--fg-2); cursor: pointer; transition: color .2s; }
.pillar__more summary::-webkit-details-marker { display: none; }
.pillar__more summary:hover { color: var(--fg); }
.pillar__more .qa__chev { width: 28px; height: 28px; }
.pillar__more .qa__chev::after { left: 9px; top: 7px; }
.pillar__more[open] .qa__chev { transform: rotate(180deg); }
.pillar__list { list-style: none; margin: 10px 0 0; padding: 0; }
.pillar__list li { position: relative; padding: 10px 0 10px 24px; border-top: 1px solid var(--line); font-size: 14.5px; line-height: 21px; color: var(--fg); }
.pillar__list li:first-child { border-top: 0; }
.pillar__list li::before { content: ''; position: absolute; left: 4px; top: 18px; width: 5px; height: 5px; border-radius: 50%; background: var(--fg-3); }
.pillar__out { margin-top: 18px; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; padding: 13px 18px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); font-size: 14.5px; color: var(--fg); }
.pillar__outk { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3); }

/* ---------- certification ---------- */
.cred__grid { display: grid; grid-template-columns: 420px 1fr; gap: 64px; align-items: center; margin-top: 8px; }
.cred__plate { perspective: 1100px; display: flex; justify-content: center; }
.cred__plate .plate { --ry: 8deg; box-shadow: 0 1px 0 rgba(255,255,255,.10) inset, 0 50px 120px -40px rgba(11,13,18,.7), 0 0 90px -30px rgba(55,189,248,.35); }
.cred__rows { margin: 0; display: flex; flex-direction: column; }
.cred__rows li { height: auto; align-items: flex-start; padding: 18px 0; }
.cred__rows li b { display: block; font-size: 16px; line-height: 23px; font-weight: 500; letter-spacing: -.015em; color: var(--fg); }
.cred__rows li small { display: block; margin-top: 3px; font-size: 14px; line-height: 21px; color: var(--fg-2); }
.cred__rows i { margin-top: 2px; }

/* ---------- instructors ---------- */
.people { padding-top: 40px; }
.people__grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 12px; padding: 12px; border-radius: 26px; background: var(--bg-3); border: 1px solid var(--line); }
.person--lead { display: grid; grid-template-columns: 200px 1fr; gap: 28px; padding: 30px; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.person--lead img { width: 200px; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; border-radius: 14px; box-shadow: 0 20px 50px -30px rgba(11,13,18,.5); }
.person h3 { font-size: 22px; line-height: 28px; letter-spacing: -.02em; font-weight: 500; color: var(--fg); }
.person__role { margin-top: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3); }
.person p:not(.person__role) { margin-top: 16px; font-size: 14.5px; line-height: 22px; color: var(--fg-2); text-wrap: pretty; }
.team { list-style: none; margin: 0; padding: 10px 28px; display: flex; flex-direction: column; justify-content: center; }
.team li { padding: 16px 0; border-top: 1px solid var(--line); }
.team li:first-child { border-top: 0; }
.team h3 { font-size: 16px; line-height: 22px; font-weight: 500; letter-spacing: -.015em; color: var(--fg); }
.team p { margin-top: 5px; font-size: 13.5px; line-height: 20px; color: var(--fg-2); }

/* ---------- faq ---------- */
.doc .faq__card { margin-top: 0; }

/* ---------- close (dark, homepage system) ---------- */
.cta--caic { background: linear-gradient(180deg, #050506 0%, #14181c 100%); }
.cta--caic .cta__inner { grid-template-columns: 1.2fr .8fr; align-items: center; }
.cta--caic .cta__copy p { max-width: 42ch; }
.cta__btns { margin-top: 40px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.cta--caic .cta__copy .btn { margin-top: 0; }
.cta--caic .cta__copy .btn--ghost { height: 44px; padding: 0 22px; font-weight: 400; }
.cta__plate { display: flex; justify-content: center; perspective: 1100px; }
.plate--small { width: 320px; min-height: 0; padding: 26px; --ry: 7deg; }
.plate--small .plate__title { margin-top: 40px; font-size: 26px; }
.plate--small .plate__rows { margin-top: 26px; }
.plate--small .plate__foot { padding-top: 26px; }
.cta--caic .cta__dunes { object-position: 50% 42%; height: 600px; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .plate { transform: none; transition: none; }
  .chero__title .line > span { transform: none; transition: none; }
  .rail__track i { transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .chero { grid-template-columns: 1fr .8fr; gap: 32px; }
  .chero__title { font-size: 54px; }
  .plate { width: 340px; min-height: 0; }
  .syllabus { grid-template-columns: 236px 1fr; gap: 40px; }
  .overview__grid { grid-template-columns: 1fr; gap: 28px; }
  .cred__grid { grid-template-columns: 1fr; gap: 40px; }
  .people__grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .hero--caic { height: auto; padding-bottom: 400px; }
  .hero--caic .layer--far { bottom: 200px; }
  .hero--caic .layer--mid { bottom: 90px; }
  .chero { grid-template-columns: 1fr; gap: 44px; padding: 100px 24px 0; align-items: stretch; }
  .chero__title { font-size: 44px; }
  .chero__title .line { display: inline; padding: 0; }
  .chero__title .line > span { display: inline; transform: none; }
  .chero__title .line:nth-child(2) > span::before { content: ' '; }
  .chero__cta { width: 100%; }
  .chero__cta .btn { width: 100%; }
  .chero__cta .btn--ghost { height: 48px; font-size: 13px; }
  .chero__plate { justify-self: center; margin-top: 0; }
  .plate { width: min(360px, 100%); transform: none; }
  .facts { margin-top: -40px; }
  .facts__grid { grid-template-columns: 1fr 1fr; }
  .facts__grid > div { padding: 22px 22px 20px; border-right: 0; border-top: 1px solid var(--line); }
  .facts__grid > div:nth-child(odd) { border-right: 1px solid var(--line); }
  .facts__grid > div:nth-child(-n+2) { border-top: 0; }
  .facts__grid dd { font-size: 24px; line-height: 30px; margin-top: 10px; }
  .overview, .tracks, .curriculum, .cred, .people, .faq { padding: 72px 0; }
  .overview { padding-top: 80px; }
  .doc .h2--single { font-size: 30px; line-height: 38px; }
  .overview__copy p { font-size: 18px; line-height: 28px; }
  .tracks { padding-top: 10px; }
  .tracks__grid { grid-template-columns: 1fr; }
  .track { min-height: 0; padding: 26px 24px 22px; }
  .track__title { margin-top: 24px; font-size: 20px; line-height: 26px; }
  .syllabus { grid-template-columns: 1fr; gap: 28px; }
  .rail__sticky { position: static; padding-left: 0; }
  .rail__track { display: none; }
  .rail__phases { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  .rail__phases li { padding: 10px 12px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
  .rail__phases li::before { display: none; }
  .rail__phases small { display: none; }
  .rail__phases span { font-size: 13.5px; }
  .rail__switch { margin-top: 12px; }
  .rail__switch button { height: 44px; font-size: 14px; }
  .pillar__more summary { padding: 16px 0 6px; }
  .phase + .phase { margin-top: 52px; }
  .phase__title { font-size: 24px; line-height: 30px; }
  .pillar { padding: 22px 20px 18px; }
  .cred__plate .plate { transform: none; }
  .people { padding-top: 0; }
  .person--lead { grid-template-columns: 1fr; padding: 24px; }
  .person--lead img { width: 160px; }
  .team { padding: 8px 20px; }
  .doc .faq { padding-bottom: 90px; }
  .cta--caic .cta__inner { grid-template-columns: 1fr; }
  .cta__btns .btn { width: 100%; }
  .cta__plate { margin-top: 36px; }
  .plate--small { width: min(320px, 100%); }
  .cta--caic .cta__dunes { height: 340px; }
}
