/* =========================================================
   MAKNAS — reverse-scroll (bottom → top) experience
   ========================================================= */

@font-face {
  font-family: "Ledger";
  src: url("Ledger-Regular.ttf") format("truetype");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --dark:    #133019;   /* deep forest green — the one green */
  --dark-2:  #0f2714;
  --cream:   #f3eee1;   /* warm paper */
  --cream-2: #ece5d3;
  --emerald: #133019;   /* accent green, unified with --dark */
  --vine:    #2f5c3b;   /* plant stroke, same dark-green family */
  --leaf:    #294f34;

  --serif-display: "Playfair Display", Georgia, serif;
  --serif-head: "Ledger", "Cormorant Garamond", Georgia, serif;
  --serif-body: "EB Garamond", Georgia, serif;

  --ease: cubic-bezier(.2, .8, .2, 1);
  --maxw: 1180px;
}

* { box-sizing: border-box; }

/* smoothing is handled in JS (inverted scroll) — keep native instant */
html { scroll-behavior: auto; }

body {
  margin: 0;
  position: relative;
  background: var(--cream);
  color: var(--dark);
  font-family: var(--serif-body);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;   /* not hidden: that would break position:sticky below */
}

/* ---------- layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(22px, 5vw, 64px); }
.narrow { max-width: 720px; }
.center { text-align: center; }

/* Sections keep their own stacking level free so the 3D vine can
   slide between the background and the text. See .plant3d below. */
section { position: relative; }

/* Content rides above the "behind" canvas */
section > .wrap,
section > .about__rail,
section > .legal-links,
.marquee__track { position: relative; z-index: 3; }
section > .pulsedot,
section > .scrollhint { z-index: 3; }

.dark  { background: var(--dark);  color: var(--cream); }
.cream { background: var(--cream); color: var(--dark); }

/* =========================================================
   Intro loader
   ========================================================= */
.loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .8s var(--ease), visibility .8s var(--ease);
}
.loader.done { opacity: 0; visibility: hidden; }
.loader__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
/* el brote se dibuja en canvas: mismos trazos que la planta de dentro */
.loader__sprout {
  display: block;
  width: 150px;
  height: 215px;
}
@media (max-width: 520px) {
  .loader__sprout { width: 122px; height: 176px; }
}

.loader__word {
  display: block;
  width: 130px;
  height: auto;
  filter: brightness(0) invert(1);
  opacity: 0;
  animation: loader-fade .9s var(--ease) .45s forwards;
}
.loader__bar {
  width: 150px;
  height: 2px;
  background: rgba(243, 238, 225, .18);
  border-radius: 2px;
  overflow: hidden;
}
.loader__bar span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--cream);
  transform: translateX(-100%);
}
/* sin el canvas (JS caído) la barra se llena sola */
.loader--auto .loader__bar span { animation: loader-fill 1.5s var(--ease) forwards; }
@keyframes loader-fill { to { transform: translateX(0); } }
@keyframes loader-fade { to { opacity: 1; } }

/* =========================================================
   The vine in 3D (two depth layers around the text plane)
   ========================================================= */
