/* SAMAS Nachfolge, v4. Obsidian ground, bone type, titanium hairlines, oxblood #4A0404 for the logo and active states.
   Type: Cormorant Garamond for headlines, Inter for reading, JetBrains Mono for data, dates and tags. */
@font-face { font-family: "Inter"; src: url("../fonts/Inter-Variable.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/CormorantGaramond-Variable.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/CormorantGaramond-VariableItalic.woff2") format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/JetBrainsMono-Variable.woff2") format("woff2"); font-weight: 100 800; font-style: normal; font-display: swap; }

:root {
  --ox: #4a0404;
  --ox-hover: #5f0909;
  --bg: #0d0d0f;          /* obsidian */
  --surface: #18181b;     /* smoked charcoal */
  --ink: #f2f0ec;         /* bone, 17.1:1 on obsidian */
  --ink-2: #cfccc6;       /* 12.4:1 */
  --ink-3: #a6a9b0;       /* titanium, 8.3:1 */
  --rule: #2e3035;        /* micro-border */
  --rule-2: rgba(166, 169, 176, .42);
  --strip: #f2f0ec;       /* the logo strip */
  --strip-ink: #0d0d0f;
  --hdr: 64px;
  --gut: clamp(20px, 4.4vw, 64px);
  --max: 1440px;
  --edge: max(var(--gut), calc((100vw - var(--max)) / 2 + var(--gut)));
  --fs: clamp(17px, 0.25vw + 15.4px, 18.5px);
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --serif: "Cormorant Garamond", "Iowan Old Style", Garamond, Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.22, .65, .12, 1);
  color-scheme: dark;
}
@media (max-width: 720px) { :root { --hdr: 56px; } }

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr) + 24px); }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: var(--fs); line-height: 1.6; font-weight: 400; font-optical-sizing: auto;
  font-kerning: normal; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
img, svg, canvas, picture { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 600; }
.serif { font-family: var(--serif); }
.tag { font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); line-height: 1.5; }
h1, h2, h3, p, dd, li { overflow-wrap: break-word; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--ox); color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.top :focus-visible { outline-color: var(--strip-ink); }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--strip); color: var(--strip-ink); padding: 10px 14px; font-size: 15px; }
.skip:focus { top: 10px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }

