/* ============================================================
   Silvana Rigobon — site styles
   Design tokens and components recreated from the design handoff.
   ============================================================ */

:root {
  /* Colors */
  --paper: #F6F1EA;
  --paper-alt: #FBF8F3;
  --paper-warm: #EFE7DB;
  --paper-warm-2: #F8F3EC;
  --ink: #2B2521;
  --ink-soft: #5C5249;
  --ink-muted: #6F6359;
  --ink-faint: #8A7C6C;
  --ink-faint-2: #9A8B79;
  --accent: #A52A2A;
  --accent-dark: #7E2020;
  --accent-light: #D98C7A;
  --accent-light-2: #E6B6A6;
  --dark-panel: #221E1A;
  --dark-image: #1A1712;
  --on-dark: #F1E9DD;
  --on-dark-2: #D8CCBC;
  --on-dark-3: #C4B6A4;

  /* Hairlines */
  --hair: rgba(43, 37, 33, 0.10);
  --hair-09: rgba(43, 37, 33, 0.09);
  --hair-08: rgba(43, 37, 33, 0.08);
  --hair-06: rgba(43, 37, 33, 0.06);
  --accent-hair: rgba(165, 42, 42, 0.28);

  /* Layout */
  --maxw: 1180px;
  --pad-x: clamp(20px, 5vw, 56px);
  --pad-left: clamp(64px, 12vw, 200px);
  --pad-y: clamp(48px, 7vw, 88px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

::selection { background: var(--accent); color: var(--paper); }

a { color: inherit; }

img { max-width: 100%; }

#sr-root { position: relative; background: var(--paper); min-height: 100vh; }

/* Thread motif */
.sr-thread {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ---------------- Layout helpers ---------------- */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x) 0 var(--pad-left);
}

.section { padding: var(--pad-y) 0; scroll-margin-top: 88px; }

main { position: relative; z-index: 1; }

/* Section label / kicker */
.kicker {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---------------- Header ---------------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .4s ease, backdrop-filter .4s ease, border-color .4s ease;
}
.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo { display: flex; align-items: center; text-decoration: none; }
.logo img {
  height: clamp(46px, 6vw, 58px);
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  transition: filter .4s ease;
}
.nav { display: flex; align-items: center; gap: 26px; }
.nav .nav-cta { display: none; }
.nav-panel-close { display: none; }
.nav-link {
  text-decoration: none;
  color: var(--on-dark);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding-bottom: 2px;
  transition: color .4s ease;
}
.nav-link:hover { color: var(--accent-light-2); }

.header-right { display: flex; align-items: center; gap: 18px; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle-bars { position: relative; width: 22px; height: 15px; }
.nav-toggle-bars span {
  position: absolute; left: 0; top: 50%;
  width: 100%; height: 2px;
  background: var(--on-dark);
  border-radius: 2px;
  transition: background .4s ease, transform .25s ease, opacity .2s ease;
}
.nav-toggle-bars span:nth-child(1) { transform: translateY(-6.5px); }
.nav-toggle-bars span:nth-child(2) { transform: translateY(-50%); }
.nav-toggle-bars span:nth-child(3) { transform: translateY(5.5px); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) { transform: translateY(0) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) { transform: translateY(0) rotate(-45deg); }

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
}
.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px;
  font: inherit;
  font-weight: 600;
  color: rgba(246, 241, 234, 0.55);
  transition: color .4s ease;
}
.lang-btn.active { color: var(--paper); }
.lang-sep { color: rgba(246, 241, 234, 0.4); transition: color .4s ease; }

/* Header opaque (scrolled) state */
.header.scrolled {
  background: rgba(246, 241, 234, 0.82);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--hair);
}
.header.scrolled .logo img { filter: none; }
.header.scrolled .nav-link { color: var(--ink-soft); }
.header.scrolled .nav-link:hover { color: var(--accent); }
.header.scrolled .lang-btn { color: var(--ink-faint-2); }
.header.scrolled .lang-btn.active { color: var(--accent); }
.header.scrolled .lang-sep { color: rgba(43, 37, 33, 0.25); }
.header.scrolled .nav-toggle-bars span { background: var(--ink-soft); }

