/* Unda Novem — follows the Unda Novem design system (v2):
   coral as the ground, condensed Archivo capitals, IBM Plex Mono labels, line diagrams. */

@font-face { font-family: "Archivo"; src: url("fonts/archivo-variable.woff2") format("woff2"); font-weight: 400 900; font-stretch: 62% 125%; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/ibm-plex-mono-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --coral: #FF5E73;
  --ink: #111111;
  --paper: #FBF6F3;
  --white: #FFFFFF;
  --ink-muted: #4A4A4A;
  --line: #E6DDD8;
  --text: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --wrap: 78rem;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--text); font-stretch: 100%; font-size: 1.1875rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
section.ink :focus-visible { outline-color: var(--coral); }
p { margin: 0 0 1rem; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 2rem; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 10; background: var(--ink); color: var(--white); padding: 0.75rem 1rem; font-family: var(--mono); font-size: 0.8125rem; letter-spacing: 0.12em; text-transform: uppercase; }
.skip:focus { top: 1rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Type */
.display, .h1, .h2, h1, h2, h3 { font-family: var(--text); font-stretch: 62%; font-variation-settings: "wdth" 62; text-transform: uppercase; letter-spacing: -0.01em; word-spacing: 0.1em; margin: 0; }
.display { font-weight: 850; font-size: clamp(3.5rem, 11vw, 11rem); line-height: 0.86; }
.h1 { font-weight: 820; font-size: clamp(2.75rem, 6.5vw, 5.75rem); line-height: 0.9; max-width: 16ch; }
.h2 { font-weight: 800; font-size: clamp(1.75rem, 2.6vw, 2.4rem); line-height: 0.95; }
.tag, .label, .meta, nav.site, .pill, .dur, .when, label {
  font-family: var(--mono); font-weight: 500; font-size: 0.8125rem; letter-spacing: 0.12em; text-transform: uppercase;
}
.intro { font-size: 1.3rem; line-height: 1.5; max-width: 44rem; margin: 2rem 0 0; }

/* Colour grounds */
section.coral { background: var(--coral); color: var(--ink); --logo-dot: var(--white); }
section.ink { background: var(--ink); color: var(--white); --logo-dot: var(--coral); }
section.paper { background: var(--paper); color: var(--ink); }

/* Header */
header.site { position: relative; z-index: 2; }
.home header.site { position: absolute; top: 0; left: 0; right: 0; --logo-dot: var(--white); }
header.site .bar, .legal header.site { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-top: 1.5rem; padding-bottom: 1.5rem; flex-wrap: wrap; }
.logo { display: inline-block; color: var(--ink); text-decoration: none; font-stretch: 62%; font-variation-settings: "wdth" 62; font-weight: 850; font-size: 2.3rem; line-height: 1; letter-spacing: -0.01em; text-transform: uppercase; white-space: nowrap; }
/* the wordmark's full stop: coral, or white on coral */
.stop { display: inline-block; width: 0.19em; height: 0.19em; border-radius: 50%; background: var(--logo-dot, var(--coral)); margin-left: 0.05em; }
nav.site ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.5rem; flex-wrap: wrap; }
nav.site a { display: inline-block; text-decoration: none; padding: 0.55rem 1rem; border: 2px solid transparent; border-radius: 999px; }
nav.site a:hover { border-color: currentColor; }

/* Pills */
.pill { display: inline-flex; align-items: center; gap: 0.75rem; padding: 1.05rem 1.75rem; border: 2px solid var(--ink); border-radius: 999px; background: var(--ink); color: var(--white); text-decoration: none; font-size: 0.875rem; cursor: pointer; transition: background .2s ease, color .2s ease; }
.pill:hover { background: transparent; color: var(--ink); }
.pill span { transition: transform .2s ease; }
.pill:hover span { transform: translateX(4px); }
.coral-pill { background: var(--coral); border-color: var(--coral); color: var(--ink); }
.coral-pill:hover { background: transparent; color: var(--coral); }

/* Hero */
.hero { min-height: 100vh; display: flex; align-items: flex-end; padding: 9rem 0 3.5rem; }
.hero .wrap { width: 100%; }
.hero .tag { display: inline-block; border: 2px solid var(--ink); border-radius: 999px; padding: 0.5rem 1rem; margin: 0 0 2rem; }
.hero .display { max-width: none; }
.hero-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 2.5rem; flex-wrap: wrap; margin-top: 2.5rem; padding-top: 1.75rem; border-top: 2px solid var(--ink); }
.hero .lede { max-width: 40rem; font-size: 1.3rem; line-height: 1.5; margin: 0; }

/* Shoreline band */
.shore { height: 62vh; min-height: 22rem; background: var(--ink) url("img/shoreline-coral.jpg") center 40% / cover no-repeat; }

