/* ============================================================
   Geist — Schriftart (self-hosted, OFL-lizenziert, frei nutzbar)
   Eine Variable-Font-Datei deckt alle Schnitte 100–900 ab.
   Datei liegt im Ordner /fonts.
   ============================================================ */
@font-face {
  font-family: "Geist";
  src: url("fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ============================================================
   Design-Tokens
   ============================================================ */
:root {
  --bg: #ffffff;
  --bg-soft: #f4f4f2;
  --bg-soft-2: #ececea;
  --ink: #0a0a0a;
  --ink-soft: #6b6b6b;
  --line: #e3e3e0;
  --accent: #0a0a0a;

  /* Semantische Tokens (für Light/Dark-Umschaltung) */
  --surface: #ffffff;
  --muted: #2a2a2a;
  --glass-bg: rgba(255, 255, 255, 0.5);
  --glass-bg-strong: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.55);
  --glass-hi: rgba(255, 255, 255, 0.75);
  --hero-glow: rgba(90, 90, 120, 0.10);
  --hero-glow-2: rgba(90, 90, 120, 0.06);
  --grain-opacity: 0.05;
  --contact-bg: #0a0a0a;
  --switch-track: rgba(110, 110, 125, 0.22);
  --switch-border: rgba(0, 0, 0, 0.14);
  --hairline: rgba(0, 0, 0, 0.12);
  --hero-gradient: url("images/gradient_hero_light.png");

  --maxw: 1280px;
  --gutter: clamp(20px, 5vw, 64px);
  --nav-h: 62px;
  --nav-top: 16px;

  --font: "Geist", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================================
   Dark Theme
   ============================================================ */
[data-theme="dark"] {
  --bg: #0b0b0c;
  --bg-soft: #141416;
  --bg-soft-2: #26262b;
  --ink: #f3f3f1;
  --ink-soft: #9b9ba1;
  --line: #2a2a30;
  --accent: #f3f3f1;

  --surface: #1b1b1e;
  --muted: #c9c9cd;
  --glass-bg: rgba(22, 22, 26, 0.5);
  --glass-bg-strong: rgba(22, 22, 26, 0.72);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-hi: rgba(255, 255, 255, 0.14);
  --hero-glow: rgba(125, 135, 180, 0.16);
  --hero-glow-2: rgba(125, 135, 180, 0.09);
  --grain-opacity: 0.07;
  --contact-bg: #161619;
  --switch-track: rgba(255, 255, 255, 0.14);
  --switch-border: rgba(255, 255, 255, 0.22);
  --hairline: rgba(255, 255, 255, 0.18);
  --hero-gradient: url("images/gradient_hero.png");
}

/* ============================================================
   Reset / Basis
   ============================================================ */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-top) + var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  transition: background-color 0.5s var(--ease), color 0.5s var(--ease);
  font-family: var(--font);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

p { margin: 0; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* Section-Label (kleiner Eyebrow-Text) */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--ink);
}

/* ============================================================
   Navbar
   ============================================================ */
.nav {
  position: fixed;
  top: var(--nav-top);
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding-inline: 16px;
  pointer-events: none; /* nur die Controls selbst sind klickbar */
}
/* Schwebende Pille im Liquid-Glass-Look */
.nav__inner {
  pointer-events: auto;
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 940px;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 12px 0 22px;
}
/* Glas auf Pseudo-Element auslagern, damit der backdrop-filter NICHT
   den Blur des Mobile-Menüs (Kind-Element) kappt */
.nav__inner > * { position: relative; z-index: 1; }
.nav__inner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: 999px;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-border);
  box-shadow:
    inset 0 1px 0 var(--glass-hi),
    0 10px 30px rgba(0, 0, 0, 0.10),
    0 2px 8px rgba(0, 0, 0, 0.05);
  pointer-events: none;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.nav.is-scrolled .nav__inner::before {
  background: var(--glass-bg-strong);
  box-shadow:
    inset 0 1px 0 var(--glass-hi),
    0 12px 38px rgba(0, 0, 0, 0.14),
    0 2px 10px rgba(0, 0, 0, 0.07);
}
/* Auf dem Desktop lösen wir den Wrapper auf, damit Links + Button
   direkt im Navbar-Layout liegen: Links exakt mittig, Button rechts. */
.nav__menu { display: contents; }
.brand {
  display: flex;
  align-items: center;
}
.brand__logo {
  display: block;
  height: 26px;
  width: auto;
  color: var(--ink);
  transition: opacity 0.25s var(--ease);
}
.brand:hover .brand__logo { opacity: 0.7; }

