:root {
  --verde-nous: #2F4F3E;
  --oro-eunoia: #C3A163;
  --tinta: #17160F;
  --alabastro: #F5F2EA;
  --salvia: #B9C6B2;
  --piedra: #8B877B;
  --verde-deep: #1F3529;
  --cream-soft: #EDE8DC;
  --font-display: "Cormorant", "Times New Roman", serif;
  --font-body: "Jost", "Helvetica Neue", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 4.5rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--tinta);
  background: var(--alabastro);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

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

button,
input,
textarea {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--verde-nous);
  color: var(--alabastro);
  padding: 0.75rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* ——— Header ——— */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), color 0.4s var(--ease);
  color: var(--alabastro);
}

.site-header.is-solid {
  background: rgba(245, 242, 234, 0.92);
  color: var(--tinta);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(23, 22, 15, 0.06);
}

.site-header.is-solid .brand-mark {
  filter: none;
}

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.brand-mark {
  width: 2rem;
  height: 2rem;
}

.brand-word {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 500;
  letter-spacing: 0.055em;
  line-height: 1;
}

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

.site-nav a {
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  opacity: 0.88;
  transition: opacity 0.25s;
}

.site-nav a:hover {
  opacity: 1;
}

.site-nav a.nav-program {
  letter-spacing: 0.05em;
  text-transform: none;
}

.site-header:not(.is-solid) .site-nav a.nav-program:hover {
  color: var(--oro-eunoia);
}

.site-header.is-solid .site-nav a.nav-program:hover {
  color: var(--verde-nous);
}

.nav-cta {
  padding: 0.55rem 1.1rem;
  border: 1px solid currentColor;
  opacity: 1 !important;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s;
}

.site-header:not(.is-solid) .nav-cta:hover {
  background: var(--oro-eunoia);
  border-color: var(--oro-eunoia);
  color: var(--tinta);
}

.site-header.is-solid .nav-cta {
  border-color: var(--verde-nous);
  color: var(--verde-nous);
}

.site-header.is-solid .nav-cta:hover {
  background: var(--verde-nous);
  color: var(--alabastro);
}

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

.nav-toggle span {
  display: block;
  width: 1.35rem;
  height: 1.5px;
  margin: 0.35rem auto;
  background: currentColor;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--alabastro);
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(195, 161, 99, 0.18), transparent 55%),
    radial-gradient(ellipse 70% 50% at 20% 80%, rgba(185, 198, 178, 0.12), transparent 50%),
    linear-gradient(165deg, #1a2a22 0%, var(--verde-nous) 42%, var(--verde-deep) 78%, #121510 100%);
}

.hero-plane {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.45;
  animation: drift 18s var(--ease) infinite alternate;
}

.hero-orb--a {
  width: min(48vw, 420px);
  height: min(48vw, 420px);
  background: rgba(195, 161, 99, 0.35);
  top: 8%;
  right: 8%;
}

.hero-orb--b {
  width: min(40vw, 340px);
  height: min(40vw, 340px);
  background: rgba(47, 79, 62, 0.55);
  bottom: 10%;
  left: 5%;
  animation-delay: -6s;
}

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-3%, 4%) scale(1.08); }
}

.hero-layout {
  position: relative;
  z-index: 2;
  width: min(1120px, 100%);
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: calc(var(--header-h) + 2.5rem) 1.5rem 5rem;
}

/* Mobile / default: mark and copy share one centered cell */
.hero-mark {
  grid-area: 1 / 1;
  display: grid;
  place-items: center;
  pointer-events: none;
  z-index: 0;
  width: min(78vw, 420px);
  aspect-ratio: 1;
  /* Optical: sit behind the brand word, not the CTAs */
  transform: translateY(-12%);
}

.hero-confluence {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  opacity: 0.22;
}

.hero-confluence .arc {
  fill: none;
  stroke: var(--salvia);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 220;
  stroke-dashoffset: 220;
  animation: draw-arc 2.4s var(--ease) 0.4s forwards;
}

.hero-confluence .arc-r {
  animation-delay: 0.75s;
}

.hero-confluence .almond {
  fill: var(--oro-eunoia);
  opacity: 0;
  transform-origin: 100px 100px;
  transform: scale(0.85);
  animation: bloom 1.6s var(--ease) 1.1s forwards;
}

.hero-confluence .point {
  fill: var(--alabastro);
  opacity: 0;
  animation: bloom 1s var(--ease) 1.7s forwards;
}

@keyframes draw-arc {
  to { stroke-dashoffset: 0; }
}

@keyframes bloom {
  to { opacity: 1; transform: scale(1); }
}

.hero-content {
  grid-area: 1 / 1;
  position: relative;
  z-index: 2;
  max-width: 34rem;
  width: 100%;
  text-align: center;
}

