/* metaoffice – Gerd Bernhardt. No external fonts or resources. */

:root {
  --bg: #f6f4ef;
  --bg-alt: #efece4;
  --surface: #ffffff;
  --ink: #15181d;
  --muted: #5d6470;
  --line: #dcd7cc;
  --accent: #0d6b76;
  --accent-ink: #ffffff;
  --accent-soft: #d9ecec;
  --warm: #d9672f;
  --shadow: 0 1px 2px rgb(20 24 30 / 0.05), 0 8px 24px -12px rgb(20 24 30 / 0.18);
  --radius: 18px;
  --maxw: 1160px;
  --date-w: 9rem;
  --node-w: 3rem;
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-display: ui-sans-serif, -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1115;
    --bg-alt: #13171c;
    --surface: #171c22;
    --ink: #ebe8e1;
    --muted: #9aa2ad;
    --line: #2a3139;
    --accent: #5cc0c9;
    --accent-ink: #062226;
    --accent-soft: #15353a;
    --warm: #f08a55;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 10px 30px -14px rgb(0 0 0 / 0.6);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
picture { display: contents; }
a { color: var(--accent); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 1rem; top: 1rem; z-index: 100; background: var(--surface); padding: .5rem 1rem; }

.icon { width: 1.15em; height: 1.15em; flex: none; }
.icon-lg { width: 30px; height: 30px; }

/* ---------- top bar */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .7rem max(1.25rem, calc((100vw - var(--maxw)) / 2));
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
}
.brand { display: flex; align-items: center; gap: .55rem; color: var(--ink); text-decoration: none; font-weight: 650; }
.brand-mark {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: var(--ink); color: var(--bg); font-size: .85rem; letter-spacing: .02em;
}
.nav { display: flex; gap: 1.6rem; }
.nav a, .lang { color: var(--muted); text-decoration: none; font-size: .95rem; font-weight: 500; }
.nav a:hover, .lang:hover { color: var(--ink); }
.topbar-actions { display: flex; align-items: center; gap: 1rem; }
@media (max-width: 760px) { .nav { display: none; } }

/* ---------- buttons */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .8rem 1.25rem; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 600; font-size: .98rem; text-decoration: none;
  border: 1px solid var(--accent);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-small { padding: .45rem .9rem; font-size: .88rem; }
.cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

/* ---------- layout */
.section { max-width: var(--maxw); margin: 0 auto; padding: 6rem 1.25rem; }
.section-head { max-width: 760px; margin-bottom: 3rem; }
.section-head h2 { font-size: clamp(2rem, 4.5vw, 3.1rem); margin-bottom: 1rem; }
.section-lead { color: var(--muted); font-size: 1.12rem; }
.kicker { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 650; color: var(--accent); margin-bottom: .8rem; }
.subhead { font-size: 1.15rem; margin: 3rem 0 1.2rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- hero */
.hero {
  position: relative;
  max-width: var(--maxw); margin: 0 auto;
  min-height: min(calc(100svh - 60px), 860px);
  display: grid; grid-template-columns: 1.25fr 1fr; align-items: center; gap: 3rem;
  padding: 3rem 1.25rem 5rem;
}
.hero h1 { font-size: clamp(2.8rem, 7vw, 5.2rem); letter-spacing: -0.035em; }
.role { font-size: clamp(1.1rem, 2.2vw, 1.45rem); font-weight: 600; color: var(--accent); margin: .6rem 0 1.4rem; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 40rem; }
.eyebrow { color: var(--muted); font-size: .95rem; margin-bottom: .6rem; }
.status {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .3rem .8rem; border-radius: 999px; font-size: .85rem; font-weight: 600;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 1.4rem;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 0 currentColor; animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 60%, transparent); } 70%, 100% { box-shadow: 0 0 0 9px transparent; } }
.hero-photo { margin: 0; position: relative; justify-self: center; width: min(100%, 440px); }
.hero-photo img {
  width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%;
  border: 6px solid var(--bg);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 55%, transparent), 0 24px 60px -24px rgb(0 0 0 / 0.45);
}
.stats { display: flex; gap: 2.5rem; margin: 2.5rem 0 0; }
.stats dt { font: 700 2rem/1 var(--font-display); letter-spacing: -0.03em; }
.stats dd { margin: .3rem 0 0; color: var(--muted); font-size: .9rem; }
.scroll-hint {
  position: absolute; left: 50%; bottom: 1.5rem; transform: translateX(-50%);
  display: flex; align-items: center; gap: .4rem; color: var(--muted); font-size: .88rem; text-decoration: none;
}
.scroll-hint .icon { animation: bob 2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(4px); } }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 2rem; }
  .hero-photo { order: -1; width: 220px; justify-self: start; }
  .scroll-hint { display: none; }
  .stats { gap: 1.5rem; }
}

