/* Outfit — SIL OFL 1.1, self-hosted variable */
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/outfit-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/outfit-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Barlow Condensed — brand mark + chapter index only */
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/barlow-condensed-600.woff2") format("woff2");
}

@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/barlow-condensed-800.woff2") format("woff2");
}

:root {
  --paper: #ece8df;
  --ink: #333333;
  --fog: #6f6a63;
  --line: rgba(18, 18, 18, 0.14);
  --cream: #f7f4ee;
  --font: "Outfit", "Segoe UI", sans-serif;
  --brand: "Barlow Condensed", "Arial Narrow", sans-serif;
  --tilt: -7deg;
  --header-h: 4.25rem;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, textarea { font: inherit; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 80;
  padding: 0.55rem 0.9rem;
  background: var(--ink);
  color: var(--cream);
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus { top: 1rem; }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(100% - 2.5rem, 72rem);
  margin-inline: auto;
}

/* ---------- Top header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
}

.site-header.is-stuck {
  box-shadow: 0 1px 0 var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: var(--header-h);
  padding-inline: clamp(1.25rem, 4vw, 3.25rem);
}

.logo {
  display: flex;
  align-items: center;
  line-height: 0;
  flex-shrink: 0;
}

.logo img {
  width: 2.75rem;
  height: 2.75rem;
  object-fit: contain;
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  padding: 0;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 1.15rem;
  height: 1.5px;
  background: currentColor;
  margin: 0 auto;
  position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.nav-panel {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a[aria-current="true"] {
  text-decoration: underline;
  text-underline-offset: 0.35em;
}

.chapter {
  padding: 0.85rem clamp(1.25rem, 4vw, 3.25rem) clamp(2.75rem, 7vh, 5rem);
  scroll-margin-top: var(--header-h);
  min-height: calc(100dvh - var(--header-h));
}

.eyebrow {
  font-family: var(--brand);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--fog);
  margin: 0 0 0.85rem;
}

.display {
  font-family: var(--font);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.98;
  margin: 0;
}

.display--xl { font-size: clamp(2.7rem, 6.4vw, 5.6rem); }
.display--lg { font-size: clamp(1.85rem, 3.4vw, 3rem); }

.lede {
  max-width: 34rem;
  color: var(--fog);
  margin: 1rem 0 0;
  font-size: 1.08rem;
}

/* ---------- Hero: split frame ---------- */
.hero {
  min-height: calc(100dvh - var(--header-h));
  display: grid;
  align-items: stretch;
  padding: 0;
  position: relative;
  overflow: hidden;
  scroll-margin-top: var(--header-h);
}

@media (min-width: 880px) {
  .hero {
    grid-template-columns: minmax(0, 1.2fr) minmax(14rem, 0.8fr);
  }
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2.2rem, 8vh, 5rem) clamp(1.25rem, 4vw, 3.25rem);
}

.hero-copy .lede { margin-top: 1.35rem; }

.hero-copy .btn {
  align-self: flex-start;
  margin-top: 1.75rem;
}

.hero-meta {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.1rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fog);
  font-weight: 600;
}

.hero-brand {
  display: grid;
  place-items: center;
  padding: clamp(2rem, 6vh, 3.5rem) 1.5rem;
}

.hero-lockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  text-align: center;
}

.hero-lockup img {
  width: min(13.5rem, 72%);
  height: auto;
}

.hero-lockup p {
  margin: 0;
  font-family: var(--brand);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  color: var(--ink);
  max-width: 11.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1.05rem;
  border: 0;
  background: var(--cream);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  line-height: 1;
}

.btn:hover { filter: brightness(0.95); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

.btn--ink {
  background: var(--ink);
  color: var(--cream);
}

/* ---------- Werk: numbered index, not cards ---------- */
.index {
  display: grid;
  gap: 0;
  margin: 1.75rem 0 0;
  border-top: 1px solid var(--line);
}

.index li {
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 1fr);
  gap: 1rem;
  padding: 1.05rem 0 1.15rem;
  border-bottom: 1px solid var(--line);
  list-style: none;
}

.index {
  list-style: none;
  padding: 0;
}

.index .n {
  font-family: var(--brand);
  font-weight: 800;
  font-size: 1.35rem;
  line-height: 1;
}

.index h3 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.index p {
  margin: 0;
  color: var(--fog);
  font-size: 0.98rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
}

.tags li {
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--fog);
}

/* ---------- Methode: horizontal timeline ---------- */
.timeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.timeline li {
  padding: 1.75rem 2.1rem;
  border-right: 1px solid var(--line);
}

.timeline li:last-child {
  border-right: 0;
}

.timeline .n {
  font-family: var(--brand);
  font-weight: 800;
  font-size: 1.5rem;
  display: block;
  margin-bottom: 0.55rem;
}

.timeline h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.timeline p {
  margin: 0;
  color: var(--fog);
  font-size: 0.9rem;
}

.band {
  margin-top: 2.5rem;
  background: var(--ink);
  color: var(--cream);
  padding: clamp(1.6rem, 3.5vw, 2.2rem) clamp(1.25rem, 4vw, 2.4rem);
}

.band p {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.5;
  color: rgba(247, 244, 238, 0.88);
  text-wrap: pretty;
}

.band :focus-visible { outline-color: var(--cream); }

/* ---------- Team: compact portraits + bios ---------- */
.people {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem 1.5rem;
  margin-top: 1.75rem;
}

