/* DPT Consulting Academy: landing page
   Brand tokens come from copy/brand-kit.md (sections 6 and 7). The page sits on
   a dark cinematic film, so it uses the kit's Ink as its base and keeps Schein
   Blue for actions only. */

:root {
  /* brand kit, section 6 */
  --ink: #181d27;
  --bg: #181d27;
  --surface: rgba(24, 29, 39, 0.5);
  --surface-strong: rgba(24, 29, 39, 0.72);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.74);
  --faint: rgba(255, 255, 255, 0.52);
  --accent: #0072bc;            /* Schein Blue: actions only */
  --accent-deep: #005a95;
  --accent-light: #4aa8e4;      /* blue for small text on dark */
  --teal: #006272;              /* Clinical Teal: emphasis */
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.26);

  /* brand kit, section 7 */
  --font: "Jost", "Futura Std", "Century Gothic", Avenir, sans-serif;
  --font-head: var(--font);

  --radius: 14px;
  --radius-sm: 8px;
  --pill: 999px;
  --gutter: clamp(1.25rem, 5vw, 6rem);
  --measure: 72rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--font-head); text-wrap: balance; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--accent); color: #fff; padding: 0.6rem 1rem;
}
.skip:focus { left: 0; }

/* ---- eyebrow labels ------------------------------------------------------ */

.eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 1rem;
}

/* ---- background layers --------------------------------------------------- */

.bg-video,
.bg-poster {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.bg-video { opacity: 0; transition: opacity 0.8s ease; }
.has-video .bg-video { opacity: 1; }

/* The still stands in on phones, with reduced motion, or until the film loads. */
.bg-poster {
  background: var(--ink) url("/public/landing/media/poster.jpg") center / cover no-repeat;
  transition: opacity 0.8s ease;
}
.has-video .bg-poster { opacity: 0; }

/* Readability: darker on the left where the copy sits, and at the edges. */
.bg-tint {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(14, 18, 26, 0.82) 0%, rgba(14, 18, 26, 0.55) 38%, rgba(14, 18, 26, 0.12) 70%, rgba(14, 18, 26, 0.3) 100%),
    radial-gradient(120% 90% at 50% 50%, transparent 55%, rgba(10, 13, 19, 0.6) 100%),
    linear-gradient(to bottom, rgba(10, 13, 19, 0.35), transparent 22%, transparent 78%, rgba(10, 13, 19, 0.55));
}

#page { position: relative; z-index: 10; }

/* ---- preloader ----------------------------------------------------------- */

.preloader {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 1rem;
  background: var(--ink);
  transition: opacity 0.7s ease, visibility 0.7s;
}
.preloader.is-done { opacity: 0; visibility: hidden; }
.preloader__logo {
  height: 26px; width: auto;
  background: #fff; padding: 6px 9px; border-radius: 5px; box-sizing: content-box;
}
.preloader__word {
  font-size: 0.8rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
}
.preloader__bar {
  width: 11rem; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden;
}
.preloader__bar span {
  display: block; height: 100%; width: 0; background: var(--accent-light);
  transition: width 0.2s linear;
}
.preloader__pct { font-size: 0.75rem; color: var(--faint); font-variant-numeric: tabular-nums; }

/* ---- lockup (brand kit, section 8: dark-background variant) -------------- */

.lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.lockup__logo {
  display: block;
  height: 26px; width: auto; flex: none;
  background: #fff; padding: 5px 8px; border-radius: 4px; box-sizing: content-box;
}
.lockup__rule { width: 1px; height: 1.5rem; background: var(--line-strong); }
.lockup__name {
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  white-space: nowrap; color: var(--text);
}

/* ---- navigation ---------------------------------------------------------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1.1rem var(--gutter);
  transition: background 0.4s ease, backdrop-filter 0.4s ease, padding 0.4s ease;
}
.nav.is-scrolled {
  background: rgba(18, 22, 30, 0.62);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  padding-top: 0.75rem; padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}
.nav__links { display: flex; gap: 1.75rem; }
.nav__links a {
  font-size: 0.9rem; color: var(--muted); text-decoration: none; white-space: nowrap;
  transition: color 0.2s ease;
}
.nav > .lockup { margin-right: auto; }  /* pushes links and button right, whether or not the links show */
.nav__links a:hover { color: var(--text); }

