/* ==========================================================================
   Fundacja Cura Vita
   Direction: architectural editorial. Warm paper, forest ink, terracotta.
   Motifs: arches, hairline rules, numbered sections.
   Type: system serif for display, system sans for text (no external requests).
   ========================================================================== */

:root {
  --paper: #f4efe6;
  --paper-2: #ebe4d7;
  --white: #fbf8f2;
  --ink: #15302b;
  --ink-2: #0f221e;
  --ink-soft: #3f5650;
  --terra: #a9472b;
  --terra-b: #d0704c;
  --sage: #cdd9c9;
  --sage-d: #9fb59b;
  --sand: #e4d3b8;
  --line: rgba(21, 48, 43, .18);
  --error: #a3321a;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --container: 1320px;
  --gutter: clamp(20px, 4vw, 56px);
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.1; margin: 0; letter-spacing: -.015em; }
p { margin: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
dl, dd { margin: 0; }
a { color: inherit; }
b, strong { font-weight: 650; }
em { font-style: italic; }

:focus-visible { outline: 2px solid var(--terra); outline-offset: 3px; }

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 18px;
  text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ---------- Shared pieces ---------- */
.label {
  display: flex;
  align-items: center;
  gap: 14px;
  font: 600 .78rem/1.2 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--terra);
}
.label::before {
  content: "";
  width: 36px;
  height: 1.5px;
  background: currentColor;
  flex: none;
}

.section { padding: clamp(72px, 9vw, 140px) 0; }

h2 {
  font-size: clamp(2rem, 3.7vw, 3.5rem);
  margin-top: 20px;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 4fr);
  gap: clamp(24px, 5vw, 96px);
  align-items: end;
}
.section-head > p { color: var(--ink-soft); font-size: 1.1rem; max-width: 36em; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .75em;
  padding: 1.05em 1.7em;
  background: var(--terra);
  color: var(--white);
  border: 1.5px solid var(--terra);
  border-radius: 2px;
  font: 600 .95rem/1 var(--sans);
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  transition: background .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
}
.btn::after {
  content: "→";
  transition: transform .3s var(--ease);
}
.btn:hover { background: var(--ink); border-color: var(--ink); }
.btn:hover::after { transform: translateX(5px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--small { padding: .85em 1.3em; font-size: .88rem; }

.link-arrow {
  display: inline-flex;
  gap: .6em;
  margin-top: 22px;
  font-weight: 600;
  color: var(--terra);
  text-decoration: none;
  border-bottom: 1.5px solid currentColor;
  padding-bottom: 2px;
}
.link-arrow::after { content: "↗"; transition: transform .3s var(--ease); }
.link-arrow:hover::after { transform: translate(3px, -3px); }

.linklike {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(244, 239, 230, .35);
}
.linklike:hover { text-decoration-color: currentColor; }

/* Scroll reveal */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--d, 0s);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}
.brand__mark { width: 40px; height: 40px; flex: none; transition: transform .5s var(--ease); }
.brand:hover .brand__mark { transform: translateY(-3px); }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__text strong { font-family: var(--serif); font-weight: 500; font-size: 1.45rem; letter-spacing: -.01em; }
.brand__text small { font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); margin-top: 4px; }
.brand--light { color: var(--paper); }
.brand--light small { color: rgba(244, 239, 230, .65); }

.nav__list { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 40px); }
.nav__list a:not(.btn) {
  text-decoration: none;
  font-weight: 500;
  font-size: .95rem;
  padding: .4em 0;
  background: linear-gradient(var(--terra), var(--terra)) left bottom / 0 2px no-repeat;
  transition: background-size .35s var(--ease);
}
.nav__list a:not(.btn):hover,
.nav__list a:not(.btn)[aria-current="true"] { background-size: 100% 2px; }

