/* =====================================================================
   sgtdaniel.dev — Stylesheet
   Zentriertes Layout an einer durchgehenden Mittelachse. Ice Blue.
   ===================================================================== */

:root {
  --base-900: #07090d;   /* Seitenhintergrund */
  --base-800: #0f131b;   /* Karten */
  --base-700: #172030;   /* Rahmen, Chips */
  --base-600: #24304a;   /* Rahmen betont */

  --accent:       #38bdf8;
  --accent-light: #7dd3fc;
  --accent-dark:  #0ea5e9;
  --accent-rgb:   56, 189, 248;

  --text:  #eef4fb;
  --muted: #8b9bb4;
  --faint: #55647d;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;

  --r-sm: .5rem;
  --r:    .75rem;

  --header-h: 68px;
  --wrap: 1140px;
  --pad: 24px;                        /* seitlicher Innenabstand */
  --axis: rgba(255, 255, 255, .09);   /* Farbe der Mittelachse */
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--base-900);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -.011em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Weicher Schein hinter dem Seitenkopf */
body::before {
  content: ""; position: fixed; z-index: -2; pointer-events: none;
  top: -320px; left: 50%; transform: translateX(-50%);
  width: min(1100px, 140%); height: 780px;
  background: radial-gradient(ellipse at center, rgba(var(--accent-rgb), .09), transparent 65%);
}

h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -.025em; font-weight: 700; }
p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

::selection { background: rgba(var(--accent-rgb), .28); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-track { background: var(--base-900); }
::-webkit-scrollbar-thumb { background: var(--base-600); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-dark); }

.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 999;
  padding: 10px 16px; border-radius: var(--r-sm);
  background: var(--accent); color: #04121c; font-weight: 600;
  transform: translateY(-160%); transition: transform .2s;
}
.skip-link:focus { transform: none; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.mono { font-family: var(--mono); }

/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background .25s, border-color .25s;
}
.header.is-stuck {
  background: rgba(7, 9, 13, .85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--base-700);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }

.logo { font-family: var(--mono); font-size: 15px; font-weight: 500; }
.logo__dot { color: var(--accent); }

.nav__list { display: flex; align-items: center; gap: 28px; }
.nav__link { font-size: 14px; color: var(--muted); transition: color .2s; }
.nav__link:hover, .nav__link.is-active { color: var(--text); }

.burger {
  display: none; width: 40px; height: 40px; padding: 11px 9px;
  border: 1px solid var(--base-700); border-radius: var(--r-sm);
}
.burger span { display: block; height: 1.5px; background: var(--text); transition: transform .25s, opacity .2s; }
.burger span + span { margin-top: 5px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* =====================================================================
   Die Mittelachse
   Sie läuft bewusst NICHT durch die ganze Seite, sondern nur durch die
   Leerräume zwischen den Sektionen — sonst schneidet sie durch Text.
   Jede Sektion bringt das Stück Linie mit, das zu ihrem Punkt führt.
   ===================================================================== */
main { position: relative; counter-reset: sec; }

/* ---------- Hero ---------- */
.hero {
  min-height: 88svh;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 72px) 0 96px;
}
.hero__inner { text-align: center; }

.hero__greeting { font-family: var(--mono); font-size: 14.5px; color: var(--muted); margin-bottom: 16px; }

.hero__name {
  font-size: clamp(2.9rem, 8.5vw, 5rem);
  font-weight: 700; letter-spacing: -.04em;
  margin-bottom: 22px;
}
/* kurzer Akzentstrich unter dem Namen, sitzt auf der Achse */
.hero__name::after {
  content: ""; display: block; margin: 22px auto 0;
  width: 64px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.hero__roles {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 12px;
  font-size: clamp(.95rem, 2.2vw, 1.15rem); font-weight: 500;
  margin-bottom: 26px;
}
.hero__roles .sep { color: var(--accent); font-family: var(--mono); }

.hero__tagline {
  max-width: 58ch; margin: 0 auto 38px;
  color: var(--muted); font-size: 1.02rem; line-height: 1.75;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 36px; }

.hero__status {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 12.5px; color: var(--muted);
}
.dot {
  width: 7px; height: 7px; border-radius: 50%; flex: none;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .16);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--r-sm);
  font-size: 14.5px; font-weight: 500; white-space: nowrap;
  border: 1px solid var(--base-600); color: var(--text);
  transition: background .2s, border-color .2s, color .2s, box-shadow .2s;
}
.btn:hover { border-color: var(--accent); background: var(--base-800); color: var(--accent-light); }

