/* ---------------------------------------------------------------
   Daniel Deibler - editorial portfolio
   Palette: warm off-white paper, anthracite ink, one restrained
   clay accent. No pure black, no gradients, no glows.
   --------------------------------------------------------------- */

:root {
  --bg: #f4f3ef;
  --paper: #faf9f5;
  --ink: #1b1b19;
  --muted: #6d6b64;
  --faint: #97948c;
  --line: rgba(27, 27, 25, .15);
  --line-soft: rgba(27, 27, 25, .08);
  --accent: #bf4626;

  --map: #1a1a18;
  --map-ink: #f2f0e9;
  --map-muted: #9d9a92;
  --map-line: rgba(242, 240, 233, .14);

  color-scheme: light;

  --radius: 4px;
  --pad: clamp(20px, 4vw, 68px);
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

/* Theme class lives on <html>, not <body>, so the blocking head script can set
   it before the first paint. body does not exist yet at that point. */
:root.dark {
  color-scheme: dark;

  --bg: #161614;
  --paper: #1d1d1b;
  --ink: #f0eee7;
  --muted: #a5a29a;
  --faint: #7d7a73;
  --line: rgba(240, 238, 231, .16);
  --line-soft: rgba(240, 238, 231, .08);
  --accent: #dd6a48;

  /* keep the map readable as its own surface against the dark page */
  --map: #222220;
  --map-line: rgba(242, 240, 233, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, "Helvetica Neue", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-feature-settings: "kern" 1, "liga" 1, "cv11" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background .4s ease, color .4s ease;
}
body.menu-open { overflow: hidden; }

::selection { background: var(--ink); color: var(--bg); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-weight: 560; }

/* ---------- ambience ---------- */

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9997;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

.cursor-dot {
  position: fixed;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1px solid transparent;
  background: var(--ink);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: width .3s cubic-bezier(.22,1,.36,1), height .3s cubic-bezier(.22,1,.36,1),
              opacity .25s ease, background .25s ease, border-color .25s ease;
}
body.has-cursor .cursor-dot { opacity: 1; }
body.cursor-big .cursor-dot {
  width: 40px; height: 40px;
  background: transparent;
  border-color: var(--ink);
}

.section-pad { padding-left: var(--pad); padding-right: var(--pad); }

/* ---------- header ---------- */

.site-header {
  position: fixed;
  z-index: 1000;
  left: 0; right: 0; top: 0;
  min-height: 78px;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background .35s ease, border-color .35s ease, backdrop-filter .35s ease;
}
.site-header.scrolled {
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  border-color: var(--line-soft);
  backdrop-filter: blur(14px) saturate(120%);
}

/* Wordmark instead of an avatar-style monogram badge. */
.brand {
  display: inline-grid;
  gap: 3px;
  width: fit-content;
  line-height: 1;
}
.brand-name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.025em;
}
.brand-role {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--faint);
  transition: color .25s ease;
}
.brand:hover .brand-role { color: var(--muted); }

.nav { display: flex; gap: clamp(20px, 3vw, 40px); font-size: 13px; }
.nav a {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  color: var(--muted);
  transition: color .25s ease;
  padding-bottom: 4px;
}
.nav a i {
  font-family: var(--mono);
  font-style: normal;
  font-size: 9px;
  letter-spacing: .05em;
  color: var(--faint);
  transition: color .25s ease;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--ink);
  transition: right .35s cubic-bezier(.22,1,.36,1);
}
.nav a:hover { color: var(--ink); }
.nav a:hover i { color: var(--accent); }
.nav a:hover::after { right: 0; }

