/* Day Zero — dossier / registrar aesthetic */

:root {
  --ink: #16212f;
  --ink-soft: #3d4a5e;
  --ink-faint: #6c7688;
  --paper: #f3f0e7;
  --paper-deep: #eae5d5;
  --rule: #d7d0ba;
  --brass: #a9792c;
  --brass-deep: #83591c;
  --white: #fffefb;
  --max-width: 1180px;

  --font-display: "IBM Plex Serif", Georgia, "Times New Roman", serif;
  --font-body: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 18px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 34px,
    rgba(22, 33, 47, 0.035) 35px
  );
}

a {
  color: var(--brass-deep);
}

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

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

/* ---------- Header / letterhead ---------- */

header.site {
  background: var(--paper);
  border-top: 5px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 26px 0 20px;
  position: relative;
}

header.site::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1px;
  background: var(--brass);
}

.letterhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.brandblock {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mark {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--paper);
  background: var(--ink);
  border: 1px solid var(--ink);
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.02em;
}

.wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.wordmark .name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--ink);
}

.wordmark .tagline {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 3px;
}

nav.site ul {
  list-style: none;
  display: flex;
  gap: 34px;
  margin: 0;
  padding: 0;
}

nav.site a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}

nav.site a:hover {
  color: var(--brass-deep);
  border-bottom-color: var(--brass);
}

/* ---------- Eyebrow / section marks ---------- */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-deep);
  margin: 0 0 14px;
}

/* ---------- Hero ---------- */

.hero {
  border-bottom: 1px solid var(--rule);
  padding: 84px 0 68px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 270px;
  gap: 48px;
  align-items: start;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: 3.05rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 20px;
  line-height: 1.18;
  letter-spacing: -0.01em;
}

.hero h1 em {
  font-style: italic;
  font-weight: 600;
  color: var(--brass-deep);
}

.hero p.lead {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 680px;
  margin: 0 0 32px;
}

.hero .footnote-refs {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--ink-faint);
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  max-width: 680px;
}

.cta-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 15px 30px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.84rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--ink);
  border-radius: 2px;
  transition: transform 0.12s ease, background 0.15s ease, color 0.15s ease;
}

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

.btn-primary:hover {
  background: var(--brass-deep);
  border-color: var(--brass-deep);
  transform: translateY(-1px);
}

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

.btn-secondary:hover {
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-1px);
}

/* ---------- Hero stamp (signature element) ---------- */

.hero-stamp {
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.stamp-svg {
  width: 215px;
  height: 215px;
  transform: rotate(-9deg);
  opacity: 0.92;
  mix-blend-mode: multiply;
}

@media (prefers-reduced-motion: no-preference) {
  .stamp-svg {
    animation: stamp-in 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both;
    animation-delay: 0.15s;
  }
}

@keyframes stamp-in {
  from {
    opacity: 0;
    transform: rotate(-9deg) scale(1.5);
  }
  to {
    opacity: 0.92;
    transform: rotate(-9deg) scale(1);
  }
}

.ring-outer {
  fill: none;
  stroke: var(--brass-deep);
  stroke-width: 1.6;
  stroke-dasharray: 2 3.2;
}

.ring-inner {
  fill: none;
  stroke: var(--brass-deep);
  stroke-width: 1.1;
}

.stamp-text {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  fill: var(--brass-deep);
}

.stamp-center line {
  stroke: var(--brass-deep);
  stroke-width: 1;
}

.stamp-d0 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  fill: var(--brass-deep);
}

.stamp-sub {
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.1em;
  fill: var(--brass-deep);
}

/* ---------- Sections ---------- */

section {
  padding: 72px 0;
}

section.alt {
  background: var(--paper-deep);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  font-size: 1.85rem;
  margin: 0 0 12px;
}

.section-sub {
  color: var(--ink-soft);
  margin: 0 0 46px;
  max-width: 740px;
  font-size: 1.05rem;
}

.section-sub code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--paper-deep);
  border: 1px solid var(--rule);
  padding: 1px 6px;
  border-radius: 2px;
}

/* ---------- Column tags ---------- */

.col-heading {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
}

.tag {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--brass-deep);
  min-width: 20px;
}

.col-heading h3 {
  margin: 0;
  font-family: var(--font-display);
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 600;
}

/* ---------- Context cards (I / II) ---------- */

.context-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-bottom: 48px;
}

.context-card {
  border: 1px solid var(--rule);
  border-top: 3px solid var(--ink);
  background: var(--white);
  padding: 32px 30px 34px;
}

.context-card ul {
  padding-left: 18px;
  margin: 0;
}

.context-card li {
  margin-bottom: 14px;
}

.context-card li strong {
  color: var(--ink);
}

