/* Schrift: Inter, lokal eingebettet (SIL Open Font License) – keine externen Server */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-400.woff") format("woff"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-500.woff") format("woff"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-600.woff") format("woff"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/inter-700.woff") format("woff"); }

/* Max Allhuter – hell, modern, abgerundet. Farben hier zentral ändern. */
:root {
  --bg: #f3f2ee;
  --surface: #ffffff;
  --ink: #121212;
  --muted: #6d6b66;
  --line: #e2e0da;
  --accent: #ff5b2e;
  --dark: #151515;
  --on-ink: #ffffff;          /* Text auf Flächen in --ink */
  --ink-hover: #000000;
  --text: #2b2a28;            /* Fließtext */
  --nav-bg: rgba(255,255,255,.96);
  --hover: rgba(0,0,0,.06);
  --placeholder: #dddbd5;
  --card-border: rgba(0,0,0,.04);
  --shadow-lg: 0 2px 4px rgba(0,0,0,.04), 0 18px 40px rgba(0,0,0,.09);
  --nav-shadow: 0 1px 2px rgba(0,0,0,.06), 0 12px 32px rgba(0,0,0,.12);
  color-scheme: light;
  /* Einheitliche Rundungen */
  --radius-xl: 28px;    /* große Flächen: Hero, CTA, Medien, große Karten */
  --radius: 20px;       /* Karten und Boxen */
  --radius-inner: 12px; /* Bilder in Karten, Galerie, kleine Elemente */
  --radius-pill: 999px; /* Buttons, Tags, Navigation */
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.05);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --maxw: 1240px;
}
/* Dunkelmodus: folgt den Geräteeinstellungen, manuell umschaltbar (data-mode wird per Skript gesetzt) */
:root[data-mode="dark"] {
  --bg: #0e0e10;
  --surface: #18181b;
  --ink: #f1efe9;
  --muted: #9d9a92;
  --line: #2b2b30;
  --dark: #1c1c20;
  --on-ink: #121212;
  --ink-hover: #ffffff;
  --text: #d8d5ce;
  --nav-bg: rgba(24,24,27,.92);
  --hover: rgba(255,255,255,.08);
  --placeholder: #26262b;
  --card-border: rgba(255,255,255,.06);
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
  --shadow-lg: 0 2px 4px rgba(0,0,0,.4), 0 18px 40px rgba(0,0,0,.5);
  --nav-shadow: 0 1px 2px rgba(0,0,0,.5), 0 12px 32px rgba(0,0,0,.45);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  html.no-js {
  --bg: #0e0e10;
    --surface: #18181b;
    --ink: #f1efe9;
    --muted: #9d9a92;
    --line: #2b2b30;
    --dark: #1c1c20;
    --on-ink: #121212;
    --ink-hover: #ffffff;
    --text: #d8d5ce;
    --nav-bg: rgba(24,24,27,.92);
    --hover: rgba(255,255,255,.08);
    --placeholder: #26262b;
    --card-border: rgba(255,255,255,.06);
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
    --shadow-lg: 0 2px 4px rgba(0,0,0,.4), 0 18px 40px rgba(0,0,0,.5);
    --nav-shadow: 0 1px 2px rgba(0,0,0,.5), 0 12px 32px rgba(0,0,0,.45);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
picture { display: contents; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -0.03em; margin: 0; font-weight: 700; }
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.12rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.wrap { width: min(100% - 32px, var(--maxw)); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--ink); color: var(--on-ink); padding: 8px 14px; border-radius: var(--radius-inner); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
/* Nach Klick/Tippen kein Ring – nur wer mit der Tastatur navigiert, sieht ihn */
html.pointer-input :focus, html.pointer-input :focus-visible { outline: none; }
button, a { -webkit-tap-highlight-color: transparent; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; padding: 14px 0; }
.nav {
  width: min(100% - 32px, var(--maxw)); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--nav-bg); color: var(--ink); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border: 1px solid var(--line); border-radius: var(--radius-pill);
  padding: 8px 8px 8px 20px; box-shadow: var(--nav-shadow);
}
.brand { font-weight: 700; text-decoration: none; letter-spacing: -0.02em; display: flex; align-items: center; gap: 10px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(255,91,46,.15); animation: rec 1.6s steps(1, end) infinite; }
@keyframes rec { 0%, 60% { opacity: 1; } 61%, 100% { opacity: .15; box-shadow: none; } }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { text-decoration: none; padding: 9px 16px; border-radius: var(--radius-pill); font-size: .95rem; transition: background .2s; }
.nav-links a:hover { background: var(--hover); }
.nav-links a[aria-current="page"] { background: var(--ink); color: var(--on-ink); }
.lang-switch { display: flex; gap: 2px; padding: 3px; margin-left: 10px; border-radius: var(--radius-pill); background: var(--bg); border: 1px solid var(--line); }
.lang-switch a, .lang-switch span { padding: 6px 12px; border-radius: var(--radius-pill); font-size: .8rem; font-weight: 700; letter-spacing: .04em; line-height: 1.4; }
.lang-switch a { color: var(--muted); text-decoration: none; }
.lang-switch a:hover { color: var(--ink); }
.lang-switch .is-on { background: var(--accent); color: #fff; }
.menu-btn { display: none; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--ink); cursor: pointer; position: relative; }
.menu-btn span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--on-ink); border-radius: 2px; transition: transform .25s; }
.menu-btn span:first-child { top: 17px; } .menu-btn span:last-child { top: 23px; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 24px; border-radius: var(--radius-pill); text-decoration: none; font-weight: 600; font-size: .98rem; transition: transform .2s, background .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-light { background: #fff; color: #121212; }
.btn-dark { background: var(--ink); color: var(--on-ink); }
.btn-ghost { color: #fff; border: 1px solid rgba(255,255,255,.45); backdrop-filter: blur(6px); }
.btn-outline { border: 1px solid var(--line); background: var(--surface); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { display: inline-block; padding: 7px 14px; border-radius: var(--radius-pill); background: rgba(255,255,255,.18); color: #fff; font-size: .85rem; font-weight: 500; backdrop-filter: blur(8px); margin-bottom: 18px; }
.pill-dark { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.kicker { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 600; color: var(--accent); margin-bottom: 14px; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--text); max-width: 62ch; }
.link-arrow { font-weight: 600; text-decoration: none; display: inline-flex; gap: 6px; }
.link-arrow span { transition: transform .2s; }
.link-arrow:hover span { transform: translateX(4px); }

/* Hero */
.hero-wrap { padding-top: 6px; }
.hero {
  position: relative; overflow: hidden; border-radius: var(--radius-xl);
  min-height: min(78vh, 760px); display: flex; align-items: flex-end;
  background: radial-gradient(120% 90% at 85% 10%, #ff8a5c 0%, transparent 45%), radial-gradient(90% 80% at 10% 100%, #3b3a8f 0%, transparent 55%), #1b1b1f;
}
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05) 30%, rgba(0,0,0,.6) 100%); }
.hero-content { position: relative; padding: clamp(24px, 5vw, 64px); color: #fff; max-width: 900px; }
.hero-content h1 { margin-bottom: 28px; }

/* Intro */
.intro { padding: clamp(40px, 6vw, 80px) 0; }
.intro-card { display: grid; grid-template-columns: 240px 1fr; gap: clamp(24px, 4vw, 56px); background: var(--surface); border-radius: var(--radius-xl); padding: clamp(24px, 3.5vw, 40px); box-shadow: var(--shadow); border: 1px solid rgba(0,0,0,.04); }
.intro-head { display: flex; flex-direction: column; gap: 16px; }
.avatar { width: 96px; height: 96px; border-radius: var(--radius); object-fit: cover; background: var(--placeholder); }
.intro-name { font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em; margin: 0; }
.intro-tag { color: var(--muted); font-size: .92rem; margin: 2px 0 0; display: flex; align-items: center; gap: 8px; }
.live { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.18); flex-shrink: 0; }
.intro-body .kicker { margin-bottom: 10px; }
.intro-lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.6; color: var(--text); margin: 0 0 22px; max-width: 64ch; }
.intro-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.intro-foot .role-list li { font-size: .85rem; }
.portrait { aspect-ratio: 4/5; border-radius: var(--radius-xl); overflow: hidden; background: var(--placeholder); }
.portrait img { width: 100%; height: 100%; object-fit: cover; }

/* Sections + grid */
.section { padding-bottom: clamp(56px, 8vw, 110px); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 28px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: var(--surface); border-radius: var(--radius); overflow: hidden; text-decoration: none;
  border: 1px solid var(--card-border); box-shadow: var(--shadow);
  transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s; display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card.is-hidden { display: none; }
.card-media, .video-poster, .project-still {
  position: relative; aspect-ratio: 16/10; overflow: hidden; margin: 8px 8px 0; border-radius: var(--radius-inner);
  background: linear-gradient(135deg, #2a2a33, #555066 60%, #ff7a4d);
}
.card-media::before, .video-poster::before, .project-still::before {
  content: attr(data-initials); position: absolute; inset: 0; display: grid; place-items: center;
  color: rgba(255,255,255,.55); font-weight: 700; font-size: 2.4rem; letter-spacing: -.04em;
}
.card-media img, .video-poster img, .project-still img { position: relative; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.card:hover .card-media img { transform: scale(1.04); }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card-meta { color: var(--muted); font-size: .9rem; margin: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 10px; }
.tags span { font-size: .75rem; font-weight: 600; padding: 4px 10px; border-radius: var(--radius-pill); background: var(--bg); }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.chip { font: inherit; font-size: .92rem; font-weight: 500; padding: 9px 16px; border-radius: var(--radius-pill); border: 1px solid var(--line); background: var(--surface); cursor: pointer; transition: background .2s, color .2s; color: var(--ink); }
.chip small { color: var(--muted); margin-left: 4px; font-size: .78rem; }
.chip:hover { border-color: var(--muted); }
.chip.is-active { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.chip.is-active small { color: inherit; opacity: .6; }
.empty { color: var(--muted); padding: 40px 0; }

/* CTA */
.cta { margin-top: clamp(40px, 6vw, 72px);
  background: linear-gradient(125deg, #b8250c 0%, #e8431a 38%, #ff5b2e 68%, #ff9152 100%); color: #fff; border-radius: var(--radius-xl); border: 0;
  box-shadow: 0 20px 50px -20px rgba(232,67,26,.55);
  padding: clamp(32px, 6vw, 72px); display: grid; grid-template-columns: 1fr minmax(280px, 1fr); align-items: center; gap: 32px;
  margin-bottom: clamp(56px, 8vw, 100px); position: relative; overflow: hidden; isolation: isolate;
}
.cta::after { content: ""; position: absolute; width: 520px; height: 520px; right: 25%; top: 50%; transform: translate(50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(255,214,170,.55) 0%, rgba(255,170,110,.25) 35%, transparent 68%); pointer-events: none; }
.cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 90% at 0% 100%, rgba(90,10,0,.35), transparent 55%); pointer-events: none; }
.cta p { color: rgba(255,255,255,.88); margin: 10px 0 26px; }
.cam3d { width: 300px; height: 260px; perspective: 900px; cursor: grab; touch-action: pan-y; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; display: grid; place-items: center; justify-self: center; }
.cam3d.is-dragging { cursor: grabbing; }
.cam3d-rig { will-change: transform; }
.cam3d-rig, .cam3d-rig .p { position: absolute; left: 50%; top: 46%; width: 0; height: 0; transform-style: preserve-3d; }
.cam3d-rig .p { left: 0; top: 0; }
.cam3d-rig .f { position: absolute; backface-visibility: visible; }
.cam3d-hint { position: absolute; bottom: 0; left: 0; right: 0; text-align: center; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.8); pointer-events: none; transition: opacity .4s; }
.cam3d.was-used .cam3d-hint { opacity: 0; }
.cta > * { position: relative; z-index: 1; }
/* Filmkorn auf dem roten Block, hinter Text und Kamera (leicht bewegt, bei reduzierter Bewegung statisch) */
.cta::before, .cta::after { z-index: -1; }
.cta > .cta-grain { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .8; mix-blend-mode: overlay;
  border-radius: var(--radius-xl); overflow: hidden; clip-path: inset(0 round var(--radius-xl)); }
.cta-grain::before { content: ""; position: absolute; inset: -60px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncR type='linear' slope='1.9' intercept='-.45'/%3E%3CfeFuncG type='linear' slope='1.9' intercept='-.45'/%3E%3CfeFuncB type='linear' slope='1.9' intercept='-.45'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); background-size: 180px 180px; animation: grain 1s steps(1) infinite; }
@keyframes grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-22px, 14px); } 40% { transform: translate(16px, -20px); } 60% { transform: translate(-12px, -26px); } 80% { transform: translate(24px, 18px); } }