/* ---- buttons ------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--pill);
  font: inherit;
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}
.btn:active { transform: translateY(1px); }
.btn--sm { padding: 0.55rem 1.15rem; font-size: 0.88rem; }
.btn--block { width: 100%; }

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 30px rgba(0, 114, 188, 0.35);
}
.btn--primary:hover { background: var(--accent-deep); }

.btn--glass {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--line-strong);
  color: var(--text);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.btn--glass:hover { background: rgba(255, 255, 255, 0.16); }

/* ---- glass --------------------------------------------------------------- */

.glass {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(22px) saturate(1.18);
  -webkit-backdrop-filter: blur(22px) saturate(1.18);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
}
.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.07), transparent 40%, rgba(0, 98, 114, 0.12));
  pointer-events: none;
}
.glass > * { position: relative; z-index: 2; }

/* ---- chips --------------------------------------------------------------- */

.chip {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25em 0.8em;
  border-radius: var(--pill);
  border: 1px solid var(--line-strong);
  color: var(--muted);
}
.chip--live { border-color: rgba(74, 168, 228, 0.55); color: var(--accent-light); background: rgba(0, 114, 188, 0.14); }
.chip--later { color: var(--faint); border-color: var(--line); }

/* ---- shared section rhythm ----------------------------------------------- */

.section {
  padding: 22vh var(--gutter);
  max-width: calc(var(--measure) + var(--gutter) * 2);
  margin: 0 auto;
}
.section-head { max-width: 40rem; margin-bottom: 3.5rem; }
.section-head h2 {
  font-size: clamp(2.1rem, 4.4vw, 3.6rem);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.01em;
}
.section-head__lede { margin-top: 1.25rem; font-size: 1.12rem; color: var(--muted); font-weight: 300; }

/* ---- 1. hero ------------------------------------------------------------- */

.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 7rem var(--gutter) 6rem;
  position: relative;
}
.hero__inner { max-width: 40rem; }
.hero__title {
  font-size: clamp(2.9rem, 6.8vw, 5.6rem);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.015em;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.35);
}
.hero__lede {
  margin-top: 1.6rem;
  max-width: 32rem;
  font-size: clamp(1.08rem, 1.5vw, 1.28rem);
  font-weight: 300;
  color: var(--muted);
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2.4rem; }
.hero__note { margin-top: 2rem; font-size: 0.82rem; color: var(--faint); letter-spacing: 0.02em; }

.scroll-cue {
  position: absolute;
  left: var(--gutter);
  bottom: 2.2rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
}
.scroll-cue span {
  width: 1px; height: 2.6rem; background: linear-gradient(var(--accent-light), transparent);
  animation: cue 2.4s ease-in-out infinite;
  transform-origin: top;
}
@keyframes cue { 0%, 100% { transform: scaleY(0.35); opacity: 0.4; } 50% { transform: scaleY(1); opacity: 1; } }

/* ---- 2. impact ----------------------------------------------------------- */

.impact { position: relative; }
.impact__pin {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 var(--gutter);
  max-width: calc(64rem + var(--gutter) * 2);
}
.impact__head {
  font-size: clamp(2rem, 4.6vw, 3.9rem);
  font-weight: 300;
  line-height: 1.16;
  letter-spacing: -0.01em;
  max-width: 12.5em; /* stay on the film's calmer left side (brand kit, section 12) */
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.4);
}
.impact__head .word { display: inline-block; will-change: opacity, filter, transform; }

/* ---- 3. journey ---------------------------------------------------------- */