.person {
  min-width: 0;
}

.person-pic {
  width: 4.75rem;
  height: 4.75rem;
  margin: 0 0 0.85rem;
  border-radius: 50%;
  overflow: hidden;
}

.person-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.person h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.person-id {
  font-family: var(--brand);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--fog);
}

.person .role {
  margin: 0.2rem 0 0.45rem;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--fog);
}

.person p {
  margin: 0;
  color: var(--fog);
  font-size: 0.95rem;
}

.person-link {
  display: inline-block;
  margin-top: 0.55rem;
  font-size: 0.88rem;
}

/* ---------- Contact dock ---------- */
.dock {
  background: var(--ink);
  color: var(--cream);
  padding: 0.85rem clamp(1.25rem, 4vw, 3.25rem) clamp(1.6rem, 4vw, 2.4rem);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1.4rem, 3vw, 2.5rem);
  align-items: start;
  scroll-margin-top: var(--header-h);
  min-height: calc(100dvh - var(--header-h));
}

.dock .eyebrow { color: rgba(247, 244, 238, 0.5); }
.dock .display { color: var(--cream); }
.dock .lede { color: rgba(247, 244, 238, 0.7); margin-top: 0.7rem; }
.dock a { color: var(--cream); }
.dock :focus-visible { outline-color: var(--cream); }

.form {
  display: grid;
  gap: 0.55rem;
  background: var(--cream);
  color: var(--ink);
  padding: 1rem 1rem 1.05rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.field { display: grid; gap: 0.2rem; }

.field span {
  font-size: 0.78rem;
  font-weight: 600;
}

.req { color: var(--fog); font-weight: 500; }

input,
textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  padding: 0.45rem 0;
  border-radius: 0;
  appearance: none;
}

textarea { min-height: 4.2rem; resize: vertical; }

.form .btn {
  justify-self: start;
  margin-top: 0.15rem;
}

.hp {
  position: absolute !important;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form { position: relative; }

.form-status {
  min-height: 1.2rem;
  font-size: 0.88rem;
  font-weight: 600;
  margin: 0;
}

.form-status[data-state="error"] { color: #8a1f1f; }
.form-status[data-state="success"] { color: #215c38; }
.form-status[data-state="info"] { color: var(--fog); }

.cf-turnstile { min-height: 1px; transform: scale(0.92); transform-origin: left top; }

.mail {
  margin: 0.85rem 0 0;
  font-size: 0.9rem;
  color: rgba(247, 244, 238, 0.65);
}

.dash-fly {
  position: fixed;
  left: -8rem;
  z-index: 200;
  pointer-events: none;
  font-family: var(--brand);
  font-weight: 800;
  font-size: clamp(2.4rem, 7vw, 5rem);
  letter-spacing: -0.04em;
  color: var(--ink);
  line-height: 1;
  animation: dash-fly 0.85s cubic-bezier(0.22, 0.8, 0.36, 1) forwards;
}

@keyframes dash-fly {
  from { transform: translateX(0) rotate(var(--tilt)); opacity: 1; }
  to { transform: translateX(110vw) rotate(var(--tilt)); opacity: 0; }
}

/* ---------- Footer / inner pages ---------- */
.site-footer {
  padding: 1.1rem clamp(1.25rem, 4vw, 3.25rem) 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: var(--fog);
  font-size: 0.88rem;
}

.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

.page {
  padding: clamp(3rem, 10vh, 5.5rem) clamp(1.25rem, 4vw, 3.25rem) 2rem;
  max-width: 42rem;
}

.page .btn {
  margin-top: 1.5rem;
}

.placeholder-note {
  font-size: 0.9rem;
  color: var(--fog);
  border-left: 2px solid var(--line);
  padding-left: 0.8rem;
  margin-top: 1.1rem;
}

.prose h2 {
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  margin: 1.7rem 0 0.5rem;
}

.prose p { margin: 0 0 0.9rem; color: var(--fog); }

/* ---------- Breakpoints ---------- */
@media (max-width: 1100px) {
  .timeline {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }
  .timeline li {
    flex: 1 1 33.333%;
    max-width: 33.333%;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 1.5rem 1.4rem 1.5rem 0;
  }
  .people { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 879px) {
  .dock,
  .form-row { grid-template-columns: 1fr; }

  .nav-toggle { display: grid; place-items: center; }

  .nav-panel {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1.25rem 1.1rem;
    gap: 0.85rem;
  }

  .nav-panel.is-open { display: flex; }

  .nav-links {
    flex-direction: column;
    gap: 0.7rem;
  }

  .site-header { position: sticky; }
}

@media (max-width: 560px) {
  .people { grid-template-columns: 1fr 1fr; }
  .index li { grid-template-columns: 2.4rem 1fr; }
  .timeline li {
    flex-basis: 50%;
    max-width: 50%;
  }
  .timeline li:last-child {
    flex-basis: 100%;
    max-width: 50%;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cf-turnstile {
    transform: none;
  }
  .dash-fly {
    left: 50%;
    top: 42% !important;
    animation: dash-fade 0.55s ease forwards;
  }
  @keyframes dash-fade {
    from { transform: translateX(-50%) rotate(var(--tilt)); opacity: 0.85; }
    to { transform: translateX(-50%) rotate(var(--tilt)); opacity: 0; }
  }
}
