/* =========================================================================
   BOOK A DEMO CLASS — inner page
   Header/footer/consult are the shared components (folds.css), unmodified.
   Every section below uses a shape this design system hasn't used yet on
   another inner page, on purpose: a photo hero with an event-ticket card
   layered on top, an auto-scrolling course marquee where each card also
   bobs on its own timer, a diagonal step cascade (not a numbered list), a
   straight row of badge chips (not an icon grid), and the FAQs page's own
   ghost-numbered <details> accordion.
   ========================================================================= */

/* --- hero: a real photo behind the copy + an event-ticket card ------------- */
.dc-hero {
  position: relative;
  padding: clamp(9rem, 18vw, 12rem) var(--gutter) clamp(4rem, 8vw, 6rem);
  background: var(--void);
  overflow: hidden;
}
.dc-hero-plate {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.dc-hero-plate img { width: 100%; height: 100%; object-fit: cover; }
.dc-hero-plate::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(var(--void-rgb), 0.55) 0%, rgba(var(--void-rgb), 0.8) 60%, var(--void) 100%),
    linear-gradient(90deg, rgba(var(--void-rgb), 0.6) 0%, transparent 55%),
    radial-gradient(50rem 30rem at 100% 100%, rgba(var(--gold-rgb), 0.1), transparent 60%);
}
.dc-hero-grid {
  position: relative;
  z-index: 1;
  max-width: var(--page);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
}
.dc-crumb {
  display: flex;
  align-items: center;
  gap: 0.5em;
  margin: 0 0 clamp(1.25rem, 3vw, 2rem);
  font-size: var(--fs-xs);
  color: var(--ink-quiet);
}
.dc-crumb a { color: var(--ink-mid); text-decoration: none; }
.dc-crumb a:hover { color: var(--ink); }
.dc-crumb b { color: var(--ink); font-weight: 600; }
.dc-hero .numbers-tag { display: inline-flex; width: fit-content; margin-bottom: clamp(1rem, 2vw, 1.5rem); }
.dc-hero-h {
  margin: 0 0 0.6rem;
  max-width: 14ch;
  font-family: var(--font-poster);
  font-size: var(--fs-hero);
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  color: var(--ink);
}
.dc-hero-sub {
  margin: 0 0 1.25rem;
  max-width: 32ch;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  font-weight: 600;
  line-height: 1.35;
  color: var(--gold);
}
.dc-hero-lead {
  margin: 0 0 clamp(2rem, 4vw, 2.75rem);
  max-width: 54ch;
  font-size: var(--fs-lead);
  line-height: 1.62;
  color: var(--ink-mid);
}
.dc-hero-ctas { display: flex; flex-wrap: wrap; gap: clamp(0.75rem, 2vw, 1.25rem); }
/* The Wappointment plugin renders its own trigger button (the
   [wap_widget] shortcode) and ships its own stylesheet for it — starting
   it `display:none` inline until its script boots, then applying its own
   look. Every declaration here carries !important: the shortcode's markup
   isn't ours to add a class to, so this has to out-rank the plugin's own
   CSS on every property it might set, not just override the inline
   display:none. Declarations are otherwise copied straight off
   .btn/.btn-primary so it reads as the same button.

   That said, .wappointment_widget is only the server-rendered placeholder
   — the plugin's script throws that whole node away once it boots and
   mounts its own widget in its place (checked on the live staging site):
   <div class="wap-wid wclosable step-button"><button class="wbtn
   wbtn-booking wbtn-primary">…</button></div>, styled by a <style> block
   it injects after ours. So the rule below has to target THAT button too,
   scoped to this hero so it can't reach into the popup calendar the same
   classes are reused inside once it opens. */