.hero-kicker {
  margin: 0 0 1.25rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--oro-eunoia);
  opacity: 0;
  animation: rise 1s var(--ease) 0.2s forwards;
}

.hero-brand {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(4.2rem, 14vw, 8.5rem);
  font-weight: 500;
  letter-spacing: 0.055em;
  line-height: 0.92;
  opacity: 0;
  animation: rise 1.1s var(--ease) 0.35s forwards;
}

.hero-headline {
  margin: 1.4rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3.2vw, 2.05rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.25;
  color: var(--cream-soft);
  opacity: 0;
  animation: rise 1.1s var(--ease) 0.55s forwards;
}

.hero-lead {
  margin: 1.25rem auto 0;
  max-width: 34rem;
  font-size: 1.05rem;
  font-weight: 300;
  color: rgba(245, 242, 234, 0.82);
  opacity: 0;
  animation: rise 1.1s var(--ease) 0.7s forwards;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 2.25rem;
  opacity: 0;
  animation: rise 1.1s var(--ease) 0.9s forwards;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.45rem;
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s, border-color 0.25s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-gold {
  background: var(--oro-eunoia);
  color: var(--tinta);
}

.btn-gold:hover {
  background: #d0b178;
}

.btn-ghost {
  border-color: rgba(245, 242, 234, 0.45);
  color: var(--alabastro);
}

.btn-ghost:hover {
  border-color: var(--alabastro);
  background: rgba(245, 242, 234, 0.08);
}

.btn-primary {
  background: var(--verde-nous);
  color: var(--alabastro);
  width: 100%;
}

.btn-primary:hover {
  background: var(--verde-deep);
}

.hero-scroll {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  width: 1.5rem;
  height: 2.4rem;
  border: 1px solid rgba(245, 242, 234, 0.35);
  border-radius: 999px;
  display: grid;
  place-items: start center;
  padding-top: 0.45rem;
  opacity: 0;
  animation: rise 1s var(--ease) 1.4s forwards;
}

.hero-scroll span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--oro-eunoia);
  animation: drip 1.6s ease-in-out infinite;
}

@keyframes drip {
  0% { transform: translateY(0); opacity: 1; }
  80% { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ——— Sections ——— */
.section {
  padding: clamp(4.5rem, 10vw, 7.5rem) 0;
}

.section-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

.section-head h2,
.about-copy h2,
.contact-copy h2,
.mission-card h2 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0.01em;
  margin: 0.4rem 0 0;
}

.section-head h2 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
}

.section-lead {
  margin: 1rem 0 0;
  color: var(--piedra);
  max-width: 34rem;
}

.eyebrow {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--oro-eunoia);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Pillars */
.pillars {
  background:
    linear-gradient(180deg, rgba(185, 198, 178, 0.18), transparent 40%),
    var(--alabastro);
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.pillar {
  padding: 2rem 1.5rem 2.2rem;
  border-top: 1px solid rgba(47, 79, 62, 0.25);
}

.pillar-index {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--oro-eunoia);
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
}

.pillar h3 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  color: var(--verde-nous);
}

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

/* About */
.about {
  background: var(--cream-soft);
}

.about-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.about-panel {
  aspect-ratio: 1;
  display: grid;
  place-content: center;
  gap: 1.5rem;
  background:
    radial-gradient(circle at 50% 45%, rgba(195, 161, 99, 0.18), transparent 55%),
    var(--verde-nous);
  color: var(--alabastro);
  text-align: center;
  padding: 2rem;
}

.about-panel img {
  margin: 0 auto;
  width: min(42%, 160px);
  filter: brightness(1.05);
}

.about-etymology {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  color: var(--oro-eunoia);
}

.about-copy h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--verde-nous);
  margin-bottom: 1.25rem;
}

.about-copy p {
  color: rgba(23, 22, 15, 0.78);
}

.quote {
  margin: 2rem 0 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid rgba(195, 161, 99, 0.45);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-style: italic;
  line-height: 1.4;
  color: var(--verde-nous);
}

/* Mission */
.mission {
  background: var(--verde-nous);
  color: var(--alabastro);
}

.mission .eyebrow {
  color: var(--oro-eunoia);
}

.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.mission-card h2 {
  font-size: clamp(1.55rem, 2.8vw, 2.1rem);
  font-weight: 400;
  max-width: 22ch;
}

.values {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  border-top: 1px solid rgba(245, 242, 234, 0.18);
  padding-top: 2rem;
}

.values li {
  display: grid;
  gap: 0.55rem;
}

.values strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--oro-eunoia);
}

.values span {
  font-size: 0.92rem;
  color: rgba(245, 242, 234, 0.78);
  font-weight: 300;
}

