:root {
  color-scheme: light;
  --ink: #0b1720;
  --ink-soft: #31414b;
  --paper: #f1eee5;
  --paper-bright: #faf8f2;
  --line: rgba(11, 23, 32, 0.2);
  --blue: #4d72ff;
  --sans: "Helvetica Neue", "Avenir Next", Avenir, Helvetica, Arial, sans-serif;
  --serif: Iowan Old Style, Baskerville, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: var(--ink);
  color: white;
}

.hero__image,
.hero__shade {
  position: absolute;
  inset: 0;
}

.hero__image {
  background: url("/assets/conciliari-archive.jpg") center center / cover no-repeat;
  animation: hero-drift 18s ease-out both;
}

.hero__shade {
  background:
    linear-gradient(90deg, rgba(4, 12, 18, 0.96) 0%, rgba(4, 12, 18, 0.78) 32%, rgba(4, 12, 18, 0.16) 68%, rgba(4, 12, 18, 0.08) 100%),
    linear-gradient(0deg, rgba(4, 12, 18, 0.42), transparent 42%);
}

.site-header {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.75rem clamp(1.25rem, 4vw, 4.5rem);
}

.wordmark {
  display: grid;
  width: 2.7rem;
  height: 2.7rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1;
  text-decoration: none;
  transition: background-color 180ms ease, color 180ms ease;
}

.wordmark:hover {
  background: white;
  color: var(--ink);
}

nav {
  display: flex;
  gap: clamp(1.4rem, 3vw, 3rem);
}

nav a {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

nav a::after {
  display: block;
  width: 0;
  height: 1px;
  margin-top: 0.3rem;
  background: currentColor;
  content: "";
  transition: width 180ms ease;
}

nav a:hover::after {
  width: 100%;
}

.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 100svh;
  width: min(100%, 64rem);
  flex-direction: column;
  justify-content: center;
  padding: 8.5rem clamp(1.25rem, 4vw, 4.5rem) 5rem;
}

.eyebrow,
.section-kicker {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow {
  color: rgba(255, 255, 255, 0.7);
}

.hero h1 {
  margin: 1rem 0 0;
  font-family: var(--serif);
  font-size: clamp(4.6rem, 12vw, 11.5rem);
  font-weight: 400;
  letter-spacing: -0.075em;
  line-height: 0.82;
}

.hero__statement {
  margin: clamp(2rem, 5vh, 4rem) 0 0;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.3vw, 3.5rem);
  letter-spacing: -0.035em;
  line-height: 1;
}

.hero__body {
  max-width: 34rem;
  margin: 1.4rem 0 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: clamp(1rem, 1.25vw, 1.2rem);
  line-height: 1.55;
}

.text-link {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 0.65rem;
  margin-top: 2.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  padding-bottom: 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
  transition: border-color 180ms ease;
}

.text-link span {
  transition: transform 180ms ease;
}

.text-link:hover {
  border-color: currentColor;
}

.text-link:hover span {
  transform: translate(0.16rem, 0.16rem);
}

.hero__index {
  position: absolute;
  z-index: 1;
  right: clamp(1.25rem, 4vw, 4.5rem);
  bottom: 2rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.hero-enter {
  opacity: 0;
  transform: translateY(1rem);
  animation: enter 700ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.site-header.hero-enter { animation-delay: 80ms; }
.hero__content .hero-enter:nth-child(1) { animation-delay: 170ms; }
.hero__content .hero-enter:nth-child(2) { animation-delay: 240ms; }
.hero__content .hero-enter:nth-child(3) { animation-delay: 330ms; }
.hero__content .hero-enter:nth-child(4) { animation-delay: 420ms; }
.hero__content .hero-enter:nth-child(5) { animation-delay: 510ms; }

.manifesto,
.protocol {
  padding: clamp(5.5rem, 11vw, 11rem) clamp(1.25rem, 6vw, 7rem);
}

.manifesto {
  background: var(--paper);
}

.manifesto__lead,
.protocol__content {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(16rem, 0.65fr);
  gap: clamp(2rem, 8vw, 9rem);
  margin-top: clamp(2.5rem, 7vw, 7rem);
  align-items: end;
}

.manifesto h2,
.protocol h2 {
  max-width: 12ch;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3rem, 7.2vw, 7.7rem);
  font-weight: 400;
  letter-spacing: -0.065em;
  line-height: 0.92;
}

.manifesto__lead > p,
.protocol__content > p {
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.4vw, 1.3rem);
  line-height: 1.65;
}