.plant3d {
  position: fixed;
  inset: 0;
  pointer-events: none;
}
.plant3d__c {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

/* the SVG vine stays in the markup as the no-WebGL fallback */
.has-plant3d .plant { display: none; }

/* =========================================================
   The growing plant (overlays the page)
   ========================================================= */
.plant {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}
.plant svg { width: 100%; height: 100%; display: block; }

.vine {
  fill: none;
  stroke: var(--vine);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;          /* hidden until scrolled */
  opacity: .82;
}

.leaf .leafShape,
.leaf .budLeaf {
  fill: url(#leafGrad);
  opacity: .9;
  transform: scale(0);
  transform-box: fill-box;
  transform-origin: 50% 100%;
  transition: transform .7s var(--ease), opacity .7s var(--ease);
}
.leaf .budShape {
  fill: var(--dark);
  opacity: .85;
  transform: scale(0);
  transform-box: fill-box;
  transform-origin: 50% 50%;
  transition: transform .7s var(--ease), opacity .7s var(--ease);
}

.leaf .leafNode {
  fill: var(--dark);
  opacity: 0;
  transition: opacity .5s var(--ease);
}
.leaf.grown .leafNode { opacity: .55; }

.leaf .leafVein {
  fill: none;
  stroke: var(--cream);
  stroke-width: .55;
  stroke-linecap: round;
  opacity: 0;
  transform: scale(0);
  transform-box: fill-box;
  transform-origin: 50% 100%;
  transition: transform .7s var(--ease), opacity .5s var(--ease) .15s;
}
.leaf.grown .leafVein { opacity: .28; transform: scale(1); }

.leaf .tendrilShape {
  fill: none;
  stroke: var(--vine);
  stroke-width: 1;
  stroke-linecap: round;
  opacity: 0;
  transform: scale(0);
  transform-box: fill-box;
  transform-origin: 0% 0%;
  transition: transform .9s var(--ease), opacity .6s var(--ease);
}
.leaf.grown .tendrilShape { opacity: .6; transform: scale(1); }
.leaf.grown .leafShape,
.leaf.grown .budShape,
.leaf.grown .budLeaf { transform: scale(1); }

.leaf .petal {
  fill: var(--cream);
  opacity: 0;
  transform: scale(0);
  transform-box: fill-box;
  transform-origin: 50% 100%;
  transition: transform .8s var(--ease), opacity .6s var(--ease);
}
.leaf.grown .petal { opacity: .95; transform: scale(1); }
.bloom > g:nth-child(2) .petal { transition-delay: .06s; }
.bloom > g:nth-child(3) .petal { transition-delay: .12s; }
.bloom > g:nth-child(4) .petal { transition-delay: .18s; }
.bloom > g:nth-child(5) .petal { transition-delay: .24s; }
.bloom > g:nth-child(6) .petal { transition-delay: .3s; }

.leaf .bloomCenter {
  fill: var(--vine);
  opacity: 0;
  transform: scale(0);
  transform-box: fill-box;
  transform-origin: 50% 50%;
  transition: transform .5s var(--ease) .32s, opacity .4s var(--ease) .32s;
}
.leaf.grown .bloomCenter { opacity: .9; transform: scale(1); }

/* =========================================================
   Fixed brand mark
   ========================================================= */
.brandmark {
  position: fixed;
  top: 26px; left: 32px;
  z-index: 30;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  mix-blend-mode: difference;
}
.brandmark.show { opacity: .9; transform: translateY(0); }
.brandmark__logo {
  display: block;
  height: 30px;
  width: auto;
  filter: brightness(0) invert(1);
}

/* =========================================================
   CONTACT (top / closing frame)
   ========================================================= */
.contact {
  padding: clamp(90px, 14vh, 170px) 0 clamp(70px, 10vh, 120px);
}
.pulsedot {
  position: absolute;
  top: 34px; right: 40px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--cream);
  box-shadow: 0 0 0 0 rgba(243,238,225,.5);
  animation: pulse 2.6s var(--ease) infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(243,238,225,.45); }
  70%  { box-shadow: 0 0 0 14px rgba(243,238,225,0); }
  100% { box-shadow: 0 0 0 0 rgba(243,238,225,0); }
}
.contact__intro { margin-bottom: clamp(40px, 6vw, 64px); }
.contact-email {
  display: inline-block;
  margin-top: clamp(18px, 2.6vw, 28px);
  font-family: var(--serif-head);
  font-size: clamp(16px, 1.8vw, 20px);
  letter-spacing: .02em;
  color: var(--cream);
  text-decoration: none;
  border-bottom: 1px solid rgba(243,238,225,.4);
  padding-bottom: 2px;
  transition: border-color .3s var(--ease), opacity .3s var(--ease);
}
.contact-email:hover,
.contact-email:focus-visible { border-color: var(--cream); opacity: .85; }

.contact-address {
  margin: clamp(20px, 3vw, 30px) auto 0;
  max-width: 420px;
  font-style: normal;
  font-size: clamp(13px, 1.3vw, 15px);
  line-height: 1.65;
  color: var(--cream);
  opacity: .62;
}

/* =========================================================
   Typographic primitives
   ========================================================= */