/* ------------------------------------------------------------------ the logo strip */
.top { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--hdr); background: var(--strip); color: var(--strip-ink); }
.top-in { height: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); display: flex; align-items: center; gap: clamp(20px, 2.6vw, 40px); }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ox); margin-right: auto; line-height: 1; }
.brand { gap: 15px; }
.brand .mark { width: 28px; height: 29px; flex: none; fill: currentColor; }
.brand .rule { display: block; width: 1px; height: 28px; background: currentColor; opacity: .55; flex: none; }
.wm { font-family: var(--serif); font-size: 19px; line-height: 1; white-space: nowrap; letter-spacing: .2em; margin-right: -.16em; }
.wm b { font-weight: 600; }
.wm span { font-weight: 400; letter-spacing: .16em; }
/* the crest: mark above, name centred beneath (footer) */
.brand.crest { flex-direction: column; align-items: center; gap: 12px; }
.brand.crest .mark { width: 34px; height: 35px; }
.wm-c { display: flex; flex-direction: column; align-items: center; gap: 8px; white-space: nowrap; }
.wm-c b { font-family: var(--serif); font-size: 22px; font-weight: 600; line-height: 1; letter-spacing: .3em; padding-left: .3em; }
.wm-c small { font-family: var(--mono); font-size: 8.5px; font-weight: 400; line-height: 1; letter-spacing: .55em; padding-left: .55em; color: var(--ink-3); }
.nav { display: flex; align-items: center; gap: clamp(20px, 2.4vw, 36px); font-size: 14.5px; font-weight: 500; }
.nav a { position: relative; padding: 8px 0; color: #2c2c30; transition: color .2s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--strip-ink); }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav a:hover::after { transform: scaleX(1); }
.nav a[aria-current="page"]::after { transform: scaleX(1); background: var(--ox); height: 2px; }
.lang { display: inline-flex; border: 1px solid var(--strip-ink); height: 32px; flex: none; }
.lang a { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; padding: 0 10px; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .08em; color: var(--strip-ink); transition: background-color .2s, color .2s; }
.lang a + a { border-left: 1px solid var(--strip-ink); }
.lang a[aria-current="true"] { background: var(--strip-ink); color: var(--strip); }
.lang a:not([aria-current="true"]):hover { background: #e2dfd8; }
.menu-btn { display: none; height: 40px; padding: 0 2px; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--strip-ink); }
.menu-btn .x { display: none; }
@media (max-width: 880px) {
  .top-in { gap: 16px; }
  .menu-btn { display: inline-flex; align-items: center; }
  .nav { position: fixed; inset: var(--hdr) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; padding: 0 var(--gut) 20px; background: var(--strip); border-top: 1px solid #dcd8d0; border-bottom: 1px solid #c9c5bc;
    font-family: var(--serif); font-size: 28px; font-weight: 600; letter-spacing: -.01em; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .25s, transform .3s var(--ease), visibility .25s; }
  .nav a { padding: 14px 0; border-bottom: 1px solid #dcd8d0; color: var(--strip-ink); }
  .nav a:last-child { border-bottom: 0; }
  .nav a::after { display: none; }
  .nav a[aria-current="page"] { color: var(--ox); }
  .menu-open .nav { opacity: 1; visibility: visible; transform: none; }
  .menu-open .menu-btn .o { display: none; } .menu-open .menu-btn .x { display: inline; }
}
@media (max-width: 720px) { .top .brand { gap: 11px; } .top .brand .mark { width: 25px; height: 26px; } .top .brand .rule { height: 24px; } .top .wm { font-size: 17px; } }
@media (max-width: 560px) { .top .wm span { display: none; } }
@media (max-width: 400px) { .lang a { min-width: 36px; padding: 0 8px; } }

/* ------------------------------------------------------------------ home: the journey */
.hero { position: relative; margin-top: var(--hdr); height: calc(100vh - var(--hdr)); height: calc(100svh - var(--hdr)); min-height: 540px; background: #000; color: var(--ink); overflow: hidden; border-bottom: 1px solid var(--rule); }
.hero canvas.journey { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.2s var(--ease); }
.hero.is-live canvas.journey { opacity: 1; }
.hero-poster { position: absolute; inset: 0; opacity: 0; transition: opacity 1s var(--ease); }
.hero-poster img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 50%; }
.no-webgl .hero-poster { opacity: 1; }
.no-webgl .hud, .no-webgl .loader { display: none; }
.hero::before, .hero::after { content: ""; position: absolute; z-index: 1; pointer-events: none; }
.hero::after { left: 0; right: 0; bottom: 0; height: 160px; background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, .45)); }
.hero::before { inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .62) 0%, rgba(0, 0, 0, .38) 34%, rgba(0, 0, 0, 0) 62%); transition: opacity 1.4s var(--ease); }
.js .hero:not(.is-mid):not(.is-end)::before { opacity: 0; }
.hero-text { position: absolute; z-index: 3; left: var(--edge); right: var(--edge); bottom: clamp(72px, 12vh, 136px); max-width: 820px; text-shadow: 0 0 24px rgba(0, 0, 0, .35); }
.h-hero { font-family: var(--serif); font-size: clamp(46px, 5.4vw, 92px); font-weight: 500; line-height: .98; letter-spacing: -.02em; max-width: 10.5em; text-wrap: balance; color: var(--ink); }
html[lang="de"] .h-hero { max-width: 11.4em; font-size: clamp(40px, 4.8vw, 82px); }
.hero-sub { font-size: clamp(17.5px, 1.2vw, 20px); font-weight: 400; line-height: 1.6; color: var(--ink-2); max-width: 44ch; margin: clamp(22px, 2.4vw, 32px) 0 clamp(26px, 2.8vw, 38px); }
.doors { display: flex; flex-wrap: wrap; gap: 10px clamp(24px, 2.6vw, 40px); }
.doors a { display: inline-flex; align-items: center; gap: 12px; padding: 9px 0 7px; font-size: clamp(16px, 1.1vw, 18px); font-weight: 500; color: var(--ink); border-bottom: 1.5px solid var(--rule-2); transition: border-color .25s; }
.doors a:hover { border-bottom-color: var(--ink); }
.arr { width: 18px; height: 12px; flex: none; transition: transform .35s var(--ease); }
a:hover > .arr { transform: translateX(4px); }
/* staged appearance: the headline arrives with Europe, the rest at the end of the journey */
.js .hero .h-hero, .js .hero .hero-sub, .js .hero .doors { opacity: 0; transform: translateY(12px); transition: opacity 1.2s var(--ease), transform 1.4s var(--ease); }
.js .hero.is-mid .h-hero, .js .hero.is-end .h-hero, .js .hero.is-end .hero-sub, .js .hero.is-end .doors { opacity: 1; transform: none; }
.js .hero.is-end .hero-sub { transition-delay: .15s; } .js .hero.is-end .doors { transition-delay: .3s; }
.no-webgl .hero .h-hero, .no-webgl .hero .hero-sub, .no-webgl .hero .doors { opacity: 1 !important; transform: none !important; }

