:root{
  /* Light beige palette */
  --bg: #E9E0D8;           /* page background (dunkleres Beige) */
  --bg-soft: #F0EBE6;      /* light section */
  --fg: #232323;           /* primary text */
  --muted: #696666;        /* secondary text */
  --brand: #6E8B7E;        /* sage green */
  --brand-700:#5E7D70;     /* hover */
  --card: rgba(255,255,255,0.3); /* card surfaces */
  --card-strong: #ffffff;
  --border:#E6E0DA;        /* soft borders */
  --radius: 16px;
  --danger: #C04B4B;
  --header-height: 64px;
  --header-offset-extra: 8px;
  --header-surface: rgba(247, 243, 239, 0.8);
  --header-surface-fixed: rgba(247, 243, 239, 0.7);
  --cookie-surface: rgba(255,255,255,0.92);
}
/* make all media scale to their container and keep intrinsic aspect ratio */
img, picture, video, svg {
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* utility to create a cropping container that stays responsive */
.img-cover, .media-cover {
    width: 100%;
    overflow: hidden;
    display: block;
}

/* when you need the image to fill the container and crop rather than squeeze */
.img-cover > img, .media-cover > img, .img-cover > video, .media-cover > video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* common aspect-ratio helpers for predictable responsive boxes */
.ratio-16-9 { aspect-ratio: 16 / 9; }
.ratio-4-3  { aspect-ratio: 4 / 3; }
.ratio-1-1  { aspect-ratio: 1 / 1; }

/* small screens: keep generous spacing and ensure images never overflow */
@media (max-width: 900px) {
    img, picture, video, svg { width: 100%; height: auto; object-fit: contain; }
}
*, *::before, *::after{box-sizing:border-box}
html{min-height:100%}
body{min-height:100vh}
html{scroll-behavior:auto; background:var(--bg)}
body{
  margin:0; color:var(--fg);
  font:17px "Urbanist", "Helvetica Neue", Arial, sans-serif;
  background:var(--bg);
  display:flex;
  flex-direction:column;
}
:root[data-theme="dark"]{
  --bg: #0f1113;
  --bg-soft: #161a1e;
  --fg: #f2f3f4;
  --muted: #b3bdc6;
  --brand: #8cc3aa;
  --brand-700:#75ad95;
  --card: rgba(255,255,255,0.06);
  --card-strong: #151a1e;
  --border:#252b30;
  --danger: #e57373;
  --header-surface: rgba(16, 19, 22, 0.92);
  --header-surface-fixed: rgba(16, 19, 22, 0.92);
  --cookie-surface: rgba(20,24,27,0.92);
  color-scheme: dark;
}
.skip-link{
  position:absolute;
  top:-48px;
  left:16px;
  padding:10px 16px;
  background:var(--brand);
  color:#fff;
  border-radius:var(--radius);
  text-decoration:none;
  font-weight:600;
  z-index:130;
  transition:top 0.2s ease, box-shadow 0.2s ease;
}
.skip-link:focus-visible{
  top:16px;
  box-shadow:0 10px 25px rgba(0,0,0,0.15);
  outline:2px solid #fff;
  outline-offset:2px;
}

h1,h2,h3,.serif{ font-family:"Urbanist", "Helvetica Neue", Arial, sans-serif; }
.section h2{
  font-size:clamp(26px, 4.5vw, 38px);
  margin:0 0 18px;
  line-height:1.2;
}
.section h3{
  font-size:clamp(20px, 3.5vw, 26px);
  line-height:1.3;
}
.display{ font-weight:700; font-size:clamp(30px,5.5vw,60px); line-height:1.08; }

.container{
  max-width:1100px;
  width:100%;
  margin:0 auto;
  padding-left:clamp(24px, 5vw, 48px);
  padding-right:clamp(24px, 5vw, 48px);
}
.site-header{
  position:sticky; top:0; z-index:50;
  background-color: var(--header-surface);
  backdrop-filter:saturate(140%) blur(6px);
  border-bottom:1px solid var(--border);
}
/* Fixed top bar like reference */
.site-header--fixed{
  position:fixed;
  top:0; left:0; width:100%; z-index:100;
  background-color: var(--header-surface-fixed);
  border-bottom:1px solid var(--border);
}
/* offset main content below fixed header */
main{ padding-top:calc(var(--header-height) + var(--header-offset-extra)); flex:1 0 auto; }

.site-header nav{display:flex; align-items:center; justify-content:space-between; height:var(--header-height); gap:12px;}
.brand{
  color:var(--fg);
  font-weight:700;
  font-size: larger;
  text-decoration:none;
  font-family:"Urbanist", "Helvetica Neue", Arial, sans-serif;
  padding-left:4px;
}
.nav-right{display:flex; align-items:center; gap:12px;}
.nav-links{display:flex; align-items:center; gap:20px;}
.nav-links a{color:var(--muted); text-decoration:none; font-weight:600}
.nav-links a:hover{color:var(--fg)}
.nav-links a:focus-visible{
  outline:2px solid var(--brand);
  outline-offset:4px;
  border-radius:6px;
}
.theme-toggle{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:32px;
  height:32px;
  border-radius:8px;
  border:1px solid var(--border);
  background:transparent;
  color:var(--fg);
  cursor:pointer;
  transition:background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.theme-toggle svg{
  width:16px;
  height:16px;
}
.theme-toggle:hover{
  background:var(--card);
  border-color:var(--brand);
}
.theme-toggle:focus-visible{
  outline:2px solid var(--brand);
  outline-offset:3px;
}
.theme-toggle[aria-pressed="true"]{
  color:var(--brand);
  border-color:var(--brand);
}

.scroll-progress{
  position:fixed;
  top:0; left:0;
  width:100%;
  height:3px;
  background:rgba(110,139,126,0.15);
  z-index:120;
  pointer-events:none;
}
.scroll-progress__bar{
  display:block;
  width:100%;
  height:100%;
  background:linear-gradient(90deg, var(--brand) 0%, var(--brand-700) 100%);
  transform-origin:left center;
  transform:scaleX(0);
  border-radius:999px;
  will-change:transform;
  transition:transform 0.12s ease-out;
}

.hero{ position:relative; overflow:hidden; }
.hero--light{ background:var(--bg-soft); border-bottom:1px solid var(--border); }
.hero-split{ display:grid; grid-template-columns:1.1fr .9fr; gap:40px; align-items:center; }
.hero-copy .lead{ font-size:clamp(18px,2.3vw,24px); color:var(--muted); }
.hero-portrait img{ width:100%; height:auto; border-radius:24px; display:block; box-shadow:0 20px 40px rgba(0,0,0,.08); background:var(--card-strong); }

/* Photo hero with background image and left-aligned copy */
.hero--photo{
  min-height:85vh;
  margin-top:calc(-1 * (var(--header-height) + var(--header-offset-extra)));
  padding-top:calc(var(--header-height) + var(--header-offset-extra));
}
.hero--photo::before{
  content:""; position:absolute; inset:0;
  background-image: var(--hero-image);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transform: translateZ(0);
}
/* gentle beige overlays for readability */
.hero-photo-layer{ position:absolute; inset:0;
  background:
    linear-gradient(90deg, rgba(247,243,239,0.92) 0%, rgba(247,243,239,0.75) 35%, rgba(247,243,239,0.25) 65%, rgba(247,243,239,0.10) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.00) 60%, rgba(0,0,0,0.06) 100%),
    linear-gradient(180deg, rgba(233,224,216,0) calc(100% - 220px), rgba(233,224,216,1) 100%);
  pointer-events:none;
}
.hero-photo-layout{ position:relative; display:grid; grid-template-columns:1.1fr .9fr; gap:40px; align-items:center; min-height:85vh; }
.hero-copy--left{ max-width:640px; padding:120px 0 140px; }
.hero-copy--left .lead{ color:var(--muted); }

.hero-image-right{display:flex; justify-content:flex-end; margin:0;}
.hero-image-right img {
  position: relative;
  max-width:360px;
  width:100%;
  height:auto;
  border-radius: 20px;
  background: #7d7d7d;
  display: block;
  --hero-img-scale: 1;
  --hero-img-y: 0%;
  transform: translateY(var(--hero-img-y)) scale(var(--hero-img-scale));
  transform-origin: center;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.hero-image-right img:hover {
  box-shadow:
    inset 0 0 100px rgba(0,0,0,0.18),
    0 20px 45px rgba(0,0,0,0.1);
  --hero-img-scale: 1.02;
}
:root[data-theme="dark"] .hero-photo-layer{
  background:
    linear-gradient(90deg, rgba(16,19,22,0.85) 0%, rgba(16,19,22,0.7) 35%, rgba(16,19,22,0.35) 65%, rgba(16,19,22,0.2) 100%),
    linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(0,0,0,0.28) 100%),
    linear-gradient(180deg, rgba(15,17,20,0) calc(100% - 220px), rgba(15,17,20,0.65) 100%);
}
:root[data-theme="dark"] .hero-image-right img{
  background:var(--card-strong);
  box-shadow:0 18px 36px rgba(0,0,0,0.32);
}

.hero:not(.hero--light):not(.hero--photo)::after{ /* Bottom fade for dark image hero */
  content:""; position:absolute; left:0; right:0; bottom:0; height:200px;
  background:linear-gradient(to bottom, rgba(11,13,18,0) 0%, var(--bg) 100%);
  pointer-events:none;
}
.hero:not(.hero--light):not(.hero--photo)::before{ /* Top blur for dark image hero */
  content:""; position:absolute; left:0; right:0; top:0; height:200px;
  background:linear-gradient(to top, rgba(11,13,18,0) 20%, rgba(11,13,18,0.6) 80%, var(--bg) 100%);
  backdrop-filter: blur(12px); pointer-events:none;
}

.hero-content{ position:relative; text-align:left; padding:0; }
.hero h1{ font-size:clamp(38px,6.3vw,60px); margin:0 0 12px }

.lead{font-size:clamp(18px,2.5vw,24px); color:var(--fg); margin:0 0 24px}
.btn{
  display:inline-block; padding:12px 18px; border-radius:10px;
  background:var(--brand); color:#fff; font-weight:700; text-decoration:none; border:1px solid var(--brand); cursor:pointer;
  box-shadow:0 6px 20px rgba(110,139,126,0.25);
}
.btn:hover{ background:var(--brand-700); border-color:var(--brand-700); }
.btn:focus-visible{
  outline:2px solid var(--brand);
  outline-offset:3px;
  box-shadow:0 0 0 3px rgba(110,139,126,0.25);
}
:root[data-theme="dark"] .btn{
  background:var(--brand-700);
  border-color:var(--brand-700);
  box-shadow:0 4px 12px rgba(0,0,0,0.35);
}
:root[data-theme="dark"] .btn:hover{
  background:var(--brand);
  border-color:var(--brand);
}

.section{
  padding:80px clamp(20px, 4vw, 48px);
}

/* Legal/Info pages: match body text tone with main site */
.legal-main{
  color:var(--fg);
}
.legal-main p,
.legal-main li,
.legal-main span,
.legal-main small,
.legal-main label{
  color:var(--muted);
  line-height:1.6;
}
.legal-main h1,
.legal-main h2,
.legal-main h3,
.legal-main strong{
  color:var(--fg);
}
.legal-main a{
  color:var(--brand);
}
.legal-main a:hover,
.legal-main a:focus-visible{
  color:var(--brand-700);
}

.split{display:grid; grid-template-columns:1.1fr .9fr; gap:40px; align-items:center}
.split img{width:100%; height:auto; border-radius:var(--radius); display:block}

.about-layout{gap:2rem; align-items:flex-start; grid-template-columns:minmax(260px,360px) 1fr;}
.about-layout{
  width:100%;
  margin:0 auto;
}
.about-layout__media{display:flex; justify-content:flex-end;}
.about-layout__figure{width:100%; max-width:360px; margin:0;}
.about-layout__content{min-width:280px;}

#about p {
  font-family: "Urbanist", "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.6;
}

