/* Trail Builders site styles. Shared by index.html and research.html.
   Layout: full-bleed flower hero, then inset elevated panels floating on cool mist paper. Two-tone type (mist lead-in, ink payoff) carries the voice. */
:root {
  color-scheme: light;
  /* Color */
  --paper: #eceef1;        /* cool mist, matches the flower photo's ground */
  --surface: #fbfbfc;      /* raised sheets */
  --ink: #22101a;          /* wine-black for payoff type */
  --ink-soft: #5c4f56;     /* running text */
  --mist: #8f8389;         /* pale lead-in type, 3:1+ for large text */
  --wine: #4e1a2b;         /* brand, sampled from the logo */
  --wine-hover: #6a2539;
  --mist-strong: #86676f;  /* lead-in type that must hold over the photo */
  --tint: #f4e9ed;         /* pale wine wash, from the research guide */
  --wine-deep: #2a0e18;    /* values panel */
  --on-wine: #f4edef;
  --on-wine-mist: #a8858f;
  --glow: #e7c3a5;         /* flower's lit center */
  --line: rgba(31, 14, 21, 0.1);
  --line-wine: rgba(244, 237, 239, 0.14);

  /* Type */
  --font-display: "Geist", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: "Geist", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Type scale: seven steps, nothing below 15px */
  --t-display: clamp(3.6rem, 1.6rem + 8.4vw, 9rem);      /* 58-144px  hero slogan only */
  --t-headline: clamp(2.5rem, 1.5rem + 4vw, 5rem);       /* 40-80px   section headlines, mission, footer slogan */
  --t-title: clamp(1.625rem, 1.3rem + 1vw, 2.125rem);    /* 26-34px   pillar, value and fact titles */
  --t-lead: clamp(1.3125rem, 1.15rem + 0.6vw, 1.625rem); /* 21-26px   intros, FAQ questions, key points */
  --t-body: clamp(1.125rem, 1.06rem + 0.25vw, 1.25rem);  /* 18-20px   running text */
  --t-ui: 1.0625rem;                                     /* 17px      buttons, nav, links, tags, form text */
  --t-label: 0.9375rem;                                  /* 15px      eyebrow labels, legal line, captions */

  /* Elevation */
  --lift-1: 0 1px 2px rgba(31, 14, 21, 0.04), 0 8px 24px -12px rgba(31, 14, 21, 0.1);
  --lift-2: 0 1px 2px rgba(31, 14, 21, 0.04), 0 24px 60px -24px rgba(31, 14, 21, 0.22), 0 60px 120px -60px rgba(90, 26, 46, 0.25);

  --radius-xl: clamp(28px, 3vw, 44px);
  --radius-lg: 24px;
  --wrap: 1240px;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--t-body);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--wine); outline-offset: 3px; border-radius: 8px; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 96px);
  margin-inline: auto;
  padding-left: max(var(--gutter-l), clamp(16px, 4vw, 48px));
  padding-right: max(var(--gutter-r), clamp(16px, 4vw, 48px));
}

/* Two-tone headline device */
.duo { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.035em; line-height: 1.02; text-wrap: balance; margin: 0; }
.duo .soft { color: var(--mist); }
.duo .hard { color: var(--ink); }

.label {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: var(--t-label); font-weight: 500;
  letter-spacing: 0.02em; color: var(--wine); margin: 0;
}