.eyebrow {
  font-family: var(--serif-head);
  font-style: italic;
  color: var(--emerald);
  font-size: clamp(18px, 2.2vw, 24px);
  margin: 0 0 clamp(40px, 7vw, 90px);
}
.eyebrow.light { color: var(--cream); opacity: .85; }
.display {
  font-family: var(--serif-head);
  font-weight: 600;
  color: var(--dark);
  line-height: 1.04;
  font-size: clamp(34px, 6.4vw, 74px);
  margin: 0 0 clamp(26px, 4vw, 48px);
  letter-spacing: -.01em;
}
.display.light { color: var(--cream); }
.lede { max-width: 520px; margin: 0 auto; }
.lede p {
  color: var(--dark);
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.6;
  margin: 0 0 1.15em;
}
.lede p.strong { font-weight: 500; }

/* =========================================================
   Who we are — read one paragraph at a time

   Going up the page, a section arrives bottom first, so its
   paragraphs would be met in reverse order. The section pins
   instead and steps through them: each one enters from above
   and leaves downward, the way the page itself moves.

   Everything below the base styles only applies once the
   script has staged the section, so with no JS (or reduced
   motion) it stays an ordinary stack of paragraphs.
   ========================================================= */
.about__deck { max-width: 640px; margin: 0 auto; text-align: left; }
.about__card {
  color: var(--dark);
  font-family: var(--serif-body);
  font-weight: 400;
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.75;
  margin: 0 0 1.4em;
}
.about__card:last-child { margin-bottom: 0; }

.about.is-staged { padding: 0; }
.about.is-staged .about__rail {
  height: calc(100vh + var(--beats, 8) * var(--beat, 48vh));
}
.about.is-staged .about__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
}
.about.is-staged .about__inner {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(40px, 6vh, 80px);
}
/* alone on a screen, the paragraph is the moment — so it gets the
   size, and the heading steps back to being a label */
.about.is-staged .section-title {
  flex: none;
  font-size: clamp(26px, 3.6vw, 44px);
  margin-bottom: clamp(34px, 5.5vh, 62px);
}
.about.is-staged .about__card {
  font-size: clamp(17px, 2.1vw, 24px);
  line-height: 1.72;
}

/* Every card sits in the same grid cell, so they stack without being
   taken out of flow — which means the deck is exactly as tall as the
   longest paragraph and the whole group stays composed. */
.about.is-staged .about__deck {
  display: grid;
  flex: none;
  width: 100%;
  max-width: 720px;
}
.about.is-staged .about__card {
  grid-area: 1 / 1;
  align-self: center;
  margin: 0;
  opacity: 0;
  /* waiting its turn, just above */
  transform: translateY(-20px);
  /* the one leaving goes quickly; the one arriving waits its turn, so
     there is never a moment with two paragraphs both half legible */
  transition: opacity .28s var(--ease), transform .5s var(--ease);
}
/* already read: gone downward, the way the page goes */
.about.is-staged .about__card.past { transform: translateY(20px); }
.about.is-staged .about__card.on {
  opacity: 1;
  transform: none;
  transition: opacity .5s var(--ease) .2s, transform .6s var(--ease) .1s;
}

.about__ticks {
  flex: none;
  display: none;
  gap: 7px;
  justify-content: center;
  margin-top: clamp(26px, 4vh, 44px);
}
.about.is-staged .about__ticks { display: flex; }
.about__ticks i {
  display: block;
  width: 15px;
  height: 1px;
  background: rgba(19, 48, 25, .22);
  transition: width .45s var(--ease), background-color .45s var(--ease);
}
.about__ticks i.on { width: 28px; background: var(--dark); }

@media (max-height: 640px) {
  .about.is-staged .about__card { font-size: 15px; line-height: 1.6; }
}

.section-title {
  font-family: var(--serif-head);
  font-weight: 600;
  color: var(--dark);
  font-size: clamp(30px, 5vw, 54px);
  margin: 0 0 .35em;
  letter-spacing: -.01em;
}
.section-title.light { color: var(--cream); }
.section-intro {
  font-family: var(--serif-head);
  color: var(--dark);
  font-size: clamp(16px, 1.8vw, 21px);
  max-width: 520px;
  margin: 0 auto clamp(30px, 5vw, 60px);
}
.section-intro.light { color: var(--cream); opacity: .82; }

