/* ============================================================
   Sebastian Gsänger — KI-Consulting Landing Page
   Design system: warm-dark, amber/ember accent, Games × AI
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* warm dark (default) */
  --bg:        oklch(0.165 0.013 64);
  --bg-2:      oklch(0.205 0.015 62);
  --surface:   oklch(0.235 0.016 60);
  --surface-2: oklch(0.275 0.017 58);
  --border:    oklch(0.34 0.016 62 / 0.9);
  --border-soft: oklch(0.34 0.016 62 / 0.45);
  --text:      oklch(0.95 0.012 78);
  --text-dim:  oklch(0.74 0.013 70);
  --text-faint:oklch(0.56 0.012 68);

  /* accent — amber/orange (Games Ground energy) */
  --accent:    oklch(0.76 0.155 58);
  --accent-hi: oklch(0.83 0.13 70);
  --accent-deep: oklch(0.62 0.16 45);
  --accent-ink: oklch(0.19 0.04 60);
  --accent-glow: oklch(0.76 0.155 58 / 0.18);

  --radius: 14px;
  --radius-lg: 22px;
  --radius-sm: 9px;
  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 64px);

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --shadow: 0 1px 2px oklch(0 0 0 / 0.4), 0 18px 40px -22px oklch(0 0 0 / 0.7);
  --shadow-lg: 0 30px 80px -40px oklch(0 0 0 / 0.85);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* accent variants */
[data-accent="coral"] {
  --accent:    oklch(0.72 0.16 33);
  --accent-hi: oklch(0.79 0.14 42);
  --accent-deep: oklch(0.6 0.17 28);
  --accent-glow: oklch(0.72 0.16 33 / 0.18);
}
[data-accent="violet"] {
  --accent:    oklch(0.7 0.17 305);
  --accent-hi: oklch(0.77 0.15 305);
  --accent-deep: oklch(0.58 0.18 300);
  --accent-ink: oklch(0.97 0.01 305);
  --accent-glow: oklch(0.7 0.17 305 / 0.2);
}