.burger {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 2px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
}
.burger span { width: 20px; height: 2px; background: var(--ink); transition: transform .3s var(--ease); }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  padding: clamp(48px, 7vw, 96px) 0 clamp(64px, 8vw, 112px);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(32px, 5vw, 88px);
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.9rem, 6.2vw, 5.9rem);
  line-height: 1;
  letter-spacing: -.025em;
  margin: 24px 0 28px;
}
.hero h1 em { color: var(--terra); }
.lead {
  font-size: clamp(1.08rem, 1.4vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 36em;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.hero__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--ink);
}
.hero__facts li { padding: 18px 20px 0 0; }
.hero__facts li + li { padding-left: 20px; border-left: 1px solid var(--line); }
.hero__facts span {
  display: block;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 4px;
}
.hero__facts strong { font-family: var(--serif); font-weight: 500; font-size: 1.15rem; line-height: 1.3; display: block; }

.hero__visual { position: relative; }
.hero__art {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  grid-template-rows: 1.35fr 1fr;
  gap: 14px;
  height: clamp(480px, 50vw, 680px);
}
.art { position: relative; overflow: hidden; min-height: 0; }
.art svg { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform 1.4s var(--ease); }
.art:hover svg { transform: scale(1.06); }
.art--a { grid-row: 1 / 3; border-radius: 999px 999px 0 0; }
.art--b { border-radius: 999px 999px 0 0; }
.art--c { border-radius: 0 0 999px 999px; }

.hero__note {
  position: absolute;
  left: -36px;
  bottom: 40px;
  max-width: 250px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--terra);
  padding: 16px 20px;
}
.hero__note strong { font-family: var(--serif); font-weight: 500; font-size: 1.25rem; display: block; }
.hero__note p { font-size: .9rem; color: var(--ink-soft); line-height: 1.5; margin-top: 4px; }

/* ---------- Ribbon ---------- */
.ribbon { background: var(--ink); color: var(--sand); }
.ribbon ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 32px;
  padding: 24px 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.05rem, 1.7vw, 1.4rem);
}
.ribbon li { display: flex; align-items: center; gap: 14px; }
.ribbon li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--terra-b); flex: none; }

/* ---------- About ---------- */
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(40px, 6vw, 110px);
  align-items: start;
}
.about__head { position: sticky; top: calc(var(--header-h) + 32px); }
.about__visual { margin: clamp(32px, 4vw, 56px) 0 0; aspect-ratio: 600 / 420; overflow: hidden; }
.about__visual svg { width: 100%; height: 100%; transition: transform 1.4s var(--ease); }
.about__visual:hover svg { transform: scale(1.04); }

.about__body > p { color: var(--ink-soft); margin-bottom: 1.3em; max-width: 40em; }
.about__body > .about__intro {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  line-height: 1.4;
  color: var(--ink);
}
.about__intro::first-letter {
  float: left;
  font-size: 4.6rem;
  line-height: .8;
  padding: .06em .12em 0 0;
  color: var(--terra);
}

.panels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--line);
}
.panel { position: relative; padding: 28px 24px 0 0; }
.panel + .panel { padding-left: 24px; border-left: 1px solid var(--line); }
.panel::before {
  content: "";
  position: absolute;
  top: -1.5px;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--terra);
  transition: width .6s var(--ease);
}
.panel:hover::before { width: 100%; }
.panel__tag { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--terra); }
.panel h3 { font-size: 1.4rem; margin: 10px 0 10px; }
.panel p { font-size: .98rem; color: var(--ink-soft); line-height: 1.55; }

.principles {
  margin-top: clamp(40px, 5vw, 64px);
  padding: clamp(24px, 3vw, 36px);
  background: var(--paper-2);
}
.principles h3 { font-size: 1.4rem; margin-bottom: 16px; }
.principles ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 28px; }
.principles li { display: flex; align-items: baseline; gap: 12px; font-weight: 500; }
.principles li::before {
  content: "✓";
  flex: none;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  font-size: .72rem;
  color: var(--white);
  background: var(--terra);
  border-radius: 50%;
  transform: translateY(-1px);
}

/* ---------- Services ---------- */
.services { background: var(--paper-2); }
.services__grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(36px, 6vw, 100px);
  align-items: start;
}
.services__intro { position: sticky; top: calc(var(--header-h) + 32px); }
.services__intro > p:not(.label) { color: var(--ink-soft); margin-top: 20px; }