/* Buttons */
.btn {
  --h: 56px;
  display: inline-flex; align-items: center; gap: 12px;
  height: var(--h); padding-inline: 26px;
  border-radius: 999px; font: 500 var(--t-ui)/1 var(--font-body);
  letter-spacing: -0.01em; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.5s var(--ease), background-color 0.3s, color 0.3s, box-shadow 0.5s var(--ease), border-color 0.3s;
}
.btn svg { width: 18px; height: 18px; transition: transform 0.5s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn:hover { transform: translateY(-2px); }
.btn-ink { background: var(--ink); color: var(--surface); box-shadow: 0 10px 30px -12px rgba(31, 14, 21, 0.55); }
.btn-ink:hover { background: var(--wine); box-shadow: 0 16px 36px -14px rgba(78, 26, 43, 0.65); }
.btn-wine { background: var(--wine); color: var(--on-wine); font-weight: 600; box-shadow: 0 14px 34px -14px rgba(78, 26, 43, 0.7); }
.btn-wine:hover { background: var(--wine-hover); }
.btn-glass { background: rgba(251, 251, 252, 0.55); color: var(--ink); border-color: rgba(31, 14, 21, 0.12); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); }
.btn-glass:hover { background: var(--surface); }
.btn-light { background: var(--on-wine); color: var(--wine-deep); }
.btn-light:hover { background: #fff; }
.btn-line-light { color: var(--on-wine); border-color: var(--line-wine); }
.btn-line-light:hover { border-color: var(--on-wine); }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  transition: background-color 0.4s, box-shadow 0.4s, backdrop-filter 0.4s;
}
.site-header.scrolled {
  background: rgba(236, 238, 241, 0.94);
  backdrop-filter: blur(24px) saturate(1.4); -webkit-backdrop-filter: blur(24px) saturate(1.4);
  box-shadow: 0 1px 0 var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 600; font-size: var(--t-body); letter-spacing: -0.02em; color: var(--ink); }
.brand img { width: 34px; height: auto; }
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; font-size: var(--t-ui); color: var(--ink-soft); transition: color 0.2s; }
.nav-links a:hover { color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--ink); position: relative; }
.nav-links a[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: -10px; width: 5px; height: 5px; border-radius: 50%; background: var(--wine); transform: translateX(-50%); }

/* Mobile menu */
.menu-toggle { display: none; position: relative; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(31, 14, 21, 0.12); background: rgba(251, 251, 252, 0.6); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); cursor: pointer; }
.menu-toggle > span:not(.sr-only) { position: absolute; left: 50%; width: 16px; height: 1.5px; background: var(--ink); border-radius: 2px; transition: transform 0.45s var(--ease); }
.menu-toggle > span:nth-child(1) { transform: translate(-50%, -3.5px); top: 50%; }
.menu-toggle > span:nth-child(2) { transform: translate(-50%, 3.5px); top: 50%; }
.menu-toggle[aria-expanded="true"] > span:nth-child(1) { transform: translate(-50%, 0) rotate(45deg); }
.menu-toggle[aria-expanded="true"] > span:nth-child(2) { transform: translate(-50%, 0) rotate(-45deg); }
.mobile-menu {
  position: absolute; top: 100%;
  left: max(var(--gutter-l), 12px); right: max(var(--gutter-r), 12px);
  margin-top: 4px; padding: 12px 24px 24px;
  background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--lift-2);
  animation: fade 0.45s var(--ease) both;
}
.mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu li + li { border-top: 1px solid var(--line); }
.mobile-menu li a { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; text-decoration: none; font-size: var(--t-lead); font-weight: 500; letter-spacing: -0.02em; color: var(--ink); }
.mobile-menu li a[aria-current="page"] { color: var(--wine); }
.mobile-menu li a svg { width: 18px; height: 18px; color: var(--mist-strong); }
.mobile-menu .btn { margin-top: 16px; width: 100%; justify-content: center; }
.nav-cta { display: flex; gap: 10px; }
.nav .btn { --h: 44px; padding-inline: 20px; }