/* On a glass panel: this section sits over the brightest phase of the film. */
.journey .journey__track { position: relative; padding: 2.2rem 2rem 1.8rem; background: var(--surface-strong); }
.journey__line {
  position: absolute;
  left: 2rem; right: 2rem; top: calc(2.2rem + 1.05rem);
  height: 1px;
  background: var(--line);
  z-index: 2;
}
.journey__line span {
  display: block; height: 100%; width: 100%;
  background: linear-gradient(90deg, var(--accent-light), var(--teal));
  transform-origin: left; transform: scaleX(0);
}
.journey__steps {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 1.25rem;
}
.step { padding-top: 2.6rem; position: relative; }
.step::before {
  content: "";
  position: absolute; top: 0.72rem; left: 0;
  width: 0.7rem; height: 0.7rem; border-radius: 50%;
  background: var(--ink); border: 1px solid var(--line-strong);
}
.step--live::before { background: var(--accent); border-color: var(--accent-light); box-shadow: 0 0 0 5px rgba(0, 114, 188, 0.2); }
.step__n { font-size: 0.72rem; color: var(--faint); letter-spacing: 0.1em; font-variant-numeric: tabular-nums; }
.step h3 { font-size: 1.2rem; font-weight: 500; margin: 0.25rem 0 0.4rem; hyphens: auto; overflow-wrap: break-word; }

/* Seven columns need room for words like "Documentation"; below this width the
   timeline wraps onto two rows. */
@media (max-width: 76rem) {
  .journey__steps { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 2.5rem; }
  .journey__line { display: none; }
}
.step p { font-size: 0.9rem; color: var(--muted); margin-bottom: 0.8rem; }
.step:not(.step--live) h3 { color: var(--muted); }
/* A related service shown under a step, like "Dental Practice Valuation". */
.step__sub {
  display: inline-block;
  font-size: 0.8rem !important;
  color: var(--accent-light) !important;
  border: 1px solid rgba(74, 168, 228, 0.35);
  background: rgba(0, 114, 188, 0.12);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.6rem;
  line-height: 1.3;
}

/* ---- 4. learn ------------------------------------------------------------ */

.cards { display: grid; gap: 1.25rem; }
.cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { padding: 2rem 1.8rem 2.1rem; }
.card__n {
  display: inline-grid; place-items: center;
  width: 2.2rem; height: 2.2rem; border-radius: 50%;
  border: 1px solid rgba(74, 168, 228, 0.5);
  font-size: 0.8rem; color: var(--accent-light); font-style: italic;
  margin-bottom: 1.4rem;
}
.card h3 { font-size: 1.35rem; font-weight: 400; margin-bottom: 0.7rem; }
.card p { color: var(--muted); font-size: 0.98rem; }

/* ---- 5. documents -------------------------------------------------------- */

.documents__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 4rem;
  align-items: center;
}
.documents .section-head { margin-bottom: 0; }
.materials { margin: 0; padding: 0.6rem 2rem; }
.material { padding: 1.6rem 0; border-bottom: 1px solid var(--line); }
.material:last-child { border-bottom: 0; }
.material dt { font-size: 1.2rem; font-weight: 500; margin-bottom: 0.4rem; }
.material dd { margin: 0; color: var(--muted); font-size: 0.98rem; }

/* ---- 6. audience gallery ------------------------------------------------- */

.audience { position: relative; }
.audience__pin {
  min-height: 100vh;
  padding: 18vh var(--gutter) 10vh;
  position: relative;
  max-width: calc(var(--measure) + var(--gutter) * 2);
  margin: 0 auto;
}
.audience__track { position: relative; height: 22rem; }
.audience .audience-card {
  position: absolute;
  top: 50%;
  left: 0;
  width: min(30rem, 86vw);
  padding: 2.2rem 2rem 2.4rem;
  transform: translateY(-50%);
}
.audience-card h3 { font-size: 1.7rem; font-weight: 300; margin: 1.1rem 0 0.8rem; }
.audience-card p { color: var(--muted); }

/* ---- 7. specs ------------------------------------------------------------ */

