:root {
  --ink: #0b0c10;
  --paper: #f3f1ec;
  --muted: #8a8f9c;
  --line: rgba(255, 255, 255, 0.12);
  --blue: #2f6bff;
  --pad: clamp(20px, 5vw, 80px);
  --max: 1200px;
  --display: "Bricolage Grotesque", sans-serif;
  --body: "IBM Plex Sans", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #f4f5f7;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  background: var(--ink);
  overflow-x: hidden;
}

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--pad);
  transition: background 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(11, 12, 16, 0.85);
  backdrop-filter: blur(14px);
  border-color: var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.16em;
}

.brand img {
  width: 36px;
  height: auto;
  object-fit: contain;
}

.main-nav {
  display: flex;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(244, 245, 247, 0.72);
}

.main-nav a {
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: #fff;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.menu-toggle span {
  width: 22px;
  height: 2px;
  background: #fff;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

/* Hero — one composition, brand first, full-bleed visual */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: end start;
  padding: 0;
  overflow: hidden;
  background: #07080c;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 70% 40%, rgba(47, 107, 255, 0.28), transparent 60%),
    radial-gradient(ellipse 50% 50% at 20% 80%, rgba(124, 58, 237, 0.18), transparent 55%),
    linear-gradient(180deg, #0a0b12 0%, #07080c 100%);
}

.hero-logo {
  position: absolute;
  right: max(-2vw, -40px);
  top: 46%;
  width: min(52vw, 420px);
  transform: translateY(-55%);
  opacity: 0.9;
  animation: logo-breathe 8s ease-in-out infinite;
  pointer-events: none;
  user-select: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 var(--pad) clamp(40px, 8vh, 72px);
  background: linear-gradient(180deg, transparent 0%, rgba(7, 8, 12, 0.55) 28%, rgba(7, 8, 12, 0.92) 100%);
}

.hero-brand {
  margin: 0 0 10px;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(3.4rem, 12vw, 8.5rem);
  line-height: 0.88;
  letter-spacing: -0.05em;
}

.hero h1 {
  margin: 0 0 12px;
  max-width: 14ch;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3.2vw, 2.2rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: rgba(244, 245, 247, 0.92);
}

.hero-text {
  margin: 0;
  max-width: 34ch;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-cta {
  display: inline-flex;
  margin-top: 28px;
  padding: 14px 22px;
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.hero-cta:hover {
  transform: translateY(-2px);
  background: var(--blue);
  color: #fff;
}

/* Projects */
.projects {
  padding: 0 0 40px;
}

.projects-head {
  max-width: var(--max);
  margin: 0 auto;
  padding: 88px var(--pad) 40px;
}

.projects-head h2,
.about h2,
.contact h2 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  letter-spacing: -0.04em;
}

.projects-head p {
  margin: 0;
  color: var(--muted);
}

.showcase {
  border-top: 1px solid var(--line);
}

.showcase:last-child {
  border-bottom: 1px solid var(--line);
}

.showcase-hit {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  min-height: min(72vh, 560px);
  max-width: none;
}

.showcase-visual {
  display: grid;
  place-items: center;
  padding: clamp(28px, 5vw, 56px);
  min-height: 280px;
}

.showcase-visual img {
  width: min(100%, 320px);
  height: auto;
  object-fit: contain;
  transition: transform 0.45s ease;
}

.showcase-visual .logo-eat {
  width: min(100%, 220px);
}

.showcase-visual .logo-jetzt {
  width: min(100%, 300px);
}

.collab-lockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.collab-lockup svg {
  width: 56px;
  height: 56px;
}

.showcase-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 5vw, 64px);
  background: #0e1016;
}

.showcase-label {
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.showcase-copy h3 {
  margin: 0 0 14px;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.03em;
  transition: color 0.25s ease;
}

.showcase-copy p {
  margin: 0 0 28px;
  max-width: 36ch;
  color: rgba(244, 245, 247, 0.68);
}

.showcase-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
}

.showcase-link i {
  transition: transform 0.25s ease;
  font-style: normal;
}

.showcase-link--muted {
  color: var(--muted);
}

a.showcase-hit:hover .showcase-visual img,
a.showcase-hit:hover .showcase-visual .wordmark {
  transform: scale(1.04);
}

a.showcase-hit:hover .showcase-copy h3 {
  color: #fff;
}

a.showcase-hit:hover .showcase-link i {
  transform: translate(3px, -3px);
}

.showcase-hit--static {
  cursor: default;
}