.notice {
  margin-top: 28px;
  padding: 16px 20px;
  background: var(--white);
  border-left: 3px solid var(--terra);
  font-size: .96rem;
  line-height: 1.55;
}
.notice strong { display: block; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--terra); margin-bottom: 4px; }

.services__visual {
  margin-top: 32px;
  max-width: 320px;
  aspect-ratio: 3 / 4;
  border-radius: 999px 999px 0 0;
  overflow: hidden;
}
.services__visual svg { width: 100%; height: 100%; transition: transform 1.4s var(--ease); }
.services__visual:hover svg { transform: scale(1.06); }

.service {
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 8px 28px;
  padding: 38px 0;
  border-top: 1px solid var(--line);
  transition: padding .45s var(--ease), background-color .45s var(--ease);
}
.service:last-child { border-bottom: 1px solid var(--line); }
.service:hover { padding-left: 18px; padding-right: 18px; background: rgba(251, 248, 242, .7); }
.service__num { font-family: var(--serif); font-style: italic; font-size: 1.9rem; line-height: 1.1; color: var(--terra); }
.service h3 { font-size: clamp(1.5rem, 2.2vw, 2rem); }
.service__body p { color: var(--ink-soft); margin-top: 12px; max-width: 58ch; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tags li {
  font-size: .76rem;
  font-weight: 500;
  letter-spacing: .02em;
  padding: .35em .9em;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--ink-soft);
}

.service__go {
  align-self: start;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  text-decoration: none;
  font-size: 1.15rem;
  transition: background .3s var(--ease), color .3s var(--ease), transform .4s var(--ease);
}
.service:hover .service__go, .service__go:focus-visible { background: var(--ink); color: var(--paper); transform: rotate(-45deg); }

/* ---------- Approach ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 clamp(20px, 3vw, 48px);
  margin-top: clamp(48px, 6vw, 72px);
}
.step { position: relative; padding-top: 34px; border-top: 1px solid var(--ink); }
.step::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--terra);
  transition: transform .4s var(--ease);
}
.step:hover::before { transform: scale(1.7); }
.step__no { font-family: var(--serif); font-style: italic; color: var(--terra); }
.step h3 { font-size: 1.75rem; margin: 6px 0 12px; }
.step p { color: var(--ink-soft); font-size: 1rem; }

.pledge {
  margin-top: clamp(56px, 7vw, 100px);
  background: var(--sage);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(24px, 4vw, 64px);
  align-items: end;
  padding: clamp(32px, 5vw, 72px) clamp(28px, 5vw, 72px) 0;
  overflow: hidden;
}
.pledge__text { padding-bottom: clamp(32px, 5vw, 72px); }
.pledge .label { color: var(--ink); }
.statement {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3.4vw, 3rem);
  line-height: 1.15;
  letter-spacing: -.015em;
  margin-top: 20px;
  max-width: 24em;
}
.statement em { color: var(--terra); }
.pledge__art { width: clamp(150px, 20vw, 250px); height: auto; }

/* ---------- Why / Benefits ---------- */
.why { background: var(--ink); color: var(--paper); }
.why .label { color: var(--sand); }
.why .section-head > p { color: rgba(244, 239, 230, .78); }

.bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(48px, 6vw, 72px);
  background: rgba(244, 239, 230, .2);
  border: 1px solid rgba(244, 239, 230, .2);
}
.benefit {
  position: relative;
  background: var(--ink);
  padding: clamp(28px, 3.2vw, 48px);
  transition: background-color .4s var(--ease);
}
.benefit:hover { background: #1c3b35; }
.benefit--lg { grid-column: span 3; }
.benefit--sm { grid-column: span 2; }
.benefit__no { position: absolute; top: clamp(24px, 3vw, 40px); right: clamp(24px, 3vw, 40px); font-family: var(--serif); font-style: italic; color: var(--terra-b); }
.benefit__icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(228, 211, 184, .5);
  border-radius: 50%;
  color: var(--sand);
  margin-bottom: clamp(28px, 4vw, 52px);
  transition: background .4s var(--ease), color .4s var(--ease);
}
.benefit:hover .benefit__icon { background: var(--terra-b); border-color: var(--terra-b); color: var(--ink-2); }
.benefit__icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.benefit h3 { font-size: clamp(1.4rem, 2vw, 1.85rem); margin-bottom: 12px; }
.benefit p { color: rgba(244, 239, 230, .78); max-width: 34em; }