/* =========================================================
   Section rhythm
   ========================================================= */
.trusted, .about { padding: clamp(90px, 15vh, 190px) 0; }
.intro { padding: clamp(90px, 14vh, 170px) 0 clamp(120px, 16vh, 220px); min-height: 100vh; display:flex; flex-direction:column; justify-content:center; }
.stats { padding: clamp(70px, 12vh, 150px) 0; }
.experience { padding: clamp(90px, 14vh, 180px) 0; }

/* =========================================================
   Marquee
   ========================================================= */
.marquee {
  overflow: hidden;
  padding: 26px 0;
  border-top: 1px solid rgba(19,48,25,.14);
  border-bottom: 1px solid rgba(19,48,25,.14);
  white-space: nowrap;
}
.marquee__track {
  display: inline-flex;
  align-items: center;
  gap: 26px;
  animation: marquee 26s linear infinite;
}
.marquee__track span {
  font-family: var(--serif-head);
  font-weight: 600;
  font-size: clamp(20px, 3vw, 34px);
  color: var(--emerald);
  letter-spacing: .02em;
}
.marquee__track i { color: var(--emerald); font-style: normal; opacity: .6; }
@keyframes marquee { to { transform: translateX(-33.333%); } }

/* =========================================================
   Stats
   ========================================================= */
.stats__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(30px, 5vw, 70px);
  align-items: start;
}
.stat { text-align: center; }
.stat__num {
  font-family: var(--serif-head);
  font-weight: 600;
  color: var(--cream);
  font-size: clamp(56px, 11vw, 130px);
  line-height: .9;
  letter-spacing: -.02em;
}
.stat__label {
  font-family: var(--serif-head);
  font-size: clamp(16px, 1.7vw, 20px);
  margin-top: .5em;
  color: var(--cream);
}
.stat__sub {
  font-size: clamp(13px, 1.3vw, 15px);
  opacity: .85;
  margin: .4em auto 0;
  max-width: 220px;
}

/* =========================================================
   Experience
   ========================================================= */
.exp__head { margin-bottom: clamp(50px, 7vw, 96px); }
.exp__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.exp__grid--three {
  grid-template-columns: repeat(3, 1fr);
  column-gap: clamp(28px, 3.4vw, 52px);
  row-gap: clamp(28px, 3.4vw, 40px);
}
.exp__item {
  padding-top: clamp(24px, 2.6vw, 32px);
  border-top: 1px solid rgba(243,238,225,.2);
}
.exp__num {
  display: block;
  font-family: var(--serif-head);
  font-style: italic;
  color: var(--cream);
  opacity: .45;
  font-size: 14px;
  letter-spacing: .04em;
  margin-bottom: clamp(22px, 3vw, 40px);
}
.exp__item h3 {
  font-family: var(--serif-head);
  font-weight: 600;
  font-size: clamp(19px, 1.9vw, 23px);
  margin: 0 0 .55em;
  color: var(--cream);
}
.exp__item p {
  font-size: clamp(13.5px, 1.3vw, 15px);
  margin: 0;
  color: rgba(243,238,225,.72);
  line-height: 1.6;
}

/* =========================================================
   About — up arrow
   ========================================================= */
.about .uparrow { margin-top: clamp(40px, 6vw, 68px); }
/* the rail already owns the section's height, so the tail needs its own room */
.about.is-staged .uparrow { margin: 0; }
.about.is-staged > .wrap { padding-top: clamp(70px, 11vh, 130px); padding-bottom: clamp(90px, 15vh, 190px); }
.uparrow {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: clamp(34px, 5vw, 56px);
  text-decoration: none;
  color: var(--emerald);
  font-family: var(--serif-head);
  font-style: italic;
  font-size: clamp(15px, 1.6vw, 19px);
}
.uparrow__icon {
  font-style: normal;
  font-size: 26px;
  animation: floatUp 2.2s var(--ease) infinite;
}
@keyframes floatUp {
  0%,100% { transform: translateY(0); opacity: .6; }
  50%     { transform: translateY(-8px); opacity: 1; }
}

/* =========================================================
   Intro / landing wordmark
   ========================================================= */
