:root {
  --ink: #211813;
  --paper: #f3eadc;
  --vellum: #fff8ea;
  --umber: #563824;
  --vermilion: #a93e2d;
  --lapis: #1c4f6a;
  --cyan: #7bd7e1;
  --gold: #c7a25b;
  --line: rgba(86, 56, 36, 0.24);
  --shadow: 0 28px 80px rgba(31, 20, 12, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Serif SC", serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 25% 10%, rgba(123, 215, 225, 0.16), transparent 24rem),
    linear-gradient(180deg, #100d0c 0, #241914 38rem, var(--paper) 38rem, #efe2cf 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 20;
  opacity: 0.08;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.25) 1px, transparent 1px);
  background-size: 32px 32px;
  mix-blend-mode: overlay;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem clamp(1rem, 4vw, 4.8rem);
  color: var(--vellum);
  background: linear-gradient(180deg, rgba(14, 10, 8, 0.72), rgba(14, 10, 8, 0));
}

.brand {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  font-weight: 700;
  letter-spacing: 0;
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2.4vw, 2rem);
  font-size: 0.86rem;
  color: rgba(255, 248, 234, 0.82);
}

nav a {
  transition: color 180ms ease;
}

nav a:hover {
  color: var(--cyan);
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: 7rem clamp(1.1rem, 5vw, 5.5rem) 3.5rem;
  isolation: isolate;
  overflow: hidden;
}

.hero-image,
.hero-scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center;
  z-index: -3;
  transform: scale(1.04);
  animation: imageBreath 14s ease-in-out infinite alternate;
}

.hero-scrim {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(11, 8, 7, 0.9) 0%, rgba(24, 15, 10, 0.72) 34%, rgba(24, 15, 10, 0.24) 64%, rgba(13, 9, 8, 0.3) 100%),
    linear-gradient(180deg, rgba(14, 10, 8, 0.18), rgba(14, 10, 8, 0.44));
}

.hero-copy {
  width: min(42rem, 100%);
  color: var(--vellum);
  padding-top: 2rem;
}

.kicker,
.eyebrow {
  margin: 0 0 1rem;
  font-family: "Cormorant Garamond", "Noto Serif SC", serif;
  font-size: clamp(0.92rem, 1.5vw, 1.05rem);
  font-weight: 700;
  color: var(--cyan);
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 1rem;
  font-size: clamp(4.1rem, 8.9vw, 7.9rem);
  line-height: 1.08;
  letter-spacing: 0;
  font-weight: 900;
  text-wrap: balance;
}

h1 span {
  display: block;
}

.hero-dates {
  margin-bottom: 1.6rem;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.6rem, 3.2vw, 2.8rem);
  color: var(--gold);
}

.hero-lede {
  max-width: 36rem;
  color: rgba(255, 248, 234, 0.84);
  font-size: clamp(1rem, 1.45vw, 1.22rem);
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2.1rem;
}

.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1.22rem;
  border-radius: 0.18rem;
  border: 1px solid rgba(255, 248, 234, 0.36);
  font-weight: 700;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: #170f0b;
  background: var(--gold);
  border-color: var(--gold);
}

.button.ghost {
  color: var(--vellum);
  background: rgba(255, 248, 234, 0.06);
  backdrop-filter: blur(10px);
}

.hero-caption {
  position: absolute;
  right: clamp(1rem, 4vw, 4rem);
  bottom: 1.4rem;
  color: rgba(255, 248, 234, 0.55);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(0.85rem, 1.2vw, 1rem);
}

section:not(.hero) {
  position: relative;
  padding: clamp(4.5rem, 9vw, 8.8rem) clamp(1.1rem, 5vw, 5.5rem);
}

.intro-section,
.modules-section,
.rhythm-section,
.final-section {
  background: var(--paper);
}

.path-section,
.cities-section,
.fit-section,
.essence-section {
  background: #fff3df;
}