/* ---------- now */
.now { border-top: 1px solid var(--line); }
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; counter-reset: s; }
.steps li { padding: 1.5rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.steps h3 { font-size: 1.15rem; margin: .6rem 0 .5rem; }
.steps p { color: var(--muted); font-size: .96rem; margin: 0; }
.step-no { font: 700 .85rem/1 var(--font); color: var(--warm); letter-spacing: .08em; }
.platforms { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.platforms li {
  display: flex; flex-direction: column; gap: .35rem; padding: 1.3rem;
  border-radius: var(--radius); background: var(--bg-alt); border: 1px solid var(--line);
}
.platforms .icon-lg { color: var(--accent); margin-bottom: .4rem; }
.platforms span { color: var(--muted); font-size: .9rem; line-height: 1.45; }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, 1fr); } .platforms { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps, .platforms { grid-template-columns: 1fr; } }

/* ---------- timeline */
.timeline { position: relative; }
.year-indicator {
  position: sticky; top: 4.5rem; height: 0; z-index: 0; pointer-events: none;
  text-align: right;
}
.year-indicator span {
  display: inline-block;
  font: 800 clamp(5rem, 13vw, 10rem)/1 var(--font-display); letter-spacing: -0.05em;
  color: var(--ink); opacity: .06; font-variant-numeric: tabular-nums;
  transition: opacity .3s;
}
.tl-wrap { position: relative; z-index: 1; }
.tl-progress {
  position: absolute; top: 0; bottom: 0;
  left: calc(var(--date-w) + var(--node-w) / 2 - 1px); width: 2px;
  background: var(--line); border-radius: 2px;
}
.tl-progress span {
  position: absolute; inset: 0 0 auto 0; height: 100%;
  background: linear-gradient(var(--warm), var(--accent));
  transform-origin: top; transform: scaleY(var(--p, 1));
}
.era { padding-bottom: 2rem; }
.era-head {
  display: grid; grid-template-columns: var(--date-w) var(--node-w) 1fr; align-items: center;
  margin: 2.5rem 0 1.5rem;
}
.era-photo { grid-column: 2; justify-self: center; margin: 0; position: relative; z-index: 2; }
.era-photo img {
  width: 104px; height: 104px; border-radius: 50%; object-fit: cover; max-width: none;
  border: 4px solid var(--bg); box-shadow: 0 0 0 2px var(--accent), var(--shadow);
}
.era-early img, .era-2015s img { filter: grayscale(1) contrast(1.05); }
.era-photo figcaption {
  position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%);
  background: var(--ink); color: var(--bg); font-size: .72rem; font-weight: 700;
  padding: .1rem .5rem; border-radius: 999px;
}
.era-head > div { grid-column: 3; padding-left: 2.2rem; }
.era-label { margin: 0; color: var(--accent); font-weight: 650; font-size: .9rem; letter-spacing: .06em; text-transform: uppercase; }
.era-title { font-size: clamp(1.5rem, 3vw, 2.1rem); }

.tl { list-style: none; }
.tl-item {
  display: grid; grid-template-columns: var(--date-w) var(--node-w) 1fr; align-items: start;
  margin-bottom: 1.25rem;
}
.tl-date {
  text-align: right; padding: 1.25rem .25rem 0 0; color: var(--muted);
  font-size: .9rem; font-weight: 600; font-variant-numeric: tabular-nums;
}
.tl-node {
  justify-self: center; margin-top: 1.45rem; width: 14px; height: 14px; border-radius: 50%;
  background: var(--bg); border: 3px solid var(--accent); position: relative; z-index: 2;
}
.tl-body { margin-left: 1rem; }
.tl-body.card { padding: 1.4rem 1.6rem; }
.tl-body h3 { font-size: 1.3rem; }
.client { color: var(--muted); font-weight: 500; margin: .25rem 0 .9rem; font-size: .95rem; }
.tl-body > p { margin-bottom: .8rem; }
.tasks { padding-left: 1.1rem; color: var(--muted); font-size: .96rem; margin-bottom: 1rem; }
.tasks li { margin: .2rem 0; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; }
.tags li {
  font-size: .78rem; font-weight: 600; padding: .2rem .6rem; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
}
.tl-highlight .tl-node { border-color: var(--warm); background: var(--warm); box-shadow: 0 0 0 6px color-mix(in srgb, var(--warm) 25%, transparent); }
.tl-highlight .card { border-color: color-mix(in srgb, var(--warm) 45%, var(--line)); background: linear-gradient(160deg, color-mix(in srgb, var(--warm) 9%, var(--surface)), var(--surface) 55%); }
.tl-highlight .tl-date { color: var(--warm); }

.tl-milestone .tl-date { padding-top: .55rem; }
.tl-milestone .tl-node { margin-top: .75rem; width: 10px; height: 10px; border-width: 2px; border-color: var(--muted); }
.tl-milestone .tl-body { display: flex; align-items: center; gap: .8rem; padding: .25rem 0; }
.tl-milestone .tl-body p { margin: 0; font-weight: 600; }
.badge { width: 44px; height: 44px; object-fit: contain; }