.band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(56px, 7vw, 96px);
  border-top: 1px solid rgba(244, 239, 230, .25);
}
.band__item { padding: 32px 24px 0 0; }
.band__item + .band__item { padding-left: 24px; border-left: 1px solid rgba(244, 239, 230, .15); }
.band__item strong { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(3rem, 5.5vw, 5rem); line-height: 1; color: var(--sand); letter-spacing: -.03em; }
.band__item span { display: block; margin-top: 12px; color: rgba(244, 239, 230, .75); font-size: .96rem; line-height: 1.5; max-width: 20em; }

/* ---------- Contact ---------- */
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}
.contact__info > p:not(.label) { color: var(--ink-soft); margin-top: 20px; max-width: 34em; }

.details { margin-top: 36px; }
.details > div {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.details > div:last-child { border-bottom: 1px solid var(--line); }
.details dt { font: 600 .74rem/1.8 var(--sans); letter-spacing: .15em; text-transform: uppercase; color: var(--terra); }
.details dd { line-height: 1.5; }
.details a { font-family: var(--serif); font-size: clamp(1.15rem, 2vw, 1.5rem); overflow-wrap: anywhere; text-decoration-thickness: 1px; text-underline-offset: 4px; }

.faq { margin-top: 44px; }
.faq details { border-top: 1px solid var(--line); padding: 18px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  list-style: none;
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--terra); font-size: 1.5rem; line-height: 1; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 12px; color: var(--ink-soft); max-width: 36em; }

.form-panel {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  padding: clamp(28px, 4vw, 56px);
}
.form-panel::before { content: ""; position: absolute; top: -1px; left: -1px; right: -1px; height: 5px; background: var(--terra); }
.form-panel h3 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); }
.form-intro { color: var(--ink-soft); font-size: .95rem; margin: 6px 0 28px; }

.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 4px; }
.field input:not([type="checkbox"]),
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1.5px solid var(--ink);
  border-radius: 0;
  padding: .7em 0;
  transition: border-color .25s, background-color .25s;
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 12px) 55%, calc(100% - 6px) 55%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 28px;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--terra); background-color: rgba(169, 71, 43, .05); }
.field.is-invalid input:not([type="checkbox"]),
.field.is-invalid select,
.field.is-invalid textarea { border-bottom-color: var(--error); }
.field__error { display: block; min-height: 1.3em; margin-top: 4px; font-size: .84rem; color: var(--error); }

.check { display: flex; gap: 12px; align-items: flex-start; }
.check input { flex: none; width: 20px; height: 20px; margin: 4px 0 0; accent-color: var(--terra); }
.field .check label { margin: 0; font-size: .92rem; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--ink-soft); }
.check a { color: var(--terra); text-underline-offset: 3px; }

.form-panel .btn { margin-top: 6px; }
.form-status { margin-top: 18px; font-weight: 500; }
.form-status:empty { display: none; }
.form-status.is-error { color: var(--error); }
.form-status.is-success { color: #24623f; }
.form-note { margin-top: 14px; font-size: .84rem; line-height: 1.5; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-2); color: rgba(244, 239, 230, .78); padding: clamp(64px, 8vw, 96px) 0 28px; overflow: hidden; }
.footer__top { display: grid; grid-template-columns: 1.5fr .8fr 1.1fr 1fr; gap: clamp(28px, 4vw, 64px); }
.footer__brand p { margin-top: 20px; max-width: 26em; font-size: .98rem; }
.footer__col h4 { font: 600 .74rem/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--sand); margin-bottom: 18px; }
.footer__col li { margin-bottom: 10px; font-size: .98rem; line-height: 1.5; }
.footer__col a { text-decoration: none; background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat; transition: background-size .3s var(--ease), color .3s; padding-bottom: 2px; }
.footer__col a:hover { color: var(--paper); background-size: 100% 1px; }
.footer__col b { color: var(--paper); }

