/* itsmueller.ch — personal profile. Visual language follows deviceshelf.app:
   dark navy hero, white/soft reading sections, system type, blue actions. */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
ul, ol { padding-left: 1.2rem; }

:root {
  --bg-page: #ffffff;
  --bg-soft: #f6f8fc;
  --bg-dark: #0b1220;
  --bg-darker: #060912;
  --text: #1a1f2e;
  --text-soft: #4a5568;
  --text-on-dark: #f1f5fa;
  --text-on-dark-soft: #a3b1c6;
  --accent: #2563eb;
  --accent-2: #3b82f6;
  --accent-ink: #1d4ed8;
  --ok: #15803d;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --border-dark: rgba(255, 255, 255, 0.10);

  --fs-mega: clamp(2.5rem, 6.5vw, 4.8rem);
  --fs-h2: clamp(1.8rem, 4vw, 2.8rem);
  --fs-h3: clamp(1.1rem, 2vw, 1.3rem);
  --fs-lead: clamp(1.05rem, 1.6vw, 1.25rem);
  --fs-small: 0.875rem;

  --gap-sm: 1rem;
  --gap-md: 2rem;
  --gap-lg: 4rem;
  --radius: 14px;
  --radius-lg: 22px;
  --container: 1200px;
  --reading: 46rem;
  --control: 44px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-page);
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 clamp(1rem, 3vw, 2.5rem); }
.reading { max-width: var(--reading); }

.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--accent); color: #fff; padding: .75rem 1rem; border-radius: 0 0 8px 0; }
.skip:focus { left: 0; }

:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 3px; border-radius: 4px; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.82); backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px); border-bottom: 1px solid rgba(0,0,0,.06); }
.nav-inner { max-width: 1400px; margin: 0 auto; min-height: 64px; display: flex; flex-wrap: wrap; align-items: center; gap: .25rem var(--gap-md); padding: .4rem clamp(1rem, 3vw, 2.5rem); }
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; letter-spacing: -.02em; font-size: 1.1rem; text-decoration: none; min-height: var(--control); }
.brand-mark { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: #fff; font-size: .9rem; font-weight: 800; background: linear-gradient(135deg, #1e3a8a, #6366f1); }
.nav-links { display: flex; flex-wrap: wrap; gap: .1rem .3rem; margin-left: auto; list-style: none; padding: 0; align-items: center; }
.nav-links a { display: inline-flex; align-items: center; min-height: var(--control); padding: 0 .65rem; border-radius: 8px; text-decoration: none; color: var(--text-soft); font-size: .95rem; font-weight: 500; }
.nav-links a:hover { color: var(--text); background: var(--bg-soft); }
.nav-links .lang { border: 1px solid var(--border-strong); font-weight: 600; color: var(--text); }
.nav-links .private-link { color: var(--ok); font-weight: 600; }
[hidden] { display: none !important; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: var(--control); padding: .7rem 1.4rem; border-radius: 999px; font-weight: 600; font-size: .95rem; text-decoration: none; border: 1px solid transparent; transition: transform .1s, background .15s, color .15s, box-shadow .15s; cursor: pointer; font-family: inherit; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px -6px rgba(37,99,235,.55); }
.btn-primary:hover { background: var(--accent-ink); }
.btn-ghost { border-color: var(--border-strong); color: var(--text); background: transparent; }
.btn-ghost:hover { background: var(--bg-soft); }
.dark .btn-ghost { color: var(--text-on-dark); border-color: rgba(255,255,255,.3); }
.dark .btn-ghost:hover { background: rgba(255,255,255,.07); }
.btn-sm { min-height: 38px; padding: .45rem 1rem; font-size: .85rem; }

/* ---------- hero ---------- */
.dark { background: radial-gradient(ellipse at 50% 0%, #1e3a8a 0%, var(--bg-darker) 62%), linear-gradient(180deg, var(--bg-dark), var(--bg-darker)); color: var(--text-on-dark); }
.hero { padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem); }
.hero-grid { display: grid; gap: var(--gap-lg); align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.5fr 1fr; } }
.eyebrow { font-size: var(--fs-small); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--accent-ink); margin-bottom: 1rem; }
.dark .eyebrow { color: #7fb0ff; }
.hero h1 { font-size: var(--fs-mega); line-height: 1.04; letter-spacing: -.03em; font-weight: 750; margin-bottom: 1rem; }
.grad { background: linear-gradient(135deg, #60a5fa, #a78bfa); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { font-size: var(--fs-lead); color: var(--text-on-dark-soft); max-width: 40rem; margin-bottom: 1.6rem; }
.hero-lead strong { color: var(--text-on-dark); font-weight: 600; }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-facts { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.6rem; list-style: none; padding: 0; }
.hero-facts li { font-size: var(--fs-small); color: var(--text-on-dark); border: 1px solid var(--border-dark); background: rgba(255,255,255,.04); padding: .35rem .8rem; border-radius: 999px; }
.portrait { justify-self: center; width: min(320px, 70vw); }
.portrait img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius-lg); border: 1px solid var(--border-dark); box-shadow: 0 30px 80px -30px rgba(0,0,0,.8); }
.portrait figcaption { text-align: center; color: var(--text-on-dark-soft); font-size: var(--fs-small); margin-top: .7rem; }

.proof { border-top: 1px solid var(--border-dark); margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 1.6rem; display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; align-items: center; color: var(--text-on-dark-soft); font-size: var(--fs-small); }
.proof a { color: var(--text-on-dark); text-decoration: none; display: inline-flex; align-items: center; gap: .5rem; min-height: var(--control); }
.proof a:hover { text-decoration: underline; }
.proof img { width: 28px; height: 28px; border-radius: 7px; background: #fff; }

/* ---------- sections ---------- */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section.soft { background: var(--bg-soft); }
.section h2 { font-size: var(--fs-h2); line-height: 1.12; letter-spacing: -.02em; margin-bottom: 1rem; }
.section-lead { font-size: var(--fs-lead); color: var(--text-soft); max-width: var(--reading); margin-bottom: var(--gap-md); }
.dark .section-lead { color: var(--text-on-dark-soft); }
h3 { font-size: var(--fs-h3); letter-spacing: -.01em; line-height: 1.3; margin-bottom: .5rem; }
p + p { margin-top: .8rem; }
.muted { color: var(--text-soft); }
.small { font-size: var(--fs-small); }

/* overview cards */
.cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); list-style: none; padding: 0; }
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.4rem; display: flex; flex-direction: column; gap: .6rem; position: relative; transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -18px rgba(15,23,42,.18); }
.card-head { display: flex; gap: .75rem; align-items: center; }
.card-head img { width: 44px; height: 44px; border-radius: 11px; }
.card h3 { margin: 0; }
.card h3 a { text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius-lg); }
.card p { color: var(--text-soft); font-size: .95rem; }
.chips { display: flex; flex-wrap: wrap; gap: .35rem; list-style: none; padding: 0; margin-top: auto; }
.chips li { font-size: .78rem; font-weight: 600; color: var(--accent-ink); background: #eef4ff; border-radius: 999px; padding: .2rem .6rem; }

/* project sections */
.project-head { display: flex; gap: 1rem; align-items: center; margin-bottom: .5rem; }
.project-head img { width: 56px; height: 56px; border-radius: 14px; flex: none; }
.project-meta { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 var(--gap-md); list-style: none; padding: 0; }
.project-meta li { font-size: var(--fs-small); border: 1px solid var(--border-strong); border-radius: 999px; padding: .25rem .75rem; color: var(--text-soft); }
.project-grid { display: grid; gap: var(--gap-md); }
@media (min-width: 960px) { .project-grid { grid-template-columns: 1.15fr 1fr; align-items: start; } }
.media { margin: 0; }
.media video, .media img { width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--border); background: var(--bg-dark); }
.media figcaption { font-size: var(--fs-small); color: var(--text-soft); margin-top: .5rem; }
.media details { margin-top: .4rem; font-size: var(--fs-small); color: var(--text-soft); }
.media summary { cursor: pointer; min-height: var(--control); display: flex; align-items: center; }
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .75rem; }
.shots img { width: 100%; height: auto; border-radius: 16px; aspect-ratio: 9 / 19.5; object-fit: cover; border: 1px solid var(--border); }
.facts h3 { margin-top: 1.4rem; font-size: 1.02rem; text-transform: none; }
.facts h3:first-child { margin-top: 0; }
.facts p, .facts li { color: var(--text-soft); font-size: .97rem; }
.facts ul { margin-top: .3rem; }
.facts li + li { margin-top: .3rem; }
.facts strong { color: var(--text); }
.link-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.4rem; }