.journey-labels { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.jl { position: absolute; left: 0; top: 0; opacity: 0; will-change: transform, opacity; color: var(--ink); font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.jl span { position: absolute; left: 13px; top: -10px; text-shadow: 0 0 10px rgba(0, 0, 0, .7), 0 0 2px rgba(0, 0, 0, .5); }
.jl i { position: absolute; left: -3px; top: -3px; width: 6px; height: 6px; border-radius: 50%; box-shadow: 0 0 0 1.25px rgba(242, 240, 236, .9); }
.jl:not(.dot) i { display: none; }
.jl:not(.dot) span { left: 0; transform: translateX(-50%); top: -9px; }
.jl.ox i { background: var(--ink); }
.jl.left span { left: auto; right: 13px; }

.hud { position: absolute; z-index: 3; left: var(--edge); right: var(--edge); bottom: 22px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; pointer-events: none; text-shadow: 0 0 10px rgba(0, 0, 0, .55), 0 0 2px rgba(0, 0, 0, .4); }
.skip-intro, .replay { pointer-events: auto; display: inline-flex; align-items: center; gap: 12px; padding: 10px 0; font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); transition: color .2s, opacity .6s var(--ease); }
.skip-intro:hover, .replay:hover { color: var(--ink); }
.skip-intro .bar { position: relative; width: 56px; height: 1.5px; background: rgba(166, 169, 176, .35); overflow: hidden; }
.skip-intro .bar i { position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(var(--p, 0)); }
.hud .skip-intro { margin-left: auto; }
.replay { display: none; margin-left: auto; }
.hero.is-end .skip-intro { display: none; }
.hero.is-end .replay { display: inline-flex; }
.no-webgl .replay { display: none !important; }
.loader { position: absolute; z-index: 4; left: 50%; top: 50%; width: 120px; height: 1.5px; margin-left: -60px; background: rgba(166, 169, 176, .22); overflow: hidden; opacity: 0; transition: opacity .6s; }
.loader i { position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform .3s; }
.hero.is-loading .loader { opacity: 1; }

@media (max-width: 720px) {
  .hero { min-height: 560px; }
  .hero::before { background: linear-gradient(rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .25) 45%, rgba(0, 0, 0, 0) 65%); }
  .hero-text { top: clamp(24px, 5vh, 48px); bottom: auto; }
  .h-hero, html[lang="de"] .h-hero { font-size: clamp(38px, 10.6vw, 52px); line-height: 1; }
  .hero-sub { font-size: 16.5px; max-width: 34ch; margin: 16px 0 18px; }
  .doors { gap: 4px 22px; }
  .doors a { font-size: 17px; padding: 10px 0 6px; }
  .hud { bottom: 14px; }

}

