/* ============================================================
   Moritz Keck — About. Electric + bold theme.
   Driven by [data-mode] (light/dark) on <html>.
   ============================================================ */

/* Locally hosted fonts — no connection to Google Fonts on page load. */
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("assets/fonts/instrument-sans-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Sans";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/instrument-sans-italic-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/space-grotesk-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Space Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/space-mono-400-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Space Mono";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/space-mono-700-latin.woff2") format("woff2");
}

:root {
  /* light base — warm paper */
  --paper:   #f1efe6;
  --surface: #fbfaf4;
  --ink:     #15160f;
  --ink-2:   #3c3d33;
  --muted:   #74756a;
  --line:    rgba(21, 22, 15, 0.13);
  --line-2:  rgba(21, 22, 15, 0.07);

  /* accent (electric green default) */
  --accent:     oklch(0.70 0.165 152);
  --accent-2:   oklch(0.62 0.17 152);
  --on-accent:  #07140b;

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

  --maxw: 1080px;
  --soft: color-mix(in oklab, var(--accent) 14%, var(--surface));
  --soft-line: color-mix(in oklab, var(--accent) 32%, var(--line));
}

/* ---------- dark mode ---------- */
[data-mode="dark"] {
  --paper:   #0d0e0a;
  --surface: #16180f;
  --ink:     #f0eee3;
  --ink-2:   #c6c5b8;
  --muted:   #8b8c7e;
  --line:    rgba(255, 255, 255, 0.14);
  --line-2:  rgba(255, 255, 255, 0.07);
  --accent: oklch(0.78 0.17 150);
  --on-accent: #06130a;
}

/* ============================================================ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background .4s ease, color .4s ease;
}
::selection { background: var(--accent); color: var(--on-accent); }

a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.05; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }

/* Visible only during keyboard navigation; no effect on the resting layout. */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 2000;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--display);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus { transform: translateY(0); }
:where(a, button):focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }

/* ---------- top nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: color-mix(in oklab, var(--paper) 82%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.nav.scrolled { border-color: var(--line); }
.nav-inner { max-width: var(--maxw); margin: 0 auto; padding: 14px 32px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav-name { font-family: var(--display); font-weight: 600; font-size: 16px; letter-spacing: -0.01em; display: flex; align-items: center; gap: 10px; }
.nav-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent); animation: pulse 2.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--accent) 60%, transparent); } 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a:not(.nav-cta) { font-size: 14px; text-decoration: none; color: var(--ink-2); letter-spacing: 0.01em; transition: color .2s; }
.nav-links a:not(.nav-cta):hover { color: var(--accent-2); }
.nav-cta { font-family: var(--display); font-weight: 600; font-size: 14px; text-decoration: none; padding: 8px 16px; border-radius: 999px; background: var(--accent); color: var(--on-accent); transition: transform .15s, filter .2s; }
.nav-cta:hover { transform: translateY(-1px); filter: brightness(1.05); }
.theme-btn { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--ink-2); cursor: pointer; transition: color .2s, border-color .2s; }
.theme-btn:hover { color: var(--accent-2); border-color: var(--accent); }
.theme-btn svg { display: block; }
.theme-btn .i-sun { display: none; }
[data-mode="dark"] .theme-btn .i-sun { display: block; }
[data-mode="dark"] .theme-btn .i-moon { display: none; }
@media (max-width: 720px) { .nav-links a:not(.nav-cta) { display: none; } }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .07s; } .reveal.d2 { transition-delay: .14s; } .reveal.d3 { transition-delay: .21s; } .reveal.d4 { transition-delay: .28s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1 !important; transform: none !important; } html { scroll-behavior: auto; } }

/* ---------- hero ---------- */
.hero { padding: 62px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1fr auto; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(44px, 7.5vw, 92px); letter-spacing: -0.035em; }
.hero h1 .light { color: var(--muted); }
.hero-role { font-family: var(--mono); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); margin-top: 16px; }
.hero-tag { font-family: var(--display); font-weight: 500; font-size: clamp(20px, 2.6vw, 30px); line-height: 1.15; letter-spacing: -0.02em; margin-top: 22px; max-width: 19ch; }
.hero-tag .hl { color: var(--accent-2); }
@media (max-width: 620px) { .hero-tag .br-wide { display: none; } }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; font-size: 15px; color: var(--ink-2); align-items: center; }
.hero-meta .pin { display: inline-flex; align-items: center; gap: 7px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.btn { font-family: var(--display); font-weight: 600; font-size: 15px; text-decoration: none; padding: 12px 22px; border-radius: 999px; display: inline-flex; align-items: center; gap: 9px; transition: transform .15s, filter .2s, background .2s, border-color .2s; }
.btn-fill { background: var(--accent); color: var(--on-accent); }
.btn-fill:hover { transform: translateY(-2px); filter: brightness(1.06); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-2); transform: translateY(-2px); }