/* Sections */
.block, .statement { padding: 8rem 0; }
.label { display: flex; align-items: center; gap: 0.9rem; margin: 0 0 1.75rem; }
.label b { display: inline-grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--ink); color: var(--coral); font-weight: 500; }
section.ink .label b { background: var(--coral); color: var(--ink); }
.statement .label span { color: var(--coral); }
.statement .display { font-size: clamp(3rem, 8vw, 8.5rem); max-width: 15ch; }
.statement em { font-style: normal; color: var(--coral); }
.statement-text { max-width: 52rem; margin: 3.5rem 0 0; padding-top: 2rem; border-top: 2px solid var(--white); font-size: 1.3rem; line-height: 1.5; }

/* Challenge: scattered initiatives against one strategy line */
.challenge-top { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 4rem; align-items: center; }
#challenge .h1 { max-width: none; font-size: clamp(2.25rem, 4.2vw, 4rem); }
.scatter { margin: 0; }
.scatter svg { width: 100%; height: auto; display: block; }
.scatter .arrows path { fill: none; stroke: var(--ink); stroke-width: 4; stroke-linecap: round; }
.scatter .strategy { fill: none; stroke: var(--coral); stroke-width: 6; stroke-linecap: round; }
.scatter .head-ink { fill: var(--ink); } .scatter .head-coral { fill: var(--coral); }
.scatter text { font-family: var(--mono); font-size: 22px; letter-spacing: .12em; text-transform: uppercase; fill: var(--ink); }
.problems { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem; margin-top: 4.5rem; }
.problems article { border-top: 2px solid var(--ink); padding-top: 1.5rem; }
.problems .h2 { margin-bottom: 1rem; }
.problems p { font-size: 1.05rem; margin: 0; }

/* Solution: three steps on one line */
.steps { list-style: none; margin: 4rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); position: relative; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 1.75rem; border-top: 2px solid var(--ink); }
.steps li { position: relative; padding-right: 3rem; }
.steps .h2 { margin: 1.5rem 0 1rem; }
.steps p { font-size: 1.05rem; margin: 0; }
.steps-note { max-width: 52rem; margin: 3.5rem 0 0; padding-top: 1.5rem; border-top: 2px solid var(--ink); }

/* Outcomes: the cascade and three levels */
.cascade { margin: 4rem 0 3rem; }
.cascade svg { width: 100%; height: auto; display: block; }
.cascade .lines path { fill: none; stroke: var(--ink); stroke-width: 2; }
.cascade .n-coral { fill: var(--coral); stroke: var(--ink); stroke-width: 2; }
.cascade .n-ring circle { fill: var(--paper); stroke: var(--ink); stroke-width: 2; }
.cascade .n-ink { fill: var(--ink); }
.cascade text { font-family: var(--mono); font-size: 14px; letter-spacing: .12em; text-transform: uppercase; fill: var(--ink); }
.cascade-legend { display: none; flex-wrap: wrap; gap: 0.6rem 1.5rem; list-style: none; margin: 1.25rem 0 0; padding: 0; font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; }
.cascade-legend li { display: flex; align-items: center; gap: 0.5rem; }
.cascade-legend i { display: inline-block; width: 0.9rem; height: 0.9rem; border-radius: 50%; border: 2px solid var(--ink); }
.levels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem; }
.levels > div { border-top: 2px solid var(--ink); padding-top: 1.5rem; }
.levels .h2 { margin-bottom: 1.25rem; }
.levels li { font-size: 1.05rem; }
.cascade-legend .k-coral { background: var(--coral); } .cascade-legend .k-ring { background: var(--paper); } .cascade-legend .k-ink { background: var(--ink); width: 0.6rem; height: 0.6rem; }

