/* GruppeB12 — site styles */

@font-face { font-family: 'Archivo'; src: url(../assets/fonts/archivo-wdth.woff2) format('woff2'); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: 'Inter'; src: url(../assets/fonts/inter.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url(../assets/fonts/jetbrains-mono.woff2) format('woff2'); font-weight: 100 800; font-display: swap; }

:root {
  --bg: #000;
  --panel: #0b0a0a;
  --text: #f2efe9;
  --body: #c9c3ba;
  --muted: #a39e96;
  --label: #8f8a83;
  --accent: #ff3826;
  --amber: #ffad1f;
  --red: #e3261a;
  --line: rgba(242, 239, 233, 0.12);
  --display: 'Archivo', system-ui, sans-serif;
  --sans: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: var(--text); }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
::selection { background: var(--accent); color: #000; }
figure { margin: 0; }
dl { margin: 0; }

.wrap { max-width: 1320px; margin: 0 auto; }
.section { padding: 128px 24px; }
.section--rule { border-top: 1px solid rgba(242, 239, 233, 0.1); }
.row { display: flex; flex-wrap: wrap; gap: 64px; }
.stack { display: flex; flex-direction: column; gap: 24px; }
.split-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }

.label { margin: 0; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.h2 { margin: 0; font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: clamp(2.25rem, 4.2vw, 3.5rem); line-height: 1.02; letter-spacing: -0.01em; }
.body { margin: 0; max-width: 38rem; font-size: 18px; line-height: 1.65; color: var(--body); }
.lede { margin: 0; max-width: 30rem; font-size: 17px; line-height: 1.6; color: var(--body); }
.caption { margin: 0; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

/* Buttons */
.btn, .btn-ghost { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 2px; text-decoration: none; font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; }
.btn { background: var(--accent); color: #000; transition: filter .2s ease, transform .2s ease; }
.btn:hover { color: #000; filter: brightness(1.12); transform: translateY(-1px); }
.btn-ghost { border: 1px solid rgba(242, 239, 233, 0.35); color: var(--text); transition: box-shadow .2s ease; }
.btn-ghost:hover { color: var(--text); box-shadow: inset 0 0 0 1px var(--text); }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; background: transparent; border: 1px solid rgba(242, 239, 233, 0.2); border-radius: 2px; color: var(--muted); cursor: pointer; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; transition: box-shadow .2s ease; }
.chip:hover { box-shadow: inset 0 0 0 1px var(--text); }
.icon { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Header */
.site-header { max-width: 1320px; margin: 0 auto; padding: 20px 24px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px; }
.site-header .brand { display: inline-flex; align-items: center; min-height: 44px; }
.site-header .brand img { height: 22px; width: auto; }
.site-nav { display: flex; flex-wrap: wrap; gap: 2px; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; }

/* Hero */
.hero { max-width: 1320px; margin: 0 auto; padding: 8px 24px 56px; display: flex; flex-wrap: wrap; align-items: center; gap: 40px; }
.hero__copy { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.hero__kicker { margin: 0; font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); }
.hero h1 { margin: 0; }
.logo-wrap { display: block; position: relative; width: 100%; max-width: 580px; aspect-ratio: 2089 / 259; }
.logo-wrap img { width: 100%; height: 100%; }
.logo-wrap::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(100deg, rgba(255,56,38,0) 42%, rgba(255,96,70,1) 50%, rgba(255,56,38,0) 58%); background-size: 300% 100%; background-position: 120% 0; -webkit-mask: url(../assets/img/logo.png) no-repeat center / 100% 100%; mask: url(../assets/img/logo.png) no-repeat center / 100% 100%; }
.hero__tagline { margin: 0; font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: clamp(1.625rem, 2.4vw, 2.25rem); line-height: 1.1; letter-spacing: -0.005em; }
.hero__intro { margin: 0; max-width: 34rem; font-size: 18px; line-height: 1.6; color: var(--muted); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 4px; }
.hero__media { flex: 1.6 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.stage { position: relative; width: 100%; overflow: hidden; }
.stage--square { aspect-ratio: 1 / 1; }
.stage > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.glow { position: absolute; pointer-events: none; mix-blend-mode: screen; }
.hero__replay { display: flex; justify-content: flex-end; }

/* Hero start-up sequence (A/B names let the replay button restart it) */
.hero .car { animation: carA 2.4s ease-out both; }
.hero.ign-b .car { animation-name: carB; }
.hero .glow { opacity: .85; animation: glowA 2.4s linear both, breatheA 4.5s ease-in-out 2.4s infinite; }
.hero.ign-b .glow { animation-name: glowB, breatheB; }
.hero .glow--floor { animation-delay: .06s, 2.46s; }
.hero .logo-wrap img { animation: wipeA 1s cubic-bezier(.7,0,.2,1) 1.1s both; }
.hero.ign-b .logo-wrap img { animation-name: wipeB; }
.hero .logo-wrap::after { animation: shineA 1.3s ease-in-out 2s both; }
.hero.ign-b .logo-wrap::after { animation-name: shineB; }
.hero .rise { animation: riseA .9s cubic-bezier(.2,.7,.2,1) both; }
.hero.ign-b .rise { animation-name: riseB; }
.hero .d0 { animation-delay: .15s; }
.hero .d1 { animation-delay: 1.55s; }
.hero .d2 { animation-delay: 1.7s; }
.hero .d3 { animation-delay: 1.85s; }

@keyframes carA { 0% { opacity: 0; filter: brightness(.12); transform: scale(1.05); } 22% { opacity: 1; filter: brightness(.16); } 30% { filter: brightness(.16); } 31% { filter: brightness(.6); } 33% { filter: brightness(.25); } 36% { filter: brightness(.85); } 39% { filter: brightness(.35); } 44% { filter: brightness(1); } 100% { opacity: 1; filter: brightness(1); transform: scale(1); } }
@keyframes carB { 0% { opacity: 0; filter: brightness(.12); transform: scale(1.05); } 22% { opacity: 1; filter: brightness(.16); } 30% { filter: brightness(.16); } 31% { filter: brightness(.6); } 33% { filter: brightness(.25); } 36% { filter: brightness(.85); } 39% { filter: brightness(.35); } 44% { filter: brightness(1); } 100% { opacity: 1; filter: brightness(1); transform: scale(1); } }
@keyframes glowA { 0%, 30% { opacity: 0; } 31% { opacity: 1; } 33% { opacity: .1; } 36% { opacity: .9; } 39% { opacity: .2; } 44% { opacity: 1; } 100% { opacity: .85; } }
@keyframes glowB { 0%, 30% { opacity: 0; } 31% { opacity: 1; } 33% { opacity: .1; } 36% { opacity: .9; } 39% { opacity: .2; } 44% { opacity: 1; } 100% { opacity: .85; } }
@keyframes breatheA { 0%, 100% { opacity: .85; } 50% { opacity: .58; } }
@keyframes breatheB { 0%, 100% { opacity: .85; } 50% { opacity: .58; } }
@keyframes wipeA { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes wipeB { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes shineA { from { background-position: 120% 0; } to { background-position: -20% 0; } }
@keyframes shineB { from { background-position: 120% 0; } to { background-position: -20% 0; } }
@keyframes riseA { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes riseB { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Light-bar divider: lit corner lamps, unlit centre reflector */
.lightbar { position: relative; max-width: 1320px; margin: 0 auto; padding: 0 24px; }
.lightbar__glow { position: absolute; top: -22px; width: 18%; height: 56px; pointer-events: none; }
.lightbar__glow--l { left: 8px; background: radial-gradient(ellipse at 45% 50%, rgba(255,110,36,.5) 0%, rgba(255,70,30,.18) 45%, rgba(255,60,30,0) 72%); }
.lightbar__glow--r { right: 8px; background: radial-gradient(ellipse at 55% 50%, rgba(255,110,36,.5) 0%, rgba(255,70,30,.18) 45%, rgba(255,60,30,0) 72%); }
.lightbar__bar { position: relative; height: 12px; border-radius: 2px; overflow: hidden; background: linear-gradient(90deg, #ffad1f 0%, #ffad1f 9.6%, #1a0504 9.6%, #1a0504 9.8%, #8f8890 9.8%, #8f8890 11.8%, #1a0504 11.8%, #1a0504 12%, #ff3a24 12%, #ff3a24 16.8%, #1a0504 16.8%, #1a0504 17.2%, #4e0f0a 17.2%, #4e0f0a 82.8%, #1a0504 82.8%, #1a0504 83.2%, #ff3a24 83.2%, #ff3a24 88%, #1a0504 88%, #1a0504 88.2%, #8f8890 88.2%, #8f8890 90.2%, #1a0504 90.2%, #1a0504 90.4%, #ffad1f 90.4%, #ffad1f 100%); }
.lightbar__bar::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(0,0,0,.3) 0 1px, rgba(0,0,0,0) 1px 6px); }
.lightbar__bar::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 22%; background: linear-gradient(90deg, rgba(255,240,220,0), rgba(255,240,220,.8), rgba(255,240,220,0)); mix-blend-mode: screen; animation: barSweep 3.8s cubic-bezier(.5,0,.5,1) infinite; }
@keyframes barSweep { 0% { transform: translateX(-120%); } 70%, 100% { transform: translateX(480%); } }

/* Spec / kit panels */
.panel { flex: 1 1 400px; min-width: 0; padding: 28px 28px 12px; background: var(--panel); border: 1px solid rgba(242,239,233,.14); border-radius: 2px; }
.panel__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 16px; }
.panel__head h3 { margin: 0; font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: 20px; letter-spacing: 0.02em; text-transform: uppercase; }
.panel__head span { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; color: var(--label); }
.panel__group { margin: 8px 0 4px; font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); }
.panel__group + dl, dl + .panel__group { }
dl + .panel__group { margin-top: 24px; }
.spec { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 16px 0; border-top: 1px solid var(--line); }
.spec dt { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--label); }
.spec dd { margin: 0; text-align: right; font-size: 16px; color: var(--text); }
.specs--tight .spec { padding: 14px 0; }
.specs--closed .spec:last-child { border-bottom: 1px solid var(--line); }

/* Wide photo sections */
.photo { position: relative; width: 100%; overflow: hidden; }
.photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo--front { aspect-ratio: 1672 / 941; }
.photo--detail { aspect-ratio: 1671 / 941; }
.photo-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; }

/* Front headlight flash */
.front .hl { opacity: .8; }
.front .beam { opacity: 0; }
.front.fr-off img { filter: brightness(.22); }
.front.fr-off .hl { opacity: 0; }
.front.fr-a img { animation: frontA 2s ease-out both; }
.front.fr-b img { animation: frontB 2s ease-out both; }
.front.fr-a .hl { animation: hlA 2s linear both; }
.front.fr-b .hl { animation: hlB 2s linear both; }
.front.fr-a .beam { animation: beamA 2s linear both; }
.front.fr-b .beam { animation: beamB 2s linear both; }
@keyframes frontA { 0%, 18% { filter: brightness(.22); } 20% { filter: brightness(.95); } 28% { filter: brightness(.3); } 32% { filter: brightness(1); } 40% { filter: brightness(.35); } 52%, 100% { filter: brightness(1); } }
@keyframes frontB { 0%, 18% { filter: brightness(.22); } 20% { filter: brightness(.95); } 28% { filter: brightness(.3); } 32% { filter: brightness(1); } 40% { filter: brightness(.35); } 52%, 100% { filter: brightness(1); } }
@keyframes hlA { 0%, 18% { opacity: 0; } 20% { opacity: 1; } 28% { opacity: .05; } 32% { opacity: 1; } 40% { opacity: .1; } 52% { opacity: 1; } 100% { opacity: .8; } }
@keyframes hlB { 0%, 18% { opacity: 0; } 20% { opacity: 1; } 28% { opacity: .05; } 32% { opacity: 1; } 40% { opacity: .1; } 52% { opacity: 1; } 100% { opacity: .8; } }
@keyframes beamA { 0%, 18% { opacity: 0; } 20% { opacity: 1; } 26%, 30% { opacity: 0; } 32% { opacity: 1; } 38%, 100% { opacity: 0; } }
@keyframes beamB { 0%, 18% { opacity: 0; } 20% { opacity: 1; } 26%, 30% { opacity: 0; } 32% { opacity: 1; } 38%, 100% { opacity: 0; } }

/* Line-drawing banner */
.lines { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 24px 48px; opacity: .55; }
.lines > div { min-width: 0; }
.lines__side { flex: 0 1 685px; }
.lines__top { flex: 0 1 539px; }
.lines.bp-off img { clip-path: inset(0 100% 0 0); }
.lines.bp-on img { animation: draw 1.8s cubic-bezier(.45,0,.25,1) both; }
.lines.bp-on .lines__top img { animation-delay: .4s; }
@keyframes draw { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

/* Timeline */
.timeline { flex: 1 1 100%; min-width: 0; display: flex; flex-wrap: wrap; gap: 32px 24px; padding-top: 16px; }
.timeline__item { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.timeline__bar { height: 4px; border-radius: 2px; background: var(--red); box-shadow: 0 0 14px rgba(227,38,26,.55); }
.timeline__bar--amber { background: var(--amber); box-shadow: 0 0 14px rgba(255,173,31,.5); }
.timeline__year { margin: 8px 0 0; font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: 36px; line-height: 1; }
.timeline__text { margin: 0; font-size: 15px; line-height: 1.55; color: var(--body); }

/* Archive */
.archive-grid { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 40px 32px; padding: 16px 0 8px; }
.archive-grid .break { flex-basis: 100%; height: 0; }
.doc { min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.doc--portrait { flex: 1 1 240px; max-width: 320px; }
.doc--spread { flex: 2 1 520px; max-width: 720px; }
.doc--envelope { flex: 1.6 1 360px; max-width: 520px; }
.doc--page { flex: 1 1 260px; max-width: 340px; }
.doc__open { display: block; width: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; transform: rotate(var(--r, 0deg)); box-shadow: 0 18px 40px rgba(0,0,0,.55), 0 2px 6px rgba(0,0,0,.4); transition: transform .5s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease; }
.doc__open img { width: 100%; height: auto; }
.doc__open:hover, .doc__open:focus-visible { transform: rotate(0deg) translateY(-6px) scale(1.02); box-shadow: 0 28px 60px rgba(0,0,0,.6), 0 4px 10px rgba(0,0,0,.45); }
.doc figcaption { display: flex; flex-direction: column; gap: 4px; }
.doc__source { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.doc__desc { font-size: 14px; line-height: 1.5; color: var(--body); }
.credit { margin: 0; text-align: center; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; line-height: 1.6; color: var(--label); }
.callout { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px; padding: 24px 28px; border: 1px solid rgba(242,239,233,.16); border-radius: 2px; background: var(--panel); }
.callout p { margin: 0; max-width: 46rem; font-size: 17px; line-height: 1.55; }
.callout a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px; border: 1px solid rgba(242,239,233,.35); border-radius: 2px; text-decoration: none; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; transition: box-shadow .2s ease; }
.callout a:hover { color: var(--text); box-shadow: inset 0 0 0 1px var(--text); }

/* Lightbox */
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 24px; border: 0; background: rgba(0,0,0,.92); color: var(--text); }
.lightbox[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; }
.lightbox::backdrop { background: transparent; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 140px); width: auto; height: auto; box-shadow: 0 30px 80px rgba(0,0,0,.7); }
.lightbox__bar { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 12px; }
.lightbox__title { margin: 0; padding: 0 8px; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--body); }
.lightbox button { min-height: 44px; padding: 0 16px; background: transparent; border: 1px solid rgba(242,239,233,.3); border-radius: 2px; color: var(--text); cursor: pointer; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; }
.lightbox button.lightbox__close { background: var(--accent); border-color: var(--accent); color: #000; font-weight: 700; }

/* Follow */
.follow-handle { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; align-self: flex-start; padding: 16px 22px; border: 1px solid rgba(242,239,233,.25); border-radius: 2px; background: #070504; text-decoration: none; transition: border-color .2s ease; }
.follow-handle:hover { border-color: rgba(242,239,233,.6); }
.follow-handle__name { font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: 22px; line-height: 1; letter-spacing: 0.02em; color: var(--accent); white-space: nowrap; transition: filter .2s ease; }
.follow-handle:hover .follow-handle__name { filter: brightness(1.15); }
.follow-handle__note { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

/* Footer */
.site-footer { padding: 0 24px 48px; }
.site-footer__bar { height: 3px; border-radius: 2px; background: linear-gradient(90deg, #ffad1f 0%, #ffad1f 9.8%, #8f8890 9.8%, #8f8890 11.8%, #ff3a24 11.8%, #ff3a24 16.8%, #000 16.8%, #000 17.2%, #4e0f0a 17.2%, #4e0f0a 82.8%, #000 82.8%, #000 83.2%, #ff3a24 83.2%, #ff3a24 88.2%, #8f8890 88.2%, #8f8890 90.2%, #ffad1f 90.2%, #ffad1f 100%); }
.site-footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px; margin-top: 28px; }
.site-footer__row img { height: 20px; width: auto; opacity: .75; }
.site-footer__row p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--label); }
.site-footer__row .mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; }
.site-footer__row a { color: var(--body); }

/* Scroll reveals (added by JS only when motion is allowed) */
.reveal { transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.pre { opacity: 0; transform: translateY(32px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .front.fr-off img { filter: none; }
  .front.fr-off .hl { opacity: .8; }
  .lines.bp-off img { clip-path: none; }
  .reveal.pre { opacity: 1; transform: none; }
  .lightbar__bar::after { display: none; }
}