.spec-table { margin: 0; padding: 0.5rem 2.2rem; max-width: 52rem; }
.spec {
  display: grid;
  grid-template-columns: 12rem 1fr;
  gap: 1.5rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.spec:last-child { border-bottom: 0; }
.spec dt {
  font-size: 0.74rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--faint);
}
.spec dd { margin: 0; color: var(--muted); }
.spec__value { font-size: 2rem; font-weight: 300; color: var(--text) !important; line-height: 1.1; }
.spec__value small { font-size: 0.9rem; color: var(--muted); margin-left: 0.4rem; }

/* ---- 8. begin ------------------------------------------------------------ */

.begin__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 4rem;
  align-items: center;
}
.begin .section-head { margin-bottom: 0; }
.standard { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 0.7rem; }
.standard li { display: flex; gap: 0.8rem; align-items: baseline; color: var(--muted); }
.standard li::before {
  content: ""; flex: none;
  width: 0.5rem; height: 0.5rem; border-radius: 50%;
  background: var(--accent-light); transform: translateY(-0.12rem);
}
.enrol { padding: 2.4rem 2.2rem; display: grid; gap: 0.8rem; }
.enrol .eyebrow { margin-bottom: 0.2rem; }
.enrol__title { font-size: 2.6rem; font-weight: 300; line-height: 1; }
.enrol__sub { color: var(--faint); font-size: 0.92rem; margin-bottom: 0.6rem; }
.enrol__list { list-style: none; margin: 0 0 1rem; padding: 1rem 0 0; border-top: 1px solid var(--line); display: grid; gap: 0.55rem; }
.enrol__list li { color: var(--muted); font-size: 0.96rem; padding-left: 1.4rem; position: relative; }
.enrol__list li::before { content: "\2713"; position: absolute; left: 0; color: var(--accent-light); }

/* ---- 9. footer (full-bleed band with a dissolve above it) ---------------- */

.footer {
  position: relative;
  z-index: 10;
  margin-top: 30vh;
  padding: 14vh var(--gutter) 7vh;
  background: var(--bg);
}
.footer::before {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 100%;
  height: 45vh;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}
.footer__inner { max-width: var(--measure); margin: 0 auto; }
.footer__big {
  margin: 2.6rem 0 2.4rem;
  font-size: clamp(2.2rem, 6vw, 4.8rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.015em;
}
.footer__links { display: flex; flex-wrap: wrap; gap: 1.6rem; padding-bottom: 2.4rem; border-bottom: 1px solid var(--line); }
.footer__links a { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.footer__links a:hover { color: var(--text); }
.footer__small { margin-top: 1.6rem; font-size: 0.8rem; color: var(--faint); }

/* ---- responsive ---------------------------------------------------------- */

@media (max-width: 64rem) {
  .nav__links { display: none; }
  .journey__steps { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 2.5rem; }
  .journey__line { display: none; }
  .cards--3 { grid-template-columns: 1fr; max-width: 34rem; }
  .documents__grid, .begin__grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 48rem) {
  body { font-size: 16px; }
  .nav { gap: 1rem; }
  .lockup__rule { display: none; }
  .lockup { flex-direction: column; align-items: flex-start; gap: 0.3rem; }
  .lockup__logo { height: 20px; }
  .lockup__name { font-size: 0.6rem; letter-spacing: 0.1em; }

  .section { padding: 14vh var(--gutter); }
  .journey__steps { grid-template-columns: 1fr 1fr; }
  .spec { grid-template-columns: 1fr; gap: 0.3rem; }
  .spec-table, .materials { padding-left: 1.4rem; padding-right: 1.4rem; }

  /* The gallery becomes a plain stack of cards. */
  .audience__pin { min-height: 0; padding: 14vh var(--gutter); }
  .audience__track { height: auto; display: grid; gap: 1rem; }
  .audience .audience-card { position: relative; top: auto; transform: none; width: 100%; }

  .bg-tint {
    background:
      linear-gradient(to bottom, rgba(14, 18, 26, 0.55), rgba(14, 18, 26, 0.78)),
      radial-gradient(120% 90% at 50% 50%, transparent 50%, rgba(10, 13, 19, 0.6) 100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