/* light theme */
[data-theme="light"] {
  --bg:        oklch(0.97 0.008 82);
  --bg-2:      oklch(0.945 0.011 80);
  --surface:   oklch(0.995 0.004 86);
  --surface-2: oklch(0.965 0.008 82);
  --border:    oklch(0.86 0.013 76);
  --border-soft: oklch(0.86 0.013 76 / 0.6);
  --text:      oklch(0.24 0.016 60);
  --text-dim:  oklch(0.44 0.014 60);
  --text-faint:oklch(0.6 0.012 62);
  --accent-ink: oklch(0.21 0.04 60);
  --shadow: 0 1px 2px oklch(0.5 0.02 60 / 0.12), 0 18px 40px -26px oklch(0.4 0.04 50 / 0.4);
  --shadow-lg: 0 30px 80px -44px oklch(0.4 0.04 50 / 0.45);
}
[data-theme="light"][data-accent="violet"] { --accent-ink: oklch(0.99 0.01 305); }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
picture { display: contents; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; overflow-x: clip; background: var(--bg); transition: background 0.4s var(--ease); }
/* dedicated background layer — survives tooling-injected `html,body{background:transparent}` */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--bg);
  transition: background 0.4s var(--ease);
  pointer-events: none;
}
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(72px, 11vw, 140px); position: relative; }
.section--tight { padding-block: clamp(54px, 8vw, 96px); }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--accent);
  opacity: 0.7;
}
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(30px, 4.6vw, 50px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin-top: 18px;
  text-wrap: balance;
}
.section-head p {
  color: var(--text-dim);
  font-size: clamp(16px, 1.6vw, 19px);
  margin-top: 18px;
  max-width: 60ch;
  text-wrap: pretty;
}
.accent { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; transition: transform 0.25s var(--ease); }
.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 10px 30px -12px var(--accent-glow);
}
.btn--primary:hover { transform: translateY(-2px); background: var(--accent-hi); box-shadow: 0 16px 38px -14px var(--accent-glow); }
.btn--primary:hover svg { transform: translateX(3px); }
.btn--ghost {
  border: 1px solid var(--border);
  color: var(--text);
  background: oklch(1 0 0 / 0.02);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn--lg { padding: 17px 28px; font-size: 16px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(16px);
  background: color-mix(in oklch, var(--bg) 78%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.nav.scrolled { border-bottom-color: var(--border-soft); }
.nav__inner { display: flex; align-items: center; gap: 24px; height: 70px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; }
.brand__mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center;
  font-size: 16px; font-weight: 700;
  box-shadow: 0 6px 18px -8px var(--accent-glow);
  flex-shrink: 0;
}
.brand__text { display: flex; flex-direction: column; gap: 2px; line-height: 1; }
.brand__name { font-size: 16px; line-height: 1.1; white-space: nowrap; display: block; }
.brand__tag { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.04em; color: var(--text-faint); display: block; white-space: nowrap; }
.nav__links { display: flex; gap: 4px; margin-left: auto; }
.nav__links a {
  padding: 9px 14px; border-radius: 999px; font-size: 14.5px; color: var(--text-dim);
  transition: color 0.2s, background 0.2s;
}
.nav__links a:hover { color: var(--text); background: oklch(1 0 0 / 0.05); }
.nav__actions { display: flex; align-items: center; gap: 10px; }

/* lang + theme toggles */
.toggle-group { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; padding: 3px; background: oklch(1 0 0 / 0.02); }
.toggle-group button {
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  padding: 5px 11px; border-radius: 999px; color: var(--text-faint);
  transition: color 0.2s, background 0.2s;
}
.toggle-group button.active { background: var(--accent); color: var(--accent-ink); }
.icon-btn {
  width: 38px; height: 38px; border-radius: 999px; border: 1px solid var(--border);
  display: grid; place-items: center; color: var(--text-dim);
  transition: color 0.2s, border-color 0.2s, transform 0.2s;
}
.icon-btn:hover { color: var(--accent); border-color: var(--accent); }
.icon-btn svg { width: 17px; height: 17px; }
.nav__burger { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-top: clamp(50px, 7vw, 90px); padding-bottom: clamp(40px, 6vw, 72px); }
.hero__bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(900px 520px at 78% -8%, var(--accent-glow), transparent 60%),
    radial-gradient(700px 500px at 10% 110%, color-mix(in oklch, var(--accent) 8%, transparent), transparent 65%);
}
.hero__grid {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0.5;
  background-image:
    linear-gradient(to right, var(--border-soft) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(80% 70% at 50% 30%, black, transparent 90%);
          mask-image: radial-gradient(80% 70% at 50% 30%, black, transparent 90%);
}
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.25fr 0.9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__copy { max-width: 640px; }
.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(38px, 6.2vw, 74px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin-top: 22px;
  text-wrap: balance;
}
.hero h1 .mark { color: var(--accent); position: relative; white-space: nowrap; }
.hero__sub { font-size: clamp(17px, 1.9vw, 21px); color: var(--text-dim); margin-top: 26px; max-width: 54ch; text-wrap: pretty; }
.hero__twist {
  margin-top: 22px; font-family: var(--font-mono); font-size: 13.5px; color: var(--text-faint);
  display: inline-flex; align-items: center; gap: 9px; flex-wrap: wrap;
}
.hero__twist b { color: var(--accent); font-weight: 500; }
.hero__cta { display: flex; gap: 14px; margin-top: 38px; flex-wrap: wrap; }

/* portrait */
.hero__portrait { position: relative; }
.portrait-frame {
  position: relative; border-radius: var(--radius-lg);
  border: 1px solid var(--border); overflow: hidden;
  aspect-ratio: 4 / 5; background: var(--surface);
  box-shadow: var(--shadow-lg);
}
.portrait-frame::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(160deg, transparent 55%, color-mix(in oklch, var(--accent) 18%, transparent));
  pointer-events: none;
}
.portrait-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph-stripes {
  width: 100%; height: 100%;
  background:
    repeating-linear-gradient(135deg, var(--surface-2) 0 14px, var(--surface) 14px 28px);
  display: grid; place-items: center;
}
.ph-stripes span {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-faint); background: var(--bg); padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border);
}
.portrait-badge {
  position: absolute; left: -14px; bottom: 22px; z-index: 2;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 12px 16px; box-shadow: var(--shadow); display: flex; gap: 12px; align-items: center;
  max-width: 230px;
}
.portrait-badge .dot { width: 10px; height: 10px; border-radius: 50%; background: oklch(0.72 0.17 145); box-shadow: 0 0 0 4px oklch(0.72 0.17 145 / 0.18); flex-shrink: 0; }
.portrait-badge b { font-family: var(--font-display); font-size: 13px; display: block; }
.portrait-badge small { font-size: 11.5px; color: var(--text-faint); }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--border-soft); overflow: hidden; padding-block: 18px; position: relative; }
.marquee::before, .marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 90px; z-index: 2; pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.marquee::after { right: 0; background: linear-gradient(-90deg, var(--bg), transparent); }
.marquee__track { display: flex; gap: 0; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  font-family: var(--font-mono); font-size: 14px; color: var(--text-dim);
  padding-inline: 26px; display: inline-flex; align-items: center; gap: 26px; white-space: nowrap;
}
.marquee__item::after { content: "✦"; color: var(--accent); font-size: 10px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border-soft); border: 1px solid var(--border-soft); border-radius: var(--radius-lg); overflow: hidden; }
.stat { background: var(--bg); padding: clamp(22px, 3vw, 34px); display: flex; flex-direction: column; gap: 6px; }
.stat__num { font-family: var(--font-display); font-weight: 600; font-size: clamp(30px, 4vw, 46px); letter-spacing: -0.03em; line-height: 1; color: var(--accent); }
.stat__label { font-size: 14px; color: var(--text-dim); line-height: 1.35; text-wrap: pretty; }