.btn--primary {
  background: var(--accent); border-color: var(--accent);
  color: #04121c; font-weight: 600;
  box-shadow: 0 4px 18px -6px rgba(var(--accent-rgb), .45);
}
.btn--primary:hover {
  background: var(--accent-light); border-color: var(--accent-light); color: #04121c;
  box-shadow: 0 8px 24px -6px rgba(var(--accent-rgb), .6);
}

/* =====================================================================
   Sektionen — jede hängt mit Punkt und Nummer an der Achse
   ===================================================================== */
.section { position: relative; padding: 104px 0 96px; text-align: center; }

/* Liniensegment: kommt aus dem Leerraum darüber und endet am Punkt */
.section::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  left: 50%; margin-left: -.5px; width: 1px;
  top: -96px; height: 140px;
  background: linear-gradient(to bottom, transparent, var(--axis) 45%, var(--axis));
}

/* Punkt auf der Achse */
.section::before {
  content: ""; position: absolute; top: 40px; left: 50%;
  width: 9px; height: 9px; margin-left: -4.5px;
  border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 5px var(--base-900), 0 0 18px rgba(var(--accent-rgb), .8);
}

/* Nummer über dem Titel — zählt automatisch hoch */
.section__title { font-size: clamp(1.65rem, 3.6vw, 2.15rem); margin-bottom: 12px; }
.section__title::before {
  counter-increment: sec;
  content: "0" counter(sec);
  display: block; margin-bottom: 16px;
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  letter-spacing: .18em; color: var(--accent);
}

.section__sub { max-width: 56ch; margin: 0 auto 56px; color: var(--muted); font-size: .97rem; }

/* ---------- About ---------- */
.about { margin-bottom: 76px; }
.about__text { max-width: 68ch; margin-inline: auto; }
.about__text p { color: var(--muted); line-height: 1.85; }
.about__text p + p { margin-top: 20px; }
.about__text strong { color: var(--text); font-weight: 600; }
.about__text code {
  font-family: var(--mono); font-size: .86em; color: var(--accent);
  background: var(--base-800); padding: 2px 6px; border-radius: 4px;
}

.about__side { display: grid; gap: 20px; max-width: 420px; margin: 44px auto 0; }

/* Partner-Karte */
.pcard {
  display: block; text-align: center;
  padding: 28px 24px; border-radius: var(--r);
  border: 1px solid var(--base-700); background: var(--base-800);
  transition: border-color .25s, background .25s, transform .25s, box-shadow .25s;
}
a.pcard:hover {
  border-color: var(--accent); background: var(--base-700);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px -20px rgba(var(--accent-rgb), .5);
}

.pcard__eyebrow {
  font-size: 10.5px; color: var(--faint);
  text-transform: uppercase; letter-spacing: .16em;
}
.pcard__head { display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 20px 0 16px; }
.pcard__avatar {
  display: grid; place-items: center;
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--base-700); border: 1px solid var(--base-600);
  color: var(--accent); font-size: 21px; font-weight: 500;
  transition: border-color .25s, box-shadow .25s;
}
a.pcard:hover .pcard__avatar {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .12);
}
.pcard__id { display: flex; flex-direction: column; gap: 3px; }
.pcard__name { font-size: 1.15rem; font-weight: 600; letter-spacing: -.02em; }
.pcard__role { font-size: 12px; color: var(--muted); }
.pcard__text { font-size: 13.5px; color: var(--muted); line-height: 1.7; }
.pcard__link {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  margin-top: 20px; padding-top: 18px; width: 100%;
  border-top: 1px solid var(--base-700);
  font-size: 12.5px; color: var(--accent);
}
.pcard__arrow { transition: transform .25s; }
a.pcard:hover .pcard__arrow { transform: translate(2px, -2px); }