/* Hero */
.hero { position: relative; height: clamp(600px, 88svh, 940px); overflow: hidden; background: var(--paper); isolation: isolate; }
.hero-media { position: absolute; inset: -4% 0 0; z-index: -2; will-change: transform; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 30%; animation: bloom 2.6s var(--ease) both; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(to top, var(--paper) 0%, rgba(236, 238, 241, 0.94) 26%, rgba(236, 238, 241, 0.7) 44%, rgba(236, 238, 241, 0) 66%),
    linear-gradient(to right, rgba(236, 238, 241, 0.7) 0%, rgba(236, 238, 241, 0) 50%);
}
.hero-inner { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding-block: 0 clamp(96px, 12vh, 150px); }
.hero h1 { font-size: var(--t-display); line-height: 0.92; letter-spacing: -0.05em; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero h1 .line > span { display: inline-block; animation: rise 1.1s var(--ease) both; }
.hero .duo .soft { color: var(--mist-strong); }
.hero h1 .line:nth-child(2) > span { animation-delay: 0.12s; }
.hero-sub { max-width: 34ch; margin: 28px 0 0; font-size: var(--t-lead); line-height: 1.4; color: var(--ink-soft); letter-spacing: -0.01em; animation: fade 1.2s 0.35s var(--ease) both; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; animation: fade 1.2s 0.5s var(--ease) both; }
.hero .label { margin-bottom: 22px; animation: fade 1s 0.1s var(--ease) both; }

@keyframes bloom { from { transform: scale(1.08); filter: saturate(0.85); } to { transform: scale(1); filter: saturate(1); } }
@keyframes rise { from { transform: translateY(105%); } to { transform: translateY(0); } }
@keyframes fade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Panels: elevated sheets inset on the paper */
.panel {
  position: relative;
  margin-inline: max(var(--gutter-l), clamp(10px, 1.6vw, 24px)) max(var(--gutter-r), clamp(10px, 1.6vw, 24px));
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--lift-2);
}
.panel-overlap { margin-top: -64px; z-index: 2; }
.panel + .panel { margin-top: clamp(16px, 2vw, 28px); }

section { scroll-margin-top: 90px; }
.section { padding-block: clamp(88px, 11vw, 160px); }

/* Story */
.story-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: end; }
.story h2 { font-size: var(--t-headline); margin-top: 26px; }
.story-copy { display: grid; gap: 22px; color: var(--ink-soft); max-width: 46ch; }
.story-copy p { margin: 0; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: clamp(56px, 7vw, 96px) 0 0; padding: 0; border-top: 1px solid var(--line); }
.facts div { padding: 26px 24px 0 0; display: grid; gap: 6px; }
.facts div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.facts dt { font-family: var(--font-mono); font-size: var(--t-label); color: var(--mist-strong); }
.facts dd { margin: 0; font-size: var(--t-title); font-weight: 500; letter-spacing: -0.03em; line-height: 1.15; color: var(--ink); }

/* Mission statement with scroll fill */
.mission { padding-block: clamp(40px, 6vw, 80px) clamp(88px, 11vw, 160px); }
.mission-statement {
  font-family: var(--font-display); font-weight: 500; font-size: var(--t-headline);
  line-height: 1.12; letter-spacing: -0.035em; margin: 26px 0 0; max-width: 20ch; text-wrap: balance;
}
.mission-statement .w { color: var(--mist); transition: color 0.45s var(--ease); }
.mission-statement .w.on { color: var(--ink); }
.mission-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); margin: clamp(56px, 7vw, 88px) 0 0; padding: 0; list-style: none; }
.mission-points li { padding-top: 22px; border-top: 1px solid var(--line); font-size: var(--t-lead); font-weight: 500; letter-spacing: -0.02em; line-height: 1.3; color: var(--ink); }
.mission-points span { display: block; margin-top: 10px; font-size: var(--t-body); font-weight: 400; letter-spacing: 0; line-height: 1.55; color: var(--ink-soft); }