.cards{
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:20px;
  margin-top:20px;
}
.card{
  background:var(--card); border:1px solid var(--border);
  border-radius:var(--radius); padding:20px;
  font-family: "Urbanist", "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.6;
}

/* Projekte & Erfolge */
.projects-grid .card p,
.projects-grid .card ul,
.projects-grid .card li {
  margin: 0 0 10px;
  font-weight: 400;
  font-family: "Urbanist", "Helvetica Neue", Arial, sans-serif;
  color: var(--muted);
  line-height: 1.6;
}
.projects-grid .card h3 {
  font-family: "Urbanist", "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  color: var(--fg);
  margin: 12px 0;
}

/* Bullets im Highlight-Bereich passend einfärben und einrücken */
.projects-grid .card ul{
  list-style: disc;
  padding-left: 1.2rem; /* saubere Einrückung */
  margin-left: 0;
}
.projects-grid .card li{
  margin: 0 0 8px 0;
}
.projects-grid .card li::marker{
  color: var(--muted);      /* gleiche helle Farbe wie der Text */
  font-size: 0.9em;         /* unauffälligerer Bullet-Point */
  font-weight: 400;
}
.projects-grid .metrics{
  display:grid;
  gap:6px;
}
.image-credit{
  margin-top:8px;
  font-size:0.88rem;
  color:var(--muted);
}
.image-credit a{
  color:inherit;
  text-decoration:underline;
}

#about.section{
  padding-bottom:56px;
}