/* ---------- Haltung / principles ---------- */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.principle {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 34px); position: relative; overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.principle:hover { transform: translateY(-4px); border-color: color-mix(in oklch, var(--accent) 50%, var(--border)); }
.principle__no { font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); }
.principle__icon { width: 46px; height: 46px; border-radius: 12px; background: var(--accent-glow); color: var(--accent); display: grid; place-items: center; margin-block: 18px 18px; }
.principle__icon svg { width: 24px; height: 24px; }
.principle h3 { font-family: var(--font-display); font-weight: 600; font-size: 21px; letter-spacing: -0.01em; margin-bottom: 10px; }
.principle p { color: var(--text-dim); font-size: 15.5px; text-wrap: pretty; }

.callout {
  margin-top: 26px; display: flex; gap: 20px; align-items: flex-start;
  border: 1px solid var(--accent); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--accent-glow), transparent);
  padding: clamp(24px, 3vw, 34px);
}
.callout__tag { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); white-space: nowrap; padding-top: 4px; }
.callout p { font-size: clamp(17px, 1.9vw, 21px); font-family: var(--font-display); font-weight: 500; line-height: 1.4; letter-spacing: -0.01em; text-wrap: pretty; }

/* ---------- Painpoint table ---------- */
.pain-table { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
.pain-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: clamp(14px, 3vw, 40px); padding: clamp(18px, 2.4vw, 26px) clamp(20px, 3vw, 34px); border-bottom: 1px solid var(--border-soft); transition: background 0.25s; }
.pain-row:last-child { border-bottom: none; }
.pain-row__head { display: grid; grid-template-columns: 1fr auto 1fr; gap: clamp(14px, 3vw, 40px); padding: 16px clamp(20px, 3vw, 34px); background: var(--bg-2); border-bottom: 1px solid var(--border); }
.pain-row__head span { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint); }
.pain-row__head span:last-child { color: var(--accent); }
.pain-pain { color: var(--text-dim); font-size: 15.5px; }
.pain-arrow { color: var(--accent); display: grid; place-items: center; }
.pain-arrow svg { width: 22px; height: 22px; }
.pain-sol { font-weight: 600; font-size: 15.5px; font-family: var(--font-display); letter-spacing: -0.01em; }

/* ---------- Pakete ---------- */
.packages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pkg {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: clamp(26px, 3vw, 36px); display: flex; flex-direction: column;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  position: relative;
}
.pkg:hover { transform: translateY(-5px); border-color: color-mix(in oklch, var(--accent) 55%, var(--border)); box-shadow: var(--shadow-lg); }
.pkg__step { font-family: var(--font-mono); font-size: 12px; color: var(--accent); letter-spacing: 0.06em; }
.pkg h3 { font-family: var(--font-display); font-weight: 600; font-size: 23px; letter-spacing: -0.01em; margin-block: 14px 6px; }
.pkg__format { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-faint); margin-bottom: 18px; }
.pkg p { color: var(--text-dim); font-size: 15px; flex: 1; text-wrap: pretty; }
.pkg ul { list-style: none; padding: 0; margin-top: 18px; display: flex; flex-direction: column; gap: 9px; }
.pkg li { display: flex; gap: 10px; font-size: 14px; color: var(--text-dim); align-items: flex-start; }
.pkg li svg { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; margin-top: 3px; }
.pkg__note { display: flex; gap: 16px; align-items: center; margin-top: 22px; padding: 20px clamp(20px,3vw,30px); border: 1px dashed var(--border); border-radius: var(--radius); background: var(--bg-2); color: var(--text-dim); font-size: 15px; text-wrap: pretty; }
.pkg__note b { color: var(--text); font-weight: 600; }