.wordmark {
  margin: 0 0 .25em;
  line-height: .9;
}
.wordmark__logo {
  display: block;
  width: clamp(280px, 46vw, 620px);
  height: auto;
  margin: 0 auto;
}
.wordmark__tag {
  font-family: var(--serif-head);
  font-weight: 600;
  font-size: clamp(18px, 2.2vw, 26px);
  color: var(--dark);
  margin: 0 0 1.2em;
}
.wordmark__lede {
  max-width: 620px;
  margin: 0 auto;
  color: rgba(19,48,25,.82);
  font-size: clamp(15px, 1.6vw, 18px);
}

.scrollhint {
  position: absolute;
  left: 50%;
  bottom: clamp(28px, 5vh, 54px);
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--emerald);
  transition: opacity .5s var(--ease);
}
.scrollhint__icon { font-size: 22px; animation: floatDown 2s var(--ease) infinite; }
@keyframes floatDown {
  0%,100% { transform: translateY(0); opacity: .6; }
  50%     { transform: translateY(8px); opacity: 1; }
}
.scrollhint__label {
  font-family: var(--serif-head);
  font-style: italic;
  font-size: 14px;
  letter-spacing: .04em;
}
.scrollhint.hide { opacity: 0; }

/* =========================================================
   Reveal animation
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }

/* word-by-word reveal for key headings */
.reveal.split-reveal { opacity: 1; transform: none; transition: none; }
.split-reveal .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: .32em;
  margin-bottom: -.32em;
}
.split-reveal .word-inner {
  display: inline-block;
  transform: translateY(115%);
  transition: transform .85s var(--ease);
}
.split-reveal.in .word-inner { transform: translateY(0); }

/* stagger children within a group */
.lede .reveal:nth-child(2){ transition-delay:.08s; }
.lede .reveal:nth-child(3){ transition-delay:.16s; }
.stats__grid .stat:nth-child(2){ transition-delay:.1s; }
.stats__grid .stat:nth-child(3){ transition-delay:.2s; }
.exp__grid .exp__item:nth-child(2){ transition-delay:.06s; }
.exp__grid .exp__item:nth-child(3){ transition-delay:.12s; }

/* =========================================================
   Fixed unfolding menu
   ========================================================= */
