:root {
  --ink: #1a1714;
  --ink-2: #38322c;
  --muted: #7a7066;
  --faint: #a59a8d;
  --line: oklch(0.89 0.014 70);
  --line-soft: oklch(0.93 0.01 70);
  --card-border: oklch(0.86 0.016 70);
  --bg: oklch(0.965 0.014 78);
  --bg-warm: oklch(0.95 0.018 75);
  --card: #ffffff;
  --accent: oklch(0.55 0.13 38);
  --accent-deep: oklch(0.46 0.13 36);
  --accent-soft: oklch(0.955 0.028 50);
  --ok: oklch(0.56 0.11 150);
  --ok-soft: oklch(0.965 0.035 150);
  --err: oklch(0.56 0.16 28);
  --err-soft: oklch(0.965 0.03 30);
  --shadow-xs: 0 1px 2px oklch(0.55 0.02 60 / 0.06);
  --shadow-sm: 0 1px 0 oklch(0.9 0.01 60 / 0.6), 0 2px 6px -2px oklch(0.55 0.02 60 / 0.12);
  --shadow-md: 0 1px 0 oklch(0.9 0.01 60 / 0.5), 0 12px 28px -14px oklch(0.45 0.02 60 / 0.3);
  --shadow-lg: 0 1px 0 oklch(0.9 0.01 60 / 0.5), 0 28px 70px -28px oklch(0.4 0.02 60 / 0.42);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --radius: 16px;
  --radius-sm: 11px;
  --col: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Instrument Sans", system-ui, -apple-system, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
}
body {
  background: var(--bg);
}

h1, h2, h3, h4 { font-family: "Fraunces", Georgia, serif; color: var(--ink); font-weight: 500; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); letter-spacing: -0.04em; line-height: 1.0; margin: 0 0 .5em; }
h2 { font-size: clamp(1.4rem, 2.4vw, 2.05rem); letter-spacing: -0.03em; line-height: 1.1; margin: 0 0 .5em; }
h3 { font-size: 1.16rem; letter-spacing: -0.02em; margin: 1.7em 0 .5em; font-weight: 600; }
p { line-height: 1.65; color: var(--ink-2); margin: 0 0 1em; }
a { color: var(--accent-deep); text-decoration: underline; text-decoration-color: oklch(0.78 0.07 40); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--accent); }
::selection { background: var(--accent-soft); }

/* ---------- TOP BAR ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: oklch(0.985 0.008 80 / 0.82);
  backdrop-filter: saturate(1.3) blur(16px);
  -webkit-backdrop-filter: saturate(1.3) blur(16px);
  border-bottom: 1px solid var(--line-soft);
}
.top-inner {
  max-width: var(--col); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 30px;
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 500; font-size: .95rem; letter-spacing: -0.01em; cursor: pointer; }
.brand .logo { width: 32px; height: 32px; display: block; flex: none; }
.top-nav { display: flex; align-items: center; gap: 13px; font-size: .82rem; color: var(--muted); }
.progress-bar { width: 132px; height: 5px; background: oklch(0.9 0.012 70); border-radius: 99px; overflow: hidden; }
#progress-fill { width: 0%; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-deep)); border-radius: 99px; transition: width .7s var(--ease); }

main { max-width: var(--col); margin: 0 auto; padding: 40px 30px 130px; }

/* ---------- HERO ---------- */
.hero {
  padding: clamp(40px, 7vw, 80px) 0 clamp(40px, 5vw, 58px);
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(48px, 6vw, 72px);
  position: relative;
}
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .76rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-deep); margin-bottom: 26px; font-weight: 500;
}
.hero .eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--accent); display: inline-block; }
.hero h1 { max-width: 16ch; }
.hero h1 em { font-style: italic; color: var(--accent-deep); font-weight: 400; }
.hero p.lede { font-size: clamp(1.05rem, 1.6vw, 1.22rem); max-width: 56ch; color: var(--ink-2); line-height: 1.6; }