.portrait { position: relative; width: 280px; }
.portrait picture { display: block; }
.portrait img { width: 280px; height: 280px; border-radius: 50%; display: block; object-fit: cover; }
.portrait .ring { position: absolute; inset: -14px; border-radius: 50%; border: 1px solid var(--soft-line); }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; gap: 36px; } .portrait { order: -1; width: 200px; } .portrait img { width: 200px; height: 200px; } }

/* ---------- keyword band (labelled marquee) ---------- */
.ticker { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 26px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px 32px 16px 32px; margin-top: 28px; }
.ticker-label { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.ticker-vp { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 40px, #000 calc(100% - 60px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 40px, #000 calc(100% - 60px), transparent 100%); }
.ticker-track { display: flex; white-space: nowrap; width: max-content; animation: marq 34s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track span { font-family: var(--display); font-weight: 600; font-size: 22px; letter-spacing: -0.01em; padding: 0 22px; color: var(--ink-2); }
@media (max-width: 720px) { .ticker { grid-template-columns: 1fr; gap: 8px; padding: 14px 0 14px 20px; } .ticker-track span { font-size: 17px; padding: 0 14px; } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } .ticker-vp { overflow-x: auto; } }
.ticker-track span b { color: var(--accent-2); font-weight: 600; }
.ticker-track .sep { color: var(--accent); }
@keyframes marq { to { transform: translateX(-50%); } }

/* ---------- section scaffolding ---------- */
section { padding: 76px 0; }
.sec-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 40px; }
.sec-num { font-family: var(--mono); font-size: 13px; color: var(--accent-2); letter-spacing: 0.05em; padding-top: 6px; }
.sec-title { font-size: clamp(28px, 4vw, 44px); letter-spacing: -0.03em; }
.sec-sub { color: var(--muted); font-size: 16px; margin-top: 6px; max-width: 56ch; }

/* about */
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: start; }
.lede { font-size: clamp(22px, 2.7vw, 30px); line-height: 1.4; letter-spacing: -0.015em; font-family: var(--display); font-weight: 400; }
.lede .hl { color: var(--accent-2); }
.about-body { margin-top: 22px; color: var(--ink-2); font-size: 17px; }
.about-body p + p { margin-top: 14px; }
.facts { display: grid; gap: 0; border-top: 1px solid var(--line); }
.fact { display: flex; justify-content: space-between; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.fact dt { color: var(--muted); font-size: 14px; font-family: var(--mono); letter-spacing: 0.02em; }
.fact dd { margin: 0; font-family: var(--display); font-weight: 500; font-size: 15px; text-align: right; }
@media (max-width: 800px) { .about-grid { grid-template-columns: 1fr; gap: 34px; } }
.about-band { margin: 44px 0 0; }
.about-band picture { display: block; }
.about-band img { width: 100%; height: clamp(280px, 42vw, 460px); object-fit: cover; object-position: 50% 38%; border-radius: 24px; display: block; border: 1px solid var(--line); }
@media (max-width: 700px) { .about-band img { height: auto; aspect-ratio: auto; object-fit: fill; } }
.about-band figcaption { font-family: var(--mono); font-size: 12.5px; color: var(--muted); margin-top: 14px; letter-spacing: 0.02em; }

/* expertise */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 28px; transition: transform .25s, border-color .25s, box-shadow .25s; }
.card:hover { transform: translateY(-4px); border-color: var(--soft-line); box-shadow: 0 18px 40px -28px color-mix(in oklab, var(--accent) 50%, transparent); }
.card .k { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-2); }
.card h3 { font-size: 22px; margin: 14px 0 10px; letter-spacing: -0.02em; }
.card p { color: var(--ink-2); font-size: 15.5px; line-height: 1.55; }
@media (max-width: 720px) { .cards { grid-template-columns: 1fr; } }