.nav__links {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 38px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__links a {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  position: relative;
  padding: 4px 0;
  transition: opacity 0.2s var(--ease);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1.5px;
  background: var(--ink);
  transition: width 0.32s var(--ease);
}
.nav__links a:hover::after,
.nav__links a.is-active::after { width: 100%; }

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: 14px;
  font-weight: 500;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease), background 0.4s var(--ease), color 0.4s var(--ease);
}
.nav__cta:hover { transform: translateY(-1px); opacity: 0.88; }

/* rechte Gruppe: Toggle + CTA (+ Burger auf Mobile) */
.nav__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav__cta--in-menu { display: none; }

/* ---- Dark-Mode-Switch im Glas-Look (Apple-Style) ---- */
/* eigenständige Glas-Kapsel rechts neben der Navbar */
.theme-switch {
  pointer-events: auto;
  flex: 0 0 auto;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-border);
  box-shadow:
    inset 0 1px 0 var(--glass-hi),
    0 10px 30px rgba(0, 0, 0, 0.10),
    0 2px 8px rgba(0, 0, 0, 0.05);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.theme-toggle {
  -webkit-appearance: none;
  appearance: none;
  border: none;
  background: none;
  padding: 0;
  margin: 0;
  width: 56px;
  height: 32px;
  flex: 0 0 auto;
  cursor: pointer;
}
.theme-toggle__track {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: var(--switch-track);
  -webkit-backdrop-filter: blur(8px) saturate(150%);
  backdrop-filter: blur(8px) saturate(150%);
  border: 1px solid var(--switch-border);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.12), inset 0 -1px 0 var(--glass-hi);
  transition: background 0.45s var(--ease), border-color 0.45s var(--ease);
}
.theme-toggle__knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--ink);
  display: grid;
  place-items: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.28);
  transition: transform 0.6s cubic-bezier(0.5, 1.65, 0.45, 1), background 0.45s var(--ease);
}
[data-theme="dark"] .theme-toggle__knob { transform: translateX(24px) rotate(360deg); }
.theme-toggle__knob svg {
  position: absolute;
  width: 14px;
  height: 14px;
  color: var(--bg);
  transition: opacity 0.4s var(--ease), transform 0.6s var(--ease);
}
.theme-toggle__sun { opacity: 1; transform: scale(1) rotate(0deg); }
.theme-toggle__moon { opacity: 0; transform: scale(0.4) rotate(-90deg); }
[data-theme="dark"] .theme-toggle__sun { opacity: 0; transform: scale(0.4) rotate(90deg); }
[data-theme="dark"] .theme-toggle__moon { opacity: 1; transform: scale(1) rotate(0deg); }
.theme-toggle:hover .theme-toggle__track { border-color: var(--ink); }
.theme-toggle:focus-visible .theme-toggle__track {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

/* Burger */
.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
}
.nav__burger span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 0 auto;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  border: 1px solid var(--ink);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}
.btn--solid { background: var(--ink); color: var(--bg); }
.btn--solid:hover { transform: translateY(-2px); opacity: 0.88; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--bg); transform: translateY(-2px); }
.btn__arrow { display: inline-flex; transition: transform 0.3s var(--ease); }
.btn__arrow svg { width: 0.85em; height: 0.85em; display: block; }
.btn:hover .btn__arrow { transform: translate(3px, -3px); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: calc(var(--nav-top) + var(--nav-h) + clamp(48px, 9vw, 120px));
  padding-bottom: clamp(48px, 9vw, 100px);
}
/* Gradient-Background, unten-bündig zum Hero */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: var(--hero-gradient);
  background-repeat: no-repeat;
  background-position: bottom center;
  background-size: 100% auto;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(36px, 6vw, 60px);
}
@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr) clamp(300px, 30%, 380px);
    align-items: start;
  }
  .hero__actions { flex-wrap: nowrap; }
}
.hero__eyebrow { margin-bottom: clamp(20px, 3vw, 34px); }
.hero__title {
  font-size: clamp(46px, 8vw, 104px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.045em;
}
.hero__title em { font-style: italic; font-weight: 300; text-transform: none; }

/* runde Bildmaske mitten im Titel */
.hero__photo {
  display: inline-block;
  width: 0.92em;
  height: 0.92em;
  margin: 0 0.08em;
  border-radius: 50%;
  overflow: hidden;
  vertical-align: -0.17em;
  background: var(--bg-soft-2);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.14);
}
.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  display: block;
}