.section-mark {
  position: absolute;
  top: 2.4rem;
  right: clamp(1.1rem, 5vw, 5.5rem);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(5rem, 14vw, 13rem);
  color: rgba(86, 56, 36, 0.08);
  line-height: 0.8;
}

.intro-copy,
.section-heading,
.module-intro,
.essence-copy,
.final-copy {
  max-width: 62rem;
}

h2 {
  font-size: clamp(2.35rem, 5.4vw, 5.2rem);
  line-height: 1.06;
  letter-spacing: 0;
  font-weight: 900;
  text-wrap: balance;
}

h3 {
  margin-bottom: 0.7rem;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  line-height: 1.26;
}

p {
  line-height: 1.85;
}

.format-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 3vw, 3rem);
  margin-top: clamp(2rem, 6vw, 5rem);
}

.format-item {
  border-top: 1px solid var(--line);
  padding-top: 1.35rem;
}

.format-item span,
.route-stop span,
.module-row span {
  display: block;
  margin-bottom: 1.2rem;
  font-family: "Cormorant Garamond", serif;
  color: var(--vermilion);
  font-weight: 700;
  font-size: 1.18rem;
}

.triad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 3rem;
  background: var(--line);
}

.triad article {
  background: #fff3df;
  padding: clamp(1.4rem, 3vw, 2.5rem);
}

.cognitive-route {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 3vw, 3rem);
  margin-top: clamp(4rem, 7vw, 6.5rem);
}

.route-line {
  position: absolute;
  top: 1rem;
  left: 5%;
  right: 5%;
  height: 1px;
  background: linear-gradient(90deg, var(--vermilion), var(--lapis), var(--gold));
}

.route-stop {
  position: relative;
  padding-top: 3.6rem;
}

.route-stop::before {
  content: "";
  position: absolute;
  top: 0.55rem;
  left: 0;
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0.55rem rgba(123, 215, 225, 0.18), 0 0 2.2rem rgba(28, 79, 106, 0.5);
}

.modules-section {
  display: grid;
  grid-template-columns: minmax(16rem, 0.85fr) minmax(20rem, 1.15fr);
  gap: clamp(2.5rem, 6vw, 6rem);
}

.module-intro {
  position: sticky;
  top: 6rem;
  align-self: start;
}

.module-intro p {
  font-size: 1.06rem;
}

.module-list {
  display: grid;
  gap: 1px;
  background: var(--line);
  box-shadow: var(--shadow);
}

.module-row {
  display: grid;
  grid-template-columns: 3.8rem 1fr minmax(12rem, 0.8fr);
  gap: clamp(1rem, 2vw, 2rem);
  align-items: baseline;
  padding: clamp(1.1rem, 2.4vw, 1.8rem);
  background: #fff7e8;
  transition: transform 180ms ease, background 180ms ease;
}

.module-row:hover {
  transform: translateX(-0.35rem);
  background: #fffaf1;
}

.module-row span,
.module-row h3,
.module-row p {
  margin-bottom: 0;
}

.cities-section {
  overflow: hidden;
}

.cities-section::before {
  content: "Roma  Vatican  Firenze  Paris  Barcelona  Madrid  Granada";
  position: absolute;
  left: -4vw;
  bottom: -1.9rem;
  white-space: nowrap;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(4rem, 10vw, 9rem);
  color: rgba(86, 56, 36, 0.055);
}

.city-columns {
  column-count: 3;
  column-gap: clamp(1.8rem, 4vw, 4rem);
  margin-top: 3rem;
}

.city-block {
  break-inside: avoid;
  margin-bottom: 2rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--line);
}

.rhythm-layout,
.fit-layout {
  display: grid;
  grid-template-columns: minmax(14rem, 0.75fr) minmax(20rem, 1.25fr);
  gap: clamp(2.2rem, 6vw, 6rem);
  align-items: center;
  margin-top: 3.6rem;
}

.day-clock {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  max-width: 23rem;
  margin-inline: auto;
}