/* Header forced opaque while the mobile menu is open */
.header.nav-open {
  background: rgba(246, 241, 234, 0.96);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--hair);
}
.header.nav-open .logo img { filter: none; }
.header.nav-open .nav-toggle-bars span { background: var(--ink-soft); }
.header.nav-open .lang-btn { color: var(--ink-faint-2); }
.header.nav-open .lang-btn.active { color: var(--accent); }
.header.nav-open .lang-sep { color: rgba(43, 37, 33, 0.25); }

/* ---------------- Buttons / pills ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--accent);
  color: var(--paper);
  border: none;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background .25s ease;
}
.btn:hover { background: var(--accent-dark); }
.btn-lg { padding: 17px 30px; font-size: 16px; }
.btn-lg .arrow { font-size: 18px; }
.btn-md { padding: 15px 28px; font-size: 15.5px; }
.btn-sm { padding: 11px 20px; font-size: 13.5px; gap: 8px; white-space: nowrap; }
.btn-sm .arrow { font-size: 15px; }
.btn-light { background: var(--on-dark); color: var(--dark-panel); padding: 18px 32px; font-size: 16.5px; }
.btn-light:hover { background: #fff; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

/* ---------------- Hero ---------------- */
.hero { position: relative; }
.hero-media {
  position: relative;
  width: 100%;
  height: min(94vh, 920px);
  min-height: 580px;
  overflow: hidden;
  background: var(--dark-image);
}
.hero-media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 38%;
  transform: none;
}
.hero-grad-bottom {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20,17,13,0.82) 0%, rgba(20,17,13,0.45) 32%, rgba(20,17,13,0.12) 58%, rgba(20,17,13,0.18) 100%);
}
.hero-grad-top {
  position: absolute; top: 0; left: 0; right: 0; height: 190px;
  background: linear-gradient(to bottom, rgba(20,17,13,0.5), rgba(20,17,13,0));
  pointer-events: none;
}
.hero-grad-left {
  position: absolute; inset: 0;
  background: linear-gradient(to left, rgba(20,17,13,0.72) 0%, rgba(20,17,13,0.42) 30%, rgba(20,17,13,0) 60%);
  pointer-events: none;
}
.hero-content { position: absolute; inset: 0; display: flex; align-items: flex-end; }
.hero-inner {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x) clamp(40px, 6vw, 80px) var(--pad-left);
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent-light-2);
  margin-bottom: 22px;
}
.hero h1 {
  margin: 0;
  font-weight: 300;
  font-size: clamp(48px, 8vw, 104px);
  line-height: 0.96;
  letter-spacing: -0.025em;
  color: var(--paper);
  text-shadow: 0 2px 24px rgba(0,0,0,0.35);
}
.hero-pos {
  margin: 24px 0 0;
  font-weight: 400;
  font-size: clamp(21px, 2.6vw, 32px);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--on-dark);
  text-shadow: 0 1px 16px rgba(0,0,0,0.4);
}
.hero-sub {
  margin: 18px 0 0;
  font-size: clamp(17px, 1.7vw, 20px);
  line-height: 1.6;
  max-width: 48ch;
  color: var(--on-dark-2);
  text-shadow: 0 1px 14px rgba(0,0,0,0.45);
}
.hero-cta { margin-top: 32px; }

/* Hero content shifted to the right, right-aligned */
.hero-content .hero-inner {
  text-align: right;
  padding-left: var(--pad-left);
  padding-right: var(--pad-x);
}
.hero-content .hero-sub { margin-left: auto; }