.hero-meta { display: flex; gap: 20px; align-items: center; margin-top: 30px; flex-wrap: wrap; color: var(--muted); font-size: .9rem; }
.hero-meta .m { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta .m strong { color: var(--ink); font-weight: 500; }
.hero-meta .sep { width: 4px; height: 4px; border-radius: 50%; background: var(--faint); }

.hero-cta { display: flex; gap: 12px; margin-top: 34px; align-items: center; flex-wrap: wrap; }
.name-input {
  padding: 13px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--card);
  font: inherit; font-size: .95rem;
  min-width: 280px;
  color: var(--ink);
  box-shadow: var(--shadow-xs);
  transition: box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.name-input::placeholder { color: var(--faint); }
.name-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px oklch(0.55 0.13 38 / 0.14); }

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 24px;
  background: var(--ink); color: #fdf9f4;
  border: none; border-radius: var(--radius-sm);
  font: inherit; font-size: .92rem; font-weight: 500; letter-spacing: -0.01em;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .25s;
}
.btn .arw { transition: transform .3s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:hover .arw { transform: translateX(3px); }
.btn:active { transform: translateY(0); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn.ghost:hover { background: var(--card); box-shadow: inset 0 0 0 1px oklch(0.82 0.02 60), var(--shadow-sm); }
.btn.accent { background: linear-gradient(150deg, var(--accent), var(--accent-deep)); }

/* ---------- PHASES + GRID ---------- */
.phase { margin-bottom: 52px; }
.phase-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 22px; }
.phase-num {
  font-family: "Fraunces", serif; font-size: 1.05rem; font-weight: 600;
  color: var(--accent); font-variant-numeric: oldstyle-nums;
  width: 1.8em; flex: none;
}
.phase-titles h2 { margin: 0 0 2px; font-size: 1.5rem; }
.phase-titles p { margin: 0; color: var(--muted); font-size: .92rem; }
.phase-rule { flex: 1; height: 1px; background: var(--line); align-self: center; margin-left: 4px; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 16px;
}
.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 23px 23px 19px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
  display: flex; flex-direction: column; gap: 9px;
  min-height: 172px;
  opacity: 0;
  transform: translateY(14px);
  animation: rise .6s var(--ease) forwards;
}
@keyframes rise { to { opacity: 1; transform: none; } }
.card::after {
  content: attr(data-num);
  position: absolute; top: -14px; right: 6px;
  font-family: "Fraunces", serif; font-weight: 600;
  font-size: 5.2rem; line-height: 1; color: oklch(0.6 0.02 60 / 0.05);
  pointer-events: none; transition: color .4s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: oklch(0.78 0.05 50); }