.header-actions { justify-self: end; display: flex; align-items: center; gap: 22px; }
.lang-switch {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.lang-switch a { color: var(--faint); transition: color .25s ease; }
.lang-switch a:hover { color: var(--ink); }
.lang-switch .is-current { color: var(--ink); }
.lang-switch::after { content: none; }
.theme-toggle,
.menu-toggle {
  position: relative;
  border: 0;
  background: transparent;
  padding: 4px 0;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .25s ease;
}
.theme-toggle::after,
.menu-toggle::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--line);
  transition: background .25s ease;
}
.theme-toggle:hover,
.menu-toggle:hover { color: var(--ink); }
.theme-toggle:hover::after,
.menu-toggle:hover::after { background: var(--ink); }
.menu-toggle { display: none; }

/* ---------- mobile menu ---------- */

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--bg);
  padding: 120px var(--pad) 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity .4s ease, transform .55s cubic-bezier(.22,1,.36,1), visibility .4s;
}
body.menu-open .mobile-menu { opacity: 1; visibility: visible; transform: none; }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  font-size: clamp(30px, 9vw, 46px);
  letter-spacing: -.05em;
  font-weight: 560;
}
.mobile-menu nav a:last-child { border-bottom: 1px solid var(--line); }
.mobile-menu nav a i {
  font-family: var(--mono);
  font-style: normal;
  font-size: 10px;
  letter-spacing: .1em;
  color: var(--faint);
}
.mobile-menu-foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.mobile-menu-foot a { color: var(--ink); }

/* ---------- hero ---------- */

.hero {
  min-height: 100svh;
  padding-top: 140px;
  padding-bottom: 46px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.hero-kicker {
  display: flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--muted);
}
.hero-title-wrap { position: relative; margin-top: 6vh; }
.hero-title {
  margin: 0;
  font-size: clamp(76px, 14.5vw, 224px);
  line-height: .8;
  letter-spacing: -.075em;
  font-weight: 580;
  max-width: 92vw;
}
.hero-title > span { display: block; }
.hero-title-indent { margin-left: clamp(35px, 9vw, 180px); }
.accent-dot { font-style: normal; color: var(--accent); }

.hero-side-note {
  position: absolute;
  right: 0;
  top: 50%;
  width: min(290px, 24vw);
}
.hero-side-note > div {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 12px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}
.hero-side-note span {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--faint);
  letter-spacing: .05em;
}
.hero-side-note p { margin: 0; }

.hero-bottom { display: flex; justify-content: space-between; align-items: flex-end; padding-top: 40px; gap: 24px; }
.round-link {
  width: 60px; height: 60px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: background .35s cubic-bezier(.22,1,.36,1), color .35s ease, transform .5s cubic-bezier(.22,1,.36,1), border-color .35s ease;
}
.round-link:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); transform: translateY(5px); }
.round-link svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.4; }

.hero-stack { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; max-width: 560px; }
.hero-stack span {
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 8px 12px;
  font-family: var(--mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
}

/* ---------- shared section furniture ---------- */

.work-section { padding-top: 116px; }
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr);
  gap: 10vw;
  align-items: end;
  margin-bottom: 56px;
}
.eyebrow {
  margin: 0 0 22px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
}
.section-head h2,
.about h2,
.pinned-head h2 {
  margin: 0;
  font-size: clamp(42px, 6.4vw, 96px);
  line-height: .94;
  letter-spacing: -.055em;
  font-weight: 560;
}
.section-intro {
  margin: 0;
  max-width: 460px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.7;
}

/* ---------- work map ---------- */

.work-map-shell {
  position: relative;
  margin: 0 var(--pad);
  min-height: 720px;
  background: var(--map);
  color: var(--map-ink);
  border-radius: var(--radius);
  overflow: hidden;
}
.work-map-topbar {
  height: 60px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--map-line);
  font-family: var(--mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--map-muted);
}
.map-label { display: flex; align-items: center; gap: 10px; color: var(--map-ink); }
.map-mark { width: 5px; height: 5px; background: var(--accent); flex: none; }
.only-narrow { display: none; }