/* Page heads */
.page-head { padding: clamp(40px, 7vw, 90px) 0 clamp(28px, 4vw, 44px); }
.page-head h1 { margin-bottom: 18px; }

/* Project page */
.project-head { padding: clamp(28px, 5vw, 60px) 0 28px; }
.project-head h1 { font-size: clamp(2rem, 5vw, 3.8rem); margin-bottom: 12px; max-width: 18ch; }
.back { display: flex; width: fit-content; gap: 8px; text-decoration: none; color: var(--muted); margin-bottom: 26px; font-weight: 500; }
.back:hover { color: var(--ink); }
.work-as { color: var(--muted); font-size: 1.1rem; margin: 0; }
.work-as strong { color: var(--ink); }
.video, .project-still { border-radius: var(--radius-xl); }
.video { position: relative; overflow: hidden; aspect-ratio: 16/9; background: #111; }
.video .video-poster { position: absolute; inset: 0; margin: 0; border-radius: 0; aspect-ratio: auto; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.project-still { margin: 0; aspect-ratio: 16/9; }
.play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 12px; white-space: nowrap;
  font: inherit; font-weight: 600; font-size: 1rem; line-height: 1;
  padding: 8px 22px 8px 8px; border-radius: var(--radius-pill); border: 0; cursor: pointer;
  background: #fff; color: #121212; -webkit-appearance: none; appearance: none;
  box-shadow: 0 10px 30px rgba(0,0,0,.25); transition: transform .2s;
}
.play:hover { transform: translate(-50%, -50%) scale(1.04); }
.play-icon { width: 44px; height: 44px; flex: 0 0 44px; aspect-ratio: 1; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; }
.play-icon svg { width: 16px; height: 16px; margin-left: 3px; }
.video-note { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; color: rgba(255,255,255,.8); font-size: .8rem; margin: 0; padding: 0 16px; }
.project-body { display: grid; grid-template-columns: 1fr minmax(280px, 440px); gap: clamp(24px, 5vw, 64px); padding: clamp(36px, 5vw, 64px) 0; align-items: start; }
.project-body.no-text { grid-template-columns: minmax(280px, 560px); }
.credits-box, .roles-box { background: var(--surface); border-radius: var(--radius); padding: 26px 28px; box-shadow: var(--shadow); }
.credits-box h2, .roles-box h2 { font-size: 1.1rem; margin-bottom: 14px; letter-spacing: -0.01em; }
.credits { margin: 0; }
.credits div { display: grid; grid-template-columns: 42% 1fr; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: .95rem; }
.credits div:first-child { border-top: 0; }
.credits dt { color: var(--muted); }
.credits dd { margin: 0; font-weight: 500; }
.next-card { margin-top: clamp(16px, 3vw, 32px); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; text-decoration: none; background: var(--surface); border-radius: var(--radius-xl); padding: 28px 32px; margin-bottom: clamp(56px, 8vw, 100px); box-shadow: var(--shadow); transition: transform .25s; }
.next-card strong { font-size: clamp(1.2rem, 2.4vw, 1.7rem); letter-spacing: -0.02em; }
.next-card:hover { transform: translateY(-3px); }

.project-split { margin-top: 4px; display: grid; grid-template-columns: minmax(260px, 400px) 1fr; gap: clamp(24px, 5vw, 64px); align-items: start; padding-bottom: clamp(36px, 5vw, 64px); }
.project-still.is-vertical { aspect-ratio: 9/16; width: 100%; border-radius: var(--radius-xl); }
.project-side { display: flex; flex-direction: column; gap: 28px; position: sticky; top: 100px; }
.project-side .lead { margin-bottom: 14px; }
.ig-btn { margin-top: 8px; align-self: flex-start; width: fit-content; }
.card-media img { object-position: center 35%; }

/* Dunkelmodus-Schalter */
.theme-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; margin-left: 10px; padding: 0; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 50%; cursor: pointer; -webkit-appearance: none; appearance: none; transition: background .2s, color .2s, border-color .2s; }
.theme-btn .ico { width: 18px; height: 18px; }
.theme-btn .ico-sun { display: none; }
:root[data-mode="dark"] .theme-btn .ico-sun { display: block; }
:root[data-mode="dark"] .theme-btn .ico-moon { display: none; }
html.no-js .theme-btn { display: none; }
/* sanfter Übergang beim Umschalten */
html.theme-anim, html.theme-anim body, html.theme-anim .nav, html.theme-anim .card, html.theme-anim .intro-card,
html.theme-anim .contact-card, html.theme-anim .credits-box, html.theme-anim .roles-box, html.theme-anim .next-card,
html.theme-anim .chip, html.theme-anim .cta { transition: background-color .35s ease, color .35s ease, border-color .35s ease, box-shadow .35s ease !important; }