#timeline.section{
  padding-top:56px;
  padding-bottom:72px;
}

#highlights.section{
  padding-top:48px;
  padding-bottom:56px;
}

#contact.section{
  padding-top:48px;
  padding-bottom:48px;
}

.link-professional{
  display:inline-flex;
  align-items:center;
  gap:0.35rem;
  padding:0.18rem 0.5rem;
  border-radius:6px;
  border:1px solid rgba(10,102,194,0.12);
  color:#0a66c2;
  text-decoration:none;
  font-weight:600;
  transition:background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.link-professional:hover{
  background:rgba(10,102,194,0.08);
  border-color:rgba(10,102,194,0.35);
  color:#094b92;
}
.link-professional:focus-visible{
  outline:2px solid rgba(10,102,194,0.4);
  outline-offset:2px;
  background:rgba(10,102,194,0.08);
  border-color:rgba(10,102,194,0.35);
}

.projects-grid .card img{
  width:100%;
  height:auto;
  border-radius:12px;
  display:block;
  margin-bottom:12px;
  box-shadow:0 8px 20px rgba(0,0,0,0.06);
  background:var(--card-strong);
}

.timeline{
  display:flex;
  gap:16px;
  overflow-x:auto;
  padding:6px 2px 14px;
  margin:0;
  list-style:none;
  scroll-snap-type:x mandatory;
  -webkit-overflow-scrolling: touch;
}
.timeline::-webkit-scrollbar{
  height:6px;
}
.timeline::-webkit-scrollbar-thumb{
  background:rgba(0,0,0,0.18);
  border-radius:999px;
}
.timeline-card{
  width:clamp(220px, 72vw, 320px);
  min-width:220px;
  max-width:320px;
  scroll-snap-align:start;
  background:var(--card);
  border:1px solid var(--border);
  border-radius:14px;
  padding:18px 16px;
  display:grid;
  gap:10px;
  box-shadow:0 10px 24px rgba(0,0,0,0.06);
}
.timeline-card h3{
  margin:0;
  color:var(--fg);
  font-size:clamp(18px, 2.8vw, 21px);
  line-height:1.3;
  word-break:break-word;
  hyphens:auto;
}
.timeline-card p{
  margin:0;
  color:var(--muted);
  line-height:1.55;
  font-size:clamp(14.5px, 2.6vw, 16px);
  word-break:break-word;
}
.timeline-card__header{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
.timeline-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:4px 10px;
  border-radius:999px;
  background:rgba(110,139,126,0.15);
  border:1px solid rgba(110,139,126,0.35);
  color:var(--fg);
  font-weight:700;
  font-size:0.82rem;
}
.timeline-tag{
  display:inline-flex;
  align-items:center;
  padding:3px 9px;
  border-radius:999px;
  background:var(--bg-soft);
  color:var(--muted);
  font-weight:600;
  font-size:0.8rem;
}
:root[data-theme="dark"] .timeline-card{
  box-shadow:0 10px 24px rgba(0,0,0,0.28);
}
:root[data-theme="dark"] .timeline-badge{
  background:rgba(140,195,170,0.2);
  border-color:rgba(140,195,170,0.35);
  color:var(--fg);
}
:root[data-theme="dark"] .timeline-tag{
  background:#1c2227;
  color:var(--muted);
}

@media (min-width: 900px){
  .timeline{
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(220px, 1fr));
    gap:20px;
    overflow:visible;
    scroll-snap-type:none;
    padding:0;
  }
  .timeline-card{
    width:100%;
    max-width:none;
    min-width:0;
  }
}