.work-map { position: relative; height: 660px; overflow: hidden; }
.map-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-lines path,
.map-lines circle { fill: none; stroke: var(--map-line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.map-lines circle { stroke-dasharray: 2 6; }

.map-node {
  position: absolute;
  left: var(--x); top: var(--y);
  transform: translate(-50%, -50%);
  width: 168px; height: 168px;
  border-radius: 50%;
  border: 1px solid var(--map-line);
  background: #212120;
  color: var(--map-ink);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  text-align: center;
  padding: 22px;
  cursor: pointer;
  transition: transform .45s cubic-bezier(.22,1,.36,1), background .3s ease, border-color .3s ease, color .3s ease;
}
.map-node:hover { transform: translate(-50%, -50%) scale(1.06); border-color: rgba(242,240,233,.5); }
.map-node.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.map-node strong {
  font-size: 14px;
  line-height: 1.15;
  letter-spacing: -.03em;
  max-width: 100%;
  font-weight: 560;
  /* long domain names carry a &shy; and must never spill out of the circle */
  overflow-wrap: break-word;
  hyphens: manual;
}
.node-kind {
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .1em;
  opacity: .6;
}
.node-index {
  position: absolute;
  top: 26px;
  font-family: var(--mono);
  font-size: 9px;
  opacity: .55;
}
.node-go { display: none; }
.node-center { width: 196px; height: 196px; z-index: 2; }

.map-orbit-label {
  position: absolute;
  font-family: var(--mono);
  font-size: 9px;
  color: rgba(242,240,233,.3);
  letter-spacing: .2em;
}
.orbit-one { left: 51.5%; top: 18%; }
.orbit-two { left: 73%; top: 59%; transform: rotate(40deg); }

.panel-scrim { display: none; }

.project-panel {
  position: absolute;
  top: 60px; right: 0; bottom: 0;
  width: min(430px, 42vw);
  background: var(--paper);
  color: var(--ink);
  padding: 46px 40px 38px;
  transform: translateX(102%);
  transition: transform .6s cubic-bezier(.22,1,.36,1);
  z-index: 10;
  border-left: 1px solid var(--line-soft);
  box-shadow: -30px 0 60px rgba(0,0,0,.14);
}
.project-panel.open { transform: translateX(0); }
.panel-grip { display: none; }
.panel-close {
  position: absolute;
  right: 24px; top: 22px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 4px 0;
  border-bottom: 1px solid var(--line);
  transition: color .25s ease, border-color .25s ease;
}
.panel-close:hover { color: var(--ink); border-color: var(--ink); }
[hidden] { display: none !important; }
.panel-index {
  font-family: var(--mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--faint);
  margin-bottom: 84px;
}
.project-panel h3 {
  font-size: clamp(30px, 3.4vw, 50px);
  line-height: .98;
  letter-spacing: -.05em;
  margin: 0 0 24px;
  /* domain titles are one long word: break them rather than let them spill */
  overflow-wrap: break-word;
  -webkit-hyphens: manual;
  hyphens: manual;
}
.project-panel p { color: var(--muted); font-size: 14px; line-height: 1.72; max-width: 330px; }
.panel-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 28px; }
.panel-tags span {
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 7px 10px;
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
}
.panel-link {
  display: inline-block;
  margin-top: 42px;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 3px;
  font-size: 13px;
  font-weight: 600;
}


/* ---------- about ---------- */

.about { padding-top: 160px; padding-bottom: 160px; }
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 8vw;
  align-items: start;
}
.about-head { position: sticky; top: 128px; }
/* runs over several lines, so it needs more air than the one-line heads;
   balance lets the browser find the break instead of a hard-coded <br> */
.about h2 { line-height: 1.06; text-wrap: balance; }
.about-copy { padding-top: 8px; max-width: 560px; }
.about-copy p { color: var(--muted); font-size: 15px; line-height: 1.75; }
.about-copy .lead {
  color: var(--ink);
  font-size: clamp(21px, 2.1vw, 32px);
  line-height: 1.3;
  letter-spacing: -.032em;
  margin-top: 0;
}