/* Pillars */
.pillars-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); gap: 40px; align-items: end; margin-bottom: clamp(56px, 7vw, 96px); }
.pillars-head h2 { font-size: var(--t-headline); margin-top: 26px; }
.pillars-head p { margin: 0; color: var(--ink-soft); max-width: 40ch; justify-self: end; }
.trail { position: relative; display: grid; gap: clamp(20px, 2.4vw, 28px); }
.trail-line { position: absolute; left: clamp(44px, 6vw, 76px); top: 40px; bottom: 40px; width: 2px; background: var(--line); border-radius: 2px; }
.trail-line i { position: absolute; inset: 0 0 auto; height: 0%; background: linear-gradient(var(--glow), var(--wine)); border-radius: 2px; }
.pillar {
  position: relative; display: grid; grid-template-columns: clamp(90px, 12vw, 152px) minmax(0, 1fr) minmax(0, 0.9fr);
  gap: clamp(24px, 4vw, 64px); align-items: start;
  padding: clamp(28px, 4vw, 56px) clamp(24px, 4vw, 56px) clamp(28px, 4vw, 56px) 0;
  border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--lift-1);
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
.pillar:hover { transform: translateY(-4px); box-shadow: var(--lift-2); }
.pillar-mark { display: flex; justify-content: center; position: relative; z-index: 1; }
.pillar-mark span {
  display: grid; place-items: center; width: clamp(60px, 7vw, 84px); aspect-ratio: 1; max-width: 100%;
  border-radius: 50%; background: var(--paper); color: var(--mist);
  font: 500 var(--t-title)/1 var(--font-display); letter-spacing: -0.04em;
  transition: background-color 0.6s var(--ease), color 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
.pillar.lit .pillar-mark span { background: var(--wine); color: var(--on-wine); box-shadow: 0 0 0 8px var(--surface), 0 12px 30px -10px rgba(90, 26, 46, 0.6); }
.pillar h3 { font-size: var(--t-title); font-weight: 500; letter-spacing: -0.03em; line-height: 1.15; margin: 14px 0 0; text-wrap: balance; }
.pillar p { margin: 0; color: var(--ink-soft); }
.pillar-body { min-width: 0; }
.pillar-detail { min-width: 0; display: grid; gap: 22px; padding-top: 4px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.text-link { justify-self: start; display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--wine); text-decoration: none; border-bottom: 1px solid rgba(78, 26, 43, 0.3); padding-bottom: 3px; transition: border-color 0.3s; }
.text-link svg { width: 18px; height: 18px; transition: transform 0.5s var(--ease); }
.text-link:hover { border-color: var(--wine); }
.text-link:hover svg { transform: translateX(4px); }
.tags li { font-size: var(--t-label); padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); background: var(--surface); }


/* Values */
.values { background: var(--wine-deep); color: var(--on-wine); overflow: hidden; box-shadow: var(--lift-2); }
.values::before {
  content: ""; position: absolute; width: 70vmax; height: 70vmax; right: -30vmax; top: -40vmax; pointer-events: none;
  background: radial-gradient(closest-side, rgba(231, 195, 165, 0.22), rgba(231, 195, 165, 0));
  animation: drift 16s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translate(-12vmax, 14vmax); } }
.values .label { color: var(--glow); }
.values .duo .soft { color: var(--on-wine-mist); }
.values .duo .hard { color: var(--on-wine); }
.values h2 { font-size: var(--t-headline); margin-top: 26px; max-width: 14ch; }
.values-grid { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: clamp(56px, 7vw, 96px); border-top: 1px solid var(--line-wine); }
.value { padding: clamp(32px, 4vw, 52px) clamp(0px, 3vw, 48px) clamp(32px, 4vw, 52px) 0; border-bottom: 1px solid var(--line-wine); display: grid; gap: 14px; align-content: start; }
.value:nth-child(even) { padding-left: clamp(24px, 4vw, 56px); padding-right: 0; border-left: 1px solid var(--line-wine); }
.value h3 { margin: 0; font-size: var(--t-title); font-weight: 500; letter-spacing: -0.03em; line-height: 1.15; }
.value p { margin: 0; color: rgba(244, 237, 239, 0.72); max-width: 40ch; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.faq h2 { font-size: var(--t-headline); margin-top: 26px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 28px 0; font-size: var(--t-lead); font-weight: 500; letter-spacing: -0.02em; line-height: 1.3; color: var(--ink);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .pm { flex: none; position: relative; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); transition: background-color 0.3s, border-color 0.3s, transform 0.5s var(--ease); }
.faq-list summary .pm::before, .faq-list summary .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; background: var(--ink); transform: translate(-50%, -50%); transition: transform 0.5s var(--ease), background-color 0.3s; }
.faq-list summary .pm::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-list details[open] summary .pm { background: var(--wine); border-color: var(--wine); transform: rotate(180deg); }
.faq-list details[open] summary .pm::before, .faq-list details[open] summary .pm::after { background: var(--on-wine); }
.faq-list details[open] summary .pm::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-list summary:hover .pm { border-color: var(--ink); }
.faq-answer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.5s var(--ease); }
.faq-list details[open] .faq-answer { grid-template-rows: 1fr; }
.faq-answer > div { overflow: hidden; }
.faq-answer p { margin: 0; padding: 0 64px 30px 0; color: var(--ink-soft); max-width: 58ch; }