.card:hover::after { color: oklch(0.55 0.07 40 / 0.09); }
.card:active { transform: translateY(-1px); }
.card .num { font-size: .73rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.card h3 { margin: 0; font-size: 1.2rem; letter-spacing: -0.02em; line-height: 1.18; font-weight: 600; }
.card p { margin: 0; font-size: .89rem; color: var(--ink-2); line-height: 1.5; position: relative; z-index: 1; }
.card .status {
  margin-top: auto;
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 15px; font-size: .8rem; color: var(--muted);
}
.card .check { display: inline-flex; align-items: center; gap: 8px; }
.card .check .dot-ring {
  width: 15px; height: 15px; border-radius: 50%;
  border: 1.5px solid oklch(0.82 0.02 60);
  display: inline-grid; place-items: center;
  transition: all .3s var(--ease);
}
.card .arw { color: var(--faint); transition: transform .3s var(--ease); }
.card:hover .arw { transform: translateX(4px); color: var(--accent); }
.card.done { background: var(--ok-soft); border-color: oklch(0.82 0.06 150); }
.card.done .num { color: var(--ok); }
.card.done .check { color: var(--ok); font-weight: 500; }
.card.done .check .dot-ring { background: var(--ok); border-color: var(--ok); color: #fff; }
.card.done .check .dot-ring::after { content: "✓"; font-size: .62rem; font-weight: 700; }

/* ---------- LESSON VIEW ---------- */
.lesson { max-width: 768px; margin: 0 auto; animation: fadeUp .5s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.back {
  background: none; border: none; font: inherit; color: var(--muted);
  cursor: pointer; padding: 7px 0; margin-bottom: 26px; font-size: .88rem;
  display: inline-flex; align-items: center; gap: 7px;
  transition: color .25s, gap .25s var(--ease);
}
.back:hover { color: var(--ink); gap: 11px; }
.lesson .lesson-num { font-size: .76rem; letter-spacing: .13em; text-transform: uppercase; color: var(--accent-deep); margin-bottom: 16px; display: block; font-weight: 500; }
.lesson > h1 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
.lesson .lede { font-size: 1.12rem; max-width: 60ch; margin-bottom: 38px; color: var(--muted); line-height: 1.55; }
.lesson .content {
  background: var(--card); border-radius: var(--radius);
  padding: clamp(32px, 5vw, 54px);
  box-shadow: var(--shadow-md);
}
.content > :first-child { margin-top: 0; }
.content h3:first-child { margin-top: 0; }
.content ul, .content ol { padding-left: 22px; color: var(--ink-2); line-height: 1.7; margin: 0 0 1.1em; }
.content li { margin-bottom: .5em; padding-left: 4px; }
.content li::marker { color: var(--accent); }
.content li strong, .content p strong { color: var(--ink); font-weight: 600; }

.callout {
  background: var(--accent-soft);
  padding: 16px 20px 16px 20px;
  border-radius: var(--radius-sm);
  margin: 22px 0;
  font-size: .92rem; color: var(--ink-2); line-height: 1.55;
  box-shadow: inset 3px 0 0 var(--accent);
}
.callout strong { color: var(--accent-deep); font-weight: 600; }

.kontakt-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  margin: 18px 0; font-size: .92rem;
  border-top: 1px solid var(--line);
}
.kontakt-grid .k { padding: 11px 4px; border-bottom: 1px solid var(--line-soft); color: var(--ink-2); }
.kontakt-grid .k:nth-child(2n) { color: var(--ink); }
.kontakt-grid .k.head { font-weight: 600; color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .09em; border-bottom-color: var(--line); }

/* ---------- QUIZ ---------- */
.quiz { margin-top: 40px; padding-top: 38px; border-top: 1px solid var(--line); }
.quiz h2 { margin-bottom: 6px; font-size: 1.4rem; }
.quiz .q-intro { color: var(--muted); font-size: .92rem; margin-bottom: 28px; }
.q { margin-bottom: 26px; }
.q-text { font-weight: 500; font-size: 1.0rem; margin-bottom: 13px; color: var(--ink); line-height: 1.45; }
.q-num { color: var(--accent); font-family: "Fraunces", serif; font-weight: 600; margin-right: 9px; }
.options { display: flex; flex-direction: column; gap: 8px; }
.option {
  padding: 14px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer; font: inherit; font-size: .92rem;
  text-align: left; color: var(--ink-2);
  transition: transform .2s var(--ease), border-color .2s, background .2s, box-shadow .2s;
}
.option:hover:not(:disabled) { transform: translateX(4px); border-color: oklch(0.76 0.03 50); box-shadow: var(--shadow-xs); }
.option.selected { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); color: var(--ink); }
.option.correct { background: var(--ok-soft); border-color: var(--ok); color: oklch(0.34 0.09 150); font-weight: 500; }
.option.wrong { background: var(--err-soft); border-color: var(--err); color: oklch(0.38 0.12 28); }
.option:disabled { cursor: default; }

.feedback {
  margin-top: 11px; padding: 12px 16px; border-radius: var(--radius-sm);
  font-size: .88rem; line-height: 1.55;
  animation: fadeUp .35s var(--ease);
}
.feedback.ok { background: var(--ok-soft); color: oklch(0.34 0.09 150); }
.feedback.no { background: var(--err-soft); color: oklch(0.38 0.12 28); }
.feedback strong { font-weight: 600; }

.quiz-footer {
  margin-top: 36px; display: flex; justify-content: space-between; align-items: center;
  gap: 14px; flex-wrap: wrap;
}
.score { font-size: .92rem; color: var(--muted); }
.score strong { color: var(--ink); font-weight: 600; font-family: "Fraunces", serif; }
.muted-note { font-size: .86rem; color: var(--muted); }

/* next-module nudge after completion */
.next-up {
  margin-top: 28px; padding-top: 26px; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.next-up .nx-label { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); display: block; margin-bottom: 4px; }
.next-up .nx-title { font-family: "Fraunces", serif; font-weight: 500; font-size: 1.1rem; color: var(--ink); }

/* ---------- CERTIFICATE ---------- */
.cert-wrap { max-width: 720px; margin: 0 auto; padding: 30px 0 60px; }
.cert {
  background:
    radial-gradient(120% 90% at 50% 0%, oklch(0.99 0.012 70), var(--card));
  border-radius: 20px;
  padding: clamp(40px, 6vw, 72px) clamp(28px, 5vw, 60px);
  box-shadow: var(--shadow-lg);
  position: relative; overflow: hidden; text-align: center;
  animation: fadeUp .6s var(--ease);
}
.cert::before {
  content: ""; position: absolute; inset: 16px;
  border: 1px solid oklch(0.85 0.03 50); border-radius: 12px; pointer-events: none;
}
.cert::after {
  content: ""; position: absolute; inset: 20px;
  border: 1px solid oklch(0.9 0.02 50); border-radius: 9px; pointer-events: none;
}
.cert-inner { position: relative; z-index: 1; }
.cert .seal {
  width: 76px; height: 76px; margin: 0 auto 22px; display: block;
}
.cert .mono { font-family: "Fraunces", serif; font-size: .76rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.cert h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin: 18px 0 14px; }
.cert .recipient {
  font-family: "Fraunces", serif; font-size: clamp(1.7rem, 4vw, 2.3rem);
  font-weight: 400; font-style: italic; color: var(--accent-deep);
  margin: 30px 0 16px; letter-spacing: -0.02em;
}
.cert .recipient-rule { width: 200px; height: 1px; background: var(--line); margin: 0 auto 22px; }
.cert .signoff { margin-top: 38px; padding-top: 22px; border-top: 1px solid var(--line-soft); font-size: .85rem; color: var(--muted); }
.cert .cert-actions { margin-top: 30px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- FOOTER ---------- */
.foot { border-top: 1px solid var(--line); padding: 26px 30px; font-size: .82rem; color: var(--muted); }
.foot-inner { max-width: var(--col); margin: 0 auto; display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; align-items: center; }
.link { background: none; border: none; font: inherit; color: var(--muted); cursor: pointer; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.link:hover { color: var(--ink); }

/* ---------- HERO IMAGE ---------- */
.hero-grid { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: clamp(32px, 5vw, 56px); align-items: center; }
.hero-figure { margin: 0; }
.hero-figure img {
  width: 100%; height: 100%; max-height: 440px; object-fit: cover; display: block;
  border-radius: var(--radius); border: 1px solid var(--card-border);
  box-shadow: var(--shadow-md);
}
.hero-banner { margin: clamp(32px, 4vw, 44px) 0 0; }
.hero-banner img {
  width: 100%; height: auto; max-height: 430px; object-fit: cover; object-position: center 32%;
  display: block; border-radius: var(--radius); border: 1px solid var(--card-border);
  box-shadow: var(--shadow-md);
}
.hero-banner figcaption { margin-top: 12px; font-size: .84rem; color: var(--muted); font-style: italic; text-align: center; }

/* ---------- LEADERSHIP PEOPLE ---------- */
.people {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(218px, 1fr));
  gap: 12px; margin: 16px 0 28px;
}
.person {
  display: flex; align-items: center; gap: 13px;
  padding: 15px 16px; background: var(--card);
  border: 1px solid var(--card-border); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-xs);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.person:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.person .pa {
  width: 46px; height: 46px; border-radius: 50%; flex: none;
  display: grid; place-items: center; color: #fff; overflow: hidden;
  background: linear-gradient(150deg, var(--accent), var(--accent-deep));
  font-family: "Fraunces", serif; font-weight: 600; font-size: 1.1rem;
  box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.25);
}
.person .pa.photo { background: oklch(0.9 0.01 70); }
.person .pa.photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; display: block; }
.person .pi { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.person .pi strong { font-size: .95rem; color: var(--ink); font-weight: 600; }
.person .pi span { font-size: .8rem; color: var(--muted); }
.person.tbd { border-style: dashed; }
.person.tbd .pa { background: oklch(0.86 0.02 70); color: var(--muted); box-shadow: none; }

/* ---------- FLOW / STEP DIAGRAM ---------- */
.flow { display: flex; align-items: flex-start; gap: 6px; margin: 22px 0 30px; }
.flow-step { flex: 1; position: relative; text-align: center; padding-top: 4px; }
.flow-step::before {
  content: ""; position: absolute; top: 22px; right: 50%; width: 100%; height: 2px;
  background: oklch(0.86 0.03 60); z-index: 0;
}
.flow-step:first-child::before { display: none; }
.fs-num {
  position: relative; z-index: 1; display: grid; place-items: center;
  width: 38px; height: 38px; margin: 0 auto 12px; border-radius: 50%;
  background: var(--card); border: 2px solid var(--accent); color: var(--accent-deep);
  font-family: "Fraunces", serif; font-weight: 600; font-size: 1rem;
}
.fs-body { display: flex; flex-direction: column; gap: 3px; padding: 0 6px; }
.fs-body strong { font-size: .9rem; color: var(--ink); font-weight: 600; line-height: 1.25; }
.fs-body span { font-size: .78rem; color: var(--muted); line-height: 1.35; }
.flow-path .fs-num { font-size: .85rem; }

/* reveal/stagger for flow steps */
.flow-step { transition: opacity .55s var(--ease), transform .55s var(--ease); }
.pre.flow .flow-step { opacity: 0; transform: translateY(12px); }
.flow.is-visible .flow-step { opacity: 1; transform: none; }
.flow.is-visible .flow-step:nth-child(2) { transition-delay: .08s; }
.flow.is-visible .flow-step:nth-child(3) { transition-delay: .16s; }
.flow.is-visible .flow-step:nth-child(4) { transition-delay: .24s; }
.flow.is-visible .flow-step:nth-child(5) { transition-delay: .32s; }

/* ---------- FIGURE ---------- */
.figure { margin: 26px 0; }
.figure img {
  width: 100%; height: auto; display: block;
  border-radius: var(--radius); border: 1px solid var(--card-border);
  box-shadow: var(--shadow-sm);
}
.figure figcaption { margin-top: 11px; font-size: .82rem; color: var(--muted); font-style: italic; text-align: center; }

/* ---------- SCROLL REVEAL ---------- */
[data-reveal] { transition: opacity .65s var(--ease), transform .65s var(--ease); }
.pre[data-reveal] { opacity: 0; transform: translateY(18px); }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- CONTACT DIRECTORY ---------- */
.directory {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(252px, 1fr));
  gap: 10px; margin: 14px 0 28px;
}
.contact-card {
  display: flex; align-items: center; gap: 13px;
  padding: 11px 14px; background: var(--card);
  border: 1px solid var(--card-border); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-xs); text-decoration: none; color: inherit;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