.clock-core {
  position: relative;
  z-index: 2;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(7rem, 16vw, 13rem);
  line-height: 1;
  color: var(--vermilion);
}

.clock-ring,
.day-clock::before,
.day-clock::after {
  position: absolute;
  inset: 9%;
  border-radius: 50%;
  border: 1px solid rgba(86, 56, 36, 0.28);
}

.clock-ring {
  animation: orbit 18s linear infinite;
}

.clock-ring::before {
  content: "";
  position: absolute;
  top: -0.35rem;
  left: 50%;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 1.4rem rgba(123, 215, 225, 0.9);
}

.day-clock::before,
.day-clock::after {
  content: "";
  inset: 0;
}

.day-clock::after {
  inset: 18%;
  border-color: rgba(169, 62, 45, 0.32);
}

.rhythm-copy {
  display: grid;
  gap: 1rem;
}

.rhythm-copy article {
  padding-block: 1.2rem;
  border-top: 1px solid var(--line);
}

.essence-section {
  display: grid;
  grid-template-columns: minmax(20rem, 0.95fr) minmax(18rem, 1.05fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.essence-list {
  display: grid;
  gap: 1rem;
  counter-reset: essence;
}

.essence-list p {
  position: relative;
  margin: 0;
  padding: 1rem 0 1rem 3.2rem;
  border-top: 1px solid var(--line);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
}

.essence-list p::before {
  counter-increment: essence;
  content: counter(essence, decimal-leading-zero);
  position: absolute;
  left: 0;
  color: var(--vermilion);
  font-family: "Cormorant Garamond", serif;
  font-weight: 700;
}

.fit-text {
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
}

.fit-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.fit-points span {
  display: inline-flex;
  align-items: center;
  min-height: 2.7rem;
  border: 1px solid var(--line);
  padding: 0.55rem 0.95rem;
  background: rgba(255, 248, 234, 0.36);
}

.final-section {
  min-height: 55svh;
  display: grid;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(16, 11, 9, 0.88), rgba(16, 11, 9, 0.5)),
    url("./assets/renaissance-neuro-hero.png") center / cover;
  color: var(--vellum);
}

.final-copy .button {
  margin-top: 1.4rem;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms ease, transform 700ms ease;
}

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

@keyframes imageBreath {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.09) translate3d(-1.2%, -0.8%, 0);
  }
}

@keyframes orbit {
  to {
    transform: rotate(360deg);
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 920px) {
  .site-header {
    position: absolute;
  }

  nav {
    display: none;
  }

  .hero {
    min-height: 92svh;
    align-items: end;
  }

  .hero-scrim {
    background:
      linear-gradient(180deg, rgba(12, 8, 7, 0.2), rgba(12, 8, 7, 0.92)),
      linear-gradient(90deg, rgba(13, 9, 8, 0.62), rgba(13, 9, 8, 0.24));
  }

  .hero-caption {
    display: none;
  }

  .format-grid,
  .triad,
  .cognitive-route,
  .modules-section,
  .rhythm-layout,
  .essence-section,
  .fit-layout {
    grid-template-columns: 1fr;
  }

  .route-line {
    top: 0;
    left: 0.47rem;
    right: auto;
    width: 1px;
    height: calc(100% - 1.8rem);
  }

  .route-stop {
    padding-top: 0;
    padding-left: 2.8rem;
  }

  .route-stop::before {
    left: 0;
    top: 0.35rem;
  }

  .module-intro {
    position: static;
  }

  .module-row {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }

  .module-row:hover {
    transform: none;
  }

  .city-columns {
    column-count: 1;
  }

  .day-clock {
    max-width: 17rem;
  }
}

@media (max-width: 560px) {
  .hero {
    padding-top: 5.2rem;
  }

  h1 {
    font-size: clamp(3.05rem, 14.5vw, 4.2rem);
    line-height: 1.12;
  }

  h2 {
    font-size: clamp(2rem, 11vw, 3rem);
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .fit-points {
    display: grid;
  }
}
