:root {
  --bg: #0c0c0c;
  --panel: #121212;
  --card: #171717;
  --line: #262626;
  --line-2: #333;
  --text: #ededed;
  --muted: #8b8b8b;
  --dim: #5a5a5a;
  --radius: 20px;
  --sans: "Inter Tight", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.02em; line-height: 1.05; }
h2 { font-size: clamp(2.2rem, 5vw, 4rem); letter-spacing: -.035em; }
h3 { font-size: 1.2rem; }
p { margin: 0; }
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: 0; }
em.serif { font-style: italic; color: #bdbdbd; }
.center { text-align: center; justify-content: center; }

.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.section { padding: clamp(80px, 11vw, 140px) 0; }
.section--panel { background: var(--panel); border-block: 1px solid var(--line); }

/* placeholder marker */
.ph { outline: 1px dashed #666; outline-offset: 3px; border-radius: 4px; color: var(--muted); }

.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: .85rem; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px 6px 12px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #d9d9d9; box-shadow: 0 0 0 0 rgba(255,255,255,.4); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(255,255,255,0); } 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); } }

/* arrow */
.arr { display: inline-block; width: 15px; height: 15px; background: currentColor; transition: transform .25s;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M8 7h9v9'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M8 7h9v9'/%3E%3C/svg%3E") center/contain no-repeat; }
a:hover .arr { transform: translate(2px, -2px); }

.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px; font-weight: 600; font-size: .95rem; border: 1px solid transparent; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.btn:hover { transform: translateY(-2px); }
.btn--light { background: var(--text); color: var(--bg); }
.btn--light:hover { background: #fff; }
.btn--line { border-color: var(--line-2); }
.btn--line:hover { border-color: var(--text); }
.btn--sm { padding: 9px 18px; font-size: .88rem; }

/* NAV */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.nav.is-scrolled, .nav.menu-open { background: rgba(12,12,12,.8); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); }
.nav__inner { height: 76px; display: flex; align-items: center; justify-content: space-between; }
.logo { font-weight: 700; font-size: 1.1rem; letter-spacing: -.02em; }
.logo span { color: var(--dim); }
.nav__links { display: flex; align-items: center; gap: 32px; font-size: .95rem; }
.nav__links a:not(.btn) { color: var(--muted); transition: color .2s; }
.nav__links a:not(.btn):hover { color: var(--text); }
.burger { display: none; width: 44px; height: 44px; background: none; border: 0; padding: 12px 10px; cursor: pointer; }
.burger span { display: block; height: 1.5px; background: var(--text); margin: 6px 0; transition: transform .3s; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

/* HERO */
.hero { min-height: 100svh; display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; padding: 130px 0 60px; }
.hero h1 { font-size: clamp(3.6rem, 10vw, 8.4rem); letter-spacing: -.055em; line-height: .9; margin: 28px 0 18px; }
.hero__role { display: flex; align-items: baseline; gap: 14px; font-size: clamp(1.9rem, 4vw, 3.2rem); line-height: 1.1; margin-bottom: 28px; }
.hero__role .serif { font-style: italic; color: var(--muted); }
.rotator { display: inline-block; overflow: hidden; height: 1.15em; }
#role { display: inline-block; font-weight: 600; letter-spacing: -.035em; transition: transform .45s cubic-bezier(.7,0,.3,1), opacity .45s; }
#role.out { transform: translateY(-110%); opacity: 0; }
#role.in { transform: translateY(110%); opacity: 0; transition: none; }
.hero__lead { max-width: 540px; color: var(--muted); font-size: 1.1rem; margin-bottom: 36px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__photo { position: relative; }
.portrait { aspect-ratio: 4 / 5; border-radius: 28px; border: 1px solid var(--line); background: radial-gradient(120% 80% at 30% 20%, #2a2a2a, #121212 60%); display: grid; place-items: center; align-content: center; gap: 8px; overflow: hidden; position: relative; }
.portrait .serif { font-size: clamp(6rem, 14vw, 11rem); font-style: italic; color: #3a3a3a; line-height: 1; }
.portrait small { color: var(--dim); font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; }
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.hero__tags { position: absolute; left: -18px; bottom: 28px; list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.hero__tags li { background: rgba(23,23,23,.85); backdrop-filter: blur(8px); border: 1px solid var(--line-2); padding: 8px 16px; border-radius: 999px; font-size: .88rem; width: max-content; }
.hero__tags li:nth-child(2) { margin-left: 22px; }
.hero__tags li:nth-child(3) { margin-left: 8px; }

/* ROLES */
.roles { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.role { padding: 32px 28px 36px 0; display: grid; gap: 6px; border-right: 1px solid var(--line); transition: padding .3s; }
.role + .role { padding-left: 28px; }
.role:last-child { border-right: 0; }
.role__no { font-family: var(--serif); font-style: italic; color: var(--dim); font-size: 1.1rem; }
.role h3 { font-size: 1.5rem; }
.role p { color: var(--muted); font-size: .95rem; }
.role:hover h3 { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }

/* SECTION HEAD */
.sec-head { display: grid; grid-template-columns: 90px 1fr; gap: 20px; margin-bottom: 56px; }
.sec-head--stack { grid-template-columns: 1fr; margin-bottom: 28px; gap: 14px; }
.sec-no { font-family: var(--serif); font-style: italic; font-size: 1.6rem; color: var(--dim); line-height: 1.6; }
.sec-lead { color: var(--muted); font-size: 1.08rem; max-width: 620px; margin-top: 20px; }
.sec-head--stack + .sec-lead { margin-top: 0; }
.sec-lead + .sec-lead { margin-top: 14px; }

/* WEB */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-left: 110px; }
.service { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: var(--card); transition: border-color .3s; }
.service:hover { border-color: var(--line-2); }
.service h3 { margin-bottom: 10px; }
.service p { color: var(--muted); font-size: .97rem; }
.sub { margin: 80px 0 24px 110px; font-size: .85rem; text-transform: uppercase; letter-spacing: .16em; color: var(--muted); font-weight: 500; }
.projects { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-left: 110px; }
.project { display: grid; gap: 18px; }
.project__img { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 10; background: var(--card); }
.project__img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .7s cubic-bezier(.2,.7,.2,1), filter .5s; filter: grayscale(.85); }
.project:hover .project__img img { transform: scale(1.04); filter: grayscale(0); }
.project__meta { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.project h4 { font-size: 1.25rem; margin-bottom: 4px; }
.project p { color: var(--muted); font-size: .95rem; }
.pill { font-size: .75rem; border: 1px solid var(--line-2); border-radius: 999px; padding: 4px 12px; color: var(--muted); white-space: nowrap; }

/* SPLIT */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.split .hero__cta { margin-top: 32px; }

/* KLAVIER */
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--panel); padding: 32px 28px; display: grid; gap: 8px; min-height: 170px; align-content: end; }
.stat b { font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.stat span { color: var(--muted); font-size: .92rem; }
.stat--soon b { font-style: italic; color: var(--muted); }

/* FUSSBALL */
.football { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-left: 110px; }
.fcard { border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 32px; background: linear-gradient(160deg, #1a1a1a, var(--card) 60%); position: relative; overflow: hidden; min-height: 240px; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; }
.fcard::after { content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; border: 1px solid var(--line-2); }
.fcard::before { content: ""; position: absolute; right: 40px; top: -60px; width: 1px; height: 260px; background: var(--line-2); }
.fcard__label { position: absolute; top: 28px; left: 32px; font-size: .78rem; text-transform: uppercase; letter-spacing: .16em; color: var(--muted); }
.fcard h3 { font-size: 1.7rem; }
.fcard p { color: var(--muted); }

/* ABOUT */
.timeline { display: grid; border-top: 1px solid var(--line); }
.tl { display: grid; grid-template-columns: 110px 1fr; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.tl > span { font-family: var(--serif); font-style: italic; color: var(--muted); font-size: 1.1rem; }
.tl h4 { font-size: 1.05rem; margin-bottom: 4px; }
.tl p { color: var(--muted); font-size: .93rem; }

/* CONTACT */
.contact { text-align: center; display: grid; justify-items: center; }
.contact__title { font-size: clamp(3rem, 9vw, 7.4rem); letter-spacing: -.05em; margin: 28px 0 8px; line-height: .95; }
.contact .sec-lead { margin-inline: auto; }
.mail { margin-top: 44px; display: inline-flex; align-items: center; gap: 14px; font-size: clamp(1.3rem, 3.4vw, 2.2rem); font-weight: 500; letter-spacing: -.02em; border-bottom: 1px solid var(--line-2); padding-bottom: 8px; transition: border-color .3s; }
.mail:hover { border-color: var(--text); }
.mail .arr { width: 22px; height: 22px; }
.socials { display: flex; gap: 10px; margin-top: 40px; flex-wrap: wrap; justify-content: center; }
.socials a { border: 1px solid var(--line-2); border-radius: 999px; padding: 9px 20px; font-size: .92rem; color: var(--muted); transition: color .2s, border-color .2s; }
.socials a:hover { color: var(--text); border-color: var(--text); }

.footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--dim); font-size: .88rem; }
.footer__inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer a:hover { color: var(--text); }

/* REVEAL */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }

/* RESPONSIVE */
@media (max-width: 980px) {
  .services, .projects, .football, .sub { margin-left: 0; }
  .sec-head { grid-template-columns: 1fr; gap: 8px; }
  .sec-no { line-height: 1; }
}
@media (max-width: 860px) {
  .nav__links { position: fixed; inset: 76px 0 auto; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 24px; background: rgba(12,12,12,.97); border-bottom: 1px solid var(--line); transform: translateY(-130%); transition: transform .35s; z-index: -1; }
  .nav__links.is-open { transform: none; }
  .nav__links a:not(.btn) { padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--text); font-size: 1.1rem; }
  .nav__links .btn { margin-top: 18px; justify-content: center; }
  .burger { display: block; }
  .hero { grid-template-columns: 1fr; padding-top: 110px; min-height: auto; }
  .hero__photo { max-width: 420px; width: 100%; justify-self: center; }
  .hero__tags { left: 12px; }
  .roles { grid-template-columns: 1fr; }
  .role, .role + .role { padding: 24px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .services, .split, .projects, .football { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 22px 18px; min-height: 140px; }
  .tl { grid-template-columns: 1fr; gap: 4px; }
  .hero__cta .btn { flex: 1; justify-content: center; white-space: nowrap; padding: 14px 16px; font-size: .9rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