/* linke Spalte hinter den Karten */
.hero__main { position: relative; z-index: 1; }
/* rechte Spalte: Karten-Stack — liegt VOR dem Text */
.hero__side {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(20px, 2.6vw, 28px);
}
/* gefächerter Karten-Stack */
.hero__cards {
  position: relative;
  width: 100%;
  max-width: 380px;
}
.hero__card {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 20px;
  overflow: hidden;
  border: clamp(10px, 1.1vw, 16px) solid var(--ink);
  background: var(--bg-soft-2);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
  transition: border-color 0.45s var(--ease), box-shadow 0.45s var(--ease),
    transform 0.65s cubic-bezier(0.34, 1.4, 0.5, 1);
}
.hero__card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  display: block;
}

/* vordere (Haupt-)Karte */
.hero__card--main {
  position: relative;
  z-index: 3;
}
/* hintere Karten links/rechts */
.hero__card--back {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.hero__card--left {
  transform-origin: bottom center;
  transform: translateX(-13%) rotate(-6deg) scale(0.9);
}
.hero__card--right {
  transform-origin: bottom center;
  transform: translateX(13%) rotate(6deg) scale(0.9);
}
/* Hover: Karten fächern raus */
.hero__cards:hover .hero__card--left {
  transform: translateX(-46%) rotate(-12deg) scale(0.96);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.24);
}
.hero__cards:hover .hero__card--right {
  transform: translateX(46%) rotate(12deg) scale(0.96);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.24);
}
.hero__cards:hover .hero__card--main {
  transform: translateY(-4px) scale(1.01);
}

