:root {
  --cream: #f9f6f0;
  --cream-2: #efe8dc;
  --surface: #fffefb;
  --ink: #2a2622;
  --ink-soft: #5c554c;
  --muted: #8a8278;
  --terra: #b85c38;
  --terra-soft: rgba(184, 92, 56, 0.1);
  --olive: #4d5e48;
  --olive-soft: rgba(77, 94, 72, 0.1);
  --sand: #d4c4a8;
  --line: #ddd5c8;
  --radius: 3px;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --container: 1100px;
  --header-h: 82px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.7;
}

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

address {
  font-style: normal;
  color: var(--muted);
}

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

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(249, 246, 240, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 2rem;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0.02em;
  color: var(--terra);
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav a {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav a:hover,
.nav a.active {
  color: var(--terra);
}

.header__end {
  display: flex;
  gap: 0.55rem;
}

.menu-btn {
  display: none;
  background: var(--surface);
  border: 1px solid var(--line);
  cursor: pointer;
  width: 40px;
  height: 36px;
  padding: 8px;
}

.menu-btn span {
  display: block;
  height: 1.5px;
  background: var(--ink);
  margin: 5px 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  font-family: var(--font-body);
  transition: all 0.2s;
}

.btn--terra {
  background: var(--terra);
  color: #fff;
}

.btn--terra:hover {
  background: #a04e2f;
}

.btn--outline {
  background: transparent;
  border-color: var(--line);
  color: var(--ink-soft);
}

.btn--outline:hover {
  border-color: var(--terra);
  color: var(--terra);
}

.btn--lg {
  padding: 0.95rem 1.8rem;
  font-size: 0.82rem;
}

/* Hero */
.hero {
  padding: calc(var(--header-h) + 4rem) 0 5rem;
}

.hero__layout {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 4rem;
  align-items: center;
}

.kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.kicker::after {
  content: "";
  flex: 1;
  max-width: 60px;
  height: 1px;
  background: var(--sand);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.5vw, 3.75rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
}

.hero h1 em {
  font-style: italic;
  color: var(--terra);
}

.hero__text {
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 420px;
  margin-bottom: 2.25rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Relation map mock */
.relation-map {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 1.75rem;
  position: relative;
}

.relation-map::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--terra);
}

.relation-map__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.relation-map__head h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  font-style: italic;
}

.relation-map__head span {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.map-canvas {
  position: relative;
  min-height: 280px;
  background:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: center;
}

.map-canvas svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.map-node {
  position: absolute;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--cream);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 4px 20px rgba(42, 38, 34, 0.06);
}

.map-node strong {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  font-style: italic;
  text-transform: none;
  letter-spacing: 0;
  display: block;
  margin-bottom: 0.15rem;
}

.map-node--center {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 88px;
  height: 88px;
  background: var(--terra-soft);
  border-color: var(--terra);
  color: var(--terra);
}

.map-node--a {
  top: 12%;
  left: 18%;
}

.map-node--b {
  top: 8%;
  right: 15%;
}

.map-node--c {
  bottom: 18%;
  left: 12%;
}

.map-node--d {
  bottom: 12%;
  right: 18%;
}

.map-legend {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.72rem;
  color: var(--muted);
}

.map-legend span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.map-legend i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.map-legend i.terra {
  background: var(--terra);
}

.map-legend i.olive {
  background: var(--olive);
}

.map-legend i.sand {
  background: var(--sand);
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section--wash {
  background: var(--cream-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width: 540px;
  margin-bottom: 3rem;
}

.section-head--center {
  text-align: center;
  margin-inline: auto;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  font-weight: 500;
  line-height: 1.2;
}

.section-head p {
  color: var(--muted);
  margin-top: 0.85rem;
  font-size: 0.98rem;
}

/* Pillars */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.pillar {
  padding-top: 1.5rem;
  border-top: 2px solid var(--terra);
}

.pillar:nth-child(2) {
  border-top-color: var(--olive);
}

.pillar:nth-child(3) {
  border-top-color: var(--sand);
}

.pillar__label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.85rem;
}

.pillar h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.pillar p {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* Editorial cards */
.editorial {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.editorial a {
  display: flex;
  flex-direction: column;
  padding: 2.25rem;
  background: var(--surface);
  transition: background 0.2s;
}

.editorial a:hover {
  background: var(--cream);
}

.editorial h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  font-style: italic;
  margin-bottom: 0.5rem;
}

.editorial p {
  font-size: 0.9rem;
  color: var(--muted);
  flex: 1;
  margin-bottom: 1.25rem;
}

.editorial span {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terra);
}

/* Page */
.page-hero {
  padding: calc(var(--header-h) + 3.5rem) 0 3rem;
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 500;
}

.page-hero p {
  color: var(--muted);
  max-width: 500px;
  margin: 0.85rem auto 0;
}

/* Split */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.split h2 {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.split p {
  color: var(--ink-soft);
  margin-bottom: 0.85rem;
}

.list {
  list-style: none;
  margin-top: 1.5rem;
}

.list li {
  padding: 0.65rem 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
  padding-left: 1rem;
  border-left: 2px solid var(--terra);
  margin-bottom: 0.5rem;
}

/* Features */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 3rem;
}

.feat {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.feat h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  font-style: italic;
  color: var(--terra);
  margin-bottom: 0.45rem;
}

.feat p {
  font-size: 0.88rem;
  color: var(--muted);
}

/* Steps */
.timeline {
  max-width: 640px;
  margin-inline: auto;
}

.timeline-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
  position: relative;
}