.card-horizontal{
  display:grid;
  grid-template-columns:minmax(220px,320px) 1fr;
  gap:20px;
  align-items:center;
}
.card-horizontal img{
  width:100%;
  max-width:100%;
  height:auto;
  border-radius:12px;
  display:block;
  margin-bottom:0;
  align-self:center;
  justify-self:center;
  object-fit:cover;
}
.card-horizontal__media{
  grid-column:2;
  margin:0;
}
.card-horizontal__media img{
  width:100%;
  height:auto;
  border-radius:12px;
  object-fit:cover;
  display:block;
}
.card-horizontal__content{
  grid-column:2;
  align-self:start;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.card-horizontal__content h3{
  margin:0;
}
.card-horizontal__content p{
  margin:0;
}
.card-horizontal__content ul{
  margin:0;
  padding-left:1.2rem;
}
.card-horizontal--projects{
  grid-template-columns:minmax(0, 1.8fr) minmax(220px, 1fr);
  align-items:stretch;
}
.card-horizontal--projects .card-horizontal__content{
  grid-column:1;
}
.card-horizontal--projects .card-horizontal__media{
  grid-column:2;
  position:relative;
  border-radius:var(--radius);
  overflow:hidden;
  margin:0;
  display:flex;
  align-items:stretch;
  justify-self:end;
  width:100%;
  max-width:clamp(240px, 32vw, 420px);
  min-width:220px;
  aspect-ratio:3 / 4;
}
.card-horizontal--projects .card-horizontal__media img{
  height:100%;
  border-radius:inherit;
  flex:1;
}
.card.card-horizontal--split{
  padding:18px;
}
.card-horizontal--split{
  grid-template-columns:minmax(0, 1.15fr) minmax(420px, 1fr);
  gap:20px;
  align-items:start;
}
.card-horizontal__copy{
  display:flex;
  flex-direction:column;
  gap:10px;
  max-width:none;
}
.card-horizontal__copy h3{
  margin:0;
}
.card-horizontal__copy p{
  margin:0;
  line-height:1.55;
}
.card-certifications.card-certifications--compact{
  align-self:stretch;
  width:100%;
  min-width:0;
  box-sizing:border-box;
  padding:16px 18px 18px;
  background:var(--bg-soft);
  border-radius:14px;
  gap:10px;
  margin-top:0;
  box-shadow:none;
  position:relative;
  overflow:hidden;
}
.card-certifications.card-certifications--compact::before{
  content:"";
  position:absolute;
  inset:-40% -40% auto auto;
  width:160px;
  height:160px;
  background:radial-gradient(circle, rgba(110,139,126,0.12) 0%, rgba(110,139,126,0) 65%);
  opacity:0.8;
  pointer-events:none;
}
.card-certifications--compact .badge-row{
  display:flex;
  align-items:center;
  gap:10px;
  color:var(--muted);
  font-weight:700;
  font-size:0.72rem;
  letter-spacing:0.12em;
  text-transform:uppercase;
}
.card-certifications--compact .badge-row svg{
  width:18px;
  height:18px;
  color:var(--brand-700);
  flex-shrink:0;
}
.card-certifications--compact .card-certifications__label{
  font-size:0.9rem;
  color:var(--fg);
  letter-spacing:0.05em;
  font-weight:700;
  font-family:"Urbanist", "Helvetica Neue", Arial, sans-serif;
}
.card-certifications--compact .card-certifications__list{
  display:flex;
  flex-direction:column;
  gap:6px;
}
.card-certifications--compact .card-certifications__list a{
  display:inline-flex;
  align-items:center;
  justify-content:flex-start;
  padding:0;
  border:none;
  background:none;
  border-radius:0;
  font-weight:600;
  line-height:1.45;
  gap:0.65rem;
  position:relative;
  font-family:"Urbanist", "Helvetica Neue", Arial, sans-serif;
}
.card-certifications--compact .card-certifications__list a:hover{
  background:none;
  border:none;
  transform:none;
  text-decoration:none;
}
.card-certifications--compact .card-certifications__list a:hover .cert-title{
  text-decoration:underline;
}
.card-certifications--compact .card-certifications__list a:focus-visible{
  outline-offset:2px;
}
.card-certifications--compact .cert-tag{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:4px 10px;
  border-radius:999px;
  font-size:0.68rem;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:0.08em;
  line-height:1;
  border:1px solid transparent;
  transition:transform 0.2s ease;
}
.card-certifications--compact .cert-title{
  display:flex;
  align-items:center;
  gap:0.24rem;
  flex:1 1 auto;
  flex-wrap:wrap;
  min-width:0;
  white-space:normal;
}
.card-certifications--compact .card-certifications__list a:hover .cert-tag{
  transform:scale(1.08);
}
.card-certifications--compact .cert-title svg{
  width:14px;
  height:14px;
  flex-shrink:0;
  margin-left:4px;
}
.card-certifications--compact .cert-tag--aws{
  background:rgba(255,153,0,0.15);
  border-color:rgba(255,153,0,0.28);
  color:#8a4300;
}
.card-certifications--compact .cert-tag--coursera{
  background:rgba(24, 84, 52, 0.18);
  border-color:rgba(24, 84, 52, 0.36);
  color:#16402a;
}
.card-certifications--compact .cert-tag--microsoft{
  background:rgba(214, 162, 23, 0.18);
  border-color:rgba(214, 162, 23, 0.34);
  color:#7c5900;
}
.card-certifications--compact .cert-tag--databricks{
  background:rgba(240,86,59,0.16);
  border-color:rgba(240,86,59,0.28);
  color:#c43d20;
}
.card-certifications--compact .cert-tag--linkedin{
  background:rgba(10, 102, 194, 0.18);
  border-color:rgba(10, 102, 194, 0.35);
  color:#0A66C2;
}
:root[data-theme="dark"] .card-certifications--compact .cert-tag--aws{
  color:#ffd28a;
  background:rgba(255,153,0,0.24);
  border-color:rgba(255,153,0,0.46);
}
:root[data-theme="dark"] .card-certifications--compact .cert-tag--coursera{
  color:#8eedc1;
  background:rgba(24, 84, 52, 0.32);
  border-color:rgba(24, 84, 52, 0.58);
}
:root[data-theme="dark"] .card-certifications--compact .cert-tag--microsoft{
  color:#ffe08a;
  background:rgba(214, 162, 23, 0.3);
  border-color:rgba(214, 162, 23, 0.58);
}
:root[data-theme="dark"] .card-certifications--compact .cert-tag--databricks{
  color:#ffb29c;
  background:rgba(240,86,59,0.28);
  border-color:rgba(240,86,59,0.5);
}
:root[data-theme="dark"] .card-certifications--compact .cert-tag--linkedin{
  color:#8ec8ff;
  background:rgba(10, 102, 194, 0.28);
  border-color:rgba(10, 102, 194, 0.5);
}
.card-certifications--compact .card-certifications__list a svg{
  width:14px;
  height:14px;
  flex-shrink:0;
}
.visually-hidden{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}
.card-certifications{
  margin-top:8px;
  padding:12px 14px;
  background:var(--card);
  border:1px solid var(--border);
  border-radius:12px;
  display:flex;
  flex-direction:column;
  gap:10px;
  color:var(--fg);
  box-shadow:0 10px 20px rgba(0,0,0,0.03);
}
.card-certifications__label{
  font-size:0.85rem;
  font-weight:600;
  letter-spacing:0.04em;
  text-transform:uppercase;
  color:var(--muted);
}
.card-certifications__list{
  margin:0;
  padding:0;
  list-style:none;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.card-certifications__list li{
  margin:0;
  list-style:none;
}
.card-certifications__list a{
  display:inline-flex;
  align-items:center;
  padding:6px 12px;
  border-radius:999px;
  border:1px solid rgba(110,139,126,0.28);
  background:rgba(110,139,126,0.12);
  color:inherit;
  text-decoration:none;
  font-weight:600;
  font-size:0.9rem;
  transition:border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}
.card-certifications__list a:hover{
  background:rgba(110,139,126,0.2);
  border-color:var(--brand);
  transform:translateY(-1px);
}
.card-certifications__list a:focus-visible{
  outline:2px solid var(--brand);
  outline-offset:2px;
}
.card-cloud{
  display:grid;
  grid-template-columns:minmax(240px, 42%) minmax(0, 1fr);
  gap:28px;
  padding:28px;
  background:linear-gradient(145deg, rgba(255,255,255,0.92), rgba(247,243,239,0.66));
  border:1px solid rgba(230,224,218,0.75);
  border-radius:var(--radius);
  box-shadow:0 22px 38px rgba(74, 94, 84, 0.12);
  align-items:stretch;
}
.card-cloud__media{
  position:relative;
  height:100%;
}
.card-cloud__figure{
  margin:0;
  position:relative;
  width:100%;
  height:100%;
  border-radius:22px;
  overflow:hidden;
  background:#d2d9d2;
  box-shadow:0 18px 32px rgba(74, 94, 84, 0.18);
  display:block;
}
.card-cloud__figure::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg, rgba(10,11,12,0) 35%, rgba(10,11,12,0.22) 100%);
  mix-blend-mode:multiply;
  pointer-events:none;
}
.card-cloud__figure img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.card-cloud__overlay{
  position:absolute;
  inset:auto 0 0 0;
  padding:18px 20px;
  background:linear-gradient(0deg, rgba(29,37,34,0.68) 0%, rgba(29,37,34,0.12) 85%, rgba(29,37,34,0) 100%);
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.card-cloud__stack{
  margin:0;
  padding:0;
  list-style:none;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.card-cloud__stack li{
  padding:6px 12px;
  border-radius:999px;
  background:rgba(255,255,255,0.18);
  border:1px solid rgba(255,255,255,0.38);
  color:#fff;
  font-weight:600;
  font-size:0.82rem;
  letter-spacing:0.02em;
  text-transform:uppercase;
}
.card-cloud__main{
  display:grid;
  gap:18px;
  align-content:start;
}
.card-cloud__header{
  display:grid;
  gap:6px;
}
.card-cloud__eyebrow{
  font-size:0.8rem;
  letter-spacing:0.08em;
  text-transform:uppercase;
  font-weight:700;
  color:var(--brand-700);
}
.card-cloud__main p{
  margin:0;
  color:var(--muted);
}
:root[data-theme="dark"] .card-cloud{
  background:linear-gradient(145deg, rgba(30,34,38,0.95), rgba(22,26,29,0.82));
  border:1px solid rgba(60,70,78,0.55);
  box-shadow:0 22px 38px rgba(0,0,0,0.35);
}
:root[data-theme="dark"] .card-cloud__figure{
  background:#13181c;
  box-shadow:0 18px 32px rgba(0,0,0,0.38);
}
:root[data-theme="dark"] .card-cloud__overlay{
  background:linear-gradient(0deg, rgba(10,12,14,0.82) 0%, rgba(10,12,14,0.2) 85%, rgba(10,12,14,0) 100%);
}
:root[data-theme="dark"] .card-cloud__stack li{
  background:rgba(255,255,255,0.08);
  border:1px solid rgba(255,255,255,0.16);
  color:#f2f3f4;
}
.card-cloud__main{
  display:grid;
  gap:18px;
  align-content:start;
}
.card-cloud__header{
  display:grid;
  gap:6px;
}
.card-cloud__eyebrow{
  font-size:0.8rem;
  letter-spacing:0.08em;
  text-transform:uppercase;
  font-weight:700;
  color:var(--brand-700);
}
.card-cloud__main p{
  margin:0;
  color:var(--muted);
}
.card-certifications--cloud{
  margin-top:0;
  padding:14px 16px;
  background:var(--card);
  border:1px dashed rgba(110,139,126,0.38);
  box-shadow:none;
}
.card-certifications--cloud .card-certifications__label{
  color:var(--brand-700);
  letter-spacing:0.06em;
}
.card-certifications--cloud .card-certifications__list{
  gap:10px;
}
.card-certifications--cloud .card-certifications__list a{
  background:rgba(110,139,126,0.16);
  border-color:rgba(110,139,126,0.36);
}
.card-certifications--cloud .card-certifications__list a:hover{
  background:rgba(110,139,126,0.24);
}
.card-certifications--cloud .card-certifications__list a:focus-visible{
  outline-color:var(--brand-700);
}
.cards .card-horizontal{
  grid-column:1 / -1;
}

.cards .card-cloud{
  grid-column:1 / -1;
}

@media (max-width: 1100px) {
  .cards{
    grid-template-columns:repeat(2, minmax(0,1fr));
  }
  body{
    font-size:16px;
  }
  .container{
    padding:0 clamp(24px, 6vw, 40px);
  }
  .section{
    padding:72px clamp(24px, 5vw, 40px);
  }
  .hero-copy--left{
    padding:88px 0 96px;
    max-width:560px;
  }
  .cards{
    gap:24px;
  }
  .card{
    padding:18px;
  }
  .projects-grid .card h3{
    font-size:1.22rem;
  }
  .projects-grid .card p,
  .projects-grid .card li{
    font-size:0.98rem;
  }
  .about-layout{
    gap:28px;
    grid-template-columns:minmax(240px,340px) 1fr;
  }
}

@media (max-width: 900px) {
  .card-horizontal--projects{
    grid-template-columns:1fr;
  }
  .card-horizontal--projects .card-horizontal__content,
  .card-horizontal--projects .card-horizontal__media{
    grid-column:1;
  }
  .card-horizontal--projects .card-horizontal__media{
    width:clamp(220px, 68vw, 340px);
    margin:18px auto 0;
    aspect-ratio:3 / 4;
    min-width:0;
  }
  .card-horizontal--projects .card-horizontal__media img{
    height:100%;
  }
}

@media (max-width: 720px) {
  :root{
    --header-height:60px;
  }
  .cards{
    grid-template-columns:1fr;
    gap:28px;
  }
  .card-horizontal--split{
    grid-template-columns:1fr;
    gap:16px;
  }
  .card-certifications--compact{
    width:100%;
  }
  body{
    font-size:15.5px;
  }
  .container{
    padding:0 clamp(22px, 7vw, 36px);
  }
  .section{
    padding:58px clamp(24px, 8vw, 38px);
  }
  .hero-copy--left{
    padding:64px 0 72px;
    max-width:520px;
  }
  .hero-photo-layout{
    gap:28px;
    min-height:72vh;
  }
  .hero-image-right{
    justify-content:center;
  }
  .site-header nav{
    flex-wrap:wrap;
    justify-content:space-between;
    gap:10px;
    height:auto;
    padding:12px 0;
  }
  .nav-right{
    width:auto;
    flex-wrap:nowrap;
    justify-content:flex-start;
  }
  .nav-links{
    display:flex;
    flex-wrap:nowrap;
    gap:12px 14px;
    margin-left:0;
    width:auto;
    justify-content:flex-start;
    padding-left:6px;
  }
  .nav-links a{
    margin:0;
    font-size:0.97rem;
  }
  .brand{
    flex-basis:100%;
    padding-left:8px;
  }
  .card{
    padding:18px;
  }
  .projects-grid .card h3{
    font-size:1.15rem;
  }
  .projects-grid .card p,
  .projects-grid .card li{
    font-size:0.95rem;
    line-height:1.6;
  }
  .projects-grid .metrics{
    gap:8px;
  }
  .card-horizontal__content{
    gap:12px;
  }
  .card-horizontal__content ul{
    padding-left:1rem;
  }
  .card-certifications--compact{
    padding:12px;
  }
  .contact-form__spacer{
    height:2rem;
  }
  .contact-form .grid{
    grid-template-columns:1fr;
    gap:14px;
  }
  .contact-form label span{
    margin:6px 0;
  }
  .about-layout{
    gap:24px;
    grid-template-columns:1fr;
  }
  .about-layout__media{
    justify-content:center;
  }
  .about-layout__figure{
    max-width:300px;
    margin:0 auto;
  }
  .projects-grid .card > img,
  .card.card-horizontal > img{
    max-width:88%;
    margin:0 auto 14px;
    display:block;
  }
}

@media (max-width: 900px) {
  .card-cloud{
    grid-template-columns:1fr;
    padding:24px;
  }
  .card-cloud__media{
    min-height:260px;
  }
  .card-cloud__overlay{
    padding:16px;
  }
  .card-horizontal,
  .card-horizontal--split{
    display:block;
    grid-template-columns:none;
  }
  .card-horizontal img{
    width:100%;
    max-width:520px;
    margin:0 auto;
  }
  .card-horizontal__content,
  .card-horizontal__copy{
    margin-top:16px;
  }
  .card-horizontal--projects .card-horizontal__media,
  .card-horizontal--projects .image-credit{
    display:none;
  }
  .card-horizontal__content{
    gap:10px;
  }
  .card-horizontal--split .card-horizontal__copy{
    margin-top:0;
  }
  .card-horizontal--split .card-certifications{
    margin-top:16px;
    min-width:0;
  }
}

@media (max-width: 640px) {
  .card-cloud{
    gap:22px;
    padding:22px;
  }
  .card-cloud__stack li{
    font-size:0.78rem;
    padding:5px 10px;
  }
  .card-certifications--cloud{
    padding:12px 14px;
  }
  .card-certifications--compact{
    padding:14px 16px;
  }
  .card-certifications--compact .card-certifications__list{
    gap:10px;
  }
  .card-certifications--compact .card-certifications__list a{
    display:flex;
    align-items:flex-start;
    flex-direction:column;
    gap:0.35rem;
  }
  .card-certifications--compact .cert-tag{
    align-self:flex-start;
  }
  .card-certifications--compact .cert-title{
    font-size:0.92rem;
    width:100%;
  }
}

@media (max-width: 540px) {
  body{
    font-size:15px;
  }
  .section{
    padding:52px clamp(22px, 9vw, 34px);
  }
  .hero-copy--left{
    padding:52px 0 60px;
    max-width:100%;
  }
  .hero--photo{
    min-height:70vh;
  }
  .hero-photo-layout{
    gap:24px;
    min-height:60vh;
  }
  .hero-image-right img{
    max-width:280px;
  }
  .hero .lead{
    font-size:1.05rem;
  }
  .card{
    padding:16px;
  }
  .projects-grid .card h3{
    font-size:1.08rem;
  }
  .projects-grid .card p,
  .projects-grid .card li{
    font-size:0.92rem;
  }
  .hero .btn{
    padding:10px 16px;
    font-size:0.95rem;
  }
  .contact-form .grid{
    gap:14px;
  }
  .form-note{
    font-size:14px;
  }
  .site-header nav{
    gap:8px;
  }
  .nav-links{
    gap:10px 16px;
  }
  .nav-links a{
    font-size:0.9rem;
  }
  .brand{
    font-size:1.05rem;
  }
  .card-certifications__list{
    gap:6px;
  }
  .card-certifications__list a{
    font-size:0.85rem;
    padding:5px 10px;
  }
  .projects-grid .metrics{
    gap:6px;
  }
  .card-horizontal__content ul{
    padding-left:0.9rem;
  }
  .card-certifications--compact{
    padding:10px;
    min-width:0;
  }
  .card-certifications--compact .card-certifications__list a{
    width:100%;
  }
  .card-certifications--compact .cert-title{
    word-break:break-word;
  }
  .about-layout__figure{
    max-width:260px;
    margin:0 auto;
  }
}

@media (max-width: 420px) {
  :root{
    --header-height:56px;
  }
  body{
    font-size:14.5px;
  }
  .container{
    padding:0 clamp(20px, 8vw, 32px);
  }
  .section{
    padding:48px clamp(20px, 11vw, 32px);
  }
  .hero-copy--left{
    padding:48px 0 56px;
  }
  .hero--photo{
    min-height:64vh;
  }
  .hero-photo-layout{
    min-height:56vh;
    gap:20px;
  }
  .hero-image-right img{
    max-width:240px;
  }
  .hero .btn{
    padding:9px 14px;
    font-size:0.9rem;
  }
  .hero .lead{
    font-size:1rem;
  }
  .projects-grid .card{
    padding:15px;
  }
  .cards{
    gap:24px;
  }
  .projects-grid .card h3{
    font-size:1.02rem;
  }
  .projects-grid .card p,
  .projects-grid .card li{
    font-size:0.88rem;
  }
  .projects-grid .card ul{
    padding-left:1rem;
  }
  .card-certifications__list{
    gap:5px;
  }
  .card-certifications__list a{
    font-size:0.82rem;
    padding:4px 9px;
  }
  .projects-grid .metrics{
    gap:5px;
  }
  .contact-form textarea{
    min-height:160px;
  }
  .contact-form,
  #contact .reveal-up,
  #contact p,
  #contact .contact-form{
    width:100%;
  }
  #contact .grid,
  .contact-form label,
  .contact-form textarea,
  .contact-form input{
    width:100%;
  }
  .form-note{
    font-size:13.5px;
  }
}

.contact-form{
  margin-top:12px;
  width:100%;
  max-width:none;
  margin-left:0;
  margin-right:0;
  padding:clamp(12px, 2vw, 20px) 0;
  border-radius:var(--radius);
}
.contact-form .grid{display:grid; grid-template-columns:1fr 1fr; gap:12px}
label span{display:block; margin:6px 0}
input, textarea{
  width:100%; padding:12px 14px; border-radius:12px; border:1px solid var(--border);
  background:var(--card); color:var(--muted); outline:none;
}
input:focus, textarea:focus{border-color:var(--brand)}
.form-note{color:var(--muted); font-size:15px; margin-top:0.25rem; margin-bottom:0;}
.form-field-error{
  min-height:1rem;
  font-size:0.9rem;
  color:var(--danger);
  margin-top:2px;
}
input:not([type="checkbox"])[aria-invalid="true"],
textarea[aria-invalid="true"]{
  border-color:var(--danger);
  box-shadow:0 0 0 1px rgba(192,75,75,0.35);
}
.form-checkbox input[aria-invalid="true"]{
  outline:2px solid var(--danger);
  outline-offset:2px;
  border-color:var(--danger);
}
.form-checkbox-group{
  margin:0.25rem 0 0;
}
.form-checkbox{
  display:flex;
  gap:0.75rem;
  align-items:center;
  font-size:0.95rem;
  color:var(--muted);
}
.form-checkbox span{
  flex:1;
  margin:0;
}
.form-checkbox input{
  width:auto;
  margin-top:0;
}
.form-checkbox a{
  color:var(--fg);
  text-decoration:underline;
}
.form-checkbox a:hover{
  color:var(--brand);
}
.form-feedback{
  min-height:0.6rem;
  margin-top:0.35rem;
  font-size:0.95rem;
  font-weight:600;
  color:var(--brand);
}
.form-feedback[data-variant="error"]{color:var(--danger);}
.form-feedback[data-variant="success"]{color:var(--brand);}
.contact-form textarea{resize:vertical;}
.contact-form__spacer{height:0.75rem;}

.cookie-banner{
  position:fixed;
  bottom:24px;
  left:24px;
  right:24px;
  z-index:140;
  display:flex;
  gap:20px;
  align-items:flex-start;
  padding:20px 24px;
  border-radius:var(--radius);
  background:var(--cookie-surface);
  border:1px solid var(--border);
  box-shadow:0 20px 40px rgba(0,0,0,0.12);
  max-width:960px;
  margin:0 auto;
}
.cookie-banner[hidden]{display:none;}
.cookie-banner__copy h2{
  margin:0 0 8px;
  font-size:1.1rem;
  color:var(--fg);
}
.cookie-banner__copy p{
  margin:0;
  color:var(--muted);
  line-height:1.5;
  font-size:0.95rem;
}
.cookie-banner__actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.btn--subtle{
  background:transparent;
  color:var(--brand);
  border-color:var(--brand);
  box-shadow:none;
}
.btn--subtle:hover{
  background:rgba(110,139,126,0.1);
}
:root[data-theme="dark"] .btn--subtle{
  color:#fff;
  border-color:var(--brand-700);
}

@media (max-width:640px){
  .cookie-banner{
    flex-direction:column;
    padding:18px;
    gap:16px;
    bottom:16px;
    left:16px;
    right:16px;
  }
  .cookie-banner__actions{
    width:100%;
    justify-content:flex-start;
  }
  .cookie-banner__actions .btn{
    flex:1 1 auto;
    text-align:center;
  }
}

#contact p,
#contact label,
#contact span {
  color: var(--muted);
}