.wordmark {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  letter-spacing: -0.04em;
  color: #fff;
  transition: transform 0.45s ease;
}

/* Per-project color fields */
.showcase--modulo .showcase-visual {
  background: #050505;
}

.showcase--alexx .showcase-visual {
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 90, 60, 0.35), transparent 42%),
    radial-gradient(circle at 80% 70%, rgba(47, 107, 255, 0.35), transparent 40%),
    #141824;
}

.showcase--jetzt .showcase-visual {
  background: #040404;
}

.showcase--collab .showcase-visual {
  background: linear-gradient(150deg, #1e3260, #121a2e);
  color: #c9d7ff;
}

.showcase--collab .wordmark {
  color: #e8eeff;
}

.showcase--eat .showcase-visual {
  background: #06140c;
}

.showcase--modulo a.showcase-hit:hover .showcase-link { color: #ff6a45; }
.showcase--alexx a.showcase-hit:hover .showcase-link { color: #6ea0ff; }
.showcase--jetzt a.showcase-hit:hover .showcase-link { color: #e879f9; }
.showcase--eat a.showcase-hit:hover .showcase-link { color: #7dff6a; }

/* About */
.about {
  padding: 100px var(--pad);
  background:
    linear-gradient(180deg, #0b0c10 0%, #12141c 100%);
}

.about-inner {
  max-width: 640px;
}

.about-inner p {
  margin: 0;
  color: rgba(244, 245, 247, 0.7);
  font-size: 1.15rem;
}

/* Contact */
.contact {
  padding: 0 var(--pad) 120px;
  background: #12141c;
}

.contact-inner {
  padding-top: 48px;
  border-top: 1px solid var(--line);
}

.contact-inner a {
  display: inline-block;
  margin-top: 18px;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  letter-spacing: -0.04em;
  background-image: linear-gradient(90deg, #fff 0%, var(--blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: opacity 0.2s ease;
}

.contact-inner a:hover {
  opacity: 0.85;
}

/* Footer */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
  padding: 28px var(--pad);
  border-top: 1px solid var(--line);
  background: #090a0e;
  color: var(--muted);
  font-size: 13px;
}

.site-footer .brand {
  font-size: 12px;
  color: #f4f5f7;
}

.site-footer .brand img {
  width: 28px;
  height: auto;
}

.site-footer nav {
  display: flex;
  gap: 18px;
}

.site-footer nav a:hover {
  color: #fff;
}

.site-footer p {
  margin: 0;
}

/* Legal */
.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 140px var(--pad) 80px;
  color: rgba(244, 245, 247, 0.78);
}

.legal h1 {
  margin: 0 0 18px;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  letter-spacing: -0.04em;
  color: #fff;
}

.legal h2 {
  margin: 32px 0 10px;
  font-family: var(--display);
  font-size: 1.2rem;
  color: #fff;
}

.legal a {
  color: #8eb0ff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-meta {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 0.95rem;
}

.legal-note {
  padding: 14px 16px;
  margin: 16px 0 24px;
  border-left: 3px solid var(--blue);
  background: rgba(255, 255, 255, 0.04);
  color: #f4f5f7;
  font-size: 0.92rem;
}

.legal ul {
  padding-left: 1.2rem;
  margin: 0 0 1rem;
}

.legal li {
  margin-bottom: 0.35rem;
}

.legal-nav {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

/* Motion */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.18s; }
.delay-3 { transition-delay: 0.26s; }

@keyframes logo-breathe {
  0%, 100% { transform: translateY(-55%) scale(1); }
  50% { transform: translateY(-58%) scale(1.03); }
}

@media (max-width: 900px) {
  .showcase-hit {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .showcase-visual {
    min-height: 220px;
  }

  .hero-logo {
    width: min(58vw, 280px);
    right: -4vw;
    top: 36%;
    opacity: 0.55;
  }
}

@media (max-width: 720px) {
  .menu-toggle {
    display: flex;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 6px);
    left: 12px;
    right: 12px;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 8px;
    background: rgba(14, 16, 22, 0.96);
    border: 1px solid var(--line);
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    padding: 14px 12px;
  }

  .hero {
    place-items: end stretch;
  }

  .projects-head,
  .about {
    padding-top: 72px;
  }

  .contact {
    padding-bottom: 88px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal,
  .hero-logo,
  .showcase-visual img,
  .wordmark,
  .showcase-link i,
  .hero-cta {
    animation: none !important;
    transition: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