/* Approach: the phase journey */
.journey { list-style: none; margin: 4rem 0 4.5rem; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.journey::before { content: ""; position: absolute; left: 0; right: 0; top: 1.75rem; border-top: 2px solid var(--ink); }
.journey li { position: relative; padding-right: 2rem; }
.journey .node, .steps .node { display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 50%; background: var(--ink); color: var(--coral); font-stretch: 62%; font-variation-settings: "wdth" 62; font-weight: 850; font-size: 1.75rem; position: relative; transition: transform .2s ease; }
.journey .name { word-spacing: 0.1em; display: block; margin: 1.5rem 0 0.5rem; font-stretch: 70%; font-variation-settings: "wdth" 70; font-weight: 800; font-size: 1.6rem; line-height: 1; text-transform: uppercase; }
.journey .dur { display: block; }
.journey p { font-size: 1.05rem; margin: 1rem 0 0; }
.journey .art { display: flex; height: 13rem; margin: 0 0 1.5rem; padding: 1rem; background: var(--white); border: 2px solid var(--ink); }
.journey .art img { width: 100%; height: 100%; object-fit: contain; }
.journey.with-art::before { top: 16.25rem; }
.journey.with-art .diamond { top: 15.55rem; }
.journey .diamond { position: absolute; top: 1.05rem; right: 0.6rem; width: 1.4rem; height: 1.4rem; background: var(--white); border: 2px solid var(--ink); transform: rotate(45deg); }

/* Cards */
.cards { display: grid; gap: 1.5rem; margin-top: 3.5rem; }
.two-up { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { background: var(--white); border: 2px solid var(--ink); padding: 2.5rem; }
.card .meta { margin: 0 0 1rem; }
.card .meta b { display: inline-block; font-weight: 500; background: var(--ink); color: var(--white); padding: 0.2rem 0.55rem; margin-right: 0.35rem; }
.card .h2 { margin: 0 0 1.25rem; }
.card p { font-size: 1.05rem; }

/* Credentials */
.creds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; margin-top: 3.5rem; }
.creds article { border: 2px solid var(--white); padding: 2rem; }
.creds .big-num { font-size: clamp(3.5rem, 6vw, 5.5rem); text-transform: uppercase; word-spacing: 0.1em; margin: 0 0 1.25rem; }
.creds .lead { margin: 0; font-weight: 700; font-size: 1.15rem; line-height: 1.4; color: var(--white); }

/* Team: Philipp's name links to his page */
.person-link { text-decoration: underline; text-decoration-color: var(--coral); text-decoration-thickness: 3px; text-underline-offset: 0.15em; }
.person-link:hover { text-decoration-color: var(--ink); }

/* Philipp's page */
.person-hero { padding: 9rem 0 5rem; }
.person-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 4rem; align-items: end; }
.person-hero .tag { display: inline-block; border: 2px solid var(--ink); border-radius: 999px; padding: 0.5rem 1rem; margin: 2rem 0 0; }
.person-hero .lede { max-width: 38rem; font-size: 1.3rem; line-height: 1.5; margin: 2rem 0 0; }
.portrait { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 56% 50%; border: 2px solid var(--ink); }
.book { display: grid; grid-template-columns: minmax(0, 18rem) minmax(0, 1fr); gap: 4rem; align-items: start; }
.book .cover { width: 100%; height: auto; }
.book .subtitle { font-weight: 700; font-size: 1.15rem; line-height: 1.4; margin: 1.5rem 0 1rem; max-width: 40rem; }
.book p { max-width: 40rem; }
.book-links { display: flex; align-items: center; gap: 1.5rem; margin-top: 2rem; }
.book-links a:not(.pill) { font-family: var(--mono); font-size: 0.8125rem; letter-spacing: 0.12em; text-transform: uppercase; }
.next-cta { margin-top: 2.5rem; }