/* ---------- Timeline / Über mich ---------- */
.about { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(36px, 6vw, 80px); align-items: start; }
.about__intro p { color: var(--text-dim); font-size: clamp(16px, 1.7vw, 18.5px); margin-top: 18px; text-wrap: pretty; }
.about__intro p strong { color: var(--text); font-weight: 600; }
.about__sig { margin-top: 26px; font-family: var(--font-display); font-size: 20px; color: var(--accent); }
.timeline { position: relative; padding-left: 30px; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--accent), var(--border)); }
.tl-item { position: relative; padding-bottom: 30px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content: ""; position: absolute; left: -30px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); }
.tl-item.is-now::before { background: var(--accent); box-shadow: 0 0 0 5px var(--accent-glow); }
.tl-date { font-family: var(--font-mono); font-size: 12.5px; color: var(--accent); }
.tl-item h4 { font-family: var(--font-display); font-weight: 600; font-size: 18px; margin-block: 4px 2px; letter-spacing: -0.01em; }
.tl-org { font-size: 14px; color: var(--text-faint); }
.tl-item p { font-size: 14.5px; color: var(--text-dim); margin-top: 7px; text-wrap: pretty; }

/* ---------- Projekte ---------- */
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.proj {
  border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface);
  display: flex; flex-direction: column;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.proj:hover { transform: translateY(-5px); border-color: color-mix(in oklch, var(--accent) 50%, var(--border)); }
.proj.proj--wide { grid-column: span 1; }
.proj__media { aspect-ratio: 16 / 10; position: relative; overflow: hidden; }
.proj__media .ph-stripes { background: repeating-linear-gradient(135deg, var(--surface-2) 0 12px, var(--bg-2) 12px 24px); }
.proj__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s var(--ease); }
.proj:hover .proj__media img { transform: scale(1.04); }
.proj__media .ph-stripes span { font-size: 10.5px; }
.proj__tag { position: absolute; top: 12px; left: 12px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; background: var(--bg); border: 1px solid var(--border); color: var(--accent); padding: 5px 10px; border-radius: 999px; }
.proj__body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.proj__body h4 { font-family: var(--font-display); font-weight: 600; font-size: 19px; letter-spacing: -0.01em; }
.proj__meta { font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); margin-top: 4px; }
.proj__body p { font-size: 14.5px; color: var(--text-dim); margin-top: 12px; flex: 1; text-wrap: pretty; }
.proj__chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.chip { font-family: var(--font-mono); font-size: 11px; color: var(--text-dim); border: 1px solid var(--border-soft); padding: 4px 9px; border-radius: 999px; }
.proj--feature { grid-column: span 3; flex-direction: row; }
.proj--feature .proj__media { flex: 0 0 44%; aspect-ratio: auto; }
.proj--feature .proj__body { padding: clamp(28px, 4vw, 44px); justify-content: center; }
.proj--feature .proj__body h4 { font-size: clamp(22px, 2.6vw, 30px); }
.proj--feature .proj__body p { flex: none; font-size: 16px; max-width: 56ch; }

/* ---- category typing (Built / Applied AI / Production / R&D / Talk) ---- */
.proj__tag--cat { display: inline-flex; align-items: center; gap: 6px; }
.proj__tag--cat::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--cat, var(--accent)); box-shadow: 0 0 0 3px color-mix(in oklch, var(--cat, var(--accent)) 22%, transparent); }
.proj__tag[data-cat="built"]      { --cat: var(--accent);              color: var(--accent-hi); }
.proj__tag[data-cat="applied"]    { --cat: oklch(0.74 0.12 195);      color: oklch(0.84 0.1 195); }
.proj__tag[data-cat="production"] { --cat: oklch(0.74 0.14 150);      color: oklch(0.84 0.11 150); }
.proj__tag[data-cat="rnd"]        { --cat: oklch(0.72 0.15 300);      color: oklch(0.83 0.12 300); }
.proj__tag[data-cat="talk"]       { --cat: oklch(0.74 0.12 250);      color: oklch(0.84 0.1 250); }

/* category legend under the section head */
.cat-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; }
.cat-legend li { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-faint); }
.cat-legend .swatch { width: 7px; height: 7px; border-radius: 50%; background: var(--cat, var(--accent)); box-shadow: 0 0 0 3px color-mix(in oklch, var(--cat, var(--accent)) 22%, transparent); }
.cat-legend li[data-cat="built"]      { --cat: var(--accent); }
.cat-legend li[data-cat="applied"]    { --cat: oklch(0.74 0.12 195); }
.cat-legend li[data-cat="production"] { --cat: oklch(0.74 0.14 150); }
.cat-legend li[data-cat="rnd"]        { --cat: oklch(0.72 0.15 300); }
.cat-legend li[data-cat="talk"]       { --cat: oklch(0.74 0.12 250); }

