:root {
  --ink: #07090c;
  --ink-soft: #10151b;
  --paper: #eef1f2;
  --silver: #aeb8be;
  --muted: #8c979e;
  --ice: #a9dcf1;
  --line: rgba(214, 229, 235, .18);
  --layout: min(100% - 40px, 1360px);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body { margin: 0; background: var(--ink); color: var(--paper); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif; font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
.layout-width { width: var(--layout); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 10px 14px; background: var(--ice); color: var(--ink); transform: translateY(-150%); transition: transform .2s ease; }
.skip-link:focus { transform: translateY(0); }

.site-header { position: absolute; z-index: 20; top: 0; left: 0; display: flex; width: 100%; min-height: 70px; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid transparent; transition: background .35s ease, border-color .35s ease; }
.site-header-solid { position: relative; border-bottom-color: var(--line); background: var(--ink); }
.wordmark { display: flex; align-items: baseline; gap: 4px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.wordmark span { color: var(--ice); }
.wordmark i { margin-left: 6px; color: var(--silver); font-size: 9px; font-style: normal; font-weight: 500; letter-spacing: .15em; }
.header-actions { display: flex; align-items: center; gap: 16px; }
.language-switch { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 10px; letter-spacing: .08em; }
.language-button { padding: 5px 0; border: 0; background: none; cursor: pointer; }
.language-button.is-active { color: var(--paper); }
.menu-toggle { position: relative; display: grid; width: 36px; height: 32px; padding: 0; place-content: center; gap: 6px; border: 0; background: transparent; cursor: pointer; }
.menu-toggle span:not(.sr-only) { display: block; width: 19px; height: 1px; background: currentColor; transition: transform .25s var(--ease); }
.menu-toggle.is-open span:nth-of-type(2) { transform: translateY(3.5px) rotate(45deg); }
.menu-toggle.is-open span:nth-of-type(3) { transform: translateY(-3.5px) rotate(-45deg); }
.site-nav { position: absolute; top: calc(100% + 1px); right: 0; left: 0; display: grid; max-height: 0; overflow: hidden; background: rgba(7, 9, 12, .98); transition: max-height .35s var(--ease); }
.site-nav.is-open { max-height: 320px; border-bottom: 1px solid var(--line); }
.site-nav a { padding: 17px 20px; border-top: 1px solid var(--line); color: var(--silver); font-size: 13px; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--ice); }

.hero { position: relative; min-height: 100svh; overflow: hidden; background: #172b37; }
.hero-slides, .hero-slide, .hero-slide img, .hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-slide { margin: 0; opacity: 0; transition: opacity 1.2s var(--ease); }
.hero-slide.is-active { opacity: 1; }
.hero-slide img { object-fit: cover; object-position: center; transform: scale(1.04); transition: transform 7s linear; }
.hero-slide.is-active img { transform: scale(1); }
.hero-shade { background: linear-gradient(90deg, rgba(0, 0, 0, .58), rgba(0, 0, 0, .16) 62%, rgba(0, 0, 0, .3)), linear-gradient(0deg, rgba(0, 0, 0, .35), transparent 50%); }
.hero-content { position: relative; z-index: 2; display: flex; min-height: 100svh; padding-top: 28vh; flex-direction: column; align-items: flex-start; }
.eyebrow, .section-kicker { margin: 0 0 18px; color: var(--ice); font-size: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.hero h1 { max-width: 620px; margin: 0; font-size: clamp(58px, 13vw, 172px); font-weight: 500; letter-spacing: -.065em; line-height: .8; }
.hero-subtitle { max-width: 230px; margin: 32px 0 26px; color: rgba(255, 255, 255, .86); font-size: 15px; line-height: 1.4; }
.text-link { display: inline-flex; gap: 12px; align-items: center; border-bottom: 1px solid var(--silver); padding: 0 0 7px; color: var(--paper); font-size: 13px; transition: border-color .2s ease, color .2s ease; }
.text-link b { color: var(--ice); font-size: 19px; font-weight: 400; line-height: 1; }
.text-link:hover, .text-link:focus-visible { border-color: var(--ice); color: var(--ice); }
.slider-controls { position: absolute; z-index: 3; bottom: 27px; left: 50%; display: flex; align-items: center; justify-content: space-between; transform: translateX(-50%); }
.slide-count { display: flex; align-items: center; gap: 8px; color: var(--paper); font-size: 10px; letter-spacing: .1em; }
.slide-count i { width: 22px; height: 1px; background: rgba(255, 255, 255, .5); }
.slider-buttons { display: flex; gap: 8px; }
.slider-button { display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid rgba(255,255,255,.36); border-radius: 50%; background: rgba(0,0,0,.15); cursor: pointer; transition: background .2s ease, border-color .2s ease; }
.slider-button:hover, .slider-button:focus-visible { border-color: var(--ice); background: rgba(169,220,241,.18); }

.intro-section { display: grid; gap: 30px; padding-top: 112px; padding-bottom: 112px; }
.intro-copy h2, .story-preview h2, .contact-section h2 { max-width: 720px; margin: 0; font-size: clamp(36px, 8vw, 88px); font-weight: 500; letter-spacing: -.055em; line-height: .98; }
.intro-copy p { max-width: 410px; margin: 28px 0 0; color: var(--silver); font-size: 17px; }
.story-preview { display: grid; background: var(--ink-soft); }
.story-preview-image { min-height: 60vh; }
.story-preview-image img { width: 100%; height: 100%; object-fit: cover; object-position: center; filter: grayscale(100%); }
.story-preview-content { display: flex; min-height: 55vh; padding: 64px 20px; flex-direction: column; align-items: flex-start; justify-content: center; }
.story-preview-content p:not(.section-kicker) { max-width: 420px; margin: 26px 0 34px; color: var(--silver); font-size: 17px; }
.contact-section { display: grid; gap: 28px; padding-top: 110px; padding-bottom: 110px; }
.contact-section h2 { max-width: 650px; }
.contact-link { display: block; width: max-content; max-width: 100%; margin-top: 24px; border-bottom: 1px solid var(--line); padding-bottom: 8px; color: var(--ice); font-size: clamp(18px, 3vw, 27px); overflow-wrap: anywhere; }
.contact-link:hover, .contact-link:focus-visible { border-color: var(--ice); }
.site-footer { display: flex; gap: 20px; justify-content: space-between; padding-top: 28px; padding-bottom: 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.site-footer p { margin: 0; }.site-footer div { display: flex; gap: 16px; }.site-footer a:hover, .site-footer a:focus-visible { color: var(--ice); }

.inner-page { background: var(--ink); }
.legal-main { min-height: calc(100vh - 140px); padding-top: 86px; padding-bottom: 100px; }
.legal-main h1 { margin: 0 0 68px; font-size: clamp(48px, 9vw, 108px); font-weight: 500; letter-spacing: -.06em; line-height: .9; }
.legal-grid { display: grid; gap: 44px; max-width: 820px; }
.legal-grid h2 { margin: 0 0 12px; color: var(--ice); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.legal-grid p { margin: 0; color: var(--silver); }.legal-grid a { border-bottom: 1px solid var(--silver); color: var(--paper); }

@media (min-width: 700px) {
  :root { --layout: min(100% - 96px, 1360px); }
  .site-header { min-height: 80px; padding: 19px 48px; }.site-nav { right: 48px; left: auto; width: 230px; }.hero-content { padding-top: 29vh; }
  .intro-section, .contact-section { grid-template-columns: minmax(160px, .8fr) 2fr; }.intro-section { padding-top: 150px; padding-bottom: 150px; }.contact-section { padding-top: 150px; padding-bottom: 150px; }
  .story-preview { grid-template-columns: 1.1fr .9fr; }.story-preview-image { min-height: 760px; }.story-preview-content { padding: 72px clamp(46px, 7vw, 124px); }
  .legal-grid { grid-template-columns: 1fr 1fr; column-gap: 90px; }
}
@media (min-width: 1100px) { .hero-content { padding-top: 32vh; }.site-header { padding-inline: 64px; }.site-nav { right: 64px; }.story-preview-content { padding-inline: clamp(70px, 9vw, 160px); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; } }

/* ============================================================
   MY STORY / WERDEGANG  — illustrated chronicle (story.html)
   ============================================================ */

/* -- Hero ---------------------------------------------------- */
.story-hero { position: relative; isolation: isolate; width: 100%; min-height: 72vh; padding-top: 108px; padding-bottom: 84px; padding-right: max(20px, calc((100% - var(--layout)) / 2)); padding-left: max(20px, calc((100% - var(--layout)) / 2)); overflow: hidden; background: var(--ink); }
.story-hero::before { position: absolute; inset: 0; z-index: 0; background: url("../images/story/entries/slide-9.jpg") center 42% / cover; filter: grayscale(14%) contrast(1.04) brightness(.82); transform: scale(1.06); animation: hero-drift 22s ease-in-out infinite alternate; content: ""; }
.story-hero::after { position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(7,9,12,.78), rgba(7,9,12,.24) 60%, rgba(7,9,12,.5)), linear-gradient(0deg, rgba(7,9,12,.9), transparent 46%); content: ""; }
.story-hero > * { position: relative; z-index: 2; }
.story-hero .section-kicker { color: #fff; }
.story-hero h1 { max-width: min(950px, 100%); margin: 0; color: #fff; font-size: clamp(52px, 11vw, 150px); font-weight: 500; letter-spacing: -.065em; line-height: .84; text-shadow: 0 2px 22px rgba(0,0,0,.55); }
.story-hero > p:not(.section-kicker):not(.story-scroll-hint) { max-width: 480px; margin: 30px 0 0; color: rgba(255,255,255,.9); font-size: 17px; text-shadow: 0 1px 14px rgba(0,0,0,.6); }
.story-scroll-hint { display: inline-flex; align-items: center; gap: 10px; margin: 52px 0 0; color: #fff; font-size: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.story-scroll-hint::after { display: inline-block; width: 1px; height: 26px; background: linear-gradient(var(--ice), transparent); content: ""; animation: scroll-hint 1.8s var(--ease) infinite; transform-origin: top; }
@keyframes hero-drift { from { transform: scale(1.06) translate3d(0, 0, 0); } to { transform: scale(1.12) translate3d(-1.4%, -1.6%, 0); } }
@keyframes scroll-hint { 0% { transform: scaleY(0); opacity: 0; } 40% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1) translateY(14px); opacity: 0; } }

/* -- Intro band with career figures -------------------------- */
.wg-intro { padding-top: clamp(72px, 10vw, 128px); padding-bottom: clamp(72px, 10vw, 128px); border-bottom: 1px solid var(--line); }
.wg-intro-lede { max-width: 760px; margin: 22px 0 0; font-size: clamp(21px, 3vw, 30px); font-weight: 500; letter-spacing: -.02em; line-height: 1.3; }
.wg-intro-lede em { color: var(--ice); font-style: normal; }
.wg-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin-top: clamp(44px, 6vw, 72px); background: var(--line); }
.wg-stat { padding: 26px 22px; background: var(--ink); }
.wg-stat b { display: block; color: var(--ice); font-size: clamp(38px, 6vw, 64px); font-weight: 500; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.wg-stat span { display: block; margin-top: 12px; color: var(--silver); font-size: 13px; letter-spacing: .02em; }

/* -- Journey shell + sticky season nav / route --------------- */
.wg { --wg-progress: 0; position: relative; padding-top: clamp(64px, 8vw, 104px); padding-bottom: clamp(80px, 10vw, 150px); }
.wg-nav { position: sticky; top: 0; z-index: 5; margin-bottom: clamp(48px, 6vw, 88px); padding: 18px 0 16px; background: linear-gradient(var(--ink) 72%, transparent); backdrop-filter: blur(2px); }
.wg-route { position: relative; height: 74px; }
.wg-route svg { display: block; width: 100%; height: 100%; overflow: visible; }
.wg-route path { fill: none; vector-effect: non-scaling-stroke; }
.wg-route-base { stroke: rgba(174, 184, 190, .4); stroke-width: 2; }
.wg-route-active { stroke: var(--ice); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--wg-progress) * 100); filter: drop-shadow(0 0 8px rgba(169, 220, 241, .45)); transition: stroke-dashoffset .12s linear; }
.wg-route-dot { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border: 2px solid rgba(174, 184, 190, .6); border-radius: 50%; background: var(--ink); transition: background .35s ease, border-color .35s ease, transform .35s ease, box-shadow .35s ease; }
.wg-route-dot.is-reached { border-color: var(--ice); background: var(--ice); transform: scale(1.18); box-shadow: 0 0 9px rgba(169, 220, 241, .6); }
.wg-seasons { display: flex; gap: 6px; margin-top: 14px; overflow-x: auto; scrollbar-width: none; }
.wg-seasons::-webkit-scrollbar { display: none; }
.wg-seasons a { flex: 1 0 auto; min-width: max-content; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 12px; letter-spacing: .04em; white-space: nowrap; transition: color .25s ease, border-color .25s ease, background .25s ease; }
.wg-seasons a b { color: inherit; font-weight: 600; }
.wg-seasons a span { display: none; color: var(--silver); font-weight: 400; }
.wg-seasons a:hover, .wg-seasons a:focus-visible { color: var(--paper); border-color: var(--silver); outline: none; }
.wg-seasons a.is-current { color: var(--ink); background: var(--ice); border-color: var(--ice); }
.wg-seasons a.is-current span { color: rgba(7, 9, 12, .7); }

/* -- Timeline spine ------------------------------------------ */
.wg-track { position: relative; }
.wg-track::before { position: absolute; top: 0; bottom: 0; left: 5px; z-index: 0; width: 2px; background: var(--line); content: ""; }
.wg-track::after { position: absolute; top: 0; left: 5px; z-index: 0; width: 2px; height: calc(var(--wg-progress) * 100%); max-height: 100%; background: var(--ice); box-shadow: 0 0 12px rgba(169, 220, 241, .5); content: ""; transition: height .12s linear; }

/* -- Season block -------------------------------------------- */
.wg-season { position: relative; padding-left: 32px; }
.wg-season + .wg-season { margin-top: clamp(64px, 8vw, 112px); }
.wg-season-head { position: relative; margin-bottom: clamp(34px, 4vw, 54px); }
.wg-season-head::before { position: absolute; top: 6px; left: -32px; z-index: 2; display: grid; width: 12px; height: 12px; border: 2px solid var(--ice); border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 6px var(--ink); content: ""; }
.wg-season-head .wg-season-year { display: block; color: var(--ice); font-size: 12px; font-weight: 600; letter-spacing: .16em; }
.wg-season-head h2 { max-width: 720px; margin: 8px 0 0; font-size: clamp(30px, 5vw, 56px); font-weight: 500; letter-spacing: -.045em; line-height: .98; }

/* -- Entries ------------------------------------------------- */
.wg-entries { display: grid; gap: clamp(40px, 5vw, 74px); }
.wg-entry { position: relative; opacity: 0; transform: translateY(38px); transition: opacity .7s ease, transform .7s var(--ease); }
.wg-entry.is-in { opacity: 1; transform: translateY(0); }
.wg-entry::before { position: absolute; top: 8px; left: -31px; z-index: 2; width: 9px; height: 9px; border-radius: 50%; background: rgba(174, 184, 190, .55); box-shadow: 0 0 0 5px var(--ink); content: ""; transition: background .4s ease; }
.wg-entry.is-in::before { background: var(--ice); }
.wg-date { display: block; margin: 0 0 10px; color: var(--ice); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }

/* -- Location badge: subtle country silhouette + place name -- */
.wg-place { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 14px; }
.wg-place-map { flex: 0 0 auto; width: 30px; height: 20px; background: rgba(174, 184, 190, .55); -webkit-mask-size: contain; -webkit-mask-position: center; -webkit-mask-repeat: no-repeat; mask-size: contain; mask-position: center; mask-repeat: no-repeat; transition: background .5s ease; }
.wg-entry.is-in .wg-place-map { background: var(--ice); }
.wg-place-map[data-country="at"] { -webkit-mask-image: url("../images/story/maps/at.svg"); mask-image: url("../images/story/maps/at.svg"); }
.wg-place-map[data-country="de"] { -webkit-mask-image: url("../images/story/maps/de.svg"); mask-image: url("../images/story/maps/de.svg"); }
.wg-place-map[data-country="it"] { -webkit-mask-image: url("../images/story/maps/it.svg"); mask-image: url("../images/story/maps/it.svg"); }
.wg-place-map[data-country="ch"] { -webkit-mask-image: url("../images/story/maps/ch.svg"); mask-image: url("../images/story/maps/ch.svg"); }
.wg-place-map[data-country="fr"] { -webkit-mask-image: url("../images/story/maps/fr.svg"); mask-image: url("../images/story/maps/fr.svg"); }
.wg-place-map[data-country="ca"] { -webkit-mask-image: url("../images/story/maps/ca.svg"); mask-image: url("../images/story/maps/ca.svg"); }
.wg-place-map[data-country="cl"] { -webkit-mask-image: url("../images/story/maps/cl.svg"); mask-image: url("../images/story/maps/cl.svg"); }
.wg-place-map[data-country="nl"] { -webkit-mask-image: url("../images/story/maps/nl.svg"); mask-image: url("../images/story/maps/nl.svg"); }
.wg-place-name { color: var(--silver); font-size: 12px; font-weight: 500; letter-spacing: .09em; text-transform: uppercase; }
.wg-headline { margin: 0; font-size: clamp(22px, 3.4vw, 36px); font-weight: 500; letter-spacing: -.02em; line-height: 1.1; }
.wg-body { max-width: 640px; }
.wg-body p { margin: 15px 0 0; color: var(--silver); font-size: 16px; line-height: 1.66; }
.wg-body p:first-of-type { margin-top: 18px; }
.wg-media { position: relative; margin: 0; overflow: hidden; background: var(--ink-soft); border: 1px solid var(--line); }
.wg-media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(16%) contrast(1.05) brightness(.94); transform: scale(1.08) translateY(var(--parallax, 0)); transition: transform .2s linear, filter .5s ease; }
.wg-entry.is-in .wg-media img { filter: grayscale(0%) contrast(1.04); }

/* text-only entries read as quieter log lines */
.wg-entry.is-text .wg-body { border-left: 2px solid var(--line); padding-left: 22px; }

@media (min-width: 760px) {
  .wg-intro-lede { font-size: clamp(24px, 2.6vw, 34px); }
  .wg-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .wg-season { padding-left: 56px; }
  .wg-season-head::before { left: -56px; }
  .wg-track::before, .wg-track::after { left: 12px; }
  .wg-entry::before { left: -49px; top: 10px; }
  .wg-seasons a span { display: block; margin-top: 3px; font-size: 11px; }
  .wg-seasons a { display: grid; }

  .wg-entry.has-media { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, .82fr); align-items: center; gap: clamp(30px, 4vw, 64px); }
  .wg-entry.has-media .wg-media { aspect-ratio: 4 / 3; height: 100%; }
  .wg-entry.media-right .wg-media { grid-column: 2; }
  .wg-entry.media-right .wg-body { grid-column: 1; grid-row: 1; }
  .wg-entry.media-left .wg-media { grid-column: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .story-hero::before { animation: none; transform: scale(1.06); }
  .story-scroll-hint::after { animation: none; }
  .wg-entry { opacity: 1; transform: none; transition: none; }
  .wg-media img { transform: scale(1.02); }
}