a.contact-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); border-color: oklch(0.8 0.04 50); }
.cc-av {
  width: 48px; height: 48px; border-radius: 50%; flex: none; overflow: hidden;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(150deg, var(--accent), var(--accent-deep));
  font-family: "Fraunces", serif; font-weight: 600; font-size: .92rem;
  box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.22);
}
.cc-av.photo { background: oklch(0.9 0.01 70); box-shadow: none; }
.cc-av img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.cc-info { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.cc-info strong { font-size: .92rem; color: var(--ink); font-weight: 600; }
.cc-role { font-size: .76rem; color: var(--accent-deep); font-weight: 500; }
.cc-mail { font-size: .77rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.contact-card.tbd { border-style: dashed; }
.contact-card.tbd .cc-av { background: oklch(0.86 0.02 70); color: var(--muted); box-shadow: none; }

/* avatars inside quiz options & feedback */
.opt-av { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; object-position: center 22%; vertical-align: middle; margin-right: 11px; }
.option:has(.opt-av) { display: flex; align-items: center; }
.inline-av { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; object-position: center 22%; float: left; margin: 0 12px 4px 0; box-shadow: var(--shadow-xs); }

/* reading-time chip on cards */
.card .num .rt { color: var(--faint); font-weight: 500; }

/* confetti overlay */
#confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 60; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-figure img { max-height: 300px; }
}

@media (max-width: 640px) {
  main { padding: 28px 20px 100px; }
  .top-inner { padding: 12px 20px; }
  .kontakt-grid { grid-template-columns: 1fr; }
  .kontakt-grid .k.head:nth-child(2) { display: none; }
  .top-nav .l { display: none; }
  .phase-head { flex-wrap: wrap; }
  .name-input { min-width: 0; width: 100%; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
  .hero-figure img { max-height: 230px; }

  /* flow → vertical rail */
  .flow { flex-direction: column; gap: 0; }
  .flow-step { flex: none; display: flex; align-items: flex-start; gap: 15px; text-align: left; padding: 0 0 20px; }
  .flow-step::before { top: 0; right: auto; left: 18px; width: 2px; height: 100%; }
  .flow-step:last-child::before { display: none; }
  .fs-num { margin: 0; }
  .fs-body { padding: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .card, [data-reveal], .flow-step { opacity: 1 !important; transform: none !important; }
}

/* ---------- PRINT (certificate) ---------- */
@media print {
  .top, .foot, .cert-actions, .back { display: none !important; }
  body { background: #fff; }
  main { padding: 0; }
  .cert-wrap { padding: 0; max-width: 100%; }
  .cert { box-shadow: none; border: 1px solid #ddd; }
}