/* abstracted workflow strip (honest artifact, no fake screenshot) */
.proj__media:has(.proc) { aspect-ratio: auto; }
.proc {
  width: 100%; height: auto; display: flex; flex-direction: column; justify-content: center; gap: 0;
  padding: 44px 18px 22px;
  background: radial-gradient(120% 100% at 0% 0%, color-mix(in oklch, var(--accent) 10%, var(--bg-2)) 0%, var(--bg-2) 60%);
}
.proc__step { display: flex; align-items: baseline; gap: 9px; }
.proc__k {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent-ink); background: var(--accent); padding: 3px 8px; border-radius: 5px; white-space: nowrap; font-weight: 600;
}
.proc__step[data-human] .proc__k { background: transparent; color: var(--text); border: 1px dashed color-mix(in oklch, var(--accent) 55%, var(--border)); }
.proc__v { font-family: var(--font-mono); font-size: 11px; color: var(--text-dim); line-height: 1.3; text-wrap: pretty; }
.proc__bar { width: 1px; height: 14px; margin: 5px 0 5px 22px; background: linear-gradient(var(--accent), transparent); }

/* hero kicker — the personal catchphrase above the h1 */
.hero__kicker {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.3;
  letter-spacing: -0.005em;
  color: var(--accent-hi);
  margin-bottom: 22px;
  text-wrap: balance;
}
.hero__kicker::before {
  content: "";
  display: inline-block;
  width: 28px; height: 1px;
  background: var(--accent);
  vertical-align: middle;
  margin-right: 12px;
  transform: translateY(-2px);
}

/* video media (YouTube thumbnail with play overlay) */
.proj__media--video { display: block; position: relative; cursor: pointer; background: #000; }
.proj__media--video img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.6s var(--ease), filter 0.4s var(--ease);
  filter: saturate(0.92);
}
.proj__media--video::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
}
.proj__media--video:hover img { transform: scale(1.04); filter: saturate(1.05); }
.video-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 78px; height: 78px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center; z-index: 2;
  box-shadow: 0 10px 32px rgba(0,0,0,0.45), 0 0 0 8px rgba(255,255,255,0.08);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.video-play svg { width: 34px; height: 34px; margin-left: 4px; }
.proj__media--video:hover .video-play { transform: translate(-50%, -50%) scale(1.08); box-shadow: 0 14px 40px rgba(0,0,0,0.55), 0 0 0 12px rgba(255,255,255,0.1); }
.video-meta {
  position: absolute; left: 14px; bottom: 14px; z-index: 2;
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.03em;
  color: #fff; background: rgba(0,0,0,0.55); backdrop-filter: blur(6px);
  padding: 6px 11px 6px 9px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.18);
}
.video-meta svg { width: 14px; height: 14px; color: #ff3d3d; flex-shrink: 0; }
.proj__tag--pioneer {
  background: var(--accent); color: var(--accent-ink); border-color: transparent;
  font-weight: 600; letter-spacing: 0.06em; z-index: 2;
  box-shadow: 0 6px 18px var(--accent-glow);
}

/* ---------- Awards ---------- */
.awards-wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.awards-big { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.04em; line-height: 0.9; }
.awards-big .n { font-size: clamp(96px, 16vw, 180px); color: var(--accent); display: block; }
.awards-big .t { font-size: clamp(22px, 3vw, 34px); }
.awards-big small { display: block; font-family: var(--font-mono); font-weight: 400; font-size: 14px; color: var(--text-faint); letter-spacing: 0.02em; margin-top: 16px; text-transform: none; }
.awards-list { display: flex; flex-direction: column; gap: 14px; }
.award {
  display: flex; gap: 18px; align-items: center; padding: 22px clamp(20px, 3vw, 28px);
  border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface);
  transition: border-color 0.3s, transform 0.3s var(--ease);
}
.award:hover { border-color: var(--accent); transform: translateX(4px); }
.award__medal { width: 50px; height: 50px; flex-shrink: 0; border-radius: 13px; background: var(--accent-glow); color: var(--accent); display: grid; place-items: center; }
.award__medal svg { width: 26px; height: 26px; }
.award h4 { font-family: var(--font-display); font-weight: 600; font-size: 18px; letter-spacing: -0.01em; }
.award p { font-size: 14px; color: var(--text-dim); margin-top: 2px; }
.award__year { margin-left: auto; font-family: var(--font-mono); font-size: 13px; color: var(--text-faint); white-space: nowrap; }

