/* ==========================================================
   Ben Hess · #55 — Orange / Schwarz / Weiß
   ========================================================== */

/* Schriften lokal (SIL Open Font License) – keine Verbindung zu Google */
@font-face { font-family: "Anton"; font-style: normal; font-weight: 400; font-display: swap; src: url("../assets/fonts/anton-latin.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../assets/fonts/inter-latin-var.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 100 800; font-display: swap; src: url("../assets/fonts/jetbrainsmono-latin-var.woff2") format("woff2"); }
:root {
  --orange: #ff6a00;
  --orange-2: #ff8a33;
  --black: #0b0b0b;
  --ink: #141414;
  --ink-2: #1d1d1d;
  --white: #f5f3ee;
  --muted: #9a958c;
  --line: rgba(245, 243, 238, .12);

  --f-display: "Anton", "Impact", "Arial Narrow", sans-serif;
  --f-body: "Inter", system-ui, -apple-system, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font: 400 17px/1.6 var(--f-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--orange); color: var(--black); }

.mono { font-family: var(--f-mono); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(96px, 14vw, 180px) 0; position: relative; }
.eyebrow { color: var(--orange); margin: 0 0 1.25rem; }
.display {
  font: 400 clamp(2.6rem, 7vw, 6.5rem)/.95 var(--f-display);
  text-transform: uppercase;
  margin: 0 0 2.5rem;
  max-width: 14ch;
}
.display em, .contact__title em { font-style: normal; color: var(--orange); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: #d9d5cc; max-width: 46ch; }

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 1.25rem 0 0; }
.chips li {
  font: 600 .72rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: .06em;
  padding: .55em .9em; border: 1px solid var(--line); border-radius: 999px; color: #e7e3da;
}

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Intro (Startlichter) ---------- */
.intro {
  position: fixed; inset: 0; z-index: 100; background: var(--black);
  display: grid; place-items: center; align-content: center; gap: 2rem;
  transition: transform .9s var(--ease) .1s;
}
.intro__lights { display: flex; gap: 1.2rem; }
.intro__lights span {
  width: 34px; height: 34px; border-radius: 50%;
  background: #262626; box-shadow: inset 0 0 0 2px #333;
  transition: background .15s, box-shadow .15s;
}
.intro__lights span.on { background: var(--orange); box-shadow: 0 0 28px var(--orange); }
.intro__num { font: 400 clamp(5rem, 16vw, 11rem)/1 var(--f-display); color: transparent; -webkit-text-stroke: 2px var(--orange); }
.intro.is-done { transform: translateY(-100%); }
.no-intro .intro { display: none; }

/* ---------- Cursor ---------- */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 90; pointer-events: none;
  width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%;
  border: 1.5px solid var(--orange); mix-blend-mode: difference;
  transition: width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease), background .3s;
  opacity: 0;
}
.cursor.is-active { opacity: 1; }
.cursor.is-hover { width: 72px; height: 72px; margin: -36px 0 0 -36px; background: var(--orange); }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 18px var(--gutter);
  transition: background .4s, backdrop-filter .4s, padding .4s;
}
.nav.is-scrolled { background: rgba(11, 11, 11, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding-block: 12px; }
.nav__logo { font: 400 1.6rem/1 var(--f-display); text-decoration: none; letter-spacing: .02em; }
.nav__logo span { color: var(--orange); }
.nav__links { display: flex; gap: 2rem; }
.nav__links a { font: 500 .85rem var(--f-mono); text-transform: uppercase; letter-spacing: .08em; text-decoration: none; position: relative; }
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: -4px; width: 100%; height: 2px; background: var(--orange); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang button { background: none; border: 0; cursor: pointer; padding: .4em .8em; border-radius: 999px; font: 600 .75rem var(--f-mono); letter-spacing: .06em; }
.lang button[aria-pressed="true"] { background: var(--orange); color: var(--black); }
@media (max-width: 760px) { .nav__links { display: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; overflow: hidden;
  display: grid; grid-template-columns: 1fr; align-items: end;
  padding: 120px var(--gutter) 48px;
  background: radial-gradient(ellipse 45% 60% at 50% 45%, #2b2b2b 0%, #151515 55%, var(--black) 100%);
}
.hero__num {
  position: absolute; right: -2vw; top: 50%; transform: translateY(-50%);
  font: 400 clamp(18rem, 55vw, 60rem)/.8 var(--f-display);
  color: transparent; -webkit-text-stroke: 2px rgba(255, 106, 0, .35);
  pointer-events: none; user-select: none;
}
.hero__portrait {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  height: min(88svh, 980px); width: auto; object-fit: cover;
  -webkit-mask-image: radial-gradient(ellipse 50% 62% at 50% 42%, #000 62%, transparent 100%);
          mask-image: radial-gradient(ellipse 50% 62% at 50% 42%, #000 62%, transparent 100%);
  filter: contrast(1.05);
}
.hero__name {
  position: relative; z-index: 2; margin: 0;
  font: 400 clamp(5rem, 19vw, 19rem)/.82 var(--f-display); text-transform: uppercase;
  display: flex; flex-direction: column;
}
.hero__line { display: block; transform: translateY(110%); transition: transform 1.2s var(--ease); }
.hero__line--outline { color: transparent; -webkit-text-stroke: 3px var(--white); align-self: flex-end; }
.is-loaded .hero__line { transform: none; }
.is-loaded .hero__line--outline { transition-delay: .12s; }
.hero__name { overflow: hidden; }
.hero__meta { position: absolute; z-index: 3; left: var(--gutter); top: clamp(110px, 18vh, 200px); max-width: 300px; }
.hero__meta .mono { color: var(--orange); margin: 0 0 .5rem; }
.hero__meta p:last-child { margin: 0; color: #d9d5cc; }
.hero__scroll { position: absolute; z-index: 3; right: var(--gutter); top: 50%; text-decoration: none; writing-mode: vertical-rl; color: var(--muted); }
.hero__scroll::after { content: ""; display: inline-block; width: 1px; height: 60px; margin-top: 12px; background: var(--orange); animation: drip 2s var(--ease) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
@media (max-width: 760px) {
  .hero__meta { top: 96px; }
  .hero__scroll { display: none; }
  .hero__portrait { height: 64svh; bottom: 6svh; }
  .hero__name { font-size: 27vw; }
}

/* ---------- Marquee ---------- */
.marquee { background: var(--orange); color: var(--black); overflow: hidden; padding: 18px 0; transform: rotate(-1.5deg); margin: -10px -2vw 0; position: relative; z-index: 4; }
.marquee__track { display: flex; align-items: center; gap: 2rem; width: max-content; animation: marquee 28s linear infinite; }
.marquee span { font: 400 clamp(1.5rem, 3vw, 2.4rem)/1 var(--f-display); text-transform: uppercase; white-space: nowrap; }
.marquee i { font: 600 .9rem var(--f-mono); font-style: normal; border: 2px solid var(--black); border-radius: 50%; width: 2.6rem; height: 2.6rem; display: grid; place-items: center; flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Origin (horizontal) ---------- */
.origin { position: relative; background: var(--white); color: var(--black); }
.origin__sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.origin__head { position: absolute; top: 96px; left: var(--gutter); right: var(--gutter); display: flex; align-items: center; gap: 2rem; }
.origin__head .eyebrow { margin: 0; white-space: nowrap; }
.origin__progress { flex: 1; height: 2px; background: rgba(11, 11, 11, .12); }
.origin__progress span { display: block; height: 100%; width: 100%; background: var(--orange); transform: scaleX(0); transform-origin: left; }
.origin__track { display: flex; gap: clamp(32px, 5vw, 80px); padding: 0 var(--gutter); width: max-content; will-change: transform; margin-top: 60px; }
.panel { width: min(78vw, 980px); flex: none; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 3vw, 48px); align-items: center; }
.panel--intro { width: min(70vw, 760px); display: block; }
.panel--intro .display { color: var(--black); max-width: 11ch; }
.panel--intro .lead { color: #3a3833; }
.hint { color: var(--orange); }
.panel__img { margin: 0; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 6px; max-height: 64svh; justify-self: center; width: 100%; }
.panel__img--wide { aspect-ratio: 4 / 3; }
.panel__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.panel:hover .panel__img img { transform: scale(1.04); }
.panel__year { font: 400 clamp(3.5rem, 7vw, 6rem)/1 var(--f-display); color: transparent; -webkit-text-stroke: 2px var(--orange); }
.panel__text h3 { font: 400 clamp(1.8rem, 3vw, 2.6rem)/1.05 var(--f-display); text-transform: uppercase; margin: .5rem 0 1rem; }
.panel__text p { color: #3a3833; margin: 0; }
.panel .chips li { border-color: rgba(11, 11, 11, .2); color: var(--black); }

/* Mobil: vertikal statt horizontal */
@media (max-width: 900px) {
  .origin__sticky { position: static; height: auto; padding: 110px 0 80px; }
  .origin__head { position: static; padding: 0 var(--gutter); margin-bottom: 2rem; }
  .origin__progress { display: none; }
  .origin__track { flex-direction: column; width: auto; transform: none !important; margin: 0; gap: 64px; }
  .panel, .panel--intro { width: 100%; grid-template-columns: 1fr; }
  .panel__img { max-height: none; }
}

/* ---------- Lessons ---------- */
.lessons { overflow: hidden; }
.lessons__bg { position: absolute; inset: 0; opacity: .14; }
.lessons__bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.lessons__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(var(--black), transparent 30%, transparent 70%, var(--black)); }
.lessons .container { position: relative; }
.lessons__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (max-width: 1100px) { .lessons__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .lessons__grid { grid-template-columns: 1fr; } }
.lesson { background: rgba(11, 11, 11, .88); padding: 2.2rem 1.8rem; transition: background .4s; }
.lesson:hover { background: var(--orange); color: var(--black); }
.lesson:hover p, .lesson:hover .lesson__n { color: var(--black); }
.lesson__n { color: var(--orange); }
.lesson h3 { font: 400 1.7rem/1.05 var(--f-display); text-transform: uppercase; margin: 1.5rem 0 .8rem; }
.lesson p { margin: 0; color: #cfcac0; font-size: .97rem; }

/* ---------- Camera ---------- */
.camera { background: var(--ink); }
.camera .lead { margin-bottom: 3rem; }
.videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.video { margin: 0; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: var(--black); position: relative; }
.video iframe { width: 100%; height: 100%; border: 0; }
.video__poster {
  position: absolute; inset: 0; width: 100%; border: 0; cursor: pointer; text-align: left;
  display: flex; flex-direction: column; justify-content: flex-end; gap: .4rem; padding: 1.5rem;
  background:
    repeating-linear-gradient(-45deg, transparent 0 22px, rgba(255, 255, 255, .025) 22px 44px),
    linear-gradient(135deg, #1f1f1f, #0b0b0b);
}
.video__poster::before { content: "55"; position: absolute; right: 1rem; top: .2rem; font: 400 8rem/1 var(--f-display); color: transparent; -webkit-text-stroke: 1.5px rgba(255, 106, 0, .4); }
.video__play { position: absolute; top: 50%; left: 50%; width: 76px; height: 76px; margin: -38px; border-radius: 50%; background: var(--orange); transition: transform .4s var(--ease); }
.video__play::after { content: ""; position: absolute; left: 31px; top: 24px; border-left: 22px solid var(--black); border-top: 14px solid transparent; border-bottom: 14px solid transparent; }
.video__poster:hover .video__play { transform: scale(1.12); }
.video__title { font: 400 1.6rem/1.1 var(--f-display); text-transform: uppercase; position: relative; }
.video__note { color: var(--muted); font-size: .68rem; position: relative; }

/* ---------- Career Track ---------- */
.track { list-style: none; margin: 0; padding: 0 0 0 2.5rem; position: relative; max-width: 860px; }
.track::before { content: ""; position: absolute; left: 8px; top: 8px; bottom: 8px; width: 3px; background: repeating-linear-gradient(var(--orange) 0 14px, transparent 14px 24px); }
.track__item { position: relative; padding-bottom: 3.5rem; }
.track__item::before { content: ""; position: absolute; left: calc(-2.5rem + 1px); top: 6px; width: 17px; height: 17px; border-radius: 50%; background: var(--black); border: 3px solid var(--orange); }
.track__date { color: var(--orange); }
.track__item h3 { font: 400 clamp(1.6rem, 3vw, 2.3rem)/1.1 var(--f-display); text-transform: uppercase; margin: .4rem 0 .6rem; }
.track__item h3 small { display: block; font: 500 .95rem/1.4 var(--f-body); text-transform: none; color: var(--muted); margin-top: .3rem; }
.track__item p { margin: 0; color: #cfcac0; max-width: 62ch; }

/* Firmenlogos im Track */
.track__item { padding-right: 190px; }
.track__logo {
  position: absolute; right: 0; top: 0; width: 160px; height: 76px; border-radius: 10px;
  background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 10px 16px;
}
.track__logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.track__logo--dark { background: #000; border: 1px solid var(--line); padding: 8px 14px; }
.track__logo--cover { padding: 0; }
.track__logo--cover img { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; }
@media (max-width: 600px) {
  .track__item { padding-right: 0; }
  .track__logo { position: static; width: 136px; height: 64px; margin-bottom: .9rem; }
}

/* ---------- Projects ---------- */
.projects { background: var(--white); color: var(--black); }
.projects .display { color: var(--black); }
.tag { color: var(--orange); display: block; }
.project { background: #fff; border: 1px solid rgba(11, 11, 11, .08); border-radius: 10px; padding: 2rem; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.project:hover { transform: translateY(-6px); box-shadow: 0 24px 48px -24px rgba(11, 11, 11, .35); }
.project h3 { font: 400 clamp(1.6rem, 2.4vw, 2.1rem)/1.05 var(--f-display); text-transform: uppercase; margin: .6rem 0 .8rem; }
.project p { color: #3a3833; margin: 0; }
.project .chips li { border-color: rgba(11, 11, 11, .18); color: var(--black); }
.project--feature { background: var(--black); color: var(--white); display: grid; grid-template-columns: 1.1fr 1fr; gap: 2.5rem; padding: clamp(2rem, 4vw, 3.5rem); margin-bottom: 24px; position: relative; overflow: hidden; }
.project--feature::after { content: "MSc"; position: absolute; right: -1rem; bottom: -3rem; font: 400 14rem/1 var(--f-display); color: transparent; -webkit-text-stroke: 1.5px rgba(255, 106, 0, .25); pointer-events: none; }
.project--feature h3 { font-size: clamp(2.2rem, 4.5vw, 3.8rem); }
.project--feature p, .project__sub { color: #cfcac0; }
.project__sub { font-style: italic; margin: 0 !important; }
.project--feature .chips li { border-color: var(--line); color: var(--white); }
.project__body { position: relative; z-index: 1; }
@media (max-width: 860px) { .project--feature { grid-template-columns: 1fr; } }
.projects__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.project__logo { height: 72px; margin-bottom: 1.5rem; display: flex; align-items: center; }
.project__logo img { max-height: 100%; max-width: 180px; object-fit: contain; mix-blend-mode: multiply; }
.project__logo--dark { width: 72px; justify-content: center; background: var(--black); border-radius: 10px; padding: 8px; }
.project__logo--dark img { mix-blend-mode: normal; }
.kpis { display: flex; gap: 2rem; margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(11, 11, 11, .1); }
.kpis b { display: block; font: 400 1.9rem/1 var(--f-display); color: var(--orange); }
.kpis span { font: 500 .72rem var(--f-mono); text-transform: uppercase; letter-spacing: .06em; color: #6b675f; }

/* ---------- Skills ---------- */
.skills__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 1100px) { .skills__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .skills__grid { grid-template-columns: 1fr; } }
.skill { border-top: 3px solid var(--orange); padding-top: 1.25rem; }
.skill h3 { font: 400 1.5rem/1.1 var(--f-display); text-transform: uppercase; margin: 0 0 1rem; }
.skill ul { list-style: none; margin: 0; padding: 0; }
.skill li { padding: .6rem 0; border-bottom: 1px solid var(--line); color: #d9d5cc; display: flex; align-items: center; gap: .6rem; }
.skill li::before { content: ""; width: 6px; height: 6px; background: var(--orange); flex: none; }

/* ---------- Education ---------- */
.education { background: var(--ink); }
.edu { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.edu__item { padding: 2rem; border: 1px solid var(--line); border-radius: 10px; }
.edu__item .mono { color: var(--orange); }
.edu__item h3 { font: 400 1.7rem/1.1 var(--f-display); text-transform: uppercase; margin: .6rem 0; hyphens: manual; overflow-wrap: break-word; }
.edu__item p { margin: 0; color: #cfcac0; }

/* ---------- Contact ---------- */
.contact { position: relative; padding: clamp(110px, 16vw, 200px) 0; overflow: hidden; }
.contact__flag {
  position: absolute; inset: 0 0 auto; height: 48px; opacity: .9;
  background: conic-gradient(var(--white) 25%, var(--black) 0 50%, var(--white) 0 75%, var(--black) 0) 0 0 / 48px 48px;
}
.contact__title { font: 400 clamp(3.2rem, 11vw, 10rem)/.9 var(--f-display); text-transform: uppercase; margin: 0 0 2rem; }
.contact__links { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.5rem; }
.btn {
  display: inline-flex; align-items: center; padding: 1.1em 1.8em; border-radius: 999px;
  background: var(--orange); color: var(--black); text-decoration: none; font-weight: 700;
  transition: transform .3s var(--ease), background .3s;
}
.btn:hover { transform: translateY(-3px); background: var(--orange-2); }
.btn--ghost { background: transparent; color: var(--white); border: 1.5px solid var(--line); }
.btn--ghost:hover { background: var(--white); color: var(--black); }

/* ---------- Footer ---------- */
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding: 28px var(--gutter); border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
.footer p { margin: 0; }
.footer nav { display: flex; gap: 1.5rem; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--orange); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .hero__line { opacity: 1; transform: none; transition: none; }
  .marquee__track, .hero__scroll::after { animation: none; }
  .intro { display: none; }
}

/* ---------- Rechtliche Seiten ---------- */
.legal { max-width: 820px; margin: 0 auto; padding: 150px var(--gutter) 100px; }
.legal .display { max-width: none; margin-bottom: 1.5rem; font-size: clamp(2.6rem, 8vw, 5.5rem); line-height: 1.05; hyphens: manual; }
.legal h2 { font: 400 1.6rem/1.15 var(--f-display); text-transform: uppercase; margin: 2.75rem 0 .8rem; }
.legal p, .legal li { color: #d9d5cc; }
.legal ul { padding-left: 1.2rem; }
.legal a { color: var(--orange); }
.legal code { font: .9em var(--f-mono); }
.legal__note { font-style: italic; color: var(--muted) !important; }
.legal__back { text-decoration: none; color: var(--white); }
.legal__back:hover { color: var(--orange); }
.legal__stand { color: var(--muted) !important; margin-top: 3rem; }
.todo { background: var(--orange); color: var(--black); padding: 0 .3em; border-radius: 3px; font-weight: 700; }