.site-footer{border-top:1px solid var(--border); padding:24px 0; background:var(--bg-soft); color:var(--muted); flex-shrink:0;}
.site-footer__legal{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:6px;
  text-align:center;
  font-size:15px;
  padding-right:0;
}
.site-footer__text{display:flex; flex-direction:column; align-items:center; gap:6px;}
.site-footer__copy{display:flex; align-items:center; gap:0.35rem; white-space:nowrap;}
.site-footer__links{display:flex; align-items:center; gap:0.5rem; color:inherit;}
.site-footer__links span{color:var(--muted);}
.site-footer a{color:inherit; text-decoration:none; font-weight:500;}
.site-footer a:hover{color:var(--brand);}
.site-footer a:focus-visible{outline:2px solid var(--brand); outline-offset:2px;}

.reveal-up{
  opacity:0;
  transform:translateY(16px);
  will-change: transform, opacity;
}

@media (prefers-reduced-motion: reduce){
  .reveal-up{
    opacity:1;
    transform:none;
    transition:none;
  }
}

/* Updated hero-image-right styles with Option 1 (dezente Vignette) */
@media (max-width:900px) and (min-width:721px){
  .split{grid-template-columns:1fr}
  .contact-form .grid{grid-template-columns:1fr}
  .hero-photo-layout{
    grid-template-columns:minmax(0,1.05fr) minmax(0,0.95fr);
    align-items:center;
    gap:32px;
  }
  .hero-copy--left{
    padding:72px 0 84px;
    max-width:520px;
  }
  .about-layout__media{justify-content:center;}
  .about-layout__content{min-width:0;}
  .card-horizontal{
    grid-template-columns:1fr;
  }
  .card-horizontal__content{
    grid-column:1;
  }
  .card-horizontal img{
    margin-bottom:12px;
  }
  .site-header nav{
    flex-wrap:wrap;
    gap:12px 18px;
    height:auto;
    padding:14px 0;
  }
  .nav-right{
    width:auto;
    flex-wrap:nowrap;
    justify-content:flex-start;
    gap:12px 16px;
  }
  .nav-links{
    display:flex;
    flex-wrap:nowrap;
    gap:12px 16px;
    margin-left:0;
    padding-left:8px;
    width:auto;
  }
.brand{
  flex-basis:100%;
}
}

