@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/poppins-600.woff2") format("woff2"); }

:root {
  --bg: #17171a;
  --bg-2: #222226;
  --surface: #222228;
  --surface-2: #2b2b33;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #ececf0;
  --soft: #cfcfd6;
  --muted: #a3a3ad;
  --accent: #78ee69;
  --accent-text: #0f1f0c;
  --radius: 18px;
  --header-h: 60px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg) linear-gradient(to bottom right, var(--bg) 0%, var(--bg-2) 100%) fixed;
  color: var(--text);
  font: 16px/1.65 "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
img { max-width: 100%; }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 24px; } }
.muted { color: var(--muted); font-weight: 400; }
.highlight { color: var(--accent); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -48px; z-index: 100; background: var(--accent); color: var(--accent-text); padding: 8px 14px; border-radius: 999px; }
.skip-link:focus { top: 10px; }

/* ---------- header & footer ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(23, 23, 26, 0.78); border-bottom: 1px solid var(--border);
  -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
}
.site-header .wrap, .site-footer .wrap {
  display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; justify-content: space-between;
}
.site-header .wrap { min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--text); text-decoration: none; }
.brand img { width: 28px; height: 28px; border-radius: 50%; }
nav { display: flex; gap: 20px; }
nav a { color: var(--muted); text-decoration: none; }
nav a:hover, nav a[aria-current="page"] { color: var(--text); }
.site-footer { border-top: 1px solid var(--border); padding: 28px 0; color: var(--muted); font-size: 0.9rem; }
@media (max-width: 520px) {
  .brand span, .site-header .brand { font-size: 0.95rem; }
  .site-header nav { gap: 16px; font-size: 0.92rem; width: 100%; padding-bottom: 10px; }
  .site-header .wrap { padding-top: 10px; }
}

/* ---------- typography ---------- */
main.wrap { padding-top: 40px; padding-bottom: 88px; }
h1 { font-size: clamp(1.7rem, 5vw, 2.2rem); line-height: 1.2; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 16px; }
h2 { font-size: 1.35rem; font-weight: 600; margin: 44px 0 10px; }
h3 { font-size: 1.1rem; font-weight: 600; margin: 0; line-height: 1.35; }
address { font-style: normal; }

/* ---------- home: hero ---------- */
.hero { position: relative; overflow: hidden; display: flex; align-items: flex-end; min-height: clamp(560px, 82vh, 760px); }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 68% 45%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(23, 23, 26, 0.94) 0%, rgba(23, 23, 26, 0.72) 38%, rgba(23, 23, 26, 0.1) 72%, rgba(23, 23, 26, 0) 100%),
    linear-gradient(to top, var(--bg) 0%, rgba(23, 23, 26, 0) 38%);
}
.hero-content { position: relative; z-index: 2; width: 100%; padding-top: 96px; padding-bottom: 56px; }
.avatar {
  display: block; width: 116px; height: 116px; border-radius: 50%; object-fit: cover; margin-bottom: 20px;
  box-shadow: 0 0 0 4px var(--bg), 0 0 0 6px var(--accent), 0 18px 40px rgba(0, 0, 0, 0.45);
}
.eyebrow { margin: 0; color: var(--soft); font-size: 1.05rem; }
.hero h1 { font-size: clamp(2.4rem, 7vw, 4.2rem); line-height: 1.05; letter-spacing: -0.025em; margin: 0 0 6px; }
.roles { margin: 0; height: 1.5em; line-height: 1.5em; overflow: hidden; font-size: clamp(1.2rem, 3.4vw, 1.65rem); font-weight: 500; color: var(--accent); }
.roles-track { display: flex; flex-direction: column; }
.roles-track span { display: block; height: 1.5em; white-space: nowrap; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .roles-track { animation: none !important; }
}
.hero-text { max-width: 32em; margin: 18px 0 0; color: var(--soft); font-size: 1.05rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 28px; }
.social { display: flex; gap: 10px; }
.social-link {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  color: var(--text); background: rgba(255, 255, 255, 0.08); border: 1px solid var(--border);
  transition: background-color 0.2s, color 0.2s, transform 0.2s;
}
.social-link:hover { background: var(--accent); color: var(--accent-text); transform: translateY(-2px); }
.glyph { width: 20px; height: 20px; flex: none; }
@media (max-width: 699px) {
  .hero { display: block; min-height: 0; }
  .hero-bg { position: relative; display: block; height: 300px; object-position: 74% 42%; }
  .hero::before { bottom: auto; height: 300px; background: linear-gradient(to top, var(--bg) 0%, rgba(23, 23, 26, 0) 55%); }
  .hero-content { margin-top: -72px; padding-top: 0; padding-bottom: 8px; }
  .avatar { width: 104px; height: 104px; }
  .hero-actions .button { flex: 1 1 auto; justify-content: center; }
}

/* ---------- home: sections ---------- */
.section { padding-top: 56px; }
.section:first-child { padding-top: 24px; }
.section h2 { font-size: clamp(1.6rem, 4.5vw, 2.2rem); letter-spacing: -0.015em; margin: 0 0 8px; }
.section-intro { color: var(--muted); margin: 0 0 24px; }
.prose { max-width: 42em; color: var(--soft); font-size: 1.05rem; }
.prose p { margin: 16px 0 0; }
.app-group + .app-group { margin-top: 36px; }
.group-title { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }

.card, .app-block, .contact-box, .project {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.card { position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden; transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s; }
.card:hover { transform: translateY(-3px); border-color: var(--border-strong); box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35); }
.card p { margin: 0; }
.preview img {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: top;
  border-bottom: 1px solid var(--border); background: var(--surface-2);
}
.preview.placeholder {
  display: grid; place-items: center; aspect-ratio: 16 / 9; border-bottom: 1px solid var(--border);
  background: radial-gradient(circle at 50% 40%, var(--surface-2) 0%, var(--surface) 70%);
}
.preview.placeholder .icon { box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45); }
.card .card-head { padding: 18px 20px 0; }
.card-foot { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between; margin-top: auto; padding: 16px 20px 20px; }
.card h3 a, .project h3 a { color: inherit; text-decoration: none; }
.stretched::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card:hover h3 a, .project:hover h3 a { color: var(--accent); }
.card-head { display: flex; gap: 14px; align-items: center; }
.tagline { color: var(--muted); font-size: 0.95rem; line-height: 1.5; }
.platforms { color: var(--muted); font-size: 0.85rem; }
.icon { width: 64px; height: 64px; border-radius: 22%; flex: none; }
.icon.small { width: 40px; height: 40px; }
.icon.large { width: 104px; height: 104px; }
.icon.placeholder { display: grid; place-items: center; background: var(--accent); color: var(--accent-text); font-weight: 600; }
.icon.small.placeholder { font-size: 0.8rem; }
.badge {
  display: inline-block; background: rgba(255, 255, 255, 0.08); color: var(--soft); border: 1px solid var(--border);
  padding: 2px 11px; border-radius: 999px; font-size: 0.8rem; font-weight: 500; white-space: nowrap;
}
.badges { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.badge.accent { background: rgba(120, 238, 105, 0.14); color: var(--accent); border-color: rgba(120, 238, 105, 0.3); }
.button {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent); color: var(--accent-text); text-decoration: none;
  padding: 11px 22px; border-radius: 999px; font-weight: 600; transition: filter 0.2s, transform 0.2s;
}
.button:hover { filter: brightness(1.08); transform: translateY(-1px); }
.empty { color: var(--muted); }

.projects { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.project { position: relative; padding: 20px; transition: border-color 0.2s; }
.project:has(a):hover { border-color: var(--border-strong); }
.project p { margin: 8px 0 0; color: var(--soft); }
.project-head { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; }
.project .kind { margin-top: 2px; color: var(--muted); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; }
.project .ext { color: var(--muted); font-weight: 400; }
.project .note { color: var(--muted); font-size: 0.92rem; font-style: italic; }

/* ---------- app detail page ---------- */
.back { margin: 0 0 28px; }
.back a { color: var(--muted); text-decoration: none; }
.back a:hover { color: var(--text); }
.app-hero { display: flex; gap: 22px; align-items: center; }
.app-hero h1 { margin: 0 0 4px; }
.app-hero p { margin: 0; }
.app-hero .tagline { font-size: 1.1rem; }
.app-actions { margin-top: 22px; }
.app-actions .badge { font-size: 0.9rem; padding: 4px 14px; }
.app-actions + .app-actions { margin-top: 12px; }
.download-note { color: var(--muted); font-size: 0.9rem; margin-left: 8px; }
.gallery {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch; margin: 32px 0 0; padding-bottom: 10px; scrollbar-color: var(--surface-2) transparent;
}
.gallery a { flex: none; scroll-snap-align: start; }
.gallery img {
  display: block; height: clamp(180px, 48vw, 420px); width: auto;
  border-radius: 14px; border: 1px solid var(--border); background: var(--surface-2);
}
.lead { font-size: 1.1rem; color: var(--soft); margin: 28px 0 0; max-width: 42em; }
.highlights { padding-left: 1.2em; max-width: 42em; color: var(--soft); }
.highlights li + li { margin-top: 6px; }
.highlights li::marker { color: var(--accent); }
.link-list { padding-left: 1.2em; }
@media (max-width: 699px) {
  main.wrap { padding-top: 24px; }
  .app-hero { gap: 14px; }
  .app-hero .tagline { font-size: 1rem; }
  .app-hero .icon.large { width: 76px; height: 76px; }
  .gallery { margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; scroll-padding: 0 16px; }
}

/* ---------- support, privacy, imprint ---------- */
.contact-box { margin: 24px 0; padding: 20px; }
.contact-box .label { margin: 0; color: var(--muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; }
.contact-box .value { margin: 0; font-size: 1.25rem; font-weight: 600; }
.app-block { margin-top: 16px; padding: 20px; }
.app-block .card-head { margin-bottom: 8px; }
details { border-bottom: 1px solid var(--border); padding: 12px 0; }
details summary { cursor: pointer; font-weight: 500; }
details p { margin: 8px 0 0; color: var(--soft); }
.summary { background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: 10px; padding: 16px; }

.roles-track { animation: roles 20.8s infinite; }
@keyframes roles {
  0.00%, 10.63% { transform: translateY(0em); }
  12.50%, 23.13% { transform: translateY(-1.5em); }
  25.00%, 35.63% { transform: translateY(-3em); }
  37.50%, 48.13% { transform: translateY(-4.5em); }
  50.00%, 60.63% { transform: translateY(-6em); }
  62.50%, 73.13% { transform: translateY(-7.5em); }
  75.00%, 85.63% { transform: translateY(-9em); }
  87.50%, 98.13% { transform: translateY(-10.5em); }
  100% { transform: translateY(-12em); }
}
