/* =========================================================
   Dominik Pfaffenbauer — personal site
   Light editorial theme · orange accent
   Bricolage Grotesque (display) + Hanken Grotesk (body)
   Implemented from the Claude Design handoff (statement hero)
   ========================================================= */

:root {
  --bg:            rgb(255, 255, 255);
  --ink:           rgb(16, 16, 16);
  --accent:        rgb(255, 77, 0);
  --muted:         rgb(107, 107, 102);
  --faint:         rgb(170, 170, 163);
  --surface:       rgb(250, 250, 247);
  --border:        rgb(232, 232, 227);
  --border-strong: rgb(214, 214, 208);

  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --body: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;

  --pad: clamp(20px, 5vw, 72px);
  --maxw: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }

@keyframes dpMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes dpSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { margin: 0; font-family: var(--display); }
p { margin: 0; }
a { color: inherit; }
strong { font-weight: 600; }

::selection { background: var(--accent); color: #fff; }

.accent { color: var(--accent); }
.wrap { max-width: var(--maxw); margin: 0 auto; }

/* ───────── buttons ───────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 50px;
  padding: 0 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background .18s ease, border-color .18s ease, transform .15s ease;
}
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--accent); transform: translateY(-2px); }
.btn--outline { background: transparent; border: 1.5px solid var(--border-strong); color: var(--ink); }
.btn--outline:hover { border-color: var(--accent); transform: translateY(-2px); }
.btn--lg { height: 52px; padding: 0 30px; font-size: 16px; }
.btn--self { align-self: flex-start; height: 48px; padding: 0 26px; }

/* ───────── topbar ───────── */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px var(--pad);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.brand__name { font-family: var(--display); font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav__link { font-size: 14px; font-weight: 500; text-decoration: none; color: var(--muted); transition: color .15s ease; }
.nav__link:hover { color: var(--ink); }
.nav__cta {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background .18s ease;
}
.nav__cta:hover { background: var(--accent); }

/* ───────── hero ───────── */
.hero {
  position: relative;
  min-height: 96vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 130px var(--pad) 70px;
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  top: 0; left: 0;
  width: 800px; height: 800px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 77, 0, 0.07), transparent 70%);
  pointer-events: none;
  transform: translate(-2000px, -2000px);
  transition: transform .6s cubic-bezier(.2, .8, .3, 1);
  will-change: transform;
}
.badge {
  position: absolute;
  top: 112px;
  right: var(--pad);
  width: 126px; height: 126px;
  pointer-events: none;
  animation: dpSpin 24s linear infinite;
}
.badge svg { width: 100%; height: 100%; display: block; }
.badge text {
  font-family: var(--body);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  fill: var(--faint);
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 36px;
  max-width: 1200px;
}
.kicker { display: flex; align-items: center; gap: 14px; }
.kicker__rule { width: 36px; height: 2px; background: var(--accent); display: inline-block; }
.kicker__text {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero__title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(52px, 8.4vw, 122px);
  line-height: 0.99;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.hero__lede {
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.6;
  max-width: 620px;
  color: var(--muted);
  text-wrap: pretty;
}
.hero__lede strong { color: var(--ink); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}
.chip__star { color: var(--accent); }

/* ───────── marquee ───────── */
.marquee {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--ink);
  overflow: hidden;
  padding: 18px 0;
}
.marquee__track { display: flex; width: max-content; animation: dpMarquee 30s linear infinite; }
.marquee__group {
  font-family: var(--display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
}

/* ───────── section helpers ───────── */
.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
}
.section-head { display: flex; flex-direction: column; gap: 16px; max-width: 720px; }
.section-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(36px, 4.4vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.section-title--light { color: #fff; }

/* ───────── companies ───────── */
.companies { padding: clamp(72px, 9vw, 130px) var(--pad); background: var(--surface); }
.companies__wrap { display: flex; flex-direction: column; gap: 48px; }
.companies__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }

.company {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: clamp(28px, 3vw, 44px);
  border-radius: 20px;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.company--dark { background: var(--ink); color: #fff; }
.company--dark:hover { transform: translateY(-6px); box-shadow: 0 24px 60px rgba(16, 16, 16, 0.25); }
.company--light { background: #fff; color: var(--ink); border: 1.5px solid var(--border); }
.company--light:hover { transform: translateY(-6px); box-shadow: 0 24px 60px rgba(16, 16, 16, 0.10); border-color: var(--accent); }
.company__top { display: flex; justify-content: space-between; align-items: flex-start; }
.company__label {
  font-family: var(--display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
}
.company__arrow { font-size: 18px; opacity: .55; }
.company__name { font-family: var(--display); font-weight: 800; font-size: clamp(32px, 3.2vw, 48px); line-height: 1; }
.company__text { font-size: 16px; line-height: 1.6; text-wrap: pretty; flex-grow: 1; }
.company--dark .company__text { color: rgba(255, 255, 255, 0.72); }
.company--light .company__text { color: var(--muted); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  padding: 6px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}
.tag--on-dark { border-color: rgba(255, 255, 255, 0.22); color: rgba(255, 255, 255, 0.8); }
.tag--on-surface { background: #fff; }
.tag--accent { color: var(--accent); border-color: rgba(255, 77, 0, 0.4); }

/* in the making */
.making {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: clamp(28px, 3vw, 44px);
  border: 1.5px dashed var(--border-strong);
  border-radius: 20px;
  background: #fff;
}
.making__head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.making__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); flex-shrink: 0; align-self: center; }
.making__title { font-family: var(--display); font-weight: 700; font-size: 22px; }
.making__sub { font-size: 14px; color: var(--muted); }
.making__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }

.venture {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  text-decoration: none;
  color: var(--ink);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.venture:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 16px 40px rgba(16, 16, 16, 0.08); }
.venture__top { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; }
.venture__name { font-family: var(--display); font-weight: 800; font-size: 24px; }
.venture__link { font-size: 13px; font-weight: 600; color: var(--accent); white-space: nowrap; }
.venture__text { font-size: 15px; line-height: 1.6; color: var(--muted); text-wrap: pretty; flex-grow: 1; }

/* ───────── engineer ───────── */
.engineer { padding: clamp(72px, 9vw, 130px) var(--pad); background: #fff; }
.engineer__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.engineer__intro { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 110px; }
.engineer__lede { font-size: 17px; line-height: 1.65; color: var(--muted); text-wrap: pretty; }
.engineer__col { display: flex; flex-direction: column; gap: 18px; }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
}
.stat__num { font-family: var(--display); font-weight: 800; font-size: clamp(30px, 2.8vw, 42px); line-height: 1; }
.stat__label { font-size: 13px; font-weight: 500; color: var(--muted); }

.panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(24px, 2.6vw, 36px);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  transition: border-color .2s ease;
}
.panel:hover { border-color: var(--accent); }
.panel__top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.panel__title { font-family: var(--display); font-weight: 700; font-size: 24px; }
.panel__title--sm { font-size: 22px; }
.panel__meta { font-size: 13px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.panel__text { font-size: 15px; line-height: 1.6; color: var(--muted); text-wrap: pretty; flex-grow: 1; }
.panel__link { font-size: 14px; font-weight: 600; color: var(--accent); text-decoration: none; }
.panel-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }

.badge-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 77, 0, 0.1);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}