/* Timeline overrides */
.timeline-section{
  display:flex;
  flex-direction:column;
  gap:24px;
}
.timeline-section__header{
  max-width:720px;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.timeline-section__lede{
  margin:0;
  color:var(--muted);
}
.timeline-rail{
  position:relative;
  --timeline-line-y: 55%;
  --marker-offset-base: clamp(20px, 4vw, 34px);
  --marker-offset: var(--marker-offset-base);
  padding:26px 18px 140px;
  border-radius:var(--radius);
  background:linear-gradient(180deg, var(--card) 0%, rgba(255,255,255,0.02) 100%);
  border:1px solid var(--border);
  overflow:visible;
  min-height:clamp(410px, 50vh, 540px);
}
.timeline-rail__line{
  position:absolute;
  left:24px;
  right:24px;
  top:var(--timeline-line-y);
  height:4px;
  background:linear-gradient(90deg, rgba(110,139,126,0.16) 0%, rgba(110,139,126,0.42) 50%, rgba(110,139,126,0.16) 100%);
  border-radius:999px;
  background-size:200% 100%;
  overflow:hidden;
}
.timeline-rail__line::before{
  content:"";
  position:absolute;
  left:var(--active-start, 0%);
  width:calc(var(--active-end, 0%) - var(--active-start, 0%));
  top:0;
  bottom:0;
  background:linear-gradient(90deg, var(--brand-700) 0%, var(--brand) 80%);
  border-radius:999px;
  transition:left 0.32s ease-out, width 0.32s ease-out, opacity 0.2s ease;
  opacity:1;
}
.timeline-rail__ranges{
  position:absolute;
  left:24px;
  right:24px;
  top:var(--timeline-line-y);
  height:0;
  pointer-events:none;
  display:none;
}
.timeline-range{
  position:absolute;
  height:8px;
  background:rgba(110,139,126,0.14);
  border:1px solid rgba(110,139,126,0.3);
  border-radius:999px;
  box-shadow:0 6px 12px rgba(0,0,0,0.04);
  transform:translateY(calc(-20px - (var(--range-row, 0) * 16px)));
  transition:background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, left 0.28s ease-out, width 0.28s ease-out;
}
.timeline-range.is-active{
  background:rgba(110,139,126,0.78);
  border-color:var(--brand-700);
  box-shadow:0 12px 22px rgba(0,0,0,0.14), 0 0 0 2px rgba(110,139,126,0.22);
  height:10px;
  transform:translateY(calc(-18px - (var(--range-row, 0) * 16px)));
}
:root[data-theme="dark"] .timeline-range{
  background:rgba(140,195,170,0.18);
  border-color:rgba(140,195,170,0.44);
  box-shadow:0 6px 12px rgba(0,0,0,0.32);
}
:root[data-theme="dark"] .timeline-range.is-active{
  background:rgba(140,195,170,0.82);
  border-color:rgba(140,195,170,0.95);
  box-shadow:0 12px 24px rgba(0,0,0,0.46), 0 0 0 2px rgba(140,195,170,0.28);
}
.timeline-rail__line::after{
  content:"";
  position:absolute;
  right:-12px;
  top:50%;
  transform:translateY(-50%);
  border-top:7px solid transparent;
  border-bottom:7px solid transparent;
  border-left:12px solid var(--brand-700);
  filter:drop-shadow(0 2px 6px rgba(0,0,0,0.08));
}
:root[data-theme="dark"] .timeline-rail__line::after{
  border-left-color:var(--brand);
  filter:drop-shadow(0 2px 6px rgba(0,0,0,0.4));
}
.timeline-rail__markers{
  position:absolute;
  inset:0;
  width:100%;
  box-sizing:border-box;
  padding:22px 28px 0;
}
.timeline-point{
  position:absolute;
  top:var(--timeline-line-y);
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
  align-items:center;
  transform:translate(-50%, calc(var(--marker-offset) + var(--stack-offset, 0px)));
}
.timeline-point__btn{
  appearance:none;
  background:none;
  border:none;
  cursor:pointer;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
  padding:0;
  color:inherit;
}
.timeline-point--stacked{
  gap:12px;
}
.timeline-point__dot{display:none;}
.timeline-point__btn:focus-visible{
  outline:2px solid var(--brand);
  outline-offset:6px;
  border-radius:12px;
}
.timeline-point__year{
  font-weight:700;
  font-size:1rem;
  line-height:1.2;
  color:#fff;
  letter-spacing:0.01em;
  margin:0;
  padding:10px 14px;
  border-radius:10px;
  background:var(--brand);
  border:1px solid var(--brand);
  box-shadow:0 2px 6px rgba(0,0,0,0.12);
  transition:transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.timeline-point__btn:hover .timeline-point__year,
.timeline-point__btn:focus-visible .timeline-point__year,
.timeline-point__btn[aria-current="true"] .timeline-point__year{
  background:var(--brand-700);
  border-color:var(--brand-700);
  color:#fff;
  transform:translateY(2px);
  box-shadow:0 4px 10px rgba(0,0,0,0.16);
}
:root[data-theme="dark"] .timeline-point__year{
  background:var(--brand-700);
  border-color:var(--brand-700);
  color:#fff;
  box-shadow:0 4px 10px rgba(0,0,0,0.3);
}
:root[data-theme="dark"] .timeline-point__btn:hover .timeline-point__year,
:root[data-theme="dark"] .timeline-point__btn:focus-visible .timeline-point__year,
:root[data-theme="dark"] .timeline-point__btn[aria-current="true"] .timeline-point__year{
  background:var(--brand);
  border-color:var(--brand);
  color:#fff;
  box-shadow:0 6px 14px rgba(0,0,0,0.34);
}
.timeline-card{
  position:absolute;
  top:var(--timeline-line-y);
  left:var(--card-x, 50%);
  --card-offset: clamp(164px, 22vh, 200px);
  top:calc(var(--timeline-line-y) - var(--card-offset));
  transform:translate(-50%, -8px) scale(0.96);
  transform-origin:center calc(100% + 6px);
  width:clamp(320px, 70vw, 860px);
  max-width:calc(100% - 48px);
  background:var(--card-strong);
  border:1px solid var(--border);
  border-radius:14px;
  padding:18px 18px 16px;
  box-shadow:0 25px 50px rgba(0,0,0,0.14);
  display:grid;
  gap:10px;
  transition:
    transform 0.6s cubic-bezier(0.18, 0.74, 0.25, 1.08),
    opacity 0.48s ease,
    box-shadow 0.48s ease;
  opacity:0;
  pointer-events:none;
  will-change:transform, opacity;
}
.timeline-card::before{
  content:"";
  position:absolute;
  inset:-8px;
  background:radial-gradient(circle at center, rgba(110,139,126,0.15), rgba(110,139,126,0));
  filter:blur(18px);
  opacity:0;
  transition:opacity 0.28s ease;
  pointer-events:none;
}
.timeline-card[data-state="visible"]{
  opacity:1;
  transform:translate(-50%, -14px) scale(1);
  pointer-events:auto;
}
.timeline-card[data-state="visible"]::before{
  opacity:1;
}
.timeline-card[data-state="hidden"],
.timeline-card[data-state="out"]{
  opacity:0;
  transform:translate(-50%, -26px) scale(0.94);
  box-shadow:0 16px 32px rgba(0,0,0,0.12);
  pointer-events:none;
}
.timeline-card__eyebrow{
  margin:0 0 4px;
  color:var(--muted);
  font-weight:600;
  letter-spacing:0.02em;
  text-transform:uppercase;
  font-size:0.85rem;
}
.timeline-card__title{
  margin:0 0 6px;
  font-size:1.05rem;
}
.timeline-card__copy{
  margin:0;
  color:var(--muted);
  line-height:1.45;
}
.timeline-card__stack{
  display:none;
  margin-top:6px;
  gap:10px;
}
.timeline-card__stack-item{
  padding:10px 12px;
  border-radius:12px;
  background:var(--card);
  border:1px solid var(--border);
  box-shadow:0 8px 18px rgba(0,0,0,0.06);
  display:grid;
  gap:4px;
}
.timeline-card__stack-label{
  margin:0;
  font-weight:700;
  color:var(--fg);
}
.timeline-card__stack-copy{
  margin:0;
  color:var(--muted);
  line-height:1.45;
}
.timeline-card[data-mode="multi"] .timeline-card__copy{
  display:none;
}
.timeline-card[data-mode="multi"] .timeline-card__stack{
  display:grid;
}
.timeline-card[data-mode="single"] .timeline-card__stack{
  display:none;
}
:root[data-theme="dark"] .timeline-rail{
  background:linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.02) 100%);
}
:root[data-theme="dark"] .timeline-card{
  box-shadow:0 24px 40px rgba(0,0,0,0.32);
}