.dc-hero-ctas .wappointment_widget,
.dc-hero-ctas .step-button .wbtn,
.dc-hero-ctas .step-button .wbtn.wbtn-primary.wbtn-booking {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.9em !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0.85em 0.85em 0.85em 1.7em !important;
  border-radius: var(--r-pill) !important;
  border: var(--hair) solid transparent !important;
  outline: none !important;
  font-family: var(--font-ui) !important;
  /* the plugin has its own `.wap-front .wbtn.wbtn-primary.wbtn-booking
     { font-size: 1.1em !important }` — 4 classes vs. our 3, so on this one
     property it was winning the specificity tie even under !important;
     the .wbtn-primary.wbtn-booking selector above matches it exactly. */
  font-size: var(--fs-sm) !important;
  font-weight: 700 !important;
  line-height: normal !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  color: var(--ink) !important;
  background: linear-gradient(120deg, var(--brand-deep), var(--brand-mid)) !important;
  box-shadow:
    0 0 0 1px rgba(var(--white-rgb), 0.1) inset,
    0 18px 44px -18px rgba(var(--brand-rgb), 0.85) !important;
  cursor: pointer !important;
  transition:
    transform var(--t-1) var(--ease),
    background var(--t-1) var(--ease),
    color var(--t-1) var(--ease),
    border-color var(--t-1) var(--ease),
    box-shadow var(--t-1) var(--ease) !important;
}
.dc-hero-ctas .wappointment_widget:hover,
.dc-hero-ctas .wappointment_widget:focus-visible,
.dc-hero-ctas .step-button .wbtn:hover,
.dc-hero-ctas .step-button .wbtn:focus-visible,
.dc-hero-ctas .step-button .wbtn.wbtn-primary.wbtn-booking:hover,
.dc-hero-ctas .step-button .wbtn.wbtn-primary.wbtn-booking:focus-visible {
  transform: translateY(-2px) !important;
  color: var(--void) !important;
  background: linear-gradient(120deg, var(--gold), #FFC24A) !important;
  border-color: var(--gold) !important;
  box-shadow:
    0 0 0 1px rgba(var(--void-rgb), 0.14) inset,
    0 18px 44px -18px rgba(var(--gold-rgb), 0.9) !important;
}

/* the ticket: a main stub + a torn-off stub, joined by a dashed seam with
   two punched-out notches — the CSS "admit one" cliché done in the site's
   own red/gold palette instead of a generic photo */
.dc-ticket {
  position: relative;
  justify-self: center;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  max-width: 380px;
  width: 100%;
  background: linear-gradient(155deg, var(--surface), var(--void));
  border: var(--hair) solid rgba(var(--white-rgb), 0.14);
  border-radius: var(--r-md);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
  transform: rotate(-2deg);
  overflow: hidden;
}
.dc-ticket-main {
  padding: clamp(1.75rem, 3vw, 2.25rem) 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.dc-ticket-k {
  margin: 0;
  font-size: var(--fs-nano);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
.dc-ticket-h {
  margin: 0;
  font-family: var(--font-poster);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 400;
  line-height: 1.02;
  text-transform: uppercase;
  color: var(--ink);
}
.dc-ticket-loc { margin: 0.4rem 0 0; font-size: var(--fs-sm); line-height: 1.4; color: var(--ink-mid); }
.dc-ticket-stub {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 6.5rem;
  padding: 1rem 0.5rem;
  text-align: center;
  border-left: 2px dashed rgba(var(--white-rgb), 0.25);
  background: rgba(var(--brand-rgb), 0.1);
}
.dc-ticket-stub::before, .dc-ticket-stub::after {
  content: '';
  position: absolute;
  left: -0.55rem;
  width: 1.1rem; height: 1.1rem;
  border-radius: 50%;
  background: var(--void);
}
.dc-ticket-stub::before { top: -0.55rem; }
.dc-ticket-stub::after { bottom: -0.55rem; }
.dc-ticket-stub-k { margin: 0; font-size: var(--fs-nano); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-quiet); }
.dc-ticket-stub-v { margin: 0; font-size: var(--fs-xs); font-weight: 600; line-height: 1.35; color: var(--ink); }

/* --- shared section head ----------------------------------------------------- */
.dc-h {
  margin: 0.5rem 0 0;
  font-family: var(--font-poster);
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 400;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  color: var(--ink);
}

/* --- courses available: a staggered horizontal rail ------------------------- */
.dc-courses { padding: clamp(3rem, 6vw, 5rem) 0; background: var(--void); overflow: hidden; }
.dc-courses-head { max-width: var(--page); margin: 0 auto clamp(2.25rem, 4vw, 3rem); padding: 0 var(--gutter); }
.dc-courses-head .numbers-tag { display: inline-flex; width: fit-content; margin-bottom: 0.5rem; }
/* an auto-scrolling marquee (same translateX(-50%) technique as the belt
   component in base.css, with its own speed/content) rather than a rail
   the visitor has to drag — each card also bobs up and down on its own
   offset timer, so the row has continuous motion in both axes instead of
   sitting still until touched. */
.dc-course-marquee {
  padding: 2rem 0 3rem;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, black 6%, black 94%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, black 6%, black 94%, transparent 100%);
}
.dc-course-track {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  width: max-content;
  animation: dc-course-scroll 34s linear infinite;
}
.dc-course-marquee:hover .dc-course-track { animation-play-state: paused; }
.dc-course-set { display: flex; align-items: flex-start; gap: 1.25rem; flex-shrink: 0; padding-right: 1.25rem; }
@keyframes dc-course-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.dc-course-set a {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 15rem;
  height: 11rem;
  padding: 1.5rem;
  border-radius: var(--r-md);
  border: var(--hair) solid rgba(var(--white-rgb), 0.14);
  background: rgba(var(--white-rgb), 0.025);
  text-decoration: none;
  transition: border-color var(--t-1) var(--ease), background-color var(--t-1) var(--ease);
  animation: dc-course-bob 3.6s ease-in-out infinite;
}
.dc-course-set a:hover { border-color: rgba(var(--gold-rgb), 0.5); background: rgba(var(--gold-rgb), 0.06); }
/* three offset phases so the cards bob out of sync — a wave moving through
   the row, not everything rising and falling together */
.dc-course-set a:nth-child(3n+1) { animation-delay: 0s; }
.dc-course-set a:nth-child(3n+2) { animation-delay: -1.2s; }
.dc-course-set a:nth-child(3n+3) { animation-delay: -2.4s; }
@keyframes dc-course-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
.dc-course-no { font-family: var(--font-poster); font-size: 1.6rem; color: var(--brand-lit); }
.dc-course-name { margin-top: auto; font-size: var(--fs-sm); line-height: 1.35; color: var(--ink); }

/* --- how our demo classes work: a diagonal cascade --------------------------- */
.dc-steps-section { padding: clamp(3rem, 6vw, 5rem) var(--gutter); background: var(--surface); }
.dc-steps-head { max-width: var(--page); margin: 0 auto clamp(2.5rem, 5vw, 3.5rem); }
.dc-steps-head .numbers-tag { display: inline-flex; width: fit-content; margin-bottom: 0.5rem; }
.dc-steps {
  max-width: var(--page);
  margin: 0 auto;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 3vw, 2rem);
}
.dc-step {
  display: flex;
  align-items: baseline;
  gap: clamp(1.25rem, 3vw, 2rem);
  max-width: 52rem;
  padding-bottom: clamp(1.5rem, 3vw, 2rem);
  border-bottom: var(--hair) solid rgba(var(--white-rgb), 0.12);
}
.dc-step:last-child { border-bottom: 0; padding-bottom: 0; }
/* each step steps further right and drops slightly, so the eye reads a
   diagonal path down the page instead of a flat vertical list */