/* experience timeline */
.tl { position: relative; }
.tl-co { padding: 6px 0 30px; }
.tl-co:last-child { padding-bottom: 0; }
.co-head { display: flex; align-items: center; gap: 14px; margin-bottom: 4px; }
.co-mark { width: 12px; height: 12px; border-radius: 3px; background: var(--accent); flex: none; }
.co-name { font-family: var(--display); font-weight: 600; font-size: 20px; letter-spacing: -0.01em; }
.co-years { font-family: var(--mono); font-size: 13px; color: var(--muted); margin-left: auto; }
.roles { margin-left: 26px; border-left: 1px solid var(--line); padding-left: 26px; }
.role { padding: 16px 0; border-bottom: 1px solid var(--line-2); }
.role:last-child { border-bottom: none; }
.role-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
.role-title { font-family: var(--display); font-weight: 600; font-size: 18px; letter-spacing: -0.01em; transition: color .2s; }
.role-top:hover .role-title { color: var(--accent-2); }
.role-when { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.role-loc { font-size: 13px; color: var(--muted); }
.role-toggle { margin-left: auto; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; flex: none; transition: transform .3s, background .2s, border-color .2s; color: var(--ink-2); }
.role.open .role-toggle { transform: rotate(45deg); background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.role-desc { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s cubic-bezier(.2,.7,.2,1); }
.role.open .role-desc { grid-template-rows: 1fr; }
.role-desc > div { overflow: hidden; }
.role-desc ul { margin: 14px 0 4px; padding-left: 18px; color: var(--ink-2); font-size: 15.5px; line-height: 1.6; }
.role-desc li { margin: 6px 0; }
.role-desc li::marker { color: var(--accent); }
.role-desc a { color: var(--accent-2); text-decoration: none; border-bottom: 1px solid var(--soft-line); }
.role-desc a:hover { border-color: var(--accent); }
.role-intro { color: var(--ink-2); font-size: 15px; margin-top: 8px; }

/* highlights — big stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { border: 1px solid var(--line); border-radius: 18px; padding: 26px 22px; background: var(--surface); }
.stat .n { font-family: var(--display); font-weight: 600; font-size: clamp(34px, 4vw, 50px); letter-spacing: -0.04em; color: var(--accent-2); line-height: 1; }
.stat .l { margin-top: 12px; color: var(--ink-2); font-size: 14.5px; line-height: 1.4; }
@media (max-width: 820px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* beyond — interest tiles */
.beyond { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.interests { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.int { border: 1px solid var(--line); border-radius: 18px; padding: 24px; transition: transform .25s, border-color .25s, background .25s; text-decoration: none; color: inherit; display: block; background: var(--paper); }
.int:hover { transform: translateY(-4px); border-color: var(--accent); background: var(--soft); }
.int .ic { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-2); }
.int h4 { font-size: 19px; margin: 12px 0 8px; letter-spacing: -0.01em; }
.int p { color: var(--ink-2); font-size: 14.5px; line-height: 1.5; }
.int .go { margin-top: 14px; font-family: var(--mono); font-size: 12.5px; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; }
.int:hover .go { color: var(--accent-2); }
@media (max-width: 820px) { .interests { grid-template-columns: 1fr; } }

/* youtube feature */
.yt { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; border: 1px solid var(--line); border-radius: 18px; padding: 26px 28px; margin-bottom: 18px; text-decoration: none; color: inherit; background: transparent; transition: transform .25s, border-color .25s, background .25s; }
.yt:hover { transform: translateY(-4px); border-color: var(--accent); background: var(--soft); }
.yt .yt-play { width: 54px; height: 38px; border-radius: 10px; background: var(--accent-2); display: grid; place-items: center; flex: none; }
.yt .yt-play svg { fill: #000; margin-left: 2px; }
.yt .ic { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-2); }
.yt h4 { font-size: 21px; margin: 8px 0 8px; letter-spacing: -0.01em; }
.yt p { color: var(--ink-2); font-size: 14.5px; line-height: 1.55; max-width: 62ch; }
.yt .go { font-family: var(--mono); font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.yt:hover .go { color: var(--accent-2); }
@media (max-width: 820px) { .yt { grid-template-columns: 1fr; gap: 16px; } }

/* click-to-load YouTube videos — no YouTube request before activation */
.video-feature { margin: 18px 0 34px; }
.video-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.video-card { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); }
.video-player { position: relative; display: grid; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; padding: 0; border: 0; border-bottom: 1px solid var(--line); background: #080908; color: #fff; cursor: pointer; font: inherit; }
.video-player > picture { display: block; width: 100%; height: 100%; }
.video-player > picture img,
.video-player > img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease, filter .35s ease; }
.video-player:hover > picture img,
.video-player:hover > img { transform: scale(1.04); filter: brightness(.82); }
.video-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.66), transparent 56%); }
.video-play { position: absolute; inset: 50% auto auto 50%; width: 58px; height: 42px; display: grid; place-items: center; border-radius: 11px; background: var(--accent); color: var(--on-accent); transform: translate(-50%, -50%); transition: transform .2s ease, filter .2s ease; }
.video-play svg { fill: currentColor; margin-left: 3px; }
.video-player:hover .video-play { transform: translate(-50%, -50%) scale(1.06); filter: brightness(1.05); }
.video-consent { position: absolute; left: 16px; bottom: 12px; font-family: var(--mono); font-size: 11px; letter-spacing: .03em; }
.video-frame { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-bottom: 1px solid var(--line); background: #080908; }
.video-copy { padding: 20px 22px 22px; }
.video-copy h4 { font-size: 19px; line-height: 1.2; letter-spacing: -.01em; }
.video-copy p { margin-top: 8px; color: var(--ink-2); font-size: 14.5px; line-height: 1.5; }
@media (max-width: 720px) {
  .video-grid { grid-template-columns: 1fr; }
}

/* contact / footer */
.contact { text-align: center; padding: 96px 0; }
.availability { display: inline-flex; align-items: center; gap: 9px; max-width: 100%; margin-bottom: 24px; padding: 7px 14px; border: 1px solid var(--soft-line); border-radius: 999px; background: var(--soft); color: var(--ink-2); font-family: var(--mono); font-size: 13px; line-height: 1.45; letter-spacing: 0.1em; text-align: left; text-transform: uppercase; }
.availability .led { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--accent); }
.contact h2 { font-size: clamp(34px, 6vw, 68px); letter-spacing: -0.04em; }
.say-alt { font-family: var(--mono); font-size: 13px; color: var(--muted); margin-top: 12px; }
.contact .mail { font-family: var(--display); font-weight: 600; font-size: clamp(22px, 3.4vw, 38px); color: var(--accent-2); text-decoration: none; display: inline-block; margin-top: 20px; letter-spacing: -0.02em; border-bottom: 2px solid transparent; transition: border-color .25s; }
.contact .mail:hover { border-color: var(--accent); }
.socials { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.socials a { font-family: var(--display); font-weight: 500; font-size: 14px; text-decoration: none; padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2); transition: border-color .2s, color .2s, transform .15s; }
.socials a:hover { border-color: var(--accent); color: var(--accent-2); transform: translateY(-2px); }
.foot-link { color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--line); transition: color .2s, border-color .2s; }
.foot-link:hover { color: var(--accent-2); border-color: var(--accent); }
a { color: var(--accent-2); }
a:hover { color: var(--accent); }

/* imprint page */
.imp { padding: 130px 0 90px; }
.imp h1 { font-family: var(--display); font-size: clamp(34px, 5vw, 56px); letter-spacing: -0.03em; margin-bottom: 8px; }
.imp .imp-sub { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.imp-body { max-width: 62ch; margin-top: 46px; display: grid; gap: 38px; }
.imp-block h2 { font-family: var(--display); font-size: 17px; letter-spacing: -0.01em; margin-bottom: 12px; }
.imp-block p { color: var(--ink-2); font-size: 15.5px; line-height: 1.7; }
.imp-block p + p { margin-top: 12px; }
.imp-addr { font-style: normal; color: var(--ink-2); font-size: 15.5px; line-height: 1.8; }
.imp-back { display: inline-block; margin-top: 54px; font-family: var(--mono); font-size: 12.5px; color: var(--muted); text-decoration: none; }
.imp-back:hover { color: var(--accent-2); }
.foot { border-top: 1px solid var(--line); padding: 26px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 13px; font-family: var(--mono); }