.timeline-cards{
  display:none;
  margin-top:18px;
  gap:14px;
}
.timeline-card--mobile{
  background:var(--card-strong);
  border:1px solid var(--border);
  border-radius:12px;
  padding:14px 14px 12px;
  box-shadow:0 10px 20px rgba(0,0,0,0.06);
  display:flex;
  flex-direction:column;
  gap:6px;
}
.timeline-card--mobile__eyebrow{
  margin:0;
  font-weight:700;
  color:var(--brand);
  letter-spacing:0.02em;
}
.timeline-card--mobile__title{
  margin:0;
  font-size:1.05rem;
}
.timeline-card--mobile__text{
  margin:0;
  color:var(--muted);
  line-height:1.5;
}
.timeline-card--mobile__stack{
  display:grid;
  gap:10px;
  margin-top:6px;
}
.timeline-card--mobile__entry{
  padding:12px;
  border-radius:10px;
  border:1px solid var(--border);
  background:var(--card);
  display:grid;
  gap:6px;
}
.timeline-card--mobile__entry-label{
  margin:0;
  font-weight:700;
  color:var(--fg);
}

@media (max-width:720px){
  .timeline-rail{
    display:none;
  }
  .timeline-cards{
    display:grid;
  }
  .timeline-section__lede{
    display:none;
  }
}