.facts {
  padding: 24px; border: 1px solid var(--base-700); border-radius: var(--r);
  background: var(--base-800);
}
.facts dt { font-family: var(--mono); font-size: 11px; color: var(--faint); text-transform: uppercase; letter-spacing: .08em; }
.facts dd { font-size: 14px; margin-top: 3px; }
.facts dd + dt { margin-top: 18px; }

/* ---------- Timeline: alternierend an der Achse ---------- */
/* Die Timeline bringt ihre eigene Achse mit — hier stört sie keinen Text,
   weil die Einträge links und rechts daneben liegen. */
.timeline { position: relative; display: grid; grid-template-columns: 1fr 1fr; column-gap: 0; }
.timeline::before {
  content: ""; position: absolute; z-index: -1;
  left: 50%; margin-left: -.5px; width: 1px;
  top: -40px; bottom: 12px;
  background: linear-gradient(to bottom, transparent, var(--axis) 40px, var(--axis) calc(100% - 30px), transparent);
}
.timeline li { position: relative; padding-bottom: 44px; }
.timeline li:last-child { padding-bottom: 0; }

.timeline li:nth-child(odd)  { grid-column: 1; text-align: right; padding-right: 44px; }
.timeline li:nth-child(even) { grid-column: 2; text-align: left;  padding-left: 44px; }

/* Punkt auf der Achse, je nach Seite links oder rechts vom Text */
.timeline li::before {
  content: ""; position: absolute; top: 8px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--base-900); border: 2px solid var(--base-600);
  transition: border-color .25s, box-shadow .25s;
}
.timeline li:nth-child(odd)::before  { right: -4.5px; }
.timeline li:nth-child(even)::before { left: -4.5px; }

/* kurze Verbindung vom Punkt zum Text */
.timeline li::after {
  content: ""; position: absolute; top: 12px;
  width: 26px; height: 1px; background: var(--axis);
}
.timeline li:nth-child(odd)::after  { right: 8px; }
.timeline li:nth-child(even)::after { left: 8px; }

.timeline li:hover::before {
  border-color: var(--accent);
  box-shadow: 0 0 14px rgba(var(--accent-rgb), .7);
}

.tl__year { font-family: var(--mono); font-size: 12.5px; color: var(--accent); }
.tl__title { font-size: 1.05rem; font-weight: 600; margin: 4px 0 8px; }
.tl__text { color: var(--muted); font-size: .94rem; line-height: 1.7; }

/* ---------- Stack: aufklappbare Gruppen ---------- */
.stack { display: grid; gap: 12px; max-width: 780px; margin-inline: auto; }

.acc {
  border: 1px solid var(--base-700); border-radius: var(--r);
  background: var(--base-800);
  transition: border-color .25s;
}
.acc:hover, .acc.is-open { border-color: var(--base-600); }

.acc__head {
  display: flex; align-items: center; gap: 14px; width: 100%;
  padding: 18px 22px; text-align: left;
  transition: color .2s;
}
.acc__head:hover { color: var(--accent-light); }

.acc__name { font-size: 1rem; font-weight: 600; letter-spacing: -.015em; }
.acc__count {
  font-size: 11px; color: var(--faint);
  padding: 2px 8px; border-radius: 99px; border: 1px solid var(--base-700);
}
.acc.is-open .acc__count { color: var(--accent); border-color: var(--base-600); }

/* Plus, das beim Öffnen zum Minus wird */
.acc__icon { position: relative; width: 13px; height: 13px; margin-left: auto; flex: none; }
.acc__icon::before, .acc__icon::after {
  content: ""; position: absolute; inset: 0; margin: auto;
  background: currentColor; border-radius: 1px;
}
.acc__icon::before { width: 13px; height: 1.5px; }
.acc__icon::after  { width: 1.5px; height: 13px; transition: transform .3s ease; }
.acc.is-open .acc__icon { color: var(--accent); }
.acc.is-open .acc__icon::after { transform: scaleY(0); }