/* Mobile: kein Hover -> Karten fächern automatisch beim Reinscrollen */
@media (hover: none), (max-width: 860px) {
  .hero__cards {
    margin-inline: auto;
    max-width: 270px;
  }
  .hero__cards.is-fanned .hero__card--left {
    transform: translateX(-24%) rotate(-9deg) scale(0.92);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  }
  .hero__cards.is-fanned .hero__card--right {
    transform: translateX(24%) rotate(9deg) scale(0.92);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  }
}
.hero__main .hero__lead { margin-top: clamp(28px, 4vw, 46px); }
.hero__main .hero__actions { margin-top: clamp(24px, 3vw, 34px); }
.hero__lead {
  font-size: clamp(15px, 1.35vw, 17px);
  line-height: 1.62;
  color: var(--muted);
  max-width: 44ch;
}
.hero__lead strong { font-weight: 700; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__actions .btn { padding: 13px 22px; font-size: 14px; white-space: nowrap; }
@media (max-width: 520px) {
  .hero__actions { width: 100%; }
  .hero__actions .btn { flex: 1 1 auto; justify-content: center; padding: 12px 14px; font-size: 13.5px; }
}

/* Marquee-Band unter dem Hero */
.marquee {
  border-block: 1px solid var(--line);
  overflow: hidden;
  white-space: nowrap;
  padding-block: 16px;
}
.marquee__track {
  display: inline-flex;
  gap: 0;
  animation: marquee 28s linear infinite;
}
.marquee__track span {
  font-size: clamp(20px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -0.03em;
  display: inline-flex;
  align-items: center;
}
.marquee__track span::after {
  content: "✦";
  margin: 0 38px;
  font-size: 0.5em;
  color: var(--ink-soft);
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ============================================================
   Generische Section
   ============================================================ */
.section { padding-block: clamp(64px, 10vw, 150px); }
.section--soft { background: var(--bg-soft); }
.section__head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.section__title {
  font-size: clamp(32px, 5.4vw, 68px);
  letter-spacing: -0.04em;
}
@media (min-width: 860px) {
  .section__head--split {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: end;
  }
}
.section__intro {
  color: var(--ink-soft);
  max-width: 52ch;
  font-size: clamp(16px, 1.5vw, 19px);
}

/* ============================================================
   Motivation
   ============================================================ */
.letter {
  display: grid;
  gap: clamp(40px, 6vw, 72px);
}
@media (min-width: 900px) {
  .letter { grid-template-columns: 0.42fr 0.58fr; }
}
.letter__aside {
  position: sticky;
  top: calc(var(--nav-top) + var(--nav-h) + 24px);
  align-self: start;
}
/* Mobile: Zitat NICHT sticky, sonst schiebt es sich über den Fließtext */
@media (max-width: 899px) {
  .letter__aside { position: static; top: auto; }
}
.letter__aside .big-quote {
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 300;
  line-height: 1.18;
  letter-spacing: -0.03em;
}
.letter__aside .sign {
  margin-top: 28px;
  font-size: 14px;
  color: var(--ink-soft);
}
.letter__body p {
  font-size: clamp(16px, 1.45vw, 18px);
  line-height: 1.75;
  color: var(--ink);
}
.letter__body p + p { margin-top: 1.25em; }
.letter__body strong { font-weight: 700; }

/* ============================================================
   Lebenslauf
   ============================================================ */
.cv {
  display: grid;
  gap: clamp(40px, 5vw, 64px);
}
@media (min-width: 980px) {
  .cv { grid-template-columns: 1.4fr 1fr; }
}
.cv__group + .cv__group { margin-top: 48px; }
.cv__group-title {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}
.timeline__item {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 22px;
  padding-block: 22px;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.3s var(--ease);
}
.timeline__item:hover { padding-left: 8px; }
.timeline__year {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  white-space: nowrap;
  padding-top: 3px;
}
.timeline__role { font-size: clamp(18px, 2vw, 22px); font-weight: 700; letter-spacing: -0.02em; }
.timeline__org { font-size: 15px; color: var(--ink-soft); margin-top: 2px; }
.timeline__desc { font-size: 15px; color: var(--ink-soft); margin-top: 10px; max-width: 60ch; }

@media (max-width: 540px) {
  .timeline__item { grid-template-columns: 1fr; gap: 6px; }
}

/* Scrollbarer Werdegang — hält die Section kompakt */
.cv__timeline { position: relative; }
.cv__scroll {
  max-height: 460px; /* Fallback / mobile */
  overflow-y: auto;
  padding-right: 16px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #c9c9c5 transparent;
}
.cv__scroll::-webkit-scrollbar { width: 5px; }
.cv__scroll::-webkit-scrollbar-track { background: transparent; }
.cv__scroll::-webkit-scrollbar-thumb { background: #c9c9c5; border-radius: 999px; }
.cv__scroll::-webkit-scrollbar-thumb:hover { background: var(--ink-soft); }
.cv__scroll:focus-visible { outline: 2px solid var(--ink); outline-offset: 6px; border-radius: 6px; }
/* sanfter Verlauf am unteren Rand als Scroll-Hinweis */
.cv__timeline::after {
  content: "";
  position: absolute;
  left: 0;
  right: 16px;
  bottom: 32px;
  height: 54px;
  background: linear-gradient(to bottom, transparent, var(--bg-soft));
  pointer-events: none;
}
.cv__scroll-hint {
  display: block;
  margin-top: 14px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* Auf dem Desktop füllt der Scrollbereich exakt die Höhe der
   rechten Spalte (bis zum „Lebenslauf als PDF"-Button). */
@media (min-width: 980px) {
  .cv__scroll {
    position: absolute;
    inset: 0 0 30px 0;
    max-height: none;
    padding-right: 18px;
  }
  .cv__scroll-hint {
    position: absolute;
    left: 0;
    bottom: 0;
    margin-top: 0;
  }
}

/* Skills / Tools */
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(24px, 3vw, 36px);
}
.section--soft .panel { background: var(--surface); }
.panel + .panel { margin-top: 20px; }
.panel__title {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 20px;
}
.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tag {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.tag:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.skillbars { display: grid; gap: 18px; }
.skillbar__top {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
}
.skillbar__top span:last-child { color: var(--ink-soft); }
.skillbar__track {
  height: 4px;
  border-radius: 999px;
  background: var(--bg-soft-2);
  overflow: hidden;
}
.skillbar__fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: var(--ink);
  transition: width 1.1s var(--ease);
}

/* ============================================================
   Portfolio
   ============================================================ */
.work {
  display: grid;
  gap: clamp(18px, 2.4vw, 28px);
  grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 720px) { .work { grid-template-columns: 1fr; } }

/* ---- Apple-Ordner-Projektkarte (Unibody, hellblau, MIT Vorschaufenster) ---- */
.folder {
  --folder: #54a6f0;          /* Apple-Ordner-Hellblau */
  --folder-ink: #0b2a47;      /* dunkles Navy für Text */
  position: relative;
  display: flex;
  flex-direction: column;
  aspect-ratio: 1.45 / 1;
  border-radius: 30px;
  overflow: hidden;
  border: 12px solid var(--folder);  /* Kontur = Flächenfarbe, dick → Unibody */
  background: var(--folder);
  cursor: pointer;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.folder:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(20, 90, 170, 0.30); }

/* Bild-Header (Vorschaufenster) */
.folder__media {
  position: relative;
  flex: none;
  height: 40%;
  background: linear-gradient(180deg, #8fd0fb, #63b5f6);
  background-size: cover;
  background-position: center;
}
.folder:nth-child(1) .folder__media { background-image: url("images/header_icons.jpg"); }
.folder:nth-child(2) .folder__media { background-image: url("images/header_screen.jpg"); }
.folder:nth-child(3) .folder__media { background-image: url("images/header_graphic.jpg"); }
.folder:nth-child(4) .folder__media { background-image: url("images/header_video.jpg"); }

/* Ordner-Körper (Unibody) */
.folder__body {
  position: relative;
  flex: 1;
  background: var(--folder);
  padding: 24px 24px 20px;
  display: flex;
  flex-direction: column;
  color: var(--folder-ink);
}

/* Tab oben links (ragt über den Körper) + konkave Schwingung (Original) */
.folder__body::before {
  content: "";
  position: absolute;
  left: 0;
  top: -34px;
  width: 46%;
  height: 37px;
  background: var(--folder);
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
}
.folder__body::after {
  content: "";
  position: absolute;
  left: calc(46% - 1px);
  top: -18px;
  width: 18px;
  height: 21px;
  background: var(--folder);
  -webkit-mask: radial-gradient(circle at top right, transparent 17px, #000 18px);
          mask: radial-gradient(circle at top right, transparent 17px, #000 18px);
}

.folder__tag {
  position: absolute;
  top: 14px;
  right: 16px;
  color: #fff;
  font-weight: 700;
  font-size: clamp(12px, 1.4vw, 14px);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}
.folder__title {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--folder-ink);
  line-height: 1.1;
}
.folder__sub {
  font-size: clamp(13px, 1.5vw, 15px);
  color: rgba(11, 42, 71, 0.62);
  margin-top: 5px;
}
.folder__meta {
  margin-top: auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  color: var(--folder-ink);
}
.folder__num {
  font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}
.folder__num span {
  font-size: 12px;
  font-weight: 500;
  color: rgba(11, 42, 71, 0.55);
  margin-left: 6px;
}
.folder__arrow { display: inline-flex; transition: transform 0.35s var(--ease); }
.folder__arrow svg { width: 20px; height: 20px; display: block; }
.folder:hover .folder__arrow { transform: translate(4px, -4px); }

/* ============================================================
   Projekt-Detail (Modal) — öffnet aus dem Ordner, Blau -> Glas
   ============================================================ */
html.modal-open { overflow: hidden; }
.pmodal { position: fixed; inset: 0; z-index: 1500; display: none; }
.pmodal.is-active { display: block; }

.pmodal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.pmodal.is-open .pmodal__backdrop { opacity: 1; }

.pmodal__panel {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(92vw, 920px);
  max-height: 88vh;
  transform: translate(-50%, -50%) scale(0.9);
  border-radius: 30px;
  overflow: hidden;
  background: var(--glass-bg-strong);   /* Glas wie Navbar */
  -webkit-backdrop-filter: blur(30px) saturate(185%);
  backdrop-filter: blur(30px) saturate(185%);
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 var(--glass-hi), 0 40px 90px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 0.45s var(--ease), transform 0.6s cubic-bezier(0.34, 1.4, 0.5, 1);
}
.pmodal.is-open .pmodal__panel { opacity: 1; transform: translate(-50%, -50%) scale(1); }
/* Apple-Blau, das beim Öffnen in Glas übergeht */
.pmodal__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #54a6f0;
  opacity: 1;
  pointer-events: none;
  transition: opacity 0.6s var(--ease) 0.12s;
}
.pmodal.is-open .pmodal__panel::before { opacity: 0; }

.pmodal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg-strong);
  color: var(--ink);
  font-size: 15px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.25s var(--ease);
}
.pmodal__close:hover { transform: rotate(90deg); }

.pmodal__scroll {
  position: relative;
  z-index: 1;
  max-height: 88vh;
  overflow-y: auto;
  padding: clamp(26px, 4vw, 46px);
  color: var(--ink);
}

.pmodal__eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.pmodal__title {
  font-size: clamp(30px, 5vw, 54px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin: 10px 0 14px;
}
.pmodal__lead {
  color: var(--muted);
  max-width: 58ch;
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.6;
}
.pmodal__hero {
  margin-top: clamp(22px, 3vw, 34px);
  border-radius: 18px;
  border: 1px solid var(--glass-border);
  background: var(--bg-soft-2);
  overflow: hidden;
}
/* leerer Hero behält 16:9 als dezenter Platzhalter */
.pmodal__hero:empty { aspect-ratio: 16 / 9; }
.pmodal__hero--media {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(14px, 2.5vw, 26px);
  background: linear-gradient(150deg, var(--bg-soft), var(--bg-soft-2));
}
.pmodal__heromedia {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(62vh, 560px);
  object-fit: contain;
  border-radius: 12px;
}
/* Hochformat (App-Screen, flaches Poster): natürliche Breite, mehr Höhe */
.pmodal__hero--contain .pmodal__heromedia {
  width: auto;
  max-width: 100%;
  max-height: min(74vh, 640px);
}
video.pmodal__heromedia { background: #000; }
/* Nicht-PNG (JPG …): randlos den Glas-Rahmen ausfüllen */
.pmodal__hero--cover {
  padding: 0;
  aspect-ratio: 16 / 9;
}
.pmodal__hero--cover .pmodal__heromedia {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  border-radius: 0;
}
.pmodal__grid {
  display: grid;
  gap: clamp(24px, 4vw, 48px);
  margin-top: clamp(26px, 3.5vw, 40px);
}
@media (min-width: 760px) {
  .pmodal__grid { grid-template-columns: 1.6fr 1fr; align-items: start; }
}
.pmodal__body p { color: var(--ink); line-height: 1.75; font-size: clamp(15px, 1.4vw, 17px); }
.pmodal__body p + p { margin-top: 1.1em; }
.pmodal__meta { display: flex; flex-direction: column; gap: 0; }
.pmodal__metaitem {
  display: flex;
  flex-direction: column;
  gap: 3px;
  border-top: 1px solid var(--line);
  padding: 14px 0;
}
.pmodal__metalabel { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.pmodal__metaval { font-size: 15px; font-weight: 600; color: var(--ink); }

.pmodal__gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: start;
  gap: 14px;
  margin-top: clamp(26px, 3.5vw, 40px);
}
.pmodal__shot {
  border-radius: 16px;
  border: 1px solid var(--glass-border);
}
.pmodal__shot--empty {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, rgba(127,127,140,0.16), rgba(127,127,140,0.05));
}
.pmodal__shot--wide { grid-column: 1 / -1; }
.pmodal__shot--img {
  overflow: hidden;
  padding: clamp(10px, 1.6vw, 16px);
  background: linear-gradient(150deg, var(--bg-soft), var(--bg-soft-2));
  display: flex;
  align-items: center;
  justify-content: center;
}
.pmodal__shot--img img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}
/* Nicht-PNG-Kachel: 4:3, randlos gefüllt */
.pmodal__shot--cover {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.pmodal__shot--cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Lange Kachel links: über 2 Reihen, Höhe = beide rechten Kacheln zusammen */
.pmodal__shot--tall {
  grid-row: span 2;
  align-self: stretch;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(10px, 1.6vw, 16px);
  background: linear-gradient(150deg, var(--bg-soft), var(--bg-soft-2));
}
.pmodal__shot--tall img {
  display: block;
  width: auto;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 10px;
}
@media (max-width: 620px) {
  .pmodal__shot--tall { grid-row: auto; }
}
@media (max-width: 620px) {
  .pmodal__gallery { grid-template-columns: 1fr; }
  .pmodal__shot--wide { grid-column: auto; }
}

/* ============================================================
   Kontakt / Footer
   ============================================================ */
.contact {
  background: var(--contact-bg);
  color: #fff;
  padding-top: clamp(72px, 12vw, 160px);
  padding-bottom: clamp(40px, 6vw, 80px);
  transition: background-color 0.5s var(--ease);
  /* beim Ankerklick: Section-Oberkante landet knapp über der Navbar
     (Navbar-Oberkante ~25px unter der Portfolio→Contact-Grenze) */
  scroll-margin-top: calc((var(--nav-top) + var(--nav-h) + 16px) * -1 - 12px);
}
.contact .eyebrow { color: rgba(255,255,255,0.6); }
.contact .eyebrow::before { background: #fff; }
.contact__title {
  font-size: clamp(38px, 6.2vw, 84px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.96;
  margin-block: 16px 36px;
}
.contact__title a { transition: opacity 0.3s var(--ease); }
.contact__title a:hover { opacity: 0.6; }
.contact__grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  border-top: 1px solid rgba(255,255,255,0.16);
  padding-top: 40px;
}
.contact__label {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 8px;
}
.contact__val { font-size: 16px; font-weight: 500; }
.contact__val a:hover { text-decoration: underline; text-underline-offset: 4px; }

.footer {
  background: var(--contact-bg);
  color: rgba(255,255,255,0.5);
  padding-bottom: 40px;
  font-size: 13px;
  transition: background-color 0.5s var(--ease);
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 28px;
}

/* ============================================================
   Kontaktformular (im Contact-Bereich, immer auf dunklem Grund)
   ============================================================ */
.contact__body {
  display: grid;
  gap: clamp(40px, 6vw, 72px);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding-top: clamp(40px, 5vw, 56px);
}
@media (min-width: 880px) {
  .contact__body { grid-template-columns: 0.8fr 1.2fr; align-items: start; }
}
.contact__details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 24px;
  align-content: start;
}
@media (min-width: 880px) {
  .contact__details { grid-template-columns: 1fr; gap: 26px; }
}

.cform { display: flex; flex-direction: column; gap: 24px; }
.cform__row { display: grid; gap: 24px; }
@media (min-width: 560px) {
  .cform__row { grid-template-columns: 1fr 1fr; }
}
.cform__field { display: flex; flex-direction: column; min-width: 0; }
.cform__label {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 8px;
}
.cform__input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 0;
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  padding: 8px 0;
  outline: none;
  transition: border-color 0.3s var(--ease);
}
.cform__input::placeholder { color: rgba(255, 255, 255, 0.35); }
.cform__input:focus { border-bottom-color: #fff; }
.cform__textarea { resize: vertical; min-height: 96px; line-height: 1.55; }

/* Dropdown */
.cform__select { position: relative; }
.cform__select select {
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  padding-right: 28px;
}
.cform__select select option { color: #111; } /* native Liste lesbar */
.cform__chevron {
  position: absolute;
  right: 0;
  bottom: 9px;
  pointer-events: none;
  color: rgba(255, 255, 255, 0.6);
  display: inline-flex;
}
.cform__chevron svg { width: 16px; height: 16px; display: block; }

/* DSGVO-Checkbox */
.cform__consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
}
.cform__consent input {
  margin-top: 2px;
  width: 16px;
  height: 16px;
  accent-color: #fff;
  flex: 0 0 auto;
  cursor: pointer;
}

/* Honeypot (unsichtbar) */
.cform__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Submit-Button: weiß auf dunklem Kontaktgrund */
.cform__submit {
  align-self: flex-start;
  background: #fff;
  color: #0a0a0a;
  border-color: #fff;
}
.cform__submit:hover { opacity: 0.9; transform: translateY(-2px); }
.cform__submit:disabled { opacity: 0.5; cursor: progress; transform: none; }

/* Status-Meldung */
.cform__status { margin: 0; font-size: 14px; min-height: 1.2em; }
.cform__status.is-success { color: #74e0a3; }
.cform__status.is-error { color: #ff8b8b; }

/* ---- Contact: Kopfzeile mit Status-Badge + Live-Zeit ---- */
.contact__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}
.contact__status {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
}
.status__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #43d17a;
  box-shadow: 0 0 0 0 rgba(67, 209, 122, 0.55);
  animation: statusPulse 2.2s infinite;
}
@keyframes statusPulse {
  0% { box-shadow: 0 0 0 0 rgba(67, 209, 122, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(67, 209, 122, 0); }
  100% { box-shadow: 0 0 0 0 rgba(67, 209, 122, 0); }
}
.contact__time { color: rgba(255, 255, 255, 0.5); font-weight: 400; }
.contact__time strong { color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---- Contact: linke Infospalte ---- */
.contact__info {
  display: flex;
  flex-direction: column;
  gap: clamp(26px, 4vw, 40px);
}
.contact__email {
  align-self: flex-start;
  max-width: 100%;
  font-size: clamp(17px, 2.2vw, 26px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #fff;
  overflow-wrap: anywhere;
  padding-bottom: 4px;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1.5px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 0.4s var(--ease);
}
.contact__email:hover { background-size: 100% 1.5px; }
.contact__minis {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 4vw, 48px);
}

/* ---- Outro-Marquee (Übergang zum Footer, dunkler Bereich) ---- */
.marquee--outro {
  background: var(--contact-bg);
  border-block: 1px solid rgba(255, 255, 255, 0.12);
  transition: background-color 0.5s var(--ease);
}
.marquee--outro .marquee__track { animation-duration: 34s; }
.marquee--outro .marquee__track span { color: #fff; }
.marquee--outro .marquee__track span::after { color: rgba(255, 255, 255, 0.4); }

/* ============================================================
   Intro-Overlay (Logo-Aufbau nach Login)
   ============================================================ */
#intro {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  background: #0a0a0a;
  color: #fff;
}
#intro.is-active { display: flex; }
.intro__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(20px, 3vw, 30px);
}
.intro__logo { width: min(38vw, 240px); height: auto; overflow: visible; }
.intro__brand {
  font-family: var(--font);
  font-weight: 800;
  font-size: clamp(18px, 2.4vw, 24px);
  letter-spacing: -0.04em;
  text-transform: lowercase;
  color: #fff;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.intro__brand span { color: rgba(255, 255, 255, 0.5); }
#intro.is-built .intro__brand { opacity: 1; transform: none; }
.intro__stroke {
  fill: none;
  stroke: #fff;
  stroke-width: 16;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.intro__fill { fill: #fff; opacity: 0; }
#intro.is-leaving {
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
@media (prefers-reduced-motion: reduce) {
  #intro.is-leaving { transition: opacity 0.3s ease; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .status__dot { animation: none; }
}

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

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   Mobile Navigation
   ============================================================ */
@media (max-width: 860px) {
  :root { --nav-h: 56px; --nav-top: 12px; }
  .nav { padding-inline: 12px; }
  .nav__inner { padding: 0 10px 0 18px; }
  .nav__burger { display: flex; }
  .nav__menu {
    display: flex;
    position: fixed;
    top: calc(var(--nav-top) + var(--nav-h) + 10px);
    left: 12px;
    right: 12px;
    background: var(--glass-bg-strong);
    -webkit-backdrop-filter: blur(34px) saturate(190%);
    backdrop-filter: blur(34px) saturate(190%);
    border: 1px solid var(--hairline);
    border-radius: 24px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.16);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 20px 22px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
  }
  .nav__menu.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav__links {
    position: static;
    transform: none;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 0;
  }
  .nav__links li { width: 100%; border-bottom: 1px solid var(--hairline); }
  .nav__links a { display: block; padding: 16px 0; font-size: 18px; font-weight: 500; }
  .nav__links a::after { display: none; }
  .nav__cta--in-menu { display: inline-flex; margin-top: 20px; width: 100%; justify-content: center; padding: 14px; }
  .nav__cta--in-bar { display: none; }
}

/* ============================================================
   Theme-Wipe (View Transitions) — kreisförmiger Übergang
   ============================================================ */
::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}
::view-transition-old(root) { z-index: 0; }
::view-transition-new(root) { z-index: 1; }

/* ============================================================
   Under-Construction Gate (Passwortmaske)
   ============================================================ */
/* Solange gesperrt: Inhalt ausblenden, nur die Maske zeigen.
   Kein Flackern, da die Lock-Klasse direkt im <html> steht. */
html.gate-locked body { overflow: hidden; }
html.gate-locked body > .nav,
html.gate-locked body > main,
html.gate-locked body > .footer { display: none !important; }

#gate { display: none; }
html.gate-locked #gate {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: #0a0a0a;
  color: #fff;
  align-items: center;
  justify-content: center;
  padding: var(--gutter);
}
.gate__inner {
  width: 100%;
  max-width: 560px;
  text-align: left;
}
.gate__logo {
  display: block;
  height: clamp(40px, 6vw, 54px);
  width: auto;
  color: #fff;
  margin-bottom: 22px;
}
.gate__brand {
  display: block;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.04em;
  text-transform: lowercase;
  margin-bottom: clamp(40px, 9vw, 90px);
}
.gate__brand span { color: rgba(255, 255, 255, 0.55); }
.gate__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}
.gate__eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: #fff;
}
.gate__title {
  font-size: clamp(40px, 8vw, 84px);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: -0.045em;
  margin: 18px 0 22px;
}
.gate__text {
  color: rgba(255, 255, 255, 0.7);
  font-size: clamp(15px, 1.6vw, 18px);
  max-width: 42ch;
  margin-bottom: 36px;
}
.gate__form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.gate__input {
  flex: 1 1 220px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  padding: 15px 22px;
  outline: none;
  transition: border-color 0.25s var(--ease);
}
.gate__input::placeholder { color: rgba(255, 255, 255, 0.45); }
.gate__input:focus { border-color: #fff; }
.gate__btn {
  border: 1px solid #fff;
  background: #fff;
  color: #0a0a0a;
  border-radius: 999px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  padding: 15px 28px;
  cursor: pointer;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.gate__btn:hover { transform: translateY(-2px); opacity: 0.9; }
.gate__error {
  margin-top: 18px;
  font-size: 14px;
  color: #ff8b8b;
}
.gate__inner.shake { animation: gateShake 0.4s var(--ease); }
@keyframes gateShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(7px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(3px); }
}