/* ------------------------------------------------------------------ inner pages */
.page { padding-top: var(--hdr); }
.page-head { padding: clamp(64px, 9vw, 136px) 0 clamp(44px, 5.5vw, 80px); }
.page-head h1 { font-family: var(--serif); font-size: clamp(50px, 6.2vw, 100px); font-weight: 500; line-height: .98; letter-spacing: -.02em; max-width: 14ch; text-wrap: balance; }
.page-head .lede { margin: clamp(24px, 2.6vw, 36px) 0 0; font-size: clamp(19px, 1.4vw, 23px); font-weight: 400; line-height: 1.55; color: var(--ink-2); max-width: 44ch; }
.page-head .small { margin-bottom: 14px; }

.sec-in { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: clamp(24px, 4vw, 72px); }
.sec-in::before { content: ""; grid-column: 1 / -1; height: 1px; background: var(--rule); margin-bottom: clamp(36px, 4.4vw, 64px); }
.sec { padding-bottom: clamp(52px, 6.4vw, 96px); }
.sec h2 { font-family: var(--serif); font-size: clamp(28px, 1.2vw + 18px, 38px); font-weight: 600; line-height: 1.1; letter-spacing: -.012em; align-self: start; position: sticky; top: calc(var(--hdr) + 28px); padding-right: 12px; }
.sec-body { max-width: 64ch; }
.sec-body > :last-child { margin-bottom: 0; }
.small { font-size: 14.5px; line-height: 1.55; color: var(--ink-3); }
.small a, .sec-body p a, .legal a { border-bottom: 1px solid var(--rule-2); transition: border-color .2s; }
.small a:hover, .sec-body p a:hover, .legal a:hover { border-bottom-color: var(--ink); }
.source { margin-top: 1.4em; }
@media (max-width: 820px) {
  .sec-in { grid-template-columns: 1fr; }
  .sec h2 { position: static; margin-bottom: 18px; }
}

.defs { margin: 0; display: grid; gap: 26px; }
.defs dt { font-weight: 600; margin-bottom: 4px; }
.defs dd { margin: 0; color: var(--ink-2); }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 26px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 2.2em minmax(0, 1fr); }
.steps li::before { content: counter(s, decimal-leading-zero); grid-row: 1 / span 2; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; color: var(--ink-3); line-height: 1.6; padding-top: .28em; }
.steps h3 { font-size: 1em; font-weight: 600; line-height: 1.55; }
.steps p { margin: 2px 0 0; color: var(--ink-2); }

.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.list li { position: relative; padding-left: 1.5em; }
.list li::before { content: ""; position: absolute; left: 0; top: .72em; width: .55em; height: 1.5px; background: var(--ink-3); }

.qa { display: grid; gap: 28px; }
.qa h3 { font-size: 1em; font-weight: 600; line-height: 1.5; margin-bottom: 4px; }
.qa p { margin: 0; color: var(--ink-2); }

/* metrics sit on one elevated surface */
.figs { margin: 0 0 1.6em; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); background: var(--surface); border: 1px solid var(--rule); }
.figs div { padding: clamp(22px, 2.4vw, 32px); }
.figs div + div { border-left: 1px solid var(--rule); }
.figs dt { font-family: var(--mono); font-size: clamp(38px, 3.4vw, 52px); font-weight: 300; letter-spacing: -.02em; line-height: 1; }
.figs dd { margin: 14px 0 0; color: var(--ink-2); max-width: 30ch; font-size: .95em; }
@media (max-width: 560px) { .figs { grid-template-columns: 1fr; } .figs div + div { border-left: 0; border-top: 1px solid var(--rule); } }