/* 0fr → 1fr blendet die Höhe weich ein, ohne feste Pixelwerte */
.acc__body {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .35s ease;
}
.acc.is-open .acc__body { grid-template-rows: 1fr; }
.acc__inner { overflow: hidden; }
.acc__inner .chips { padding: 0 22px 22px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chip {
  padding: 6px 12px; border-radius: var(--r-sm);
  border: 1px solid var(--base-600); background: var(--base-700);
  font-size: 13px; color: var(--text);
  transition: border-color .2s, color .2s;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Projekte ---------- */
.cat { margin-bottom: 60px; }
.cat:last-child { margin-bottom: 0; }
.cat__head { margin-bottom: 28px; }
.cat__title { font-size: 1.2rem; font-weight: 600; }
.cat__sub { color: var(--faint); font-size: .88rem; margin-top: 4px; }
.cat__count { display: none; }

.projects { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 20px; }

.project {
  display: flex; flex-direction: column; align-items: center;
  padding: 30px 26px; border: 1px solid var(--base-700); border-radius: var(--r);
  background: var(--base-800);
  transition: border-color .25s, background .25s, transform .25s, box-shadow .25s;
}
.project:hover {
  border-color: var(--accent); background: var(--base-700);
  transform: translateY(-3px);
  box-shadow: 0 18px 44px -22px rgba(var(--accent-rgb), .55);
}

.project__top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.project__sub {
  font-family: var(--mono); font-size: 11px; color: var(--accent);
  text-transform: uppercase; letter-spacing: .12em;
}
.project__year { font-family: var(--mono); font-size: 11px; color: var(--faint); }
.project__year::before { content: "· "; }

.project__title { font-size: 1.25rem; margin-bottom: 12px; }
.project__desc { color: var(--muted); font-size: .94rem; line-height: 1.7; margin-bottom: 22px; }

.project__tags { display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; margin-top: auto; margin-bottom: 22px; }
.project__tag {
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  padding: 4px 9px; border-radius: var(--r-sm); border: 1px solid var(--base-600);
}

.project__more {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13.5px; font-weight: 500; color: var(--accent);
}
.project__more .arrow { transition: transform .25s; }
.project:hover .project__more .arrow { transform: translateX(4px); }

.project__links { display: flex; gap: 20px; justify-content: center; }
.project__link {
  font-size: 13.5px; font-weight: 500; color: var(--accent);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.project__link:hover { border-bottom-color: var(--accent); }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.service {
  padding: 30px 26px; border: 1px solid var(--base-700); border-radius: var(--r);
  background: var(--base-800);
  transition: border-color .25s, transform .25s;
}
.service:hover { border-color: var(--base-600); transform: translateY(-2px); }
.service__title { font-size: 1.08rem; font-weight: 600; margin-bottom: 12px; }
.service__text { color: var(--muted); font-size: .93rem; line-height: 1.75; }

/* ---------- Connect ---------- */
.section--connect { padding-bottom: 130px; }
.connect__links { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.connect__link {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 26px; border-radius: var(--r);
  border: 1px solid var(--base-700); background: var(--base-800);
  font-size: 14.5px; font-weight: 500;
  transition: border-color .25s, background .25s, transform .25s;
}
.connect__link:hover { border-color: var(--accent); background: var(--base-700); transform: translateY(-2px); }
.connect__link svg { width: 18px; height: 18px; flex: none; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--base-700); padding: 30px 0; }
.footer__inner {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 12.5px; color: var(--faint);
  text-align: center;
}

/* ---------- Projekt-Detailseite ---------- */
.detail { padding: calc(var(--header-h) + 64px) 0 110px; text-align: center; }
body.is-detail main, body.is-detail .footer { display: none; }

.detail__back {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px; color: var(--muted); margin-bottom: 40px;
  transition: color .2s;
}
.detail__back:hover { color: var(--accent); }

.detail__sub {
  font-family: var(--mono); font-size: 11.5px; color: var(--accent);
  text-transform: uppercase; letter-spacing: .14em; margin-bottom: 12px;
}
.detail__title { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 24px; }

.detail__meta {
  display: flex; flex-wrap: wrap; gap: 14px 32px; justify-content: center;
  padding-bottom: 32px; margin-bottom: 44px;
  border-bottom: 1px solid var(--base-700);
}
.detail__meta div { display: flex; flex-direction: column; gap: 3px; }
.detail__meta dt {
  font-family: var(--mono); font-size: 10.5px; color: var(--faint);
  text-transform: uppercase; letter-spacing: .1em;
}
.detail__meta dd { font-size: 14px; }

.detail__body { display: grid; gap: 48px; justify-items: center; }
.detail__text { max-width: 68ch; }
.detail__text p { color: var(--muted); line-height: 1.85; }
.detail__text p + p { margin-top: 20px; }
.detail__text strong { color: var(--text); font-weight: 600; }
.detail__text code {
  font-family: var(--mono); font-size: .86em; color: var(--accent);
  background: var(--base-800); padding: 2px 6px; border-radius: 4px;
}

.detail__side {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px; width: 100%; max-width: 900px;
}
.panel {
  padding: 26px 24px; border: 1px solid var(--base-700); border-radius: var(--r);
  background: var(--base-800);
  transition: border-color .25s;
}
.panel:hover { border-color: var(--base-600); }
.panel__name {
  font-family: var(--mono); font-size: 11px; color: var(--faint);
  text-transform: uppercase; letter-spacing: .12em; margin-bottom: 18px;
}
.features li { font-size: 14px; color: var(--muted); line-height: 1.6; }
.features li + li { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--base-700); }

.detail__gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-top: 48px; }
.detail__gallery img { width: 100%; border-radius: var(--r); border: 1px solid var(--base-700); display: block; }

.detail__nav {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 68px; padding-top: 30px; border-top: 1px solid var(--base-700);
}
.detail__nav a { font-size: 14px; color: var(--muted); transition: color .2s; }
.detail__nav a:hover { color: var(--accent); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 300;
  padding: 12px 20px; border-radius: var(--r-sm);
  background: var(--base-700); border: 1px solid var(--base-600);
  font-size: 14px;
  transform: translate(-50%, 130%); opacity: 0; pointer-events: none;
  transition: transform .3s ease, opacity .25s;
}
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0; transform: translateY(14px);
  transition: opacity .6s ease, transform .6s ease;
  transition-delay: calc(var(--d, 0) * 70ms);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .section { padding: 84px 0 76px; }
  .burger { display: block; }

  .nav {
    position: fixed; inset: var(--header-h) 0 auto;
    padding: 14px 24px 22px;
    background: rgba(7, 9, 13, .98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--base-700);
    transform: translateY(-115%); opacity: 0; visibility: hidden;
    transition: transform .3s ease, opacity .22s, visibility .3s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link { display: block; padding: 13px 0; font-size: 15.5px; border-bottom: 1px solid var(--base-800); }

  .hero { min-height: auto; padding: calc(var(--header-h) + 52px) 0 76px; }
  .hero__actions .btn { flex: 1 1 100%; }

  /* Achse rutscht an den linken Rand, Timeline wird einspaltig */
  .section::after { left: var(--pad); margin-left: -.5px; }
  .section::before { left: var(--pad); margin-left: -4.5px; }

  .timeline { grid-template-columns: 1fr; }
  .timeline::before { left: 0; margin-left: -.5px; }
  .timeline li:nth-child(odd),
  .timeline li:nth-child(even) {
    grid-column: 1; text-align: left; padding: 0 0 40px 32px;
  }
  .timeline li:nth-child(odd)::before,
  .timeline li:nth-child(even)::before { left: -4.5px; right: auto; }
  .timeline li:nth-child(odd)::after,
  .timeline li:nth-child(even)::after { left: 6px; right: auto; width: 18px; }
}

@media (max-width: 420px) {
  :root { --pad: 18px; }
  .connect__link { flex: 1 1 100%; justify-content: center; }
  .detail__nav { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .001ms !important; animation-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