/* CTA */
.cta { overflow: hidden; background: var(--paper); isolation: isolate; }
.cta-media { position: absolute; inset: 0; z-index: -2; }
.cta-media img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 40%; transform: scaleX(-1); }
.cta::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(251, 251, 252, 0.96) 0%, rgba(251, 251, 252, 0.88) 42%, rgba(251, 251, 252, 0.15) 80%); }
.cta-inner { padding-block: clamp(80px, 10vw, 150px); }
.cta h2 { font-size: var(--t-headline); margin-top: 26px; max-width: 12ch; }
.cta p { margin: 26px 0 0; color: var(--ink-soft); max-width: 38ch; font-size: var(--t-lead); line-height: 1.45; letter-spacing: -0.01em; }
.cta-actions { display: grid; justify-items: start; gap: 14px; margin-top: 40px; }
.cta-actions .btn-wine { --h: 64px; padding-inline: 32px; font-size: var(--t-body); }
.cta-actions .btn-glass { --h: 52px; }
.contact { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--line); max-width: 560px; }
.contact > span { font-family: var(--font-mono); font-size: var(--t-label); color: var(--mist-strong); }
.email-copy { display: inline-flex; align-items: center; gap: 10px; padding: 0; border: 0; background: none; cursor: pointer; font: 500 var(--t-body)/1.3 var(--font-body); letter-spacing: -0.01em; color: var(--ink); text-decoration: underline; text-decoration-color: rgba(78, 26, 43, 0.3); text-underline-offset: 5px; transition: color 0.2s, text-decoration-color 0.2s; }
.email-copy:hover { color: var(--wine); text-decoration-color: var(--wine); }
.email-copy svg { width: 16px; height: 16px; flex: none; opacity: 0.6; }
.email-copy em { font-style: normal; font-family: var(--font-mono); font-size: var(--t-label); color: var(--wine); text-decoration: none; display: inline-block; }

/* Footer */
.site-footer { padding-block: clamp(64px, 8vw, 104px) 40px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 40px; }
.footer-slogan { font-family: var(--font-display); font-weight: 500; font-size: var(--t-headline); letter-spacing: -0.045em; line-height: 0.98; margin: 24px 0 0; }
.socials { display: flex; gap: 10px; list-style: none; margin: 0; padding: 0; }
.socials a { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--surface); color: var(--ink); box-shadow: var(--lift-1); transition: background-color 0.3s, color 0.3s, transform 0.5s var(--ease); }
.socials a:hover { background: var(--wine); color: var(--on-wine); transform: translateY(-3px); }
.socials svg { width: 19px; height: 19px; fill: currentColor; }
.legal-links { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 0; padding: 0; }
.legal-links a, .legal-links button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: none; }
.legal-links a:hover, .legal-links button:hover { color: var(--wine); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); font-size: var(--t-label); color: var(--ink-soft); }
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { color: var(--wine); }