.guard { margin-top: var(--gap-md); border: 1px solid var(--border); border-left: 4px solid var(--accent); background: #fff; border-radius: var(--radius); padding: 1.2rem 1.4rem; }
.soft .guard { background: #fff; }
.guard h3 { font-size: 1rem; }
.guard ul { margin-top: .4rem; }
.guard li { color: var(--text-soft); font-size: .95rem; }
.guard li + li { margin-top: .35rem; }

/* how I work with AI */
.principles { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); list-style: none; padding: 0; counter-reset: p; }
.principles li { border: 1px solid var(--border-dark); background: rgba(255,255,255,.03); border-radius: var(--radius-lg); padding: 1.4rem; }
.principles h3 { color: var(--text-on-dark); }
.principles p { color: var(--text-on-dark-soft); font-size: .95rem; }
.principles code { font-size: .85em; background: rgba(255,255,255,.08); padding: .05rem .35rem; border-radius: 5px; }
.layers { display: grid; gap: .5rem; margin: var(--gap-md) 0; max-width: 46rem; }
.layer { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding: .9rem 1.1rem; border-radius: 12px; border: 1px solid var(--border-dark); }
.layer b { color: var(--text-on-dark); }
.layer span { color: var(--text-on-dark-soft); font-size: .95rem; }
.layer.strong { border-color: #3b82f6; background: rgba(59,130,246,.12); }
@media (max-width: 560px) { .layer { grid-template-columns: 1fr; gap: .2rem; } }

/* career */
.timeline { list-style: none; padding: 0; border-left: 2px solid var(--border); margin-left: .4rem; max-width: 52rem; }
.timeline li { position: relative; padding: 0 0 1.6rem 1.6rem; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: .45rem; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid var(--accent); }
.timeline .when { font-size: var(--fs-small); font-weight: 700; color: var(--accent-ink); }
.timeline h3 { margin: .1rem 0 .2rem; }
.timeline p { color: var(--text-soft); font-size: .95rem; }
.quotes { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin-top: var(--gap-md); }
.quotes blockquote { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.3rem 1.4rem; }
.quotes p { font-size: 1rem; }
.quotes cite { display: block; margin-top: .6rem; font-style: normal; font-size: var(--fs-small); font-weight: 700; color: var(--text-soft); }

/* private area */
.private { border: 2px solid #16a34a33; background: #f0fdf4; }
.private-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.private .box { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.4rem; }
.cred { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9rem; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 8px; padding: .5rem .7rem; margin-top: .4rem; word-break: break-all; }
.badge { display: inline-block; font-size: .75rem; font-weight: 700; color: #166534; background: #dcfce7; border-radius: 999px; padding: .15rem .6rem; margin-bottom: .6rem; }

/* contact + footer */
.contact-grid { display: grid; gap: var(--gap-md); }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.2fr 1fr; } }
.contact-list { list-style: none; padding: 0; }
.contact-list li { padding: .6rem 0; border-bottom: 1px solid var(--border-dark); color: var(--text-on-dark-soft); }
.contact-list a { color: var(--text-on-dark); }
footer { background: var(--bg-darker); color: var(--text-on-dark-soft); padding: 2.5rem 0; font-size: var(--fs-small); }
footer .container { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; }
footer nav ul { display: flex; flex-wrap: wrap; gap: .2rem 1.2rem; list-style: none; padding: 0; }
footer a { color: var(--text-on-dark); text-decoration: none; display: inline-flex; min-height: var(--control); align-items: center; }
footer a:hover { text-decoration: underline; }

/* legal pages */
.legal { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); letter-spacing: -.02em; margin-bottom: 1.2rem; }
.legal h2 { font-size: 1.25rem; margin: 2rem 0 .5rem; }
.legal p, .legal li { color: var(--text-soft); }
.legal ul { margin-top: .4rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