/* Visitenkarte */
.ico { width: 18px; height: 18px; flex-shrink: 0; }
.card-btn { display: inline-flex; align-items: center; gap: 8px; margin-left: 10px; margin-right: 0; font: inherit; font-size: .9rem; font-weight: 600; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 8px 14px; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
@media (hover: hover) { .card-btn:hover, .theme-btn:hover { background: var(--ink); color: var(--on-ink); border-color: var(--ink); } }
.nav-links { margin-left: auto; }
.bizcard { border: 0; padding: 0; background: transparent; max-width: calc(100vw - 32px); width: 380px; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); color: var(--ink); overflow: visible; }
.bizcard::backdrop { background: rgba(18,18,18,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.bizcard[open] { animation: card-in .35s cubic-bezier(.2,.8,.2,1); }
@keyframes card-in { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
.bizcard-inner { position: relative; background: var(--surface); border-radius: var(--radius-xl); padding: 28px; box-shadow: 0 30px 80px rgba(0,0,0,.35); overflow: hidden auto; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overscroll-behavior: contain; outline: none; }
.bizcard-inner::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: var(--accent); }
.bizcard-close { -webkit-appearance: none; appearance: none; position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--bg); font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--ink); }
.bizcard-close:hover { background: var(--line); }
.bizcard-head { display: flex; align-items: center; gap: 14px; padding-right: 40px; }
.bizcard-avatar { width: 64px; height: 64px; border-radius: var(--radius); object-fit: cover; }
.bizcard-head h2 { font-size: 1.35rem; display: flex; align-items: center; gap: 9px; }
.bizcard-head p { margin: 4px 0 0; font-size: .92rem; }
.bizcard-qr { margin: 22px 0 18px; padding: 18px; background: var(--bg); border-radius: var(--radius); text-align: center; }
.bizcard-qr img { width: 200px; height: 200px; margin: 0 auto 12px; border-radius: var(--radius-inner); background: #fff; padding: 6px; image-rendering: pixelated; }
.bizcard-qr figcaption { font-size: .88rem; color: var(--muted); line-height: 1.4; }
.bizcard-qr strong { color: var(--ink); font-size: 1rem; }
.bizcard-lines { list-style: none; margin: 0 0 20px; padding: 0; font-size: .95rem; }
.bizcard-lines li { padding: 8px 0; border-top: 1px solid var(--line); }
.bizcard-lines li:first-child { border-top: 0; }
.bizcard-lines a { text-decoration: none; font-weight: 500; }
.bizcard-lines a:hover { color: var(--accent); }
.bizcard-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bizcard-actions .btn.btn-dark { color: var(--on-ink); }
.bizcard-actions .btn { white-space: nowrap; justify-content: center; color: var(--ink); -webkit-appearance: none; appearance: none; padding: 12px 16px; font-size: .92rem; font: inherit; font-weight: 600; cursor: pointer; }
.contact-card { font: inherit; text-align: left; border: 0; color: inherit; cursor: pointer; }
.contact-card.contact-card-accent { grid-column: 1 / -1; background: var(--ink); color: var(--on-ink); }
.contact-card.contact-card-accent .muted { color: inherit; opacity: .6; }
.contact-card.contact-card-accent:hover { background: var(--ink-hover); }
.contact-card-accent .arrow .ico { width: 22px; height: 22px; color: var(--accent); }
body.card-open { overflow: hidden; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }
.gallery.g-1 { grid-template-columns: minmax(0, 520px); }
.g-item { display: block; border-radius: var(--radius-inner); overflow: hidden; aspect-ratio: 16/9; background: var(--placeholder); }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.g-item:hover img { transform: scale(1.04); }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(10,10,10,.92); display: grid; place-items: center; padding: 24px; cursor: zoom-out; }
.lightbox img { max-height: 90vh; border-radius: var(--radius-inner); }
.g-1 .g-item { aspect-ratio: auto; }