/* award proof photo */
.awards-wrap--proof { grid-template-columns: 0.72fr 1.28fr; align-items: stretch; }
.award-photo { margin: 0; display: flex; flex-direction: column; }
.award-photo img {
  width: 100%; height: 100%; max-height: 560px; object-fit: cover; object-position: center 28%;
  border: 1px solid var(--border); border-radius: var(--radius-lg); display: block;
  box-shadow: var(--shadow);
}
.award-photo figcaption {
  font-family: var(--font-mono); font-size: 12px; line-height: 1.5; color: var(--text-faint);
  letter-spacing: 0.01em; margin-top: 14px; text-wrap: pretty;
}
.award-photo figcaption b { color: var(--text-dim); font-weight: 500; }
.awards-main { display: flex; flex-direction: column; gap: clamp(28px, 4vw, 44px); justify-content: center; }
@media (max-width: 880px) {
  .awards-wrap--proof { grid-template-columns: 1fr; }
  .award-photo img { max-height: 440px; }
}

/* ---------- Kontakt ---------- */
.contact { background: var(--bg-2); border-top: 1px solid var(--border-soft); }
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(36px, 5vw, 72px); align-items: start; }
.contact-info h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(30px, 4.4vw, 48px); line-height: 1.04; letter-spacing: -0.02em; text-wrap: balance; }
.contact-info p { color: var(--text-dim); font-size: 17px; margin-top: 20px; max-width: 44ch; text-wrap: pretty; }
.contact-meta { margin-top: 32px; display: flex; flex-direction: column; gap: 14px; }
.contact-meta a, .contact-meta div { display: flex; align-items: center; gap: 12px; font-family: var(--font-mono); font-size: 14px; color: var(--text-dim); transition: color 0.2s; }
.contact-meta a:hover { color: var(--accent); }
.contact-meta svg { width: 17px; height: 17px; color: var(--accent); flex-shrink: 0; }

.form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(26px, 3.5vw, 40px); box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; color: var(--text-dim); margin-bottom: 8px; }
.field label .req { color: var(--accent); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--text);
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 13px 15px; transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-faint); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23999' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; padding-right: 38px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form__submit { width: 100%; justify-content: center; margin-top: 6px; }
.form__hint { font-size: 13px; color: var(--text-faint); margin-top: 16px; text-align: center; text-wrap: pretty; }
.form__hint b { color: var(--text-dim); font-weight: 500; }
.form.is-sent .form__fields { display: none; }
.form__success { display: none; flex-direction: column; align-items: center; text-align: center; gap: 14px; padding: 30px 10px; }
.form.is-sent .form__success { display: flex; }
.form__success .check { width: 60px; height: 60px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; }
.form__success .check svg { width: 30px; height: 30px; }
.form__success h3 { font-family: var(--font-display); font-size: 24px; font-weight: 600; }
.form__success p { color: var(--text-dim); font-size: 15px; max-width: 36ch; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border-soft); padding-block: 48px; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer__links { display: flex; gap: 22px; font-size: 14px; color: var(--text-dim); flex-wrap: wrap; }
.footer__links a:hover { color: var(--accent); }
.footer__links button[data-cookie-settings] { color: var(--text-dim); font: inherit; font-size: 14px; padding: 0; }
.footer__links button[data-cookie-settings]:hover { color: var(--accent); }
.footer__links a[aria-current="page"] { color: var(--accent); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* ---------- Cookie consent ---------- */
.consent {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  padding: 0 var(--gutter) max(16px, env(safe-area-inset-bottom));
  transform: translateY(120%); opacity: 0;
  transition: transform 0.45s var(--ease), opacity 0.45s var(--ease);
  pointer-events: none;
}
.consent.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.consent__inner {
  max-width: var(--maxw); margin-inline: auto; margin-bottom: 14px;
  display: flex; align-items: center; gap: clamp(16px, 3vw, 32px);
  background: color-mix(in oklch, var(--surface) 88%, transparent);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 18px clamp(18px, 2.5vw, 26px);
}
.consent__text { font-size: 14px; line-height: 1.6; color: var(--text-dim); max-width: 70ch; }
.consent__text a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.consent__actions { display: flex; gap: 10px; flex-shrink: 0; margin-left: auto; }
.consent__actions .btn { padding: 11px 20px; font-size: 14px; }
@media (max-width: 680px) {
  .consent__inner { flex-direction: column; align-items: stretch; gap: 14px; }
  .consent__actions { margin-left: 0; }
  .consent__actions .btn { flex: 1; justify-content: center; }
}
[data-cookie-settings] { background: none; border: none; cursor: pointer; }
.footer__copy { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-faint); }