@media (max-width: 720px) {
  :root { --date-w: 0px; --node-w: 2.2rem; }
  .tl-item { grid-template-columns: var(--node-w) 1fr; }
  .tl-date { grid-column: 2; grid-row: 1; text-align: left; padding: 0 0 .4rem 1rem; }
  .tl-node { grid-column: 1; grid-row: 1 / span 2; margin-top: .3rem; }
  .tl-body { grid-column: 2; }
  .tl-milestone .tl-node { margin-top: .4rem; }
  .tl-milestone .tl-date { padding-top: 0; }
  .era-head { grid-template-columns: auto 1fr; gap: 1rem; }
  .era-photo { grid-column: 1; }
  .era-photo img { width: 72px; height: 72px; }
  .era-head > div { grid-column: 2; padding-left: 0; }
  .tl-progress { left: calc(var(--node-w) / 2 - 1px); }
  .year-indicator { display: none; }
}

/* ---------- skills */
.skills { border-top: 1px solid var(--line); }
.skill-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.skill-grid .card { padding: 1.5rem; }
.skill-grid h3 { font-size: 1.1rem; margin-bottom: .8rem; }
.skill-grid ul { list-style: none; color: var(--muted); font-size: .94rem; }
.skill-grid li { padding: .35rem 0; border-top: 1px solid var(--line); }
.skill-grid li:first-child { border-top: 0; }
.split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; }
.certs, .edu { list-style: none; }
.certs li { display: flex; align-items: center; gap: 1rem; padding: .6rem 0; }
.certs img { width: 56px; height: 56px; object-fit: contain; }
.certs span { display: flex; flex-direction: column; }
.certs small, .edu li { color: var(--muted); }
.edu li { padding: .6rem 0; border-bottom: 1px solid var(--line); }
@media (max-width: 980px) { .skill-grid { grid-template-columns: repeat(2, 1fr); } .split { grid-template-columns: 1fr; gap: 0; } }
@media (max-width: 560px) { .skill-grid { grid-template-columns: 1fr; } }

/* ---------- contact */
.contact-card {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem;
  padding: clamp(2rem, 5vw, 3.5rem); border-radius: calc(var(--radius) * 1.5);
  background: var(--ink); color: var(--bg);
}
.contact-card .kicker { color: var(--warm); }
.contact-card h2 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 1rem; }
.contact-card .section-lead { color: color-mix(in srgb, var(--bg) 72%, var(--ink)); }
.contact-card .btn { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.contact-card .btn-ghost { background: transparent; color: var(--bg); border-color: color-mix(in srgb, var(--bg) 35%, transparent); }
.contact-card a { color: inherit; }
.facts { margin: 0; display: grid; gap: 1.2rem; align-content: start; }
.facts dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--warm); font-weight: 650; }
.facts dd { margin: .2rem 0 0; }
@media (max-width: 860px) { .contact-card { grid-template-columns: 1fr; } }

/* ---------- footer & legal */
.footer {
  max-width: var(--maxw); margin: 0 auto; padding: 2rem 1.25rem 3rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  color: var(--muted); font-size: .9rem;
}
.footer nav { display: flex; gap: 1.5rem; }
.footer a { color: var(--muted); }
.legal { max-width: 760px; margin: 0 auto; padding: 4rem 1.25rem; }
.legal h1 { font-size: 2.4rem; margin-bottom: 2rem; }
.legal h2 { font-size: 1.15rem; margin: 2rem 0 .6rem; }

/* ---------- reveal on scroll (only when JS is active) */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .dot, .scroll-hint .icon { animation: none; }
}

@media print {
  .topbar, .scroll-hint, .year-indicator, .cta { display: none; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- trainings */
.trainings { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.trainings li {
  display: flex; flex-direction: column; gap: .2rem; padding: 1.1rem 1.3rem;
  border-radius: var(--radius); background: var(--bg-alt); border: 1px solid var(--line);
}
.tr-date { font-size: .8rem; font-weight: 650; color: var(--accent); font-variant-numeric: tabular-nums; }
.trainings small { color: var(--muted); font-size: .88rem; line-height: 1.45; }
@media (max-width: 720px) { .trainings { grid-template-columns: 1fr; } }

/* ---------- faq */
.faq { border-top: 1px solid var(--line); }
.faq-list { max-width: 860px; display: grid; gap: .75rem; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 1.2rem 3.2rem 1.2rem 1.5rem; position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; position: absolute; right: 1.4rem; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 400; color: var(--accent); transition: transform .2s;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item h3 { font-size: 1.08rem; letter-spacing: -0.01em; }
.faq-item p { padding: 0 1.5rem 1.3rem; margin: 0; color: var(--muted); }