.sitenav {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 900;
  display: flex;
  align-items: center;
  background: var(--dark);
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .24);
}
.sitenav__panel {
  display: flex;
  align-items: center;
  gap: 26px;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  padding: 0;
  transition: max-width .6s var(--ease), opacity .35s var(--ease), padding .6s var(--ease);
}
.sitenav.open .sitenav__panel {
  max-width: 640px;
  opacity: 1;
  padding: 0 6px 0 28px;
}
.sitenav__link {
  font-family: var(--serif-head);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: .01em;
  color: var(--cream);
  text-decoration: none;
  opacity: .85;
  transition: opacity .25s var(--ease);
}
.sitenav__link:hover,
.sitenav__link:focus-visible { opacity: 1; }
.sitenav__toggle {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
}
.sitenav__dot {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: var(--cream);
  transition: transform .45s var(--ease);
}
.sitenav.open .sitenav__dot { transform: rotate(135deg) scale(.85); }
.sitenav__sr {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =========================================================
   Contact form
   ========================================================= */
.contact-form {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.cf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.cf-field { display: flex; flex-direction: column; gap: 8px; }
.cf-field--full { grid-column: 1 / -1; }
.cf-field label {
  font-family: var(--serif-head);
  font-size: 14px;
  letter-spacing: .03em;
  color: var(--cream);
  opacity: .8;
}
.cf-field input,
.cf-field textarea,
.cf-captcha input[type="text"] {
  font-family: var(--serif-body);
  font-size: 16px;
  color: var(--cream);
  background: rgba(243,238,225,.06);
  border: 1px solid rgba(243,238,225,.24);
  border-radius: 3px;
  padding: 12px 14px;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.cf-field textarea { resize: vertical; min-height: 110px; font-family: var(--serif-body); }
.cf-field input:focus,
.cf-field textarea:focus,
.cf-captcha input[type="text"]:focus {
  outline: none;
  border-color: rgba(243,238,225,.6);
  background: rgba(243,238,225,.1);
}
.cf-field input::placeholder,
.cf-field textarea::placeholder { color: rgba(243,238,225,.4); }

.cf-checks { display: flex; flex-direction: column; gap: 12px; margin-top: 6px; }
.cf-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(243,238,225,.85);
  cursor: pointer;
}
.cf-check input[type="checkbox"] {
  margin-top: 3px;
  width: 16px; height: 16px;
  flex: none;
  accent-color: var(--cream);
  cursor: pointer;
}
.cf-link, .legal-link {
  all: unset;
  cursor: pointer;
  color: var(--cream);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-family: inherit;
  font-size: inherit;
}
.cf-link:hover, .legal-link:hover { opacity: .8; }

.cf-captcha {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 260px;
}
.cf-captcha label {
  font-family: var(--serif-head);
  font-size: 14px;
  color: var(--cream);
  opacity: .8;
}
.cf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.cf-submit {
  all: unset;
  align-self: flex-start;
  margin-top: 8px;
  padding: 14px 34px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--dark);
  font-family: var(--serif-head);
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.cf-submit:hover { transform: translateY(-2px); opacity: .92; }
.cf-submit:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.cf-email-note {
  margin: 0;
  font-size: 14px;
  color: rgba(243,238,225,.8);
}

.cf-status {
  min-height: 1.2em;
  font-size: 14px;
  color: var(--cream);
}
.cf-status.error { color: #e2a2a2; }
.cf-status.ok { color: #b9dcc0; }

.legal-links {
  margin-top: clamp(56px, 8vw, 96px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 13px;
  color: rgba(243,238,225,.6);
}
.legal-links span { opacity: .5; }

/* =========================================================
   Cookie consent banner
   ========================================================= */
.cookie-banner {
  position: fixed;
  left: clamp(16px, 2.4vw, 32px);
  bottom: clamp(16px, 2.4vw, 32px);
  z-index: 950;
  width: min(340px, calc(100vw - 32px));
  padding: 20px 22px 18px;
  background: var(--dark);
  color: var(--cream);
  border: 1px solid rgba(243, 238, 225, .14);
  border-radius: 4px;
  box-shadow: 0 18px 50px -18px rgba(8, 20, 11, .55);
  opacity: 1;
  transform: translateY(0);
  transition: transform .6s var(--ease), opacity .6s var(--ease), visibility 0s linear 0s;
}
.cookie-banner[hidden] {
  display: block;
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
  transform: translateY(14px);
  transition: transform .5s var(--ease), opacity .5s var(--ease), visibility 0s linear .5s;
}
.cookie-banner__title {
  margin: 0 0 6px;
  font-family: var(--serif-body);
  font-style: italic;
  font-size: 15px;
  letter-spacing: .01em;
  color: rgba(243, 238, 225, .62);
}
.cookie-banner__text {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.5;
}
.cookie-banner__text .legal-link {
  color: var(--cream);
  font-size: inherit;
  white-space: nowrap;
}
.cookie-banner__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.cookie-btn {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  text-align: center;
  font-family: var(--serif-body);
  font-size: 14px;
  letter-spacing: .02em;
  line-height: 1;
  padding: 10px 14px;
  border-radius: 2px;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.cookie-btn:focus-visible { outline: 1px solid var(--cream); outline-offset: 3px; }
.cookie-btn--solid { background: var(--cream); color: var(--dark); border: 1px solid var(--cream); }
.cookie-btn--solid:hover { background: transparent; color: var(--cream); }
.cookie-btn--ghost { background: transparent; color: var(--cream); border: 1px solid rgba(243, 238, 225, .3); }
.cookie-btn--ghost:hover { border-color: var(--cream); }

@media (max-width: 520px) {
  /* a todo lo ancho y por encima del botón del menú, que vive abajo a la derecha */
  .cookie-banner {
    left: 16px;
    bottom: 78px;
    width: calc(100vw - 32px);
    padding: 16px 16px 14px;
  }
  .cookie-banner__title { display: none; }
  .cookie-banner__text { font-size: 14px; margin-bottom: 12px; }
}

/* =========================================================
   Policy modal
   ========================================================= */
.policy-modal {
  position: fixed;
  inset: 0;
  z-index: 980;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s var(--ease), visibility .35s var(--ease);
}
.policy-modal.open { opacity: 1; visibility: visible; }
.policy-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15,39,20,.55);
  backdrop-filter: blur(2px);
}
.policy-modal__panel {
  position: relative;
  max-width: 560px;
  width: 100%;
  max-height: 78vh;
  overflow-y: auto;
  background: var(--cream);
  color: var(--dark);
  border-radius: 6px;
  padding: clamp(28px, 4vw, 44px);
  transform: translateY(12px);
  transition: transform .35s var(--ease);
}
.policy-modal.open .policy-modal__panel { transform: translateY(0); }
.policy-modal__close {
  all: unset;
  position: absolute;
  top: 16px; right: 18px;
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  line-height: 1;
  color: var(--dark);
  cursor: pointer;
  opacity: .6;
}
.policy-modal__close:hover { opacity: 1; }
.policy-modal__title {
  font-family: var(--serif-head);
  font-weight: 600;
  font-size: clamp(22px, 3vw, 28px);
  margin: 0 0 .6em;
}
.policy-modal__body { font-size: 15px; line-height: 1.65; }
.policy-modal__body p { margin: 0 0 1em; }

@media (max-width: 640px) {
  .cf-row { grid-template-columns: 1fr; gap: 16px; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 820px) {
  .stats__grid { grid-template-columns: 1fr; gap: 46px; }
  .exp__grid { grid-template-columns: 1fr 1fr; row-gap: clamp(28px, 5vw, 40px); }
  /* three items in two columns leaves an orphan: go straight to one */
  .exp__grid--three { grid-template-columns: 1fr; row-gap: clamp(28px, 5vw, 40px); }
  .brandmark { left: 20px; top: 20px; }
}
@media (max-width: 640px) {
  .sitenav { right: 20px; bottom: 20px; flex-direction: column-reverse; align-items: flex-end; background: transparent; box-shadow: none; }
  .sitenav__panel {
    flex-direction: column;
    align-items: flex-end;
    gap: 16px;
    max-width: none;
    max-height: 0;
    margin-bottom: 0;
    background: var(--dark);
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .24);
    transition: max-height .5s var(--ease), opacity .35s var(--ease), padding .5s var(--ease), margin-bottom .5s var(--ease);
  }
  .sitenav.open .sitenav__panel {
    max-height: 360px;
    padding: 20px 24px;
    margin-bottom: 12px;
  }
  .sitenav__toggle {
    background: var(--dark);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .24);
  }
}
@media (max-width: 520px) {
  body { font-size: 17px; }
  .exp__grid { grid-template-columns: 1fr; }
  .marquee__track { gap: 18px; }
}

/* =========================================================
   Reduced motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee__track, .pulsedot, .uparrow__icon, .scrollhint__icon { animation: none; }
  .vine { stroke-dashoffset: 0 !important; }
  .leaf .leafShape, .leaf .budShape, .leaf .budLeaf, .leaf .leafVein, .leaf .tendrilShape, .leaf .petal, .leaf .bloomCenter { transform: scale(1) !important; opacity: 1 !important; }
  .split-reveal .word-inner { transform: none !important; transition: none !important; }
}

/* Original brand flower, attached to the projected tip of the 3D stem. */
.plant3d__flower {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 5;
  pointer-events: none;
  background: #e9e1cd;
  -webkit-mask: url("assets/flower.svg") center / contain no-repeat;
  mask: url("assets/flower.svg") center / contain no-repeat;
  transform-origin: 50% 100%;
  scale: 0;
  opacity: 0;
  transition: scale .85s var(--ease), opacity .45s var(--ease);
}
.brand-flower {
  opacity: 0;
  transform: scale(.15);
  transform-origin: 0 0;
  transition: transform .8s var(--ease), opacity .5s var(--ease);
}
.grown .brand-flower { opacity: .85; transform: scale(1); }
@media (prefers-reduced-motion: reduce) {
  .brand-flower, .plant3d__flower { transition: none; }
}

.contact__flower-space { height: clamp(72px, 12vh, 100px); margin: 18px auto 0; }