/* ---------------- 02 Heart ---------------- */
.heart { padding: var(--pad-y) 0 0; }
.heart-text { max-width: 960px; }
.heart .kicker { margin-bottom: 36px; }
.heart-l1 {
  margin: 0; font-weight: 300;
  font-size: clamp(28px, 4.2vw, 52px);
  line-height: 1.24; letter-spacing: -0.018em; color: var(--ink);
}
.heart-l2 {
  margin: 30px 0 0; font-weight: 400;
  font-size: clamp(24px, 3.2vw, 38px);
  line-height: 1.3; letter-spacing: -0.012em; color: var(--accent);
}
.heart-l3 {
  margin: 34px 0 0;
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.62; max-width: 62ch; color: var(--ink-muted);
}
.heart-band {
  position: relative;
  width: 100%;
  height: min(72vh, 640px);
  min-height: 420px;
  margin-top: clamp(44px, 6vw, 72px);
  overflow: hidden;
  background: var(--dark-image);
}
.heart-band img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 42%;
}
.heart-band-grad {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20,17,13,0.78) 0%, rgba(20,17,13,0.30) 40%, rgba(20,17,13,0.0) 70%);
}
.heart-band-content { position: absolute; inset: 0; display: flex; align-items: flex-end; }
.heart-l4 {
  margin: 0; font-weight: 300;
  font-size: clamp(22px, 2.9vw, 38px);
  line-height: 1.28; letter-spacing: -0.012em; max-width: 24ch;
  color: var(--on-dark);
  text-shadow: 0 1px 18px rgba(0,0,0,0.45);
}

/* ---------------- 03 About ---------------- */
.about .kicker { margin-bottom: 40px; }
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
}
.about-portrait { position: relative; }
.about-portrait img {
  display: block; width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover; object-position: center 28%;
  border-radius: 8px;
}
.about-ring {
  position: absolute; bottom: -12px; right: -12px;
  width: 64px; height: 64px;
  border: 2px solid var(--accent); border-radius: 50%; opacity: 0.35;
}
.about-lead {
  margin: 0 0 26px; font-weight: 400;
  font-size: clamp(23px, 2.8vw, 32px);
  line-height: 1.3; letter-spacing: -0.01em; color: var(--ink);
}
.about-p { margin: 0 0 18px; font-size: 17.5px; line-height: 1.65; color: var(--ink-soft); }
.about-forest {
  margin: 0 0 28px; padding-left: 20px;
  border-left: 2px solid rgba(165,42,42,0.4);
  font-size: 17.5px; line-height: 1.66; font-style: italic; color: var(--ink-muted);
}
.quals { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 30px; }
.qual {
  display: inline-flex; padding: 7px 14px;
  border: 1px solid var(--accent-hair); border-radius: 999px;
  font-size: 13px; font-weight: 500; color: var(--accent-dark);
  background: rgba(165,42,42,0.04);
}

/* ---------------- 04 Services ---------------- */
.lead-line {
  margin: 0 0 44px; font-weight: 300;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.3; letter-spacing: -0.012em; color: var(--ink);
  white-space: pre-line;
}
.services .kicker { margin-bottom: 14px; }
.services-list {
  display: flex; flex-direction: column; gap: 1px;
  background: var(--hair);
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
}
.service-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: clamp(16px, 3vw, 40px);
  align-items: start;
  padding: clamp(26px, 3.5vw, 40px) 6px;
  background: var(--paper);
}
.service-num { font-weight: 300; font-size: 30px; color: var(--accent); line-height: 1; }
.service-title {
  display: block; font-weight: 600;
  font-size: clamp(20px, 2.3vw, 27px);
  letter-spacing: -0.01em; color: var(--ink); margin-bottom: 10px;
}
.service-body { display: block; font-size: 16.5px; line-height: 1.6; max-width: 64ch; color: var(--ink-muted); }
.services-foot {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 24px; margin-top: 34px;
}
.services-note { margin: 0; font-size: 15px; letter-spacing: 0.01em; color: var(--ink-faint); }

/* ---------------- 05 Projects ---------------- */
.projects .kicker { margin-bottom: 14px; }
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: clamp(20px, 2.5vw, 32px);
}
.project-card {
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
  background: var(--paper-alt);
  border: 1px solid var(--hair-09);
  border-radius: 12px; overflow: hidden;
  transition: border-color .25s ease;
}
.project-card:hover { border-color: rgba(165,42,42,0.4); }
.project-img {
  aspect-ratio: 16 / 10;
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #ECE3D5, #E1D4C1);
  display: flex; align-items: center; justify-content: center;
  color: #A99A86; font-size: 12px; letter-spacing: 0.14em;
  text-transform: uppercase; font-weight: 600;
}
.project-img img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.project-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.project-title { font-weight: 600; font-size: 20px; letter-spacing: -0.01em; margin-bottom: 10px; color: var(--ink); }
.project-desc { font-size: 15.5px; line-height: 1.55; color: var(--ink-muted); flex: 1; }
.project-cta { margin-top: 18px; font-size: 14.5px; }
.project-soon {
  margin-top: 18px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-muted);
  font-style: italic;
}
.project-card--soon { cursor: default; }
.project-card--soon:hover { border-color: var(--hair-09); }