.btn { display: inline-flex; align-items: center; gap: 14px; min-height: 54px; padding: 0 24px; background: var(--ox); color: var(--ink); border: 1px solid rgba(242, 240, 236, .24); font-size: 16px; font-weight: 500; transition: background-color .2s, border-color .2s; }
.btn:hover { background: var(--ox-hover); border-color: rgba(242, 240, 236, .5); }
.link { display: inline-flex; align-items: center; gap: 10px; font-weight: 550; border-bottom: 1.5px solid var(--rule-2); padding-bottom: 2px; }
.link:hover { border-bottom-color: var(--ink); }
.im { margin-top: 4px; padding: clamp(22px, 2.4vw, 32px); background: var(--surface); border: 1px solid var(--rule); }
.im p { margin-bottom: 24px; }
.im .tag { margin-bottom: 10px; }
.im + .small { margin-top: 24px; }

.person p { margin-bottom: 22px; }
.person .tel { display: block; font-family: var(--mono); font-size: clamp(24px, 2.2vw, 34px); font-weight: 400; letter-spacing: 0; line-height: 1.15; white-space: nowrap; }
.person .mail { display: inline-block; margin-top: 12px; font-size: clamp(17px, 1.2vw, 19px); font-weight: 500; border-bottom: 1.5px solid var(--rule-2); padding-bottom: 2px; }
.person .tel:hover { color: var(--ink-2); }
.person .mail:hover { border-bottom-color: var(--ink); }

.letter p { font-size: clamp(18px, 1vw + 5px, 20.5px); font-weight: 400; line-height: 1.62; }
.sig { margin: 28px 0 0 !important; font-size: 1em !important; }
.sig b { display: block; font-family: var(--serif); font-size: 1.35em; font-weight: 600; font-style: italic; }
.sig span { color: var(--ink-3); }
.facts { margin: 48px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 36px; padding-top: 28px; border-top: 1px solid var(--rule); }
.facts dt { font-family: var(--mono); font-size: 11.5px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.facts dd { margin: 0; font-size: 16px; line-height: 1.5; color: var(--ink-2); }
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; } }

.next { padding: clamp(24px, 3vw, 40px) 0 clamp(72px, 9vw, 128px); }
.next .wrap { display: flex; flex-wrap: wrap; gap: 14px clamp(28px, 4vw, 64px); }
.next .wrap::before { content: ""; flex-basis: 100%; height: 1px; background: var(--rule); margin-bottom: clamp(24px, 3vw, 40px); }
.next a { display: inline-flex; align-items: center; gap: 14px; font-family: var(--serif); font-size: clamp(30px, 2.6vw, 44px); font-weight: 500; letter-spacing: -.015em; line-height: 1.15; transition: color .2s; }
.next a:hover { color: var(--ink-3); }
.next .arr { width: 22px; height: 15px; }


/* legal */
.legal { padding: 0 0 clamp(80px, 9vw, 128px); }
.legal .wrap > * { max-width: 70ch; }
.legal h2 { font-family: var(--serif); font-size: 28px; font-weight: 600; letter-spacing: -.01em; margin: 44px 0 10px; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: var(--ink-2); }
.legal address { font-style: normal; }
.legal ul { padding-left: 1.1em; }
mark.todo { background: #fff3a8; color: #000; padding: 0 3px; }
.nf-links { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 36px; }

/* ------------------------------------------------------------------ footer */
.foot { border-top: 1px solid var(--rule); padding: clamp(48px, 5vw, 72px) 0 36px; font-size: 15.5px; line-height: 1.6; }
.home .foot { border-top: 0; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 32px; align-items: start; }
.foot .brand { margin: 0; color: var(--ink); justify-self: start; }
.foot-h { font-family: var(--mono); font-size: 11.5px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 10px; }
.foot-col p { margin: 0; color: var(--ink-2); }
.foot-col a { color: var(--ink); }
.foot-col > a { display: block; padding: 2px 0; }
.foot-col a:hover { color: var(--ink-3); }
.foot-base { margin-top: clamp(40px, 4vw, 56px); font-size: 14px; color: var(--ink-3); }
.foot-base p { margin: 0 0 8px; }
.foot-base p:last-child { font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; }
.credits { max-width: 118ch; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot .brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; } }