/* ---------- Style switcher (explore looks) ---------- */
.styler { position: fixed; right: 18px; bottom: 18px; z-index: 60; }
.styler__toggle {
  width: 50px; height: 50px; border-radius: 50%; background: var(--surface); border: 1px solid var(--border);
  display: grid; place-items: center; color: var(--accent); box-shadow: var(--shadow);
  transition: transform 0.3s var(--ease);
}
.styler__toggle:hover { transform: rotate(45deg) scale(1.05); }
.styler__toggle svg { width: 22px; height: 22px; }
.styler__panel {
  position: absolute; right: 0; bottom: 62px; width: 248px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 18px; opacity: 0; visibility: hidden; transform: translateY(10px) scale(0.97);
  transform-origin: bottom right; transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
}
.styler.open .styler__panel { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.styler__panel h5 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 12px; }
.styler__row { margin-bottom: 18px; }
.styler__row:last-child { margin-bottom: 0; }
.styler__opts { display: flex; gap: 8px; }
.swatch { flex: 1; height: 34px; border-radius: 9px; border: 2px solid transparent; cursor: pointer; transition: transform 0.2s; position: relative; }
.swatch:hover { transform: scale(1.06); }
.swatch.active { border-color: var(--text); }
.swatch.active::after { content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 14px; text-shadow: 0 1px 2px rgba(0,0,0,.5); }
.sw-amber { background: oklch(0.76 0.155 58); }
.sw-coral { background: oklch(0.72 0.16 33); }
.sw-violet { background: oklch(0.7 0.17 305); }
.seg { display: flex; border: 1px solid var(--border); border-radius: 9px; overflow: hidden; }
.seg button { flex: 1; padding: 8px; font-family: var(--font-mono); font-size: 12px; color: var(--text-dim); transition: background 0.2s, color 0.2s; }
.seg button.active { background: var(--accent); color: var(--accent-ink); }

/* ---------- Reveal animations ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
  .reveal.in { opacity: 1; transform: none; }
  .reveal.d1 { transition-delay: 0.08s; }
  .reveal.d2 { transition-delay: 0.16s; }
  .reveal.d3 { transition-delay: 0.24s; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__portrait { max-width: 420px; }
  .about { grid-template-columns: 1fr; }
  .awards-wrap { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__burger { display: grid; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .principles { grid-template-columns: 1fr; }
  .packages { grid-template-columns: 1fr; }
  .projects { grid-template-columns: 1fr; }
  .proj--feature { flex-direction: column; }
  .proj--feature .proj__media { flex: none; aspect-ratio: 16/10; }
  .proj--feature { grid-column: span 1; }
}
@media (max-width: 560px) {
  .pain-row, .pain-row__head { grid-template-columns: 1fr; gap: 8px; }
  .pain-row__head { display: none; }
  .pain-arrow { display: none; }
  .pain-sol::before { content: "→ "; color: var(--accent); }
  .field-row { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .hero__cta .btn { flex: 1; justify-content: center; }
  .brand__tag { display: none; }
}

/* ============================================================
   TWEAK PRESETS — three expressive levers that reshape feel
   (Vibe · Rhythm · Surface). Each preset sweeps multiple
   tokens together so the page changes character, not pixels.
   ============================================================ */

/* ---------- Vibe: voice & visual language ---------- */
/* Workshop = default; tokens already set in :root */

body[data-vibe="lab"] {
  --font-display: "IBM Plex Mono", ui-monospace, monospace;
  --radius: 5px;
  --radius-lg: 10px;
  --radius-sm: 3px;
  --accent: oklch(0.78 0.14 195);
  --accent-hi: oklch(0.85 0.12 195);
  --accent-deep: oklch(0.62 0.16 200);
  --accent-glow: oklch(0.78 0.14 195 / 0.2);
  --accent-ink: oklch(0.18 0.04 215);
}
body[data-vibe="lab"][data-theme="light"] { --accent-ink: oklch(0.16 0.04 220); }
body[data-vibe="lab"] h1,
body[data-vibe="lab"] .section-head h2,
body[data-vibe="lab"] .pkg h3,
body[data-vibe="lab"] .principle h3,
body[data-vibe="lab"] .proj__body h4,
body[data-vibe="lab"] .brand__name,
body[data-vibe="lab"] .awards-big .t,
body[data-vibe="lab"] .contact-info h2,
body[data-vibe="lab"] .about__intro h2,
body[data-vibe="lab"] .form__success h3,
body[data-vibe="lab"] .tl-item h4 {
  font-weight: 500;
  letter-spacing: -0.005em;
}
body[data-vibe="lab"] .awards-big .n { font-weight: 500; letter-spacing: -0.02em; }
body[data-vibe="lab"] .btn { border-radius: 6px; letter-spacing: 0; }
body[data-vibe="lab"] .chip,
body[data-vibe="lab"] .proj__tag { border-radius: 4px; text-transform: uppercase; }
body[data-vibe="lab"] .hero__grid { opacity: 1; }