/* Cookie consent */
.consent {
  position: fixed; z-index: 60;
  left: max(16px, env(safe-area-inset-left, 0px)); right: max(16px, env(safe-area-inset-right, 0px));
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  margin-inline: auto; max-width: 620px;
  background: rgba(251, 251, 252, 0.9); backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--lift-2);
  padding: 24px; display: grid; gap: 16px; animation: fade 0.8s var(--ease) both;
}
.consent h2 { margin: 0; font-size: var(--t-body); font-weight: 600; letter-spacing: -0.02em; }
.consent p { margin: 0; font-size: var(--t-ui); line-height: 1.55; color: var(--ink-soft); }
.consent p a { color: var(--wine); }
.consent-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.consent .btn { --h: 48px; padding-inline: 20px; flex: 1 1 auto; justify-content: center; }
.consent .btn:hover { transform: none; }
.btn-outline { background: var(--surface); color: var(--ink); border-color: rgba(34, 16, 26, 0.18); }
.btn-outline:hover { border-color: var(--ink); }
.prefs { display: grid; gap: 4px; border-top: 1px solid var(--line); padding-top: 8px; }
.pref { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 10px 0; }
.pref div { display: grid; gap: 2px; min-width: 0; }
.pref strong { font-weight: 500; font-size: var(--t-ui); }
.pref span { font-size: var(--t-label); color: var(--ink-soft); line-height: 1.4; }
.switch { position: relative; flex: none; width: 46px; height: 28px; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch input:disabled { cursor: not-allowed; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: rgba(34, 16, 26, 0.18); transition: background-color 0.3s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--surface); box-shadow: 0 1px 3px rgba(0,0,0,0.2); transition: transform 0.35s var(--ease); }
.switch input:checked + span { background: var(--wine); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:disabled + span { opacity: 0.55; }
.switch input:focus-visible + span { outline: 2px solid var(--wine); outline-offset: 3px; }

/* Research page */
.site-header.solid { background: rgba(236, 238, 241, 0.94); backdrop-filter: blur(24px) saturate(1.4); -webkit-backdrop-filter: blur(24px) saturate(1.4); }
.r-hero { position: relative; overflow: hidden; isolation: isolate; padding-block: calc(76px + env(safe-area-inset-top, 0px) + clamp(64px, 9vw, 132px)) clamp(72px, 9vw, 128px); }
.r-hero-media { position: absolute; z-index: -1; top: 0; bottom: 0; right: -8%; width: min(72%, 980px); pointer-events: none; }
.r-hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 35%; opacity: 0.6; animation: bloom 2.6s var(--ease) both;
  -webkit-mask-image: linear-gradient(to left, #000 35%, transparent 92%), linear-gradient(to top, transparent 0%, #000 30%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(to left, #000 35%, transparent 92%), linear-gradient(to top, transparent 0%, #000 30%); mask-composite: intersect; }
.r-hero h1 { font-size: var(--t-headline); margin-top: 26px; max-width: 13ch; line-height: 1; letter-spacing: -0.045em; }
.r-hero h1 .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.r-hero h1 .line > span { display: inline-block; animation: rise 1.1s var(--ease) both; }
.r-hero h1 .line:nth-child(2) > span { animation-delay: 0.12s; }
.r-hero .duo .soft { color: var(--mist-strong); }
.r-intro { margin: 30px 0 0; max-width: 44ch; font-size: var(--t-lead); line-height: 1.45; letter-spacing: -0.01em; color: var(--ink-soft); animation: fade 1.2s 0.35s var(--ease) both; }
.status { display: inline-flex; align-items: center; gap: 12px; margin-top: 36px; padding: 10px 18px 10px 14px; border-radius: 999px; background: rgba(251, 251, 252, 0.7); border: 1px solid var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); font-family: var(--font-mono); font-size: var(--t-label); color: var(--wine); animation: fade 1.2s 0.5s var(--ease) both; }
.pulse { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--wine); }
.pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--wine); animation: ping 2.2s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: 0.55; } 80%, 100% { transform: scale(3); opacity: 0; } }

.tracks-section { padding-block: 0 clamp(72px, 9vw, 128px); }
.tracks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.track { display: grid; gap: 14px; align-content: start; padding: clamp(28px, 3.2vw, 44px); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--lift-1); transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease); }
.track:hover { transform: translateY(-4px); box-shadow: var(--lift-2); }
.track h2 { margin: 6px 0 0; font-size: var(--t-title); font-weight: 500; letter-spacing: -0.03em; line-height: 1.15; }
.track p { margin: 0; color: var(--ink-soft); }
.track-mark { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--tint); color: var(--wine); }
.track-mark svg { width: 20px; height: 20px; }