/* About */
.about { display: grid; grid-template-columns: minmax(240px, 440px) 1fr; gap: clamp(24px, 5vw, 72px); align-items: start; padding-bottom: clamp(56px, 8vw, 100px); }
.portrait-lg { position: sticky; top: 100px; }
.about-text p { font-size: 1.15rem; color: var(--text); max-width: 60ch; }
.roles-box { margin-top: 30px; }
.role-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.role-list li { padding: 8px 14px; border-radius: var(--radius-pill); background: var(--bg); font-weight: 500; font-size: .92rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; padding-bottom: clamp(56px, 8vw, 100px); }
.contact-card { position: relative; display: flex; flex-direction: column; gap: 6px; background: var(--surface); border-radius: var(--radius-xl); padding: 30px 32px; text-decoration: none; box-shadow: var(--shadow); transition: transform .25s, background .25s, color .25s; }
.contact-card strong { font-size: clamp(1.15rem, 2.2vw, 1.6rem); letter-spacing: -0.02em; word-break: break-word; }
.contact-card .arrow { position: absolute; right: 26px; top: 24px; font-size: 1.3rem; transition: transform .25s; }
.contact-card:hover { transform: translateY(-3px); background: var(--ink); color: var(--on-ink); }
.contact-card:hover .muted { color: inherit; opacity: .6; }
.contact-card:hover .arrow { transform: translate(3px, -3px); color: var(--accent); }