/* Areas */
.area-list {
  display: grid;
  gap: 0;
}

.area {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: 2rem 0;
  border-top: 1px solid rgba(23, 22, 15, 0.1);
}

.area:last-child {
  border-bottom: 1px solid rgba(23, 22, 15, 0.1);
}

.area-num {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--oro-eunoia);
  min-width: 2rem;
}

.area h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--verde-nous);
}

.area p {
  margin: 0;
  color: var(--piedra);
  max-width: 42rem;
}

.area-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--verde-nous);
  border-bottom: 1px solid var(--oro-eunoia);
  padding-bottom: 0.15rem;
  white-space: nowrap;
  transition: color 0.25s;
}

.area-link:hover {
  color: var(--oro-eunoia);
}

/* Process */
.process {
  background:
    linear-gradient(135deg, rgba(47, 79, 62, 0.06), transparent 40%),
    var(--alabastro);
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 2rem 1.25rem 1.75rem;
  background: #fff;
  border: 1px solid rgba(47, 79, 62, 0.12);
  counter-increment: step;
}

.step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 1.5rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: var(--oro-eunoia);
}

.step-verb {
  display: block;
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 500;
  color: var(--verde-nous);
  margin-bottom: 0.55rem;
}

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

/* Contact */
.contact {
  background:
    radial-gradient(ellipse at 10% 20%, rgba(195, 161, 99, 0.12), transparent 45%),
    var(--cream-soft);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.contact-copy h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  color: var(--verde-nous);
  margin-bottom: 1rem;
}

.contact-copy p {
  color: rgba(23, 22, 15, 0.75);
}

.contact-mail {
  margin-top: 1.75rem;
}

.contact-mail a {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--verde-nous);
  border-bottom: 1px solid var(--oro-eunoia);
}

.contact-form {
  display: grid;
  gap: 1rem;
  padding: 1.75rem;
  background: #fff;
  border: 1px solid rgba(47, 79, 62, 0.12);
}

.contact-form label {
  display: grid;
  gap: 0.4rem;
}

.contact-form label span {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--piedra);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(23, 22, 15, 0.15);
  background: var(--alabastro);
  padding: 0.85rem 0.95rem;
  color: var(--tinta);
  outline: none;
  transition: border-color 0.25s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--verde-nous);
}

.form-status {
  margin: 0;
  min-height: 1.4em;
  font-size: 0.92rem;
  color: var(--verde-nous);
}

/* Footer */
.site-footer {
  background: var(--tinta);
  color: var(--alabastro);
  padding: 3.5rem 1.5rem;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  text-align: center;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.footer-quote {
  margin: 0 auto 1.5rem;
  max-width: 28rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.4;
  color: var(--salvia);
}

.footer-meta {
  margin: 0;
  font-size: 0.85rem;
  color: var(--piedra);
}

/* ——— Responsive ——— */
@media (min-width: 901px) {
  .hero-layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(1.5rem, 4vw, 3.5rem);
    align-items: center;
    justify-items: stretch;
    padding-inline: clamp(2rem, 5vw, 3.5rem);
  }

  .hero-content {
    grid-area: auto;
    margin-inline: 0;
    max-width: 32rem;
    text-align: left;
    justify-self: start;
    align-self: center;
  }

  .hero-lead {
    margin-inline: 0;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .hero-mark {
    grid-area: auto;
    justify-self: end;
    align-self: center;
    width: min(100%, 480px);
    max-width: 480px;
    transform: none;
  }

  .hero-confluence {
    opacity: 0.58;
  }

  .hero-orb--a {
    right: 12%;
    top: 18%;
  }
}

@media (max-width: 900px) {
  .pillar-grid,
  .mission-grid,
  .steps,
  .values,
  .about-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .area {
    grid-template-columns: auto 1fr;
  }

  .area-link {
    grid-column: 2;
  }

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

@media (max-width: 720px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem 1.5rem 1.5rem;
    background: rgba(245, 242, 234, 0.97);
    color: var(--tinta);
    box-shadow: 0 12px 30px rgba(23, 22, 15, 0.08);
  }

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

  .site-nav a {
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(23, 22, 15, 0.08);
  }

  .nav-cta {
    margin-top: 0.5rem;
    text-align: center;
  }

  .site-header.is-open {
    background: rgba(245, 242, 234, 0.97);
    color: var(--tinta);
  }

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

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal,
  .hero-kicker,
  .hero-brand,
  .hero-headline,
  .hero-lead,
  .hero-actions,
  .hero-scroll,
  .hero-confluence .arc,
  .hero-confluence .almond,
  .hero-confluence .point {
    opacity: 1 !important;
    transform: none !important;
    stroke-dashoffset: 0 !important;
  }
}