.timeline-item:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 39px;
  top: 48px;
  bottom: 0;
  width: 1px;
  background: var(--line);
}

.timeline-item__year {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  font-style: italic;
  color: var(--terra);
  text-align: right;
}

.timeline-item h3 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.timeline-item p {
  font-size: 0.9rem;
  color: var(--muted);
}

/* CTA */
.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 3rem;
  background: var(--olive);
  color: #fff;
}

.cta h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 500;
  font-style: italic;
}

.cta p {
  font-size: 0.92rem;
  opacity: 0.85;
  margin-top: 0.4rem;
}

.cta .btn--outline {
  background: #fff;
  border-color: #fff;
  color: var(--olive);
  flex-shrink: 0;
}

/* Contact */
.contact-row {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 3.5rem;
}

.detail {
  margin-bottom: 1.75rem;
}

.detail h3 {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 0.35rem;
}

.form-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 2.5rem;
}

.field {
  margin-bottom: 1.15rem;
}

.field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--terra);
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  padding: 3.5rem 0 2rem;
  margin-top: 2rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer__note {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 0.6rem;
  max-width: 260px;
  line-height: 1.6;
}

.footer__col h4 {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.9rem;
}

.footer__col a,
.footer__col address {
  display: block;
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.footer__col a:hover {
  color: var(--terra);
}

.footer__bar {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.footer__bar p {
  font-size: 0.75rem;
  color: var(--muted);
}

.footer__links {
  display: flex;
  gap: 1.5rem;
}

.footer__links a {
  font-size: 0.75rem;
  color: var(--muted);
}

/* Legal */
.legal {
  padding: calc(var(--header-h) + 2.5rem) 0 4rem;
}

.legal-doc {
  max-width: 680px;
  margin-inline: auto;
}

.legal-doc h1 {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 500;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0.5rem;
}

.legal-doc .upd {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

.legal-doc h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  font-style: italic;
  color: var(--terra);
  margin: 1.75rem 0 0.5rem;
}

.legal-doc p,
.legal-doc li {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin-bottom: 0.5rem;
}

.legal-doc ul {
  padding-left: 1.2rem;
}

.legal-doc a {
  color: var(--terra);
}

/* Cookie */
.cookie-strip {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  transform: translateY(100%);
  opacity: 0;
  transition: 0.35s ease;
}

.cookie-strip.show {
  transform: translateY(0);
  opacity: 1;
}

.cookie-strip p {
  font-size: 0.85rem;
  color: var(--muted);
  flex: 1;
  min-width: 200px;
}

.cookie-strip a {
  color: var(--terra);
  font-weight: 600;
}

.cookie-strip__btns {
  display: flex;
  gap: 0.5rem;
}

.nav--mobile {
  display: none;
  flex-direction: column;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--cream);
  padding: 1.25rem;
  border-bottom: 1px solid var(--line);
  gap: 1rem;
  z-index: 99;
}

.nav--mobile.open {
  display: flex;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: 0.6s ease;
}

.reveal.on {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .hero__layout,
  .split,
  .contact-row,
  .footer__grid,
  .cta,
  .pillars,
  .feat-grid {
    grid-template-columns: 1fr;
  }

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

  .cta {
    flex-direction: column;
    text-align: center;
  }

  .nav,
  .header__end {
    display: none;
  }

  .menu-btn {
    display: block;
  }

  .hero__text,
  .hero__actions {
    margin-inline: auto;
    justify-content: center;
    text-align: center;
  }

  .hero {
    text-align: center;
  }

  .kicker {
    justify-content: center;
  }

  .map-node {
    width: 60px;
    height: 60px;
    font-size: 0.55rem;
  }

  .map-node strong {
    font-size: 0.8rem;
  }

  .map-node--center {
    width: 72px;
    height: 72px;
  }
}