.principles-grid {
  margin-top: 120px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.principle-card { padding: 30px 26px 36px 0; min-height: 240px; border-right: 1px solid var(--line-soft); }
.principle-card + .principle-card { padding-left: 26px; }
.principle-card:last-child { border-right: 0; }
.principle-card span { font-family: var(--mono); font-size: 9.5px; letter-spacing: .12em; color: var(--faint); }
.principle-card h3 { margin: 64px 0 14px; font-size: 19px; letter-spacing: -.03em; }
.principle-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }

/* sits at the right edge of the scrolling column for an asymmetric step */
.portrait { margin: 64px 0 0 auto; max-width: 340px; }
.portrait picture { display: block; overflow: hidden; }
.portrait img {
  display: block;
  width: 100%;
  height: auto;
  transform-origin: 50% 62%;
}
/* The drawing is dark ink on transparency. Inverting it reads as a photo
   negative, so on the dark theme it sits on a paper plate instead. */
:root.dark .portrait picture {
  background: #edebe4;
  padding: 26px 26px 0;
  border-radius: var(--radius);
}
.portrait figcaption {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--faint);
}

/* ---------- experience (sticky head + scrolling rows) ---------- */

.experience { padding-top: 118px; padding-bottom: 140px; border-top: 1px solid var(--line); }
.pinned-grid {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 8vw;
  align-items: start;
}
.pinned-head { position: sticky; top: 128px; }
.pinned-note {
  margin: 28px 0 0;
  max-width: 330px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}
.timeline { border-top: 1px solid var(--line); }
.timeline-row {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 26px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line-soft);
  align-items: start;
}
.timeline-row:last-child { border-bottom: 0; }
.time {
  font-family: var(--mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--faint);
  padding-top: 5px;
}
.row-body h3 { margin: 0 0 6px; font-size: 19px; letter-spacing: -.03em; }
.row-org { margin: 0 0 12px; color: var(--ink); font-size: 13px; }
.row-desc { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.7; max-width: 480px; }

/* ---------- ticker ---------- */