.k8s {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px clamp(24px, 2.6vw, 36px);
  background: var(--ink);
  border-radius: 16px;
}
.k8s__icon { font-size: 26px; flex-shrink: 0; }
.k8s__text { font-size: 15px; line-height: 1.6; color: rgba(255, 255, 255, 0.72); text-wrap: pretty; }
.k8s__text strong { color: #fff; }

/* ───────── journey ───────── */
.journey { padding: clamp(72px, 9vw, 130px) var(--pad); background: var(--ink); color: #fff; }
.journey__wrap { display: flex; flex-direction: column; gap: 56px; }
.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.timeline__item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: clamp(20px, 4vw, 64px);
  padding: 30px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  align-items: baseline;
}
.timeline__year { font-family: var(--display); font-weight: 800; font-size: clamp(26px, 2.6vw, 38px); line-height: 1; }
.timeline__body { display: flex; flex-direction: column; gap: 8px; }
.timeline__title { font-family: var(--display); font-weight: 700; font-size: clamp(20px, 1.9vw, 26px); }
.timeline__text { font-size: 16px; line-height: 1.6; color: rgba(255, 255, 255, 0.6); max-width: 640px; text-wrap: pretty; }

/* ───────── contact ───────── */
.contact { position: relative; padding: clamp(90px, 12vw, 170px) var(--pad); background: #fff; overflow: hidden; }
.contact__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 60% 50% at 50% 110%, rgba(255, 77, 0, 0.10), transparent 70%);
}
.contact__wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 30px;
}
.contact__title { font-family: var(--display); font-weight: 800; font-size: clamp(48px, 7.5vw, 110px); line-height: 0.98; letter-spacing: -0.03em; text-wrap: balance; }
.contact__text { font-size: 18px; line-height: 1.6; max-width: 520px; color: var(--muted); text-wrap: pretty; }
.contact__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* ───────── footer ───────── */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 28px var(--pad);
  background: #fff;
  border-top: 1px solid var(--border);
}
.footer__copy { font-size: 13px; color: var(--muted); }
.footer__tag { font-size: 13px; font-weight: 600; color: var(--ink); }

/* ───────── scroll reveal ───────── */
[data-reveal] { opacity: 0; transform: translateY(26px); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ───────── responsive ───────── */
@media (max-width: 900px) {
  .engineer__grid { grid-template-columns: 1fr; }
  .engineer__intro { position: static; }
}
@media (max-width: 760px) {
  .nav { gap: 16px; }
  .nav__link { display: none; }
  .companies__grid,
  .making__grid,
  .panel-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .timeline__item { grid-template-columns: 72px 1fr; }
  .badge { display: none; }
}

/* ───────── reduced motion ───────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .hero__glow { display: none; }
}