/* ---------------- 06 Events teaser ---------------- */
.events-panel { background: rgb(247, 248, 249); border-radius: 18px; padding: clamp(30px, 4.5vw, 56px); }
.events-head {
  display: flex; flex-wrap: wrap; align-items: flex-end;
  justify-content: space-between; gap: 24px; margin-bottom: 34px;
}
.events-head .kicker { margin-bottom: 16px; }
.events-intro {
  margin: 0; font-weight: 300;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.26; letter-spacing: -0.012em; max-width: 22ch; color: var(--ink);
}
.events-all {
  border-bottom: 1.5px solid rgba(165,42,42,0.35);
  padding-bottom: 3px; white-space: nowrap; font-size: 15.5px;
}
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.events-embed { margin-top: 4px; }
.events-embed iframe { display: block; width: 100%; }

/* ---------------- Event card (shared) ---------------- */
.event-card {
  background: var(--paper-warm-2);
  border: 1px solid var(--hair-08);
  border-radius: 12px;
  padding: 22px;
  display: flex;
  flex-direction: column;
}
.event-card-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 14px;
}
.event-when { font-size: 13px; font-weight: 600; letter-spacing: 0.04em; color: var(--accent); text-transform: uppercase; }
.event-sample { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: #A99A86; }
.event-title { font-weight: 600; font-size: 19px; letter-spacing: -0.01em; color: var(--ink); margin-bottom: 8px; }
.event-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.event-place { font-size: 12.5px; padding: 4px 11px; border-radius: 999px; background: var(--hair-06); color: var(--ink-muted); }
.event-format { font-size: 12.5px; padding: 4px 11px; border-radius: 999px; background: rgba(165,42,42,0.08); color: var(--accent-dark); }
.event-desc { margin: 0 0 16px; font-size: 14.5px; line-height: 1.55; color: var(--ink-muted); flex: 1; }
.event-cta { font-size: 14px; font-weight: 600; color: var(--accent); text-decoration: none; }
.event-cta:hover { color: var(--accent-dark); }

/* ---------------- 07 Testimonials ---------------- */
.testimonials .kicker { margin-bottom: 44px; }
.testimonial {
  margin: 0; display: flex; flex-direction: column;
  padding: 30px 28px;
  background: var(--paper-alt);
  border: 1px solid var(--hair-09);
  border-radius: 14px;
}
.testimonial-quote { font-family: Georgia, serif; font-size: 48px; line-height: 0.7; color: var(--accent); opacity: 0.55; margin-bottom: 14px; }
.testimonial-title { font-weight: 600; font-size: 18px; letter-spacing: -0.01em; color: var(--ink); margin-bottom: 14px; }
.testimonial-body { margin: 0; font-size: 15.5px; line-height: 1.62; color: var(--ink-muted); flex: 1; }
.testimonial-who { margin-top: 22px; font-size: 14px; font-weight: 600; color: var(--ink-faint); }

/* ---------------- 08 Begin / final CTA ---------------- */
.begin { padding: clamp(48px, 7vw, 96px) 0 clamp(40px, 5vw, 64px); }
.begin-box {
  background: var(--dark-panel);
  border-radius: 22px;
  padding: clamp(40px, 6vw, 84px) clamp(28px, 5vw, 72px);
  position: relative; overflow: hidden;
}
.begin-box img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.begin-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(20,28,20,0.88) 0%, rgba(20,28,20,0.62) 48%, rgba(20,28,20,0.40) 100%);
}
.begin-ring-1 { position: absolute; top: -40px; right: -40px; width: 220px; height: 220px; border: 2px solid rgba(165,42,42,0.4); border-radius: 50%; }
.begin-ring-2 { position: absolute; top: 10px; right: 60px; width: 140px; height: 140px; border: 2px solid rgba(165,42,42,0.25); border-radius: 50%; }
.begin-box .kicker { position: relative; color: var(--accent-light); margin-bottom: 28px; }
.begin-q {
  position: relative; margin: 0; font-weight: 300;
  font-size: clamp(26px, 3.8vw, 46px);
  line-height: 1.24; letter-spacing: -0.016em; max-width: 24ch; color: var(--on-dark);
}
.begin-line {
  position: relative; margin: 24px 0 0;
  font-size: clamp(18px, 1.9vw, 22px);
  line-height: 1.5; color: var(--on-dark-3);
}
.begin-cta { position: relative; margin-top: 38px; }