/* Legal */
.prose { max-width: 760px; padding-bottom: clamp(56px, 8vw, 100px); }
.prose h2 { font-size: 1.25rem; margin: 2em 0 .5em; letter-spacing: -0.01em; }
.prose a { color: var(--ink); text-decoration-color: var(--accent); text-underline-offset: 3px; }
.notfound { min-height: 50vh; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 44px 0 28px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; }
.footer-name { font-weight: 700; margin: 0; }
.footer-links { display: flex; flex-direction: column; gap: 6px; }
.footer-links a { text-decoration: none; color: var(--muted); }
.footer-links a:hover { color: var(--ink); }
.footer-bottom { margin-top: 36px; font-size: .85rem; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 980px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .project-body { grid-template-columns: 1fr; }
  .project-split { grid-template-columns: 1fr; }
  .project-split .project-still { max-width: 420px; }
  .project-side { position: static; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .menu-btn { display: block; order: 3; flex-shrink: 0; }
  .theme-btn { order: 2; width: 42px; height: 42px; margin: 0 0 0 auto; }
  .card-btn { order: 2; padding: 0; width: 42px; height: 42px; justify-content: center; margin: 0 8px 0 8px; }
  .bizcard-actions { grid-template-columns: 1fr 1fr; }
  .bizcard-actions .btn { padding: 12px 10px; font-size: .9rem; }
  .bizcard-inner { padding: 22px 20px 20px; }
  .bizcard-qr { margin: 16px 0 12px; padding: 14px; }
  .bizcard-qr img { width: 168px; height: 168px; margin-bottom: 8px; }
  .bizcard-lines { margin-bottom: 14px; font-size: .92rem; }
  .bizcard-lines li { padding: 6px 0; }
  .bizcard-head h2 { font-size: 1.2rem; }
  .bizcard-avatar { width: 56px; height: 56px; }
  .card-btn span { display: none; }
  .card-btn .ico { width: 20px; height: 20px; }
  .brand { order: 1; }
  .nav { border-radius: var(--radius-pill); flex-wrap: wrap; transition: none; }
  .nav:has(.nav-links.is-open) { border-radius: var(--radius-xl); }
  .nav-links { order: 4; display: none; width: 100%; flex-direction: column; align-items: stretch; padding: 6px 4px 8px 0; }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 12px 14px; }
  .lang-switch { align-self: flex-start; margin: 8px 0 4px 10px; }
  .lang-switch a, .lang-switch span { padding: 8px 18px; font-size: .88rem; }
  .grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .about { grid-template-columns: 1fr; }
  .intro-card { grid-template-columns: 1fr; gap: 20px; }
  .intro-head { flex-direction: row; align-items: center; }
  .avatar { width: 72px; height: 72px; border-radius: var(--radius); }
  .portrait-lg { position: static; max-width: 420px; }
  .contact-grid { grid-template-columns: 1fr; }
  .cta { grid-template-columns: 1fr; }
  .cta::after { right: 50%; top: 74%; width: 420px; height: 420px; }
  .cam3d { margin: 0 auto; transform: scale(.85); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .hero { min-height: 70vh; }
  .credits div { grid-template-columns: 1fr; gap: 0; }
  .play { font-size: .92rem; gap: 10px; padding-right: 18px; }
  .play-icon { width: 40px; height: 40px; flex-basis: 40px; }
  .video-note { font-size: .72rem; bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