.principles {
  display: grid;
  margin: clamp(5rem, 10vw, 10rem) 0 0;
  padding: 0;
  list-style: none;
}

.principles li {
  display: grid;
  grid-template-columns: minmax(3rem, 0.25fr) 1fr;
  gap: 2rem;
  border-top: 1px solid var(--line);
  padding: 1.8rem 0;
}

.principles li:last-child {
  border-bottom: 1px solid var(--line);
}

.principles span {
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 700;
}

.principles h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.035em;
}

.principles p {
  margin: 0.45rem 0 0;
  color: var(--ink-soft);
  line-height: 1.5;
}

.posture {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: white;
  padding: clamp(6rem, 14vw, 14rem) clamp(1.25rem, 6vw, 7rem);
}

.posture__line {
  position: absolute;
  top: 0;
  left: 22%;
  width: 1px;
  height: 100%;
  background: rgba(255, 255, 255, 0.12);
  transform-origin: top;
}

.posture .section-kicker {
  color: rgba(255, 255, 255, 0.55);
}

.posture h2 {
  max-width: 15ch;
  margin: clamp(3rem, 7vw, 7rem) 0 0;
  font-family: var(--serif);
  font-size: clamp(3.2rem, 8vw, 8.5rem);
  font-weight: 400;
  letter-spacing: -0.065em;
  line-height: 0.92;
}

.posture > p:last-child {
  max-width: 39rem;
  margin: clamp(2.5rem, 6vw, 5rem) 0 0 auto;
  color: rgba(255, 255, 255, 0.68);
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  line-height: 1.65;
}

.protocol {
  background: var(--paper-bright);
}

.protocol__content {
  align-items: start;
}

.protocol__content > p,
.protocol dl,
.protocol .text-link {
  grid-column: 2;
}

.protocol h2 {
  grid-row: 1 / span 4;
}

.protocol dl {
  margin: 1.5rem 0 0;
}

.protocol dl > div {
  border-top: 1px solid var(--line);
  padding: 1rem 0 1.15rem;
}

.protocol dl > div:last-child {
  border-bottom: 1px solid var(--line);
}

.protocol dt {
  margin-bottom: 0.55rem;
  color: var(--ink-soft);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.protocol dd {
  margin: 0;
  line-height: 1.45;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  overflow-wrap: anywhere;
}

.text-link--dark {
  border-color: var(--line);
}

footer {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: clamp(1rem, 3vw, 3rem);
  align-items: center;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.62);
  padding: 2.4rem clamp(1.25rem, 4vw, 4.5rem);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}

footer p {
  margin: 0;
}

.wordmark--footer {
  width: 2rem;
  height: 2rem;
  color: white;
  font-size: 1rem;
}

.reveal {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 650ms ease, transform 650ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.posture__line.reveal {
  opacity: 1;
  transform: scaleY(0);
  transition-duration: 1100ms;
}

.posture__line.reveal.is-visible {
  transform: scaleY(1);
}

@keyframes enter {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes hero-drift {
  from { transform: scale(1.045); }
  to { transform: scale(1); }
}

@media (max-width: 760px) {
  .site-header {
    padding-top: 1.25rem;
  }

  .hero__shade {
    background:
      linear-gradient(90deg, rgba(4, 12, 18, 0.92), rgba(4, 12, 18, 0.32)),
      linear-gradient(0deg, rgba(4, 12, 18, 0.74), transparent 62%);
  }

  .hero__image {
    background-position: 58% center;
  }

  .hero h1 {
    font-size: clamp(4.25rem, 20vw, 7rem);
  }

  .manifesto__lead,
  .protocol__content {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .manifesto h2,
  .protocol h2 {
    max-width: 10ch;
  }

  .protocol__content > p,
  .protocol dl,
  .protocol .text-link,
  .protocol h2 {
    grid-column: 1;
    grid-row: auto;
  }

  .principles li {
    grid-template-columns: 2rem 1fr;
    gap: 1rem;
  }

  footer {
    grid-template-columns: auto 1fr;
  }

  footer p:nth-of-type(n + 2) {
    grid-column: 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero-enter,
  .reveal {
    opacity: 1;
    transform: none;
  }
}