/* ---------------- Footer ---------------- */
.footer {
  position: relative; z-index: 1;
  border-top: 1px solid rgba(43,37,33,0.12);
  margin-top: clamp(24px, 4vw, 48px);
}
.footer-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(44px, 6vw, 72px) var(--pad-x) 36px var(--pad-left);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.newsletter-title { font-weight: 600; font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -0.01em; color: var(--ink); margin-bottom: 10px; }
.newsletter-sub { margin: 0 0 20px; font-size: 16px; line-height: 1.55; color: var(--ink-muted); max-width: 38ch; }
.newsletter-form { display: flex; flex-wrap: wrap; gap: 10px; max-width: 440px; }
.newsletter-input {
  flex: 1; min-width: 200px; padding: 14px 18px;
  border: 1px solid rgba(43,37,33,0.2); border-radius: 999px;
  font: inherit; font-size: 15px; background: var(--paper-alt); color: var(--ink); outline: none;
}
.newsletter-input:focus { border-color: var(--accent); }
.newsletter-submit {
  padding: 14px 26px; background: var(--accent); color: var(--paper);
  border: none; border-radius: 999px; font: inherit; font-size: 15px;
  font-weight: 600; cursor: pointer; white-space: nowrap; transition: background .25s ease;
}
.newsletter-submit:hover { background: var(--accent-dark); }
.newsletter-success {
  display: block; max-width: 440px;
  padding: 14px 20px; background: rgba(165,42,42,0.08); border-radius: 14px;
  color: var(--accent-dark); font-weight: 600; font-size: 15px; line-height: 1.45;
}
.newsletter-error { margin: 10px 0 0; font-size: 14px; line-height: 1.4; color: var(--accent-dark); }
.footer-right { display: flex; flex-direction: column; gap: 22px; }
.footer-block { display: flex; flex-direction: column; gap: 14px; }
.footer-label { font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.socials { display: flex; flex-wrap: wrap; gap: 10px; }
.social {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 1px solid rgba(43,37,33,0.18);
  border-radius: 50%; color: var(--ink-soft); text-decoration: none;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.social:hover { border-color: var(--accent); color: var(--accent); background: rgba(165,42,42,0.05); }
.footer-contact { display: flex; flex-direction: column; gap: 6px; }
.footer-email {
  font-size: 15.5px; color: var(--ink-soft); text-decoration: none;
  border-bottom: 1px solid rgba(43,37,33,0.22); padding-bottom: 2px; align-self: flex-start;
  transition: color .2s ease, border-color .2s ease;
}
.footer-email:hover { color: var(--accent); border-color: var(--accent); }
.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px; margin-top: clamp(40px, 6vw, 64px); padding-top: 24px;
  border-top: 1px solid var(--hair);
}
.footer-copy { font-size: 13.5px; color: var(--ink-faint-2); }
.footer-lang { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; }
.footer-lang .lang-btn { color: var(--ink-faint-2); }
.footer-lang .lang-btn.active { color: var(--accent); }
.footer-lang .lang-sep { color: rgba(43,37,33,0.25); }
.footer-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.footer-legal-link {
  background: none; border: none; padding: 0; margin: 0; cursor: pointer;
  font: inherit; font-size: 13.5px; color: var(--ink-faint-2); text-decoration: none;
}
.footer-legal-link:hover { color: var(--accent); }

/* ---------------- Cookie consent banner ---------------- */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200;
  max-width: 720px; margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 14px 22px; padding: 18px 22px;
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--hair); border-radius: 14px;
  box-shadow: 0 12px 44px rgba(43,37,33,0.20);
  opacity: 0; transform: translateY(12px); transition: opacity .3s ease, transform .3s ease;
}
.cookie-banner.is-visible { opacity: 1; transform: none; }
.cookie-text { margin: 0; flex: 1 1 320px; font-size: 14px; line-height: 1.5; color: var(--ink-soft); }
.cookie-text a { color: var(--accent); text-decoration: underline; }
.cookie-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cookie-reject {
  display: inline-flex; align-items: center; padding: 11px 20px; border-radius: 999px;
  border: 1px solid rgba(43,37,33,0.28); background: transparent; color: var(--ink);
  font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.cookie-reject:hover { border-color: var(--accent); color: var(--accent); }
@media (prefers-reduced-motion: reduce) { .cookie-banner { transition: none; } }

/* ---------------- Legal / policy page ---------------- */
.legal-intro { padding-top: clamp(84px, 12vw, 150px); }
.legal-title { font-weight: 300; font-size: clamp(32px, 5vw, 56px); letter-spacing: -0.02em; color: var(--ink); margin: 0 0 12px; }
.legal-updated { font-size: 14px; color: var(--ink-faint); margin: 0 0 22px; }
.legal-lead { font-size: clamp(16px, 1.8vw, 19px); line-height: 1.6; color: var(--ink-muted); max-width: 70ch; margin: 0; }
.legal-content { max-width: 760px; }
.legal-content h2 { font-weight: 600; font-size: clamp(19px, 2.2vw, 24px); letter-spacing: -0.01em; color: var(--ink); margin: 36px 0 12px; }
.legal-content p { font-size: 16px; line-height: 1.7; color: var(--ink-muted); margin: 0 0 14px; overflow-wrap: anywhere; }

/* ---------------- Events page specific ---------------- */
/* On the events page the header is opaque from the start */
.header.static-opaque {
  background: rgba(246, 241, 234, 0.82);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--hair);
}
.header.static-opaque .logo img { filter: none; }
.header.static-opaque .nav-link { color: var(--ink-soft); }
.header.static-opaque .nav-link:hover { color: var(--accent); }
.header.static-opaque .lang-btn { color: var(--ink-faint-2); }
.header.static-opaque .lang-btn.active { color: var(--accent); }
.header.static-opaque .lang-sep { color: rgba(43, 37, 33, 0.25); }
.header.static-opaque .nav-toggle-bars span { background: var(--ink-soft); }

