:root {
  --bg: #07080c;
  --bg-soft: #11141b;
  --ink: #f7f4ee;
  --muted: #a7a8ad;
  --line: rgba(255,255,255,.16);
  --cyan: #62e7ff;
  --pink: #ff3f81;
  --lime: #d9ff5b;
  --pad: clamp(1.2rem, 4vw, 5rem);
  --max: 1440px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
button, input { font: inherit; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  z-index: 999;
  left: 1rem;
  top: -5rem;
  padding: .8rem 1rem;
  background: var(--lime);
  color: #000;
}
.skip-link:focus { top: 1rem; }
.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding: 1.15rem var(--pad);
  border-bottom: 1px solid transparent;
  transition: background .3s ease, padding .3s ease, border-color .3s ease;
}
.site-header.is-scrolled {
  padding-top: .7rem;
  padding-bottom: .7rem;
  background: rgba(7,8,12,.9);
  border-color: var(--line);
  backdrop-filter: blur(18px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  font-weight: 900;
  letter-spacing: .04em;
}
.brand-mark {
  display: inline-grid;
  place-items: center;
  min-width: 3.1rem;
  height: 2.1rem;
  padding: 0 .5rem;
  background: var(--ink);
  color: var(--bg);
  font-size: .82rem;
  transform: skew(-8deg);
}
.brand-copy {
  display: flex;
  flex-direction: column;
  font-size: .88rem;
  line-height: 1;
}
.brand-copy small {
  margin-top: .25rem;
  color: var(--muted);
  font-size: .52rem;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(.9rem, 2vw, 2.2rem);
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.primary-nav a {
  position: relative;
  padding: .5rem 0;
}
.primary-nav a:not(.nav-access)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: .16rem;
  width: 0;
  height: 2px;
  background: var(--pink);
  transition: width .22s ease;
}
.primary-nav a:hover::after,
.primary-nav a:focus-visible::after { width: 100%; }
.nav-access {
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: .72rem 1rem !important;
}
.nav-access:hover { border-color: var(--cyan); color: var(--cyan); }
.language-switch {
  display: inline-flex;
  align-items: center;
  gap: .38rem;
  padding: .62rem .82rem;
  border: 1px solid var(--line);
  border-radius: 99px;
}
.language-switch a { padding: 0; color: var(--muted); }
.language-switch a::after { display: none; }
.language-switch a[aria-current="page"] { color: var(--lime); }
.language-switch i { color: var(--line); font-style: normal; }
.menu-toggle {
  display: none;
  z-index: 2;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: .6rem;
}
.menu-toggle > span:not(.sr-only) {
  display: block;
  width: 1.6rem;
  height: 2px;
  margin: .3rem 0;
  background: currentColor;
}
.hero {
  --hero-progress: 0;
  position: relative;
  min-height: 145svh;
  display: block;
  overflow: clip;
  isolation: isolate;
}
.hero-pin {
  position: sticky;
  z-index: 0;
  top: 0;
  height: 100svh;
  overflow: hidden;
  background: #000;
}
.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
}
.hero-media {
  z-index: 0;
  background: url("../media/maik-hero-hoverboard.jpg") center / cover no-repeat;
  opacity: calc(1 - var(--hero-progress));
  transform: scale(calc(1 + (var(--hero-progress) * .045)));
  filter: brightness(calc(1.02 - (var(--hero-progress) * .28))) saturate(calc(.9 - (var(--hero-progress) * .16))) contrast(1.05);
  transition: opacity .08s linear, filter .08s linear, transform .08s linear;
  will-change: opacity, filter, transform;
}
.hero-shade {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(7,8,12,.94) 0%, rgba(7,8,12,.68) 42%, rgba(7,8,12,.12) 78%),
    linear-gradient(0deg, var(--bg) 0%, transparent 34%),
    rgba(0,0,0, var(--hero-progress));
}
.hero-copy {
  position: relative;
  z-index: 2;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: min(880px, 88vw);
  margin-top: -100svh;
  padding: 10rem var(--pad) 10vh;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin: 0 0 1.5rem;
  color: rgba(255,255,255,.72);
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.eyebrow span {
  display: block;
  width: 2.6rem;
  height: 2px;
  background: var(--pink);
}
.hero h1,
.section h2,
.private-hero h1,
.legal-shell h1,
.lock-card h1 {
  margin: 0;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-weight: 900;
  text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(5.8rem, 15vw, 14rem);
  line-height: .82;
}
.hero-lead {
  max-width: 680px;
  margin: 2rem 0;
  color: rgba(255,255,255,.8);
  font-size: clamp(1.12rem, 1.8vw, 1.55rem);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.3rem;
  padding: .85rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 99px;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--lime); color: #08090d; }
.button-primary:hover { background: var(--cyan); }
.button-ghost { border-color: rgba(255,255,255,.34); background: rgba(255,255,255,.04); }
.button-ghost:hover { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.scroll-cue {
  position: absolute;
  right: var(--pad);
  top: calc(100svh - 4.5rem);
  bottom: auto;
  display: flex;
  align-items: center;
  gap: .8rem;
  color: rgba(255,255,255,.55);
  font-size: .62rem;
  font-weight: 850;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.scroll-cue i {
  width: 4rem;
  height: 1px;
  background: rgba(255,255,255,.4);
}
.proof-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
}
.proof-band div {
  min-height: 16rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2rem;
  background: var(--bg-soft);
}
.proof-band strong {
  color: var(--lime);
  font-family: Impact, sans-serif;
  font-size: clamp(4rem, 7vw, 7rem);
  line-height: 1;
}
.proof-band span { color: var(--muted); }
.section {
  max-width: var(--max);
  margin: auto;
  padding: clamp(6rem, 11vw, 11rem) var(--pad);
}
.section-number {
  display: block;
  color: var(--cyan);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.profile-grid,
.access-cta,
.contact-cta {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(3rem, 9vw, 10rem);
}
.profile-grid {
  position: relative;
  z-index: 2;
  margin-top: -30svh;
}
.theme-divider {
  width: min(var(--max), calc(100% - (var(--pad) * 2)));
  margin: 0 auto;
  border: 0;
  border-top: 1px solid var(--line);
}
.section h2 {
  margin-top: 1rem;
  margin-bottom: 2.2rem;
  font-size: clamp(4.1rem, 8vw, 8.5rem);
  line-height: .86;
}
.text-flow p {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.1rem;
}
.text-flow .lead {
  color: var(--ink);
  font-size: clamp(1.3rem, 2vw, 1.85rem);
  font-weight: 750;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: 4rem;
}
.expertise .section-head {
  display: block;
  text-align: left;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
}
.cards article,
.project-list article,
.file-card {
  background: var(--bg-soft);
  border: 1px solid transparent;
}
.cards article {
  min-height: 24rem;
  padding: 2rem;
}
.cards span,
.project-list span,
.file-card span {
  color: var(--pink);
  font-family: ui-monospace, monospace;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.cards h3 {
  margin: 5rem 0 1rem;
  max-width: 320px;
  font-size: clamp(1.7rem, 2.4vw, 2.7rem);
  line-height: .95;
}
.cards p,
.project-list p,
.file-card p { color: var(--muted); }
.project-list {
  display: grid;
  gap: 1px;
  background: var(--line);
}
.project-list article {
  display: grid;
  grid-template-columns: .65fr 1fr 1.2fr;
  gap: 2rem;
  align-items: baseline;
  padding: 2rem;
}
.project-list strong {
  font-size: clamp(1.35rem, 2vw, 2.1rem);
  line-height: 1.05;
}
.access-cta,
.contact-cta {
  border-top: 1px solid var(--line);
}
.contact-cta {
  padding-top: clamp(4rem, 8vw, 8rem);
}
.contact-face {
  display: block;
  width: min(300px, 100%);
  aspect-ratio: 1;
  margin: 0 0 2rem;
  border: 2px solid var(--cyan);
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 10px rgba(98,231,255,.08);
}
.contact-face img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.18);
  transform-origin: 50% 0;
}
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  padding: 3rem var(--pad);
  border-top: 1px solid var(--line);
  background: #050609;
}
.site-footer p {
  margin: 1rem 0 0;
  color: var(--muted);
  font-family: ui-monospace, monospace;
  font-size: .65rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.footer-links {
  display: flex;
  gap: 1.4rem;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.access-page {
  min-height: 100svh;
  background:
    linear-gradient(90deg, rgba(7,8,12,.9), rgba(7,8,12,.72)),
    url("../media/maik-hero-hoverboard.jpg") center / cover fixed;
}
.access-shell {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 8rem var(--pad) 4rem;
}
.lock-card {
  container-type: inline-size;
  width: min(680px, 100%);
  padding: clamp(2rem, 5vw, 4.5rem);
  border: 1px solid var(--line);
  background: rgba(10,12,17,.86);
  backdrop-filter: blur(20px);
  text-align: center;
}
.lock-icon {
  display: inline-grid;
  place-items: center;
  width: 4.4rem;
  height: 4.4rem;
  margin: 1.7rem auto;
  border-radius: 50%;
  background: var(--lime);
  color: #000;
  font-size: .8rem;
  font-weight: 900;
}
.lock-card h1 {
  max-width: 100%;
  margin-inline: auto;
  font-size: clamp(3rem, 6vw, 5rem);
  font-size: clamp(3rem, 12cqw, 5rem);
  line-height: .86;
  overflow-wrap: normal;
}
.lock-card > p {
  max-width: 480px;
  margin: 2rem auto;
  color: var(--muted);
}
.access-form {
  display: grid;
  gap: 1rem;
  max-width: 430px;
  margin: 2rem auto 0;
}
.access-form label {
  display: grid;
  gap: .6rem;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-align: left;
  text-transform: uppercase;
}
.access-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 1rem;
  background: #08090d;
  color: var(--ink);
}
.form-error {
  display: none;
  margin: 0;
  color: var(--pink);
  font-size: .9rem;
}
body.login-failed .form-error { display: block; }
.private-shell {
  max-width: var(--max);
  margin: auto;
  padding: 7rem var(--pad) 5rem;
}
.private-hero h1,
.legal-shell h1 {
  margin-top: .8rem;
  font-size: clamp(4rem, 10vw, 9rem);
}
.private-hero h1 {
  max-width: 11ch;
  font-size: clamp(3.5rem, 8.4vw, 7.6rem);
  line-height: .86;
  overflow-wrap: break-word;
  text-wrap: balance;
}
.legal-shell h1 { line-height: .78; }
.private-hero p {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(1.15rem, 2vw, 1.55rem);
}
.private-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
}
.file-card {
  display: block;
  min-height: 18rem;
  padding: 2rem;
  transition: border-color .2s ease, transform .2s ease;
}
a.file-card:hover {
  border-color: var(--lime);
  transform: translateY(-2px);
}
.file-card strong {
  display: block;
  margin: 4rem 0 1rem;
  font-size: clamp(1.4rem, 2.2vw, 2.2rem);
  line-height: 1.05;
}
.document-card {
  min-height: 0;
  min-width: 0;
  padding: 0;
  overflow: hidden;
}
.document-preview {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #fff;
}
.document-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform .35s ease;
}
.document-card:hover .document-preview img { transform: scale(1.025); }
.document-copy {
  min-width: 0;
  padding: 1.7rem 2rem 2rem;
}
.document-copy strong { margin: 1.2rem 0 .8rem; }
.document-copy strong,
.document-copy p,
.document-copy em {
  max-width: 100%;
  overflow-wrap: anywhere;
}
.document-copy p { min-height: 3.6rem; }
.document-copy em {
  display: inline-block;
  margin-top: 1rem;
  color: var(--lime);
  font-family: ui-monospace, monospace;
  font-size: .74rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.muted-card { opacity: .72; }
.legal-shell {
  min-height: 75svh;
  max-width: 900px;
  margin: auto;
  padding: 10rem var(--pad) 5rem;
}
.legal-shell p {
  color: var(--muted);
  font-size: 1.15rem;
}
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .75s ease, transform .75s cubic-bezier(.2,.65,.2,1);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (max-width: 980px) {
  .menu-toggle { display: block; }
  .primary-nav[data-menu] {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1.4rem;
    padding: 7rem var(--pad);
    background: rgba(7,8,12,.98);
    transform: translateX(100%);
    transition: transform .32s ease;
    font-size: 1.35rem;
  }
  .primary-nav.is-open { transform: none; }
  .profile-grid,
  .access-cta,
  .contact-cta,
  .cards,
  .private-grid { grid-template-columns: 1fr; }
  .proof-band { grid-template-columns: 1fr 1fr; }
  .project-list article { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .brand-copy { display: none; }
  .hero-copy { width: 100%; padding-bottom: 7rem; }
  .hero h1 { font-size: clamp(3.95rem, 19vw, 6.4rem); }
  .hero-actions { flex-direction: column; align-items: stretch; width: min(100%, 24rem); }
  .scroll-cue { display: none; }
  .proof-band { grid-template-columns: 1fr; }
  .proof-band div { min-height: 10rem; }
  .section-head,
  .site-footer { align-items: flex-start; flex-direction: column; }
  .lock-card h1 {
    font-size: clamp(2.7rem, 14cqw, 4rem);
    line-height: .88;
  }
  .private-hero h1 { font-size: clamp(3.2rem, 15vw, 5rem); }
  .document-copy { padding: 1.4rem 1.35rem 1.6rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .hero { --hero-progress: 0 !important; }
  .hero-media {
    opacity: 1;
    transform: none;
    filter: brightness(1.02) saturate(.9) contrast(1.05);
  }
  .reveal { opacity: 1; transform: none; }
}