/* Career: a timeline on ink, one node per station, the current one coral */
.timeline { list-style: none; margin: 3.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: relative; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: calc(0.7rem - 1px); border-top: 2px solid var(--white); }
.timeline > li { position: relative; padding: 2.75rem 2.5rem 0 0; }
.timeline > li::before { content: ""; position: absolute; left: 0; top: 0; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: var(--white); }
.timeline > li.now::before { background: var(--coral); }
.timeline .when { display: block; color: var(--coral); margin-bottom: 0.75rem; }
.timeline .h2 { font-size: 1.6rem; margin: 0; }
.timeline .role { margin: 0.4rem 0 1rem; font-weight: 700; font-size: 1rem; line-height: 1.4; color: var(--white); }
.timeline p { margin: 0 0 1rem; font-size: 1rem; color: #E8E8E8; }
.timeline .clients { padding-top: 1rem; border-top: 1px solid #3A3A3A; }
.timeline .clients .meta { display: block; margin-bottom: 0.4rem; color: var(--white); }
.timeline .clients a { white-space: nowrap; font-weight: 700; color: var(--white); text-decoration-color: var(--coral); }
.timeline .clients .all { display: inline-block; margin-top: 0.6rem; font-weight: 400; }
.cv-sub { margin-top: 5rem; }
.timeline.edu { margin-top: 2rem; }
.big-num { display: block; font-stretch: 62%; font-variation-settings: "wdth" 62; font-weight: 850; font-size: 6rem; line-height: 0.8; color: var(--coral); margin-bottom: 1.25rem; }

/* Dash lists */
ul.dashes { list-style: none; margin: 0; padding: 0; }
ul.dashes li { position: relative; padding-left: 1.75rem; margin-bottom: 0.9rem; }
ul.dashes li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 1rem; height: 2px; background: currentColor; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.contact-lines { font-stretch: 70%; font-variation-settings: "wdth" 70; font-weight: 800; font-size: 1.9rem; line-height: 1.2; margin: 2.5rem 0 1rem; }
.contact-lines a { text-decoration-color: var(--coral); }
.contact-address { color: #CFCFCF; font-size: 1rem; line-height: 1.6; }
form { display: grid; gap: 1.25rem; padding-top: 1rem; }
label { display: block; margin-bottom: 0.4rem; }
input[type=text], input[type=email], textarea { width: 100%; padding: 0.9rem 1rem; font: inherit; font-size: 1.05rem; color: var(--ink); background: var(--white); border: 2px solid var(--white); border-radius: 0; }
input:focus, textarea:focus { border-color: var(--coral); outline: none; }
textarea { min-height: 9rem; resize: vertical; }
.consent { display: flex; gap: 0.7rem; align-items: flex-start; text-transform: none; letter-spacing: 0; font-family: var(--text); font-size: 0.95rem; color: #CFCFCF; }
.consent input { margin-top: 0.3rem; accent-color: var(--coral); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
form .pill { justify-self: start; }

/* Footer */
footer.site { background: var(--coral); color: var(--ink); padding: 4rem 0 2.5rem; --logo-dot: var(--white); }
.footer-mark { font-size: clamp(3.5rem, 15vw, 15rem); line-height: 0.8; margin: 0 0 2.5rem; }
footer.site .row { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 2px solid var(--ink); padding-top: 1.25rem; font-family: var(--mono); font-size: 0.8125rem; letter-spacing: 0.12em; text-transform: uppercase; }
footer.site a { margin-left: 1.5rem; text-decoration: none; }
footer.site a:hover { text-decoration: underline; }

/* Legal pages */
.legal .narrow, .legal header.site { max-width: 50rem; }
.legal main { padding: 2rem 0 6rem; }
.legal h1 { font-weight: 850; font-size: clamp(3rem, 8vw, 6rem); line-height: 0.9; margin: 2rem 0 2rem; }
.legal h2 { font-weight: 800; font-size: 1.9rem; line-height: 1; margin: 3rem 0 0.8rem; }
.legal h3 { font-weight: 800; font-size: 1.35rem; margin: 2rem 0 0.5rem; }
.legal p, .legal address, .legal ul { margin: 0 0 1rem; font-size: 1.05rem; }
.legal address { font-style: normal; }

@media (max-width: 860px) {
  .wrap { padding: 0 1.25rem; }
  .hero { padding: 8.5rem 0 2.5rem; min-height: 92vh; }
  .block, .statement { padding: 5rem 0; }
  .two-up, .contact-grid, .challenge-top, .problems, .steps, .levels, .creds { grid-template-columns: 1fr; }
  .levels { gap: 2rem; }
  .creds { gap: 1rem; }
  .creds article { padding: 1.5rem; }
  .timeline { grid-template-columns: 1fr; row-gap: 2.25rem; }
  .timeline::before { display: none; }
  .timeline > li { padding: 0 0 0 2.75rem; }
  .timeline > li:not(:last-child)::after { content: ""; position: absolute; left: calc(0.7rem - 1px); top: 0.7rem; bottom: -2.25rem; border-left: 2px solid var(--white); }
  .person-hero { padding: 10rem 0 3.5rem; }
  .person-grid, .book { grid-template-columns: 1fr; gap: 2.5rem; }
  .book .cover { max-width: 12rem; }
  .journey .art { height: 10rem; }
  .challenge-top { gap: 2.5rem; }
  .problems { gap: 2rem; margin-top: 3rem; }
  .steps { row-gap: 2.5rem; }
  .steps::before { display: none; }
  .journey { grid-template-columns: 1fr 1fr; row-gap: 2.5rem; }
  .journey::before, .journey .diamond { display: none; }
  .cascade text { display: none; }
  .cascade-legend { display: flex; }
  .card { padding: 1.75rem; }
  nav.site ul { gap: 0; margin-left: -0.3rem; }
  nav.site a { padding: 0.35rem 0.3rem; font-size: 0.64rem; letter-spacing: 0.04em; }
  .hero { padding-top: 10rem; }
  footer.site a { margin: 0 1.25rem 0 0; }
}
@media (max-width: 600px) {
  .journey { grid-template-columns: 1fr; row-gap: 2rem; }
  .journey li { display: grid; grid-template-columns: 7rem minmax(0, 1fr); column-gap: 1.25rem; align-items: start; padding-right: 0; }
  .journey .art { grid-row: 1 / span 4; height: 9rem; margin: 0; padding: 0.5rem; }
  .journey .node { width: 2.5rem; height: 2.5rem; font-size: 1.3rem; }
  .journey .name { margin-top: 0.75rem; font-size: 1.4rem; }
  .journey p { margin-top: 0.5rem; }
}
/* below 375px the five menu items wrap to two rows: keep the hero clear of the header */
@media (max-width: 374px) {
  .hero { padding-top: 11.5rem; }
}