.events-page-intro { padding: calc(88px + clamp(32px, 6vw, 72px)) 0 clamp(24px, 4vw, 40px); }
.events-page-intro .kicker { margin-bottom: 20px; }
.events-page-title {
  margin: 0 0 18px; font-weight: 300;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.0; letter-spacing: -0.022em; color: var(--ink);
}
.events-page-lead { margin: 0; font-size: clamp(17px, 1.8vw, 21px); line-height: 1.55; max-width: 56ch; color: var(--ink-muted); }

.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; padding-bottom: clamp(28px, 4vw, 44px); }
.filter-pill {
  padding: 10px 20px; border-radius: 999px;
  border: 1px solid var(--accent-hair); background: transparent;
  font: inherit; font-size: 14.5px; font-weight: 600; color: var(--ink-soft);
  cursor: pointer; transition: all .2s ease;
}
.filter-pill:hover { border-color: var(--accent); color: var(--accent); }
.filter-pill.active { background: var(--accent); border-color: var(--accent); color: var(--paper); }

.events-section { padding: 0 0 clamp(40px, 6vw, 72px); scroll-margin-top: 88px; }
.events-section-title {
  margin: 0 0 clamp(20px, 3vw, 32px); font-weight: 400;
  font-size: clamp(22px, 2.6vw, 30px);
  letter-spacing: -0.012em; color: var(--ink);
}
.events-section.past { opacity: 0.72; }
.events-empty { font-size: 16px; color: var(--ink-faint); font-style: italic; }