body[data-vibe="atelier"] {
  --font-display: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --radius: 18px;
  --radius-lg: 28px;
  --radius-sm: 12px;
  --accent: oklch(0.7 0.105 88);
  --accent-hi: oklch(0.78 0.09 86);
  --accent-deep: oklch(0.55 0.115 82);
  --accent-glow: oklch(0.7 0.105 88 / 0.16);
}
body[data-vibe="atelier"] h1,
body[data-vibe="atelier"] .section-head h2,
body[data-vibe="atelier"] .contact-info h2,
body[data-vibe="atelier"] .about__intro h2,
body[data-vibe="atelier"] .awards-big .t {
  font-weight: 400;
  letter-spacing: -0.018em;
  font-style: italic;
  line-height: 1.02;
}
body[data-vibe="atelier"] h1 { font-size: clamp(48px, 7.2vw, 96px); }
body[data-vibe="atelier"] .section-head h2 { font-size: clamp(36px, 5.4vw, 60px); }
body[data-vibe="atelier"] .awards-big .n { font-weight: 400; font-style: italic; }
body[data-vibe="atelier"] .pkg h3,
body[data-vibe="atelier"] .principle h3,
body[data-vibe="atelier"] .proj__body h4 {
  font-weight: 500;
  letter-spacing: -0.015em;
}
body[data-vibe="atelier"] .btn--primary { font-weight: 500; }

/* ---------- Rhythm: section breath + content width ---------- */
body[data-rhythm="tight"] {
  --maxw: 1060px;
  --rhythm-section: clamp(48px, 7vw, 88px);
  --rhythm-section-tight: clamp(36px, 5vw, 60px);
  --rhythm-head-mb: clamp(24px, 3vw, 38px);
}
body[data-rhythm="standard"] {
  --rhythm-section: clamp(72px, 11vw, 140px);
  --rhythm-section-tight: clamp(54px, 8vw, 96px);
  --rhythm-head-mb: clamp(36px, 5vw, 60px);
}
body[data-rhythm="generous"] {
  --maxw: 1280px;
  --rhythm-section: clamp(110px, 16vw, 200px);
  --rhythm-section-tight: clamp(80px, 12vw, 140px);
  --rhythm-head-mb: clamp(52px, 7vw, 90px);
}
body[data-rhythm] .section { padding-block: var(--rhythm-section); }
body[data-rhythm] .section--tight { padding-block: var(--rhythm-section-tight); }
body[data-rhythm] .section-head { margin-bottom: var(--rhythm-head-mb); }

/* ---------- Surface: card chrome ---------- */
body[data-surface="hairline"] .proj,
body[data-surface="hairline"] .pkg,
body[data-surface="hairline"] .principle,
body[data-surface="hairline"] .award,
body[data-surface="hairline"] .form,
body[data-surface="hairline"] .pain-table,
body[data-surface="hairline"] .portrait-frame {
  background: transparent;
  box-shadow: none;
}
body[data-surface="hairline"] .proj { border-color: var(--border-soft); }
body[data-surface="hairline"] .pkg,
body[data-surface="hairline"] .principle,
body[data-surface="hairline"] .award,
body[data-surface="hairline"] .form {
  border-color: var(--border-soft);
}
body[data-surface="hairline"] .callout { background: transparent; }

body[data-surface="etched"] .proj,
body[data-surface="etched"] .pkg,
body[data-surface="etched"] .principle,
body[data-surface="etched"] .award,
body[data-surface="etched"] .form,
body[data-surface="etched"] .callout {
  background: var(--bg-2);
  border-color: transparent;
  box-shadow:
    inset 0 1px 0 color-mix(in oklch, var(--text) 8%, transparent),
    inset 0 -1px 0 color-mix(in oklch, var(--bg) 60%, transparent),
    0 1px 2px oklch(0 0 0 / 0.25);
}
body[data-surface="etched"] .proj { overflow: hidden; }
body[data-surface="etched"] .pain-table { background: var(--bg-2); border-color: transparent; }

/* ---------- Tweaks panel chrome — pin to top-right so it doesn't overlap styler ---------- */
#tweaks-root { position: fixed; inset: 0; pointer-events: none; z-index: 70; }
#tweaks-root > * { pointer-events: auto; }