.footer__wordmark {
  font-family: var(--serif);
  font-size: clamp(4.5rem, 17vw, 15rem);
  line-height: .9;
  letter-spacing: -.04em;
  color: rgba(244, 239, 230, .07);
  margin: clamp(40px, 6vw, 72px) 0 0;
  white-space: nowrap;
  user-select: none;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(244, 239, 230, .16);
  font-size: .88rem;
  color: rgba(244, 239, 230, .6);
}

/* ---------- Dialogs ---------- */
dialog {
  width: min(640px, 92vw);
  max-height: 86vh;
  padding: 0;
  border: 0;
  background: var(--white);
  color: var(--ink);
  overflow: auto;
}
dialog::backdrop { background: rgba(15, 34, 30, .65); }
.dialog__body { position: relative; padding: clamp(28px, 5vw, 48px); }
.dialog__body h2 { font-size: 2rem; margin: 0 0 18px; }
.dialog__body p { margin-bottom: 14px; color: var(--ink-soft); font-size: 1rem; }
.dialog__body a { color: var(--terra); }
.dialog__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  color: var(--ink);
}
.dialog__close:hover { background: var(--ink); color: var(--paper); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
  .hero__note { left: -16px; }
}

@media (max-width: 960px) {
  .burger { display: flex; }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    max-height: calc(100vh - var(--header-h));
    max-height: calc(100dvh - var(--header-h));
    overflow: auto;
    padding: 8px var(--gutter) 28px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list li { border-bottom: 1px solid var(--line); }
  .nav__list a:not(.btn) { display: block; padding: 16px 0; font-family: var(--serif); font-size: 1.6rem; font-weight: 400; background: none; }
  .nav__list li.nav__cta { border: 0; padding-top: 22px; }
  .nav__cta .btn { width: 100%; padding: 1.15em; }

  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { height: clamp(420px, 78vw, 600px); }
  .hero__note { left: 12px; bottom: 16px; max-width: 220px; }

  .section-head { grid-template-columns: 1fr; align-items: start; }

  .about__grid, .services__grid, .contact__grid { grid-template-columns: 1fr; }
  .about__head, .services__intro { position: static; }
  .about__visual { max-width: 640px; }
  .services__visual { display: none; }

  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 44px; }

  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .benefit--lg, .benefit--sm { grid-column: span 1; }
  .benefit--sm:last-child { grid-column: span 2; }

  .band { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
  .band__item:nth-child(3) { padding-left: 0; border-left: 0; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .hero__facts { grid-template-columns: 1fr; }
  .hero__facts li, .hero__facts li + li { padding: 14px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__art { gap: 10px; }

  .ribbon ul { justify-content: flex-start; gap: 6px 22px; padding: 18px 0; }

  .panels { grid-template-columns: 1fr; }
  .panel, .panel + .panel { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .panel::before { top: -1px; }
  .principles ul { grid-template-columns: 1fr; }

  .service { grid-template-columns: 40px minmax(0, 1fr); gap: 6px 16px; padding: 30px 0; }
  .service:hover { padding-left: 0; padding-right: 0; }
  .service__go { grid-column: 2; margin-top: 14px; }

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

  .pledge { grid-template-columns: 1fr; padding-bottom: 0; }
  .pledge__art { width: 160px; justify-self: end; }

  .bento { grid-template-columns: 1fr; }
  .benefit--lg, .benefit--sm, .benefit--sm:last-child { grid-column: span 1; }

  .band { grid-template-columns: 1fr; }
  .band__item, .band__item + .band__item { padding: 0 0 0 0; border-left: 0; }

  .details > div { grid-template-columns: 1fr; gap: 4px; }
  .form-row { grid-template-columns: 1fr; }

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

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