/* ---------------- Internal pages (micro-retreats, cycles) ---------------- */
.page-hero {
  position: relative;
  min-height: clamp(340px, 56vh, 600px);
  display: flex; align-items: flex-end;
  background: linear-gradient(135deg, #ECE3D5, #E1D4C1);
  overflow: hidden;
}
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(34,30,26,0.72), rgba(34,30,26,0.18) 55%, rgba(34,30,26,0) 100%);
}
.page-hero .container { position: relative; z-index: 1; padding-top: clamp(96px, 16vh, 200px); padding-bottom: clamp(32px, 5vw, 60px); }
.page-hero-kicker {
  font-size: 13px; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent-light); margin-bottom: 16px;
}
.page-hero-title {
  margin: 0; font-weight: 300; font-size: clamp(40px, 6.4vw, 84px);
  line-height: 1.0; letter-spacing: -0.025em; color: var(--on-dark);
}
.page-hero-lead {
  margin: 18px 0 0; font-size: clamp(18px, 2vw, 24px);
  line-height: 1.4; max-width: 42ch; color: var(--on-dark-2);
}

.content-heading {
  margin: 0 0 24px; font-weight: 300;
  font-size: clamp(28px, 4vw, 46px); line-height: 1.15;
  letter-spacing: -0.02em; color: var(--ink);
}
.page-p {
  margin: 0 0 18px; font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.7; color: var(--ink-muted); max-width: 68ch;
}

.retreat-list { display: flex; flex-direction: column; gap: clamp(20px, 3vw, 36px); }
.retreat-card {
  display: grid; grid-template-columns: minmax(0, 44%) 1fr;
  background: var(--paper-alt);
  border: 1px solid var(--hair-09);
  border-radius: 14px; overflow: hidden;
}
.retreat-img {
  position: relative; overflow: hidden;
  min-height: clamp(220px, 26vw, 340px);
  background: linear-gradient(135deg, #ECE3D5, #E1D4C1);
  display: flex; align-items: center; justify-content: center;
  color: #A99A86; font-size: 12px; letter-spacing: 0.14em;
  text-transform: uppercase; font-weight: 600;
}
.retreat-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.retreat-body { padding: clamp(24px, 3.2vw, 44px); display: flex; flex-direction: column; }
.retreat-next {
  font-size: 13px; font-weight: 600; letter-spacing: 0.04em;
  color: var(--accent); margin-bottom: 12px;
}
.retreat-title {
  margin: 0 0 8px; font-weight: 600; font-size: clamp(22px, 2.6vw, 30px);
  letter-spacing: -0.01em; color: var(--ink);
}
.retreat-subtitle {
  margin: 0 0 16px; font-size: clamp(16px, 1.8vw, 19px);
  color: var(--accent-dark); font-style: italic;
}
.retreat-about {
  margin: 0 0 20px; font-size: 16px; line-height: 1.62;
  color: var(--ink-muted); max-width: 62ch;
}
.retreat-cta { font-size: 14.5px; align-self: flex-start; }
@media (max-width: 760px) {
  .retreat-card { grid-template-columns: 1fr; }
  .retreat-img { min-height: 0; aspect-ratio: 16 / 9; }
}

/* ---------------- Motion / responsive ---------------- */
[data-reveal] { will-change: opacity, transform; }

@media (max-width: 940px) {
  .nav-toggle { display: flex; }
  .header-right .btn-sm { display: none; }
  .nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 40;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    padding: 96px 28px 28px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height .35s ease, opacity .25s ease;
  }
  .nav.is-open {
    max-height: 100vh;
    overflow-y: auto;
    opacity: 1;
    visibility: visible;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
  }
  .header .nav.is-open .nav-link {
    color: var(--ink);
    display: block;
    padding: 16px 0;
    border-bottom: 1px solid var(--hair);
    font-size: 17px;
  }
  .nav-panel-close {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: flex-end;
    width: 40px; height: 40px;
    margin: -10px -10px 4px 0;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 30px;
    font-weight: 300;
    line-height: 1;
    color: var(--ink-soft);
  }
  .nav .nav-cta { display: inline-flex; margin-top: 24px; align-self: flex-start; }
  body.nav-locked { overflow: hidden; }
}
@media (max-width: 620px) {
  .sr-thread { opacity: 0.5; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