.toolbelt { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 24px 0; }
.ticker { white-space: nowrap; overflow: hidden; }
.ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  min-width: max-content;
  animation: ticker 42s linear infinite;
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--ink);
}
.ticker-track i { color: var(--faint); font-style: normal; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- contact ---------- */

.contact { padding-top: 150px; padding-bottom: 88px; }
.contact-top {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
  margin-bottom: 48px;
  font-family: var(--mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--muted);
}
.contact-title {
  position: relative;
  display: block;
  font-size: clamp(58px, 11.5vw, 176px);
  line-height: .86;
  letter-spacing: -.07em;
  font-weight: 560;
}
.contact-title > span { display: block; }
.contact-title > span:nth-child(2) { margin-left: 7vw; }
.contact-arrow {
  position: absolute;
  right: 2vw;
  top: 18%;
  display: grid !important;
  place-items: center;
  width: clamp(66px, 8.5vw, 116px);
  height: clamp(66px, 8.5vw, 116px);
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: clamp(24px, 3.2vw, 44px);
  letter-spacing: 0;
  color: var(--ink);
  transition: transform .5s cubic-bezier(.22,1,.36,1), background .35s ease, color .35s ease, border-color .35s ease;
}
.contact-title:hover .contact-arrow {
  transform: rotate(45deg);
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.contact-bottom { margin-top: 78px; display: flex; justify-content: space-between; gap: 24px; color: var(--muted); font-size: 13px; }
.contact-bottom p { margin: 0; }
.contact-bottom a { color: var(--ink); border-bottom: 1px solid var(--line); padding-bottom: 2px; transition: border-color .25s ease; }
.contact-bottom a:hover { border-color: var(--ink); }

/* ---------- footer ---------- */

.footer {
  min-height: 84px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 28px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.footer-tagline { text-align: center; }
.footer a { color: var(--muted); transition: color .25s ease; }
.footer a:hover { color: var(--ink); }
/* legal links must stay reachable at every breakpoint - an Impressum that is
   hidden on mobile does not count as "easily recognisable" under s 5 DDG */
.footer-legal { display: flex; gap: 18px; }

/* ---------- motion ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .9s cubic-bezier(.22,1,.36,1), transform 1s cubic-bezier(.22,1,.36,1);
}
.js .reveal.is-in { opacity: 1; transform: none; }

.js .reveal-scale {
  opacity: 0;
  transform: scale(1.035);
  transform-origin: 50% 60%;
  transition: opacity 1s ease, transform 1.3s cubic-bezier(.22,1,.36,1);
}
.js .reveal-scale.is-in { opacity: 1; transform: none; }

/* word-by-word headline reveal */
.word { display: inline-block; }
.js [data-split] .word-i {
  display: inline-block;
  opacity: 0;
  transform: translateY(.4em);
  transition: opacity .85s cubic-bezier(.22,1,.36,1), transform 1s cubic-bezier(.22,1,.36,1);
  transition-delay: calc(var(--i, 0) * 42ms);
  will-change: transform, opacity;
}
.js [data-split].is-in .word-i { opacity: 1; transform: none; }

[data-speed] { will-change: transform; }

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .about-grid,
  .pinned-grid { gap: 6vw; }
}

@media (max-width: 980px) {
  .site-header { grid-template-columns: 1fr auto; min-height: 70px; }
  .nav { display: none; }
  .menu-toggle { display: inline-block; }

  .hero { padding-top: 124px; }
  .hero-title { font-size: clamp(76px, 16vw, 148px); }
  .hero-side-note { position: relative; right: auto; top: auto; width: 100%; max-width: 440px; margin: 56px 0 0 auto; }

  .section-head { grid-template-columns: 1fr; gap: 26px; align-items: start; }
  .work-map-shell { min-height: 760px; }
  .work-map { height: 700px; }
  .map-node { width: 148px; height: 148px; }
  .map-node strong { font-size: 12.5px; }
  .node-center { width: 168px; height: 168px; }
  .project-panel { width: min(440px, 74vw); }

  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-head { position: static; }
  .about-copy { max-width: none; }
  .principles-grid { grid-template-columns: repeat(2, 1fr); }
  .principle-card:nth-child(2) { border-right: 0; }
  .principle-card:nth-child(-n+2) { border-bottom: 1px solid var(--line-soft); }

  .pinned-grid { grid-template-columns: 1fr; gap: 44px; }
  .pinned-head { position: static; }
  .pinned-note { max-width: 460px; }
}

@media (max-width: 700px) {
  :root { --pad: 20px; --radius: 0px; }

  .brand-role { display: none; }
  .header-actions { gap: 18px; }

  .hero { min-height: 92svh; padding-top: 108px; }
  /* fits on one line at 390px; hangs as a proper bullet if it still wraps */
  .hero-kicker { font-size: 9px; letter-spacing: .1em; }
  .hero-title-wrap { margin-top: 11vh; }
  .hero-title { font-size: clamp(66px, 21vw, 118px); line-height: .84; }
  .hero-title-indent { margin-left: 0; }
  .hero-side-note { margin-top: 42px; }
  .hero-bottom { align-items: center; }
  .hero-stack { display: none; }

  .section-head h2, .about h2, .pinned-head h2 { font-size: clamp(40px, 13vw, 68px); }

  /* --- Work map becomes a real editorial index on small screens --- */
  .work-section { padding-top: 82px; }
  .work-map-shell {
    margin: 0;
    border-radius: 0;
    min-height: 0;
    overflow: visible;
  }
  .work-map-topbar { height: 52px; padding: 0 var(--pad); font-size: 9px; }
  .only-wide { display: none; }
  .only-narrow { display: inline; }

  .work-map { height: auto; display: block; padding: 0; overflow: visible; }
  .map-lines, .map-orbit-label { display: none; }

  .map-node,
  .node-center {
    position: relative;
    left: auto !important;
    top: auto !important;
    transform: none;
    width: 100%;
    height: auto;
    border: 0;
    border-bottom: 1px solid var(--map-line);
    border-radius: 0;
    background: transparent;
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    align-items: baseline;
    gap: 5px 14px;
    text-align: left;
    padding: 20px var(--pad) 21px;
  }
  .map-node:last-of-type { border-bottom: 0; }
  .map-node:hover { transform: none; border-color: var(--map-line); }

  .node-index {
    position: static;
    grid-column: 1;
    grid-row: 1;
    font-size: 9.5px;
    opacity: .45;
    letter-spacing: .06em;
  }
  .map-node strong {
    grid-column: 2;
    grid-row: 1;
    max-width: none;
    font-size: 16px;
    letter-spacing: -.025em;
  }
  .node-kind {
    grid-column: 2;
    grid-row: 2;
    font-size: 9px;
    opacity: .5;
  }
  .node-go {
    display: block;
    grid-column: 3;
    grid-row: 1 / span 2;
    align-self: center;
    font-size: 15px;
    opacity: .3;
    transition: transform .4s cubic-bezier(.22,1,.36,1), opacity .3s ease;
  }
  .map-node.active {
    background: rgba(242, 240, 233, .045);
    color: var(--map-ink);
    border-color: var(--map-line);
    box-shadow: inset 2px 0 0 var(--accent);
  }
  .map-node.active .node-index { color: var(--accent); opacity: 1; }
  .map-node.active .node-go { opacity: .8; transform: translateX(3px); }

  .panel-scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 900;
    background: rgba(18, 18, 16, .45);
    backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .45s ease;
  }
  .panel-scrim.open { opacity: 1; pointer-events: auto; }

  .project-panel {
    position: fixed;
    inset: auto 0 0 0;
    top: auto;
    z-index: 901;
    width: 100%;
    max-height: min(78vh, 620px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateY(102%);
    border-radius: 14px 14px 0 0;
    border-left: 0;
    box-shadow: 0 -20px 50px rgba(0,0,0,.2);
    padding: 34px var(--pad) 34px;
  }
  .project-panel.open { transform: translateY(0); }
  .panel-grip {
    display: block;
    position: absolute;
    left: 50%;
    top: 12px;
    transform: translateX(-50%);
    width: 34px;
    height: 3px;
    border-radius: 2px;
    background: var(--line);
  }
  .panel-close { top: 30px; right: var(--pad); }
  .panel-index { margin-bottom: 34px; }
  .project-panel h3 { font-size: clamp(28px, 8vw, 38px); }
  .project-panel p { max-width: none; }
  .panel-link { margin-top: 32px; }

  .about { padding-top: 106px; padding-bottom: 106px; }
  .portrait { margin: 44px 0 0; max-width: 250px; }
  .principles-grid { grid-template-columns: 1fr; margin-top: 68px; }
  .principle-card,
  .principle-card + .principle-card {
    padding: 26px 0 30px;
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
    min-height: 0;
  }
  .principle-card:last-child { border-bottom: 0; }
  .principle-card h3 { margin: 30px 0 10px; }

  .experience { padding-top: 90px; padding-bottom: 96px; }
  .timeline-row { grid-template-columns: 1fr; gap: 10px; padding: 24px 0; }
  .row-desc { max-width: none; }

  .toolbelt { padding: 20px 0; }
  .ticker-track { font-size: 11px; gap: 22px; }

  .contact { padding-top: 106px; }
  .contact-title { font-size: clamp(54px, 18vw, 100px); }
  .contact-title > span:nth-child(2) { margin-left: 0; }
  .contact-arrow { position: relative; right: auto; top: auto; margin: 38px 0 0 auto; }
  .contact-bottom { flex-direction: column; gap: 12px; margin-top: 46px; }

  .footer { gap: 12px 20px; padding-top: 26px; padding-bottom: 26px; }
  .footer-tagline { display: none; }
}

@media (pointer: coarse), (prefers-reduced-motion: reduce) {
  .cursor-dot { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js .reveal,
  .js .reveal-scale,
  .js [data-split] .word-i { opacity: 1 !important; transform: none !important; }
}

/* ---------- legal pages (Impressum / Datenschutz) ---------- */

.legal {
  max-width: 780px;
  margin: 0 auto;
  padding-top: clamp(132px, 18vh, 200px);
  padding-bottom: clamp(72px, 11vh, 132px);
}

.legal-head { margin-bottom: clamp(46px, 7vh, 78px); }
.legal-head h1 {
  margin: 0;
  font-size: clamp(42px, 6.4vw, 96px);
  line-height: .94;
  letter-spacing: -.055em;
  font-weight: 560;
}
.legal-lead {
  margin: 26px 0 0;
  max-width: 520px;
  color: var(--muted);
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.6;
}
.legal-stand {
  margin-top: 30px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--faint);
}

.legal section { padding-top: 40px; margin-top: 40px; border-top: 1px solid var(--line-soft); }
.legal section:first-of-type { padding-top: 0; margin-top: 0; border-top: 0; }

.legal h2 {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 0 0 20px;
  font-size: clamp(19px, 2.1vw, 25px);
  line-height: 1.2;
  letter-spacing: -.025em;
  font-weight: 560;
}
.legal h2 i {
  flex: none;
  font-family: var(--mono);
  font-style: normal;
  font-size: 9px;
  letter-spacing: .05em;
  color: var(--accent);
}
.legal h3 {
  margin: 30px 0 12px;
  font-size: clamp(14px, 1.3vw, 16px);
  letter-spacing: -.01em;
  font-weight: 560;
}

.legal p,
.legal li {
  margin: 0 0 15px;
  color: var(--muted);
  font-size: clamp(14.5px, 1.35vw, 16px);
  line-height: 1.68;
}
.legal p:last-child,
.legal li:last-child { margin-bottom: 0; }
.legal ul { margin: 0 0 15px; padding-left: 20px; }
.legal li { margin-bottom: 7px; }
.legal li::marker { color: var(--faint); }
.legal strong { color: var(--ink); font-weight: 560; }

.legal a:not(.legal-back) {
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  transition: border-color .25s ease, color .25s ease;
}
.legal a:not(.legal-back):hover { border-color: var(--ink); color: var(--accent); }

/* address blocks — the ladungsfähige Anschrift has to read as a block, not prose */
.legal-address {
  margin: 0 0 15px;
  padding: 22px 24px;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  color: var(--ink);
  font-size: clamp(14.5px, 1.35vw, 16px);
  line-height: 1.72;
  font-style: normal;
}
.legal-address a { color: inherit; }

.legal-defs { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 10px 24px; margin: 0 0 15px; }
.legal-defs dt {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--faint);
  padding-top: 4px;
}
.legal-defs dd {
  margin: 0;
  color: var(--muted);
  font-size: clamp(14.5px, 1.35vw, 16px);
  line-height: 1.6;
}

/* placeholder the operator still has to fill in before going live */
.legal-todo {
  padding: 16px 18px;
  border: 1px dashed var(--accent);
  border-radius: var(--radius);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.6;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 56px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .25s ease;
}
.legal-back:hover { color: var(--ink); }

@media (max-width: 700px) {
  .legal-defs { grid-template-columns: 1fr; gap: 4px 0; }
  .legal-defs dd { margin-bottom: 14px; }
  .footer-legal { gap: 14px; }
}