.pub { background: var(--wine-deep); color: var(--on-wine); overflow: hidden; }
.pub::before { content: ""; position: absolute; width: 60vmax; height: 60vmax; left: -20vmax; bottom: -40vmax; pointer-events: none; background: radial-gradient(closest-side, rgba(231, 195, 165, 0.2), rgba(231, 195, 165, 0)); animation: drift 18s ease-in-out infinite alternate; }
.pub .label { color: var(--glow); }
.pub-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: end; }
.pub h2 { font-size: var(--t-headline); margin-top: 26px; max-width: 14ch; }
.pub .duo .soft { color: var(--on-wine-mist); }
.pub .duo .hard { color: var(--on-wine); }
.pub-sub { margin: 22px 0 0; font-size: var(--t-lead); line-height: 1.4; color: rgba(244, 237, 239, 0.78); max-width: 36ch; }
.pub-side { display: grid; gap: 22px; }
.pub-meta { margin: 0; font-family: var(--font-mono); font-size: var(--t-label); color: var(--on-wine-mist); }
.progress { position: relative; height: 2px; border-radius: 2px; background: var(--line-wine); overflow: hidden; }
.progress i { position: absolute; top: 0; bottom: 0; width: 38%; background: linear-gradient(90deg, rgba(231, 195, 165, 0), var(--glow), rgba(231, 195, 165, 0)); animation: sweep 2.8s var(--ease) infinite; }
@keyframes sweep { from { left: -40%; } to { left: 100%; } }
.pub-side p { margin: 0; color: rgba(244, 237, 239, 0.78); }
.pub-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }

/* Legal and policy pages */
.legal { padding-block: calc(76px + env(safe-area-inset-top, 0px) + clamp(48px, 7vw, 104px)) clamp(64px, 8vw, 112px); }
.legal-head h1 { font-size: var(--t-headline); margin-top: 22px; }
.legal-meta { margin: 20px 0 0; font-family: var(--font-mono); font-size: var(--t-label); color: var(--mist-strong); }
.legal-sheet { margin-top: clamp(40px, 5vw, 64px); padding-block: clamp(36px, 5vw, 72px); border-radius: var(--radius-xl); background: var(--surface); box-shadow: var(--lift-1); }
.legal-body { max-width: 68ch; padding-inline: clamp(22px, 5vw, 72px); color: var(--ink-soft); }
.legal-body > :first-child { margin-top: 0; }
.legal-body h2 { margin: 44px 0 12px; font-size: var(--t-lead); font-weight: 500; letter-spacing: -0.02em; line-height: 1.3; color: var(--ink); }
.legal-body p, .legal-body ul { margin: 0 0 16px; }
.legal-body ul { padding-left: 1.2em; }
.legal-body li { margin-bottom: 8px; }
.legal-body li::marker { color: var(--wine); }
.legal-body a { color: var(--wine); text-underline-offset: 3px; }
.legal-body strong { color: var(--ink); font-weight: 500; }

/* Scroll reveal: only applied by script to elements below the first screen */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .menu-toggle { display: block; }
  .pub-inner { grid-template-columns: minmax(0, 1fr); }
  .tracks { grid-template-columns: minmax(0, 1fr); }
  .r-hero-media { width: 100%; right: -30%; }
  .story-grid, .pillars-head, .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .pillars-head p { justify-self: start; }
  .pillar { grid-template-columns: clamp(76px, 16vw, 110px) minmax(0, 1fr); }
  .pillar-detail { grid-column: 2; }
  .trail-line { left: clamp(37px, 8vw, 54px); }
}
@media (max-width: 720px) {
  .facts { grid-template-columns: minmax(0, 1fr); }
  .facts div, .facts div + div { padding: 22px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .mission-points { grid-template-columns: minmax(0, 1fr); }
  .values-grid { grid-template-columns: minmax(0, 1fr); }
  .value, .value:nth-child(even) { padding-left: 0; padding-right: 0; border-left: 0; }
  .faq-answer p { padding-right: 0; }
  .cta::after { background: linear-gradient(180deg, rgba(251, 251, 252, 0.95) 0%, rgba(251, 251, 252, 0.9) 60%, rgba(251, 251, 252, 0.6) 100%); }
  .panel-overlap { margin-top: -40px; }
}
@media (max-width: 480px) {
  .pillar { grid-template-columns: minmax(0, 1fr); padding: 28px 22px; }
  .pillar-mark { justify-content: flex-start; }
  .pillar-detail { grid-column: auto; }
  .trail-line { left: 50px; top: 58px; bottom: 58px; width: 3px; background: rgba(78, 26, 43, 0.22); }
  .btn { --h: 52px; padding-inline: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .mission-statement .w { color: var(--ink); }
  .progress i { left: 0; width: 100%; opacity: 0.4; }
  html { scroll-behavior: auto; }
}