.context-card li ul {
  margin-top: 6px;
  padding-left: 18px;
}

.context-card li ul li {
  color: var(--ink-soft);
  font-size: 0.94rem;
  margin-bottom: 6px;
}

/* ---------- Programme panel (III) ---------- */

.programme-panel {
  border: 1px solid var(--rule);
  border-top: 3px solid var(--brass);
  background: var(--paper-deep);
  padding: 36px 36px 12px;
}

.programme-panel .col-heading {
  margin-bottom: 38px;
}

/* ---------- Horizontal programme timeline ---------- */

.h-timeline {
  list-style: none;
  display: flex;
  align-items: flex-start;
  margin: 0 0 8px;
  padding: 0;
}

.h-timeline li {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-right: 30px;
}

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

.tl-week {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--brass-deep);
  font-weight: 600;
  line-height: 1;
  margin-bottom: 14px;
}

.tl-node {
  position: relative;
  display: block;
  height: 9px;
  margin-bottom: 16px;
}

.tl-node::before {
  content: "";
  position: absolute;
  left: 0;
  right: -30px;
  top: 50%;
  height: 1px;
  background: var(--rule);
  transform: translateY(-50%);
}

.h-timeline li:last-child .tl-node::before {
  right: 0;
}

.tl-dot {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translate(0, -50%);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--brass);
  border: 2px solid var(--paper-deep);
  box-shadow: 0 0 0 1px var(--brass);
  z-index: 1;
}

.tl-text {
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.5;
}

/* ---------- Callout box ---------- */

.callout {
  margin-top: 24px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--brass);
  border-radius: 2px;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.98rem;
}

.callout .star {
  font-size: 1.2rem;
  color: var(--brass-deep);
}

/* ---------- "What we need" — requisition form ---------- */

.needs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.need-card {
  background: var(--paper-deep);
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px 26px;
  transition: background 0.15s ease;
}

.need-card:hover {
  background: var(--white);
}

.field-no {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--brass-deep);
  border-bottom: 1px solid var(--brass);
  padding-bottom: 8px;
  display: inline-block;
}

.need-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.need-card strong {
  color: var(--ink);
}

/* ---------- Team ---------- */

#team .section-title {
  margin-bottom: 34px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.team-card {
  border: 1px solid var(--rule);
  background: var(--white);
  padding: 30px 26px 32px;
  text-align: center;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.team-card:hover {
  box-shadow: 0 6px 0 0 var(--rule);
  transform: translateY(-2px);
}

.team-photo {
  width: 88px;
  height: 88px;
  margin: 0 auto 18px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper-deep);
}

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

.team-photo-fallback {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--white);
  background: var(--brass);
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.12rem;
  color: var(--ink);
  margin: 0 0 4px;
}

.team-role {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brass-deep);
  margin: 0 0 6px;
}

.team-affiliation {
  font-size: 0.88rem;
  color: var(--ink-faint);
  margin: 0 0 14px;
}

.team-bio {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin: 0 0 14px;
}

.team-link {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--brass-deep);
  border-bottom: 1px solid var(--brass);
}

.team-link:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.team-empty {
  grid-column: 1 / -1;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-align: center;
  padding: 20px 0;
}

/* ---------- Footer ---------- */

footer.site {
  background: var(--ink);
  color: #c3cad9;
  padding: 50px 0 30px;
  margin-top: 0;
  border-top: 3px solid var(--brass);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 28px;
}

.mark-light {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
  margin-bottom: 14px;
}

footer.site h4 {
  font-family: var(--font-display);
  color: var(--white);
  margin: 0 0 10px;
  font-weight: 600;
}

footer.site p {
  max-width: 320px;
  font-size: 0.92rem;
}

footer.site a {
  color: #e3b46a;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

footer.site a:hover {
  border-bottom-color: #e3b46a;
}

footer.site .fine {
  margin-top: 30px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #7b869e;
  border-top: 1px solid #2a374a;
  padding-top: 16px;
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .context-grid {
    grid-template-columns: 1fr;
  }

  .needs-grid {
    grid-template-columns: 1fr 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .h-timeline {
    flex-direction: column;
  }

  .h-timeline li {
    padding-right: 0;
    padding-bottom: 22px;
  }

  .tl-node {
    width: 9px;
  }

  .tl-node::before {
    display: none;
  }

  .hero-stamp {
    order: -1;
    padding-bottom: 10px;
  }

  .stamp-svg {
    width: 145px;
    height: 145px;
  }

  .hero h1 {
    font-size: 2.15rem;
  }

  nav.site ul {
    gap: 16px;
    flex-wrap: wrap;
  }
}

@media (max-width: 520px) {
  .needs-grid {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }
}