.dc-step:nth-child(1) { margin-left: 0; }
.dc-step:nth-child(2) { margin-left: clamp(1.5rem, 6vw, 5rem); }
.dc-step:nth-child(3) { margin-left: clamp(3rem, 12vw, 10rem); }
.dc-step-no {
  flex: none;
  font-family: var(--font-poster);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  line-height: 1;
  background: linear-gradient(180deg, var(--gold), var(--brand-lit));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.dc-step-body { margin: 0; font-size: var(--fs-lead); line-height: 1.55; color: var(--ink-mid); }

/* --- why the vfx institute: 3-column grid of real circular photos,
   matching the course pages' treatment of this exact section ------------- */
.dc-why { padding: clamp(3rem, 6vw, 5rem) var(--gutter); background: var(--void); }
.dc-why-head { max-width: 62ch; margin: 0 auto clamp(2.5rem, 5vw, 3.5rem); text-align: center; }
.dc-why-head .numbers-tag { display: inline-flex; width: fit-content; margin: 0 auto 0.5rem; }
.dc-why-lead { margin: 1rem 0 0; font-size: var(--fs-lead); line-height: 1.62; color: var(--ink-mid); }
.dc-ledger-grid {
  max-width: var(--page);
  margin: 0 auto;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}
.dc-ledger-grid li {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  background: var(--surface-raised);
  border: var(--hair) solid rgba(var(--white-rgb), 0.12);
  border-radius: var(--r-md);
}
.dc-ledger-grid img { flex: none; width: 4.9rem; height: 4.9rem; border-radius: 50%; object-fit: cover; }
.dc-ledger-grid span { font-size: var(--fs-sm); font-weight: 600; line-height: 1.35; color: var(--ink); }
.dc-why .courses-more { margin-top: clamp(2rem, 4vw, 2.75rem); }

/* --- faqs: the FAQs page's ghost-numbered <details> accordion, ported ------- */
.dc-faq { padding: clamp(3rem, 6vw, 5rem) var(--gutter); background: var(--surface); }
.dc-faq-head { max-width: var(--page); margin: 0 auto clamp(2.5rem, 5vw, 3.5rem); text-align: center; }
.dc-faq-head .numbers-tag { display: inline-flex; width: fit-content; margin: 0 auto 0.5rem; }
.dc-fq-list { max-width: 46rem; margin: 0 auto; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 0.9rem; }
.dc-fq-item {
  position: relative;
  border-radius: var(--r-md);
  border: var(--hair) solid rgba(var(--white-rgb), 0.14);
  background: rgba(var(--white-rgb), 0.02);
  overflow: hidden;
  transition: border-color var(--t-1) var(--ease);
}
.dc-fq-item:has(details[open]) { border-color: rgba(var(--gold-rgb), 0.4); }
.dc-fq-item details > summary {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.25rem);
  padding: clamp(1.1rem, 2.2vw, 1.5rem) clamp(1.25rem, 2.4vw, 1.75rem);
  cursor: pointer;
  list-style: none;
}
.dc-fq-item summary::-webkit-details-marker { display: none; }
.dc-fq-no {
  flex: none;
  font-family: var(--font-poster);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  line-height: 1;
  color: rgba(var(--white-rgb), 0.14);
  transition: color var(--t-1) var(--ease);
}
.dc-fq-item details[open] .dc-fq-no { color: rgba(var(--gold-rgb), 0.55); }
.dc-fq-q { flex: 1 1 auto; font-size: var(--fs-body); font-weight: 600; line-height: 1.4; color: var(--ink); }
.dc-fq-marker { flex: none; position: relative; width: 1.2rem; height: 1.2rem; }
.dc-fq-marker::before, .dc-fq-marker::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  background: var(--ink-mid);
  transform: translate(-50%, -50%);
  transition: transform var(--t-1) var(--ease), background-color var(--t-1) var(--ease);
}
.dc-fq-marker::before { width: 1.1rem; height: 2px; }
.dc-fq-marker::after { width: 2px; height: 1.1rem; }
.dc-fq-item details[open] .dc-fq-marker::after { transform: translate(-50%, -50%) rotate(90deg); }
.dc-fq-item details[open] .dc-fq-marker::before, .dc-fq-item details[open] .dc-fq-marker::after { background: var(--gold); }
.dc-fq-a {
  margin: 0;
  padding: 0 clamp(1.25rem, 2.4vw, 1.75rem) clamp(1.25rem, 2.4vw, 1.6rem) calc(clamp(1.6rem, 3vw, 2.1rem) + clamp(0.75rem, 2vw, 1.25rem) + clamp(1.25rem, 2.4vw, 1.75rem));
  max-width: 60ch;
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: var(--ink-mid);
}

@media (max-width: 900px) {
  .dc-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .dc-ticket { transform: none; max-width: 420px; }
  .dc-step:nth-child(2) { margin-left: clamp(1rem, 5vw, 2.5rem); }
  .dc-step:nth-child(3) { margin-left: clamp(2rem, 8vw, 4.5rem); }
  .dc-ledger-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .dc-fq-a { padding-left: clamp(1.25rem, 2.4vw, 1.75rem); }
  .dc-ledger-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .dc-course-set a { transition: none; }
  .dc-course-track { animation: none !important; }
  .dc-course-set a { animation: none !important; }
  .dc-course-set[aria-hidden] { display: none; }
  .dc-fq-item, .dc-fq-no, .dc-fq-marker::before, .dc-fq-marker::after { transition: none; }
}
