/* il Nido: shared styles for every page.
   Structure and patterns follow the Selgars Mill reference; fonts and colours are il Nido's
   (Instagram: thin script + hand-drawn capitals + Jost; cream, charcoal, sage, peach; old site: green, teal, ochre, sky). */

:root {
  --cream: #FAF6EE;      /* page */
  --sand: #F2EADF;       /* second light band */
  --white: #FFFFFF;
  --ink: #2B2B2B;        /* text */
  --ink-2: #4E4A45;
  --muted: #7A736A;
  --night: #203A35;      /* dark bands, header, footer */
  --night-deep: #172B27; /* hero card */
  --night-card: #2A4842; /* cards on dark */
  --sage: #8DB3A6;
  --sage-deep: #4C7A6A;
  --green: #3F7652;
  --teal: #5A7A81;
  --ochre: #DCA65F;
  --peach: #FBEBDD;
  --sky: #DCE6EA;
  --line: rgba(43, 43, 43, .14);
  --line-dark: rgba(255, 255, 255, .16);
  --field: #D9D1C5;
  --red: #A8452F;
  --grad: linear-gradient(100deg, #3F7652, #5A7A81);

  --f-sans: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-hand: 'Patrick Hand SC', 'Jost', cursive;
  --f-script: 'Sacramento', cursive;
  --f-serif: 'Cormorant Garamond', Georgia, serif;

  --r: 20px;
  --r-sm: 14px;
  --r-field: 12px;
  --wrap: 1160px;
  --narrow: 700px;
  --gut: clamp(16px, 4vw, 32px);
  --pad: clamp(64px, 9vw, 112px);
  --head: 76px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 18px/1.65 var(--f-sans); }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
strong { font-weight: 600; }
:focus-visible { outline: 3px solid var(--ochre); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: #fff; color: var(--ink); padding: 10px 16px; border-radius: 999px; }
.skip:focus { top: 12px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.narrow { max-width: var(--narrow); margin-left: auto; margin-right: auto; }

/* ---------- type ---------- */
.eyebrow { font: 500 12px/1.4 var(--f-sans); letter-spacing: .28em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.dark .eyebrow, .hero .eyebrow, .site-foot .eyebrow { color: var(--sage); }
.eyebrow.rule { display: inline-block; padding-bottom: 10px; border-bottom: 1px solid currentColor; padding-right: 28px; }

/* headings: a script lead-in above hand-drawn capitals, like the Instagram slides */
.title { font-family: var(--f-hand); font-size: clamp(36px, 5.2vw, 62px); line-height: 1.04; letter-spacing: .02em; text-transform: uppercase; color: var(--ink); text-wrap: balance; }
h1.title { font-size: clamp(40px, 6.4vw, 78px); }
.title .s { display: block; font-family: var(--f-script); font-size: 1.32em; line-height: .8; letter-spacing: 0; text-transform: none; color: var(--sage-deep); padding-top: .24em; margin-bottom: .1em; }
.title .s.after { padding-top: 0; margin: .22em 0 0; }
.title.inline .s { display: inline; padding-top: 0; margin: 0 .12em 0 0; font-size: 1.45em; vertical-align: -.06em; }
.title.sm { font-size: clamp(30px, 3.6vw, 44px); }
.dark .title, .hero .title, .on-photo .title, .site-foot .title { color: #fff; }
.dark .title .s, .hero .title .s, .on-photo .title .s, .site-foot .title .s { color: var(--sage); }

.h3 { font-family: var(--f-hand); font-size: 26px; line-height: 1.1; letter-spacing: .02em; text-transform: uppercase; margin: 0 0 10px; }
.subline { font: 600 14px/1.5 var(--f-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--sage-deep); margin: 14px 0 0; }
.dark .subline, .hero .subline { color: var(--sage); }
.lead { color: var(--ink-2); font-size: 19px; }
.dark .lead, .dark p { color: rgba(255, 255, 255, .84); }
.small { font-size: 15px; color: var(--muted); }
.dark .small { color: rgba(255, 255, 255, .66); }
.script-line { font-family: var(--f-script); font-size: clamp(30px, 4vw, 40px); line-height: 1.1; color: var(--sage-deep); }

.intro { text-align: center; max-width: 760px; margin: 0 auto clamp(36px, 5vw, 56px); }
.intro .lead { max-width: 680px; margin: 22px auto 0; }
.intro .lead p { margin-bottom: .8em; }

/* ---------- sections ---------- */
.sec { padding: var(--pad) 0; }
.sec.white { background: var(--white); }
.sec.sand { background: var(--sand); }
.sec.dark { background: var(--night); color: #E9EFEC; }
.sec.tight { padding-top: clamp(40px, 5vw, 64px); }
.sec + .sec.same { padding-top: 0; }
.stack > * + * { margin-top: clamp(40px, 6vw, 72px); }

/* ---------- buttons ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 30px; }
.btns.left { justify-content: flex-start; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 48px; padding: 8px 30px; border-radius: 999px; border: 1.5px solid transparent;
  font: 500 13px/1.25 var(--f-sans); letter-spacing: .16em; text-transform: uppercase; text-decoration: none; text-align: center; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0, 0, 0, .12); }
.btn.main { background: var(--grad); color: #fff; }
.btn.soft { background: var(--peach); border-color: var(--ink); color: var(--ink); }
.btn.light { background: #fff; color: var(--ink); }
.btn.ghost { border-color: rgba(255, 255, 255, .75); color: #fff; }
.btn.line { border-color: var(--sage-deep); color: var(--sage-deep); background: transparent; }
.btn.ink { background: var(--ink); color: #fff; }
/* the long hand-drawn arrow from the Instagram buttons */
.btn.arrow::after { content: ""; width: 30px; height: 10px; flex: none; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 10'%3E%3Cpath d='M1 5h27M23 1l5 4-5 4' fill='none' stroke='%23000' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 10'%3E%3Cpath d='M1 5h27M23 1l5 4-5 4' fill='none' stroke='%23000' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }
.link { font: 500 13px/1.4 var(--f-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--sage-deep); }
.dark .link { color: var(--sage); }

/* ---------- header ---------- */
.site-head { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--head); color: #fff; transition: transform .35s ease, background-color .3s ease, box-shadow .3s ease; }
.site-head.solid { background: var(--night); box-shadow: 0 1px 0 var(--line-dark); }
.site-head.hide { transform: translateY(-100%); }
.head-in { height: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--gut); display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; color: inherit; text-decoration: none; flex: none; }
.brand svg { height: 46px; width: auto; }
.mainnav { margin-left: auto; }
.mainnav > ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.mainnav li { position: relative; }
.mainnav .top { display: flex; align-items: center; gap: 6px; background: none; border: 0; color: inherit; cursor: pointer; padding: 12px 14px; border-radius: 999px;
  font: 500 12.5px/1 var(--f-sans); letter-spacing: .18em; text-transform: uppercase; }
.mainnav .top::after { content: ""; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg) translateY(-2px); opacity: .7; }
.mainnav li.here > .top { color: var(--sage); }
.mainnav li.open > .top, .mainnav .top:hover { background: rgba(255, 255, 255, .1); }
.dd { position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%); min-width: 230px; list-style: none; margin: 0; padding: 10px;
  background: var(--night); border: 1px solid var(--line-dark); border-radius: 16px; box-shadow: 0 16px 40px rgba(0, 0, 0, .25); display: none; }
.dd::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.mainnav li.open .dd { display: block; }
@media (hover: hover) { .mainnav li:hover .dd { display: block; } }
.dd a { display: block; padding: 11px 14px; border-radius: 10px; color: #fff; text-decoration: none; font: 500 12px/1.3 var(--f-sans); letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; }
.dd a:hover { background: rgba(255, 255, 255, .08); }
.dd a[aria-current] { color: var(--sage); }
.head-cta { margin-left: 10px; min-height: 44px; padding: 6px 26px; }
.head-give { margin-left: 10px; min-height: 44px; padding: 6px 22px; }
.menu-btn { display: none; margin-left: auto; align-items: center; gap: 10px; background: none; border: 1.5px solid rgba(255, 255, 255, .6); color: inherit; border-radius: 999px; min-height: 44px; padding: 0 18px;
  font: 500 12px/1 var(--f-sans); letter-spacing: .18em; text-transform: uppercase; cursor: pointer; }
.menu-btn span { width: 18px; height: 10px; border: solid currentColor; border-width: 1.5px 0; }

/* phone menu: full screen, every link visible */
.phone-menu { position: fixed; inset: 0; z-index: 60; background: var(--night); color: #fff; overflow-y: auto; padding: 18px var(--gut) 40px; }
.phone-menu[hidden] { display: none; }
.pm-top { display: flex; align-items: center; justify-content: space-between; min-height: 48px; margin-bottom: 22px; }
.pm-top .brand svg { height: 42px; }
.pm-close { background: none; border: 1.5px solid rgba(255, 255, 255, .6); color: #fff; border-radius: 999px; min-height: 44px; padding: 0 18px; font: 500 12px/1 var(--f-sans); letter-spacing: .18em; text-transform: uppercase; cursor: pointer; }
.pm-btns { display: grid; gap: 10px; margin-bottom: 28px; }
.pm-btns .btn { width: 100%; }
.pm-group { border-top: 1px solid var(--line-dark); padding: 18px 0 12px; }
.pm-group h2 { font: 500 12px/1 var(--f-sans); letter-spacing: .28em; text-transform: uppercase; color: var(--sage); margin-bottom: 8px; }
.pm-group a { display: block; padding: 9px 0 9px 14px; color: #fff; text-decoration: none; font-size: 20px; }
.pm-group a[aria-current] { color: var(--sage); }
/* the privacy line under each form */
.privacy { margin: 18px 0 0; color: var(--muted); text-wrap: pretty; }
.privacy a { color: inherit; }
/* links that jump to a section: smaller, tucked in under their page */
.dd a.sub { padding: 7px 14px 7px 28px; font: 400 14px/1.3 var(--f-sans); letter-spacing: 0; text-transform: none; color: rgba(255, 255, 255, .78); }
.pm-group a.sub { padding: 6px 0 6px 30px; font-size: 16px; color: rgba(255, 255, 255, .76); }
.pm-foot { border-top: 1px solid var(--line-dark); padding-top: 20px; font-size: 15px; color: rgba(255, 255, 255, .72); }
.pm-foot a { color: #fff; }
body.menu-open { overflow: hidden; }

@media (max-width: 1020px) {
  .mainnav, .head-cta { display: none; }
  .menu-btn { display: inline-flex; }
  .head-give { display: none; }
  :root { --head: 68px; }
  .brand svg { height: 40px; }
}

/* ---------- hero: the photo fills the whole banner, a dark card sits on it ---------- */
/* (the photo layer covers the full section, so it never stops halfway behind the card) */
.hero { position: relative; overflow: hidden; background: var(--night); color: #fff; padding-bottom: clamp(48px, 7vw, 88px); }
.hero-media { height: clamp(360px, 66vh, 700px); }
.hero-media img, .hero-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(10, 20, 18, .5), rgba(10, 20, 18, 0) 30%, rgba(10, 20, 18, 0) 58%, rgba(10, 20, 18, .45)); }
.hero > .wrap { position: relative; z-index: 2; }
.hero.short .hero-media { height: clamp(300px, 52vh, 520px); }
.hero-card { position: relative; z-index: 2; max-width: 820px; margin: -200px auto 0; background: var(--night-deep); border-radius: var(--r); text-align: center;
  padding: clamp(32px, 5vw, 60px) clamp(22px, 5vw, 64px); }
.hero-card .lead { color: rgba(255, 255, 255, .84); max-width: 580px; margin: 20px auto 0; }
/* home: the banner video ends just below the card; the three photos sit on a dark band after it */
.hero-after { background: var(--night); padding: clamp(28px, 4vw, 44px) 0 clamp(48px, 7vw, 88px); }
/* home: more video, a slim card in the middle of it, the words and buttons right below the video */
.hero.home { padding-bottom: 0; }
.hero.home .hero-media { height: clamp(420px, 72vh, 780px); }
.hero.home > .wrap { position: absolute; inset: var(--head) 0 0; display: grid; place-items: center; padding-bottom: 7vh; }
.hero.home .hero-card { width: 100%; max-width: 520px; margin: 0; padding: clamp(20px, 2.4vw, 28px) clamp(20px, 3vw, 36px);
  background: rgba(23, 43, 39, .8); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.hero.home h1.title { font-size: clamp(30px, 3.3vw, 44px); }
.hero.home .eyebrow { margin-bottom: 10px; }
.hero-intro { text-align: center; max-width: 780px; text-wrap: pretty; margin: clamp(8px, 2vw, 20px) auto clamp(36px, 5vw, 56px); }
.hero-intro .lead { margin: 0; }
.hero-intro .btns { margin-top: 24px; }
@media (max-width: 700px) {
  .hero-media { height: 58vh; min-height: 340px; }
  .hero.short .hero-media { height: 44vh; min-height: 280px; }
  .hero-card { margin-top: -84px; }
  .hero-card .btns .btn { width: 100%; }
  .hero.home .hero-media { height: 66vh; min-height: 400px; }
  .hero.home > .wrap { padding-bottom: 4vh; }
  .hero-intro .btns .btn { width: 100%; }
}

/* ---------- photos ---------- */
.ph { border-radius: var(--r); overflow: hidden; background: var(--sand); }
.ph img { width: 100%; height: 100%; object-fit: cover; }
figure { margin: 0; }
figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.row3 > * { aspect-ratio: 4 / 3; }
.row3.tall > * { aspect-ratio: 3 / 4; }
@media (max-width: 700px) {
  .row3 { grid-template-columns: 1fr 1fr; gap: 10px; }
  .row3 > :first-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
  .row3.tall > :first-child { aspect-ratio: 4 / 3; }
}
.strip { height: clamp(200px, 28vw, 360px); overflow: hidden; background: var(--sand); }
.strip img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- slider and carousels (scroll-snap, arrows, thumbnails) ---------- */
.carousel { position: relative; }
.track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.track::-webkit-scrollbar { display: none; }
.slider .track { border-radius: var(--r); }
.slider .track > * { flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: 16 / 9; }
.slider .track img { width: 100%; height: 100%; object-fit: cover; }
.cnav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: var(--ink); cursor: pointer;
  display: grid; place-items: center; box-shadow: 0 4px 14px rgba(0, 0, 0, .15); }
.cnav::before { content: ""; width: 10px; height: 10px; border: solid currentColor; border-width: 0 0 2px 2px; transform: translateX(2px) rotate(45deg); }
.cnav.next::before { transform: translateX(-2px) rotate(-135deg); }
.cnav.prev { left: 14px; } .cnav.next { right: 14px; }
.cnav[disabled] { opacity: .35; cursor: default; }
.thumbs { display: flex; gap: 10px; justify-content: center; margin-top: 14px; flex-wrap: wrap; }
.thumbs button { width: 74px; height: 56px; padding: 0; border: 0; border-radius: 10px; overflow: hidden; cursor: pointer; opacity: .5; transition: opacity .2s; background: none; }
.thumbs button[aria-current="true"] { opacity: 1; outline: 2px solid var(--sage-deep); outline-offset: 2px; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 700px) {
  .slider .track > * { aspect-ratio: 4 / 3; }
  .cnav { width: 40px; height: 40px; }
  .thumbs button { width: 56px; height: 44px; }
}
.under-nav { display: flex; gap: 10px; justify-content: center; margin-top: 22px; }
.under-nav .cnav { position: static; transform: none; }

/* reviews */
/* reviews, like the reference: a serif quote, then a round photo with name and a grey line */
.quotes { gap: 24px; padding: 4px 2px 8px; }
.quotes > * { flex: 0 0 calc(50% - 12px); scroll-snap-align: start; }
.quote { margin: 0; background: #fff; border-radius: 20px; padding: clamp(26px, 3vw, 34px) clamp(24px, 3vw, 32px); display: flex; flex-direction: column; }
.sec.white .quote, .quote.on-cream { background: var(--cream); }
.dark .quote { background: var(--night-card); color: #fff; }
.quote blockquote { margin: 0; font: 400 clamp(19px, 1.6vw, 21px)/1.6 var(--f-serif); }
.quote blockquote::before, .big-quote blockquote::before { content: "\201C"; }
.quote blockquote::after, .big-quote blockquote::after { content: "\201D"; }
.quote .tr { font-size: 15px; color: var(--muted); margin-top: 12px; }
.dark .quote .tr { color: rgba(255, 255, 255, .6); }
.person { display: flex; align-items: center; gap: 16px; margin-top: auto; padding-top: 28px; text-align: left; color: inherit; }
.person img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; background: var(--sand); }
.person b { display: block; font: 500 17px/1.3 var(--f-sans); }
.person small { display: block; font: 400 14px/1.4 var(--f-sans); color: var(--muted); margin-top: 2px; }
.dark .person small { color: rgba(255, 255, 255, .62); }
.big-quote { text-align: center; max-width: 820px; margin: 0 auto; }
.big-quote blockquote { margin: 0; font: 400 clamp(23px, 2.5vw, 30px)/1.5 var(--f-serif); }
.big-quote .person { flex-direction: column; gap: 12px; padding-top: 30px; text-align: center; }
.big-quote .person img { width: 64px; height: 64px; }
.big-quote .person b { font-weight: 600; font-size: 16px; }
.dots { display: flex; gap: 8px; justify-content: center; margin-top: 26px; min-height: 8px; }
.dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px; color: inherit; background: currentColor; opacity: .3; cursor: pointer; transition: width .25s, opacity .25s; }
.dots button[aria-current="true"] { width: 30px; opacity: .9; }
@media (max-width: 860px) { .quotes > * { flex-basis: 88%; } }

/* ---------- layout blocks ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5.5vw, 80px); align-items: center; }
.split.rev .media { order: 2; }
.split .media > .ph { aspect-ratio: 4 / 5; }
.split .media.wide > .ph { aspect-ratio: 4 / 3; }
.split .media.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.split .media.duo > .ph { aspect-ratio: 3 / 4; }
.split .media.duo > .ph:nth-child(2) { margin-top: 48px; }
.split .text .title { margin-bottom: 22px; }
.split .text > .eyebrow + .title { margin-top: 0; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split.rev .media { order: 0; }
  .split .media > .ph { aspect-ratio: 4 / 3; }
  .split .media.duo > .ph:nth-child(2) { margin-top: 0; }
}

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 16px; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.cards.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .cards.three, .cards.two { grid-template-columns: 1fr; } }
/* five cards: three on top, two wider ones below */
@media (min-width: 861px) {
  .cards.five { grid-template-columns: repeat(6, 1fr); }
  .cards.five > * { grid-column: span 2; }
  .cards.five > :nth-child(n+4) { grid-column: span 3; }
}
.card { background: #fff; border-radius: var(--r); padding: clamp(24px, 3vw, 34px); }
.sand .card { background: #fff; }
.white .card { background: var(--cream); }
.dark .card { background: var(--night-card); }
.card.photo { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.card.photo > .ph { border-radius: 0; aspect-ratio: 4 / 3; }
.card.photo .body { padding: clamp(22px, 3vw, 30px); flex: 1; display: flex; flex-direction: column; }
.card .btns { margin-top: auto; padding-top: 20px; justify-content: flex-start; }
.card p { color: var(--ink-2); }
.dark .card p { color: rgba(255, 255, 255, .8); }

/* home: two ways to come */
.ways { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.way { background: #fff; border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; }
.way > .ph { border-radius: 0; aspect-ratio: 3 / 2; }
.way .body { padding: clamp(26px, 3.4vw, 44px); flex: 1; display: flex; flex-direction: column; }
.way .title { font-size: clamp(34px, 3.8vw, 48px); margin: 18px 0 0; }
.way .btns { margin-top: auto; padding-top: 26px; justify-content: flex-start; }
.way .body > p { margin-top: 18px; color: var(--ink-2); }
@media (max-width: 860px) { .ways { grid-template-columns: 1fr; } }

/* who is it for: handwritten words on a photo */
.on-photo { position: relative; color: #fff; overflow: hidden; }
.on-photo > .bg { position: absolute; inset: 0; }
.on-photo > .bg img { width: 100%; height: 100%; object-fit: cover; }
.on-photo > .bg::after { content: ""; position: absolute; inset: 0; background: rgba(16, 30, 27, .55); }
.on-photo > .wrap { position: relative; }
.on-photo .eyebrow { color: #fff; opacity: .85; }
/* the words are scattered across the photo like handwriting: each one turned, lifted or a bit bigger */
.hand-list { position: relative; list-style: none; margin: 0 auto; padding: 14px 0; max-width: 1080px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 40px;
  font-family: 'Patrick Hand', var(--f-hand); font-size: clamp(26px, 3.3vw, 44px); line-height: 1.25; }
.hand-list li { --r: 0deg; --y: 0px; transform: translateY(var(--y)) rotate(var(--r)); transition: color .35s; cursor: default; }
.hand-list li:nth-child(1) { --r: -6deg; --y: 10px; font-size: 1.12em; }
.hand-list li:nth-child(2) { --r: 4deg; --y: -14px; font-size: .86em; }
.hand-list li:nth-child(3) { --r: -2deg; --y: 16px; }
.hand-list li:nth-child(4) { --r: 7deg; --y: -6px; font-size: .94em; }
.hand-list li:nth-child(5) { --r: -4deg; --y: 6px; font-size: 1.22em; margin-left: 3%; }
.hand-list li:nth-child(6) { --r: 5deg; --y: -16px; font-size: .9em; }
.hand-list li:nth-child(7) { --r: -7deg; --y: 8px; }
.hand-list li:nth-child(8) { --r: 2deg; --y: 18px; font-size: 1.06em; margin-right: 4%; }
.hand-list li:nth-child(9) { --r: -2.5deg; --y: -4px; font-size: 1.16em; }
.hand-list li.on { color: var(--peach); }
.hand-list .hand-ring { position: absolute; left: 0; top: 0; width: 0; height: 0; padding: 0; margin: 0; pointer-events: none; color: #fff; transform: rotate(-3deg);
  transition: left .55s cubic-bezier(.3, .7, .2, 1), top .55s cubic-bezier(.3, .7, .2, 1), width .55s cubic-bezier(.3, .7, .2, 1), height .55s cubic-bezier(.3, .7, .2, 1); }
.hand-ring svg { display: block; width: 100%; height: 100%; overflow: visible; }
.hand-ring path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; vector-effect: non-scaling-stroke; }
@media (max-width: 700px) {
  .hand-list { gap: 6px 22px; }
  .hand-list li { transform: translateY(calc(var(--y) * .4)) rotate(calc(var(--r) * .7)); }
  .hand-list li:nth-child(5), .hand-list li:nth-child(8) { margin-left: 0; margin-right: 0; }
}
.on-photo .closing { text-align: center; margin-top: 40px; font-size: 20px; }
/* the closing line in big handwriting, so the script reads well on the photo */
.on-photo .closing .script-line { margin-top: 26px; font-size: clamp(44px, 6vw, 76px); line-height: 1.02; color: var(--peach); text-shadow: 0 2px 22px rgba(0, 0, 0, .3); }

/* numbers */
/* numbers: little hand-made notes, each a different colour and a little crooked */
.numbers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; list-style: none; margin: 8px 0 0; padding: 0; text-align: center; }
.numbers li { --bg: #fff; --c: var(--ochre); background: var(--bg); border-radius: var(--r); padding: 26px 16px 24px; rotate: var(--tilt, 0deg);
  box-shadow: 0 10px 24px -18px rgba(43, 43, 43, .35); }
.numbers li:nth-child(8n+1) { --tilt: -1.4deg; }
.numbers li:nth-child(8n+2) { --tilt: 1deg; --bg: var(--sky); --c: var(--teal); }
.numbers li:nth-child(8n+3) { --tilt: -.6deg; --bg: var(--peach); }
.numbers li:nth-child(8n+4) { --tilt: 1.6deg; --bg: #E4EEE8; --c: var(--sage-deep); }
.numbers li:nth-child(8n+5) { --tilt: 1.2deg; --bg: #E4EEE8; --c: var(--sage-deep); }
.numbers li:nth-child(8n+6) { --tilt: -1.2deg; }
.numbers li:nth-child(8n+7) { --tilt: .8deg; --bg: var(--sky); --c: var(--teal); }
.numbers li:nth-child(8n+8) { --tilt: -1.6deg; --bg: var(--peach); }
.numbers b { display: block; font: 400 clamp(50px, 5.4vw, 74px)/1 var(--f-hand); color: var(--c); white-space: nowrap; }
.numbers b i { font-style: normal; }
.numbers b small { font-size: .4em; margin-left: .14em; }
.numbers span { display: block; margin-top: 10px; font: 500 12px/1.35 var(--f-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
.numbers em { display: block; margin-top: 8px; font: 400 18px/1.25 'Patrick Hand', var(--f-sans); font-style: normal; color: var(--muted); }
@media (max-width: 860px) {
  .numbers { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .numbers li { padding: 22px 12px 20px; }
  .numbers em { font-size: 16px; }
}

/* checklist */
.check { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.check.two { grid-template-columns: 1fr 1fr; column-gap: 32px; }
@media (max-width: 700px) { .check.two { grid-template-columns: 1fr; } }
/* "What I can offer": little tiles, even rows; the extra text sits in two cards below */
.gifts { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gifts li { --bg: var(--cream); display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 18px; border-radius: var(--r-sm);
  background: var(--bg); font: 400 19px/1.25 'Patrick Hand', var(--f-sans); color: var(--ink); }
.gifts li::before { content: "\2733"; flex: none; color: var(--ochre); font-size: 15px; }
.gifts li:nth-child(4n+2) { --bg: var(--sky); }
.gifts li:nth-child(4n+3) { --bg: var(--peach); }
.gifts li:nth-child(4n+4) { --bg: #E4EEE8; }
.gifts li.wide { grid-column: 1 / -1; justify-content: center; --bg: var(--night); color: #fff; font-size: 21px; }
.gifts li.wide::before { content: "\2661"; color: var(--sage); font-size: 20px; }
.give-take { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.4vw, 28px); margin-top: clamp(40px, 6vw, 72px); }
.give-take .card { height: 100%; }
.give-take .card p:last-child { margin-bottom: 0; }
.tags { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { border: 1.5px solid var(--sage); border-radius: 999px; padding: 7px 15px; font-size: 15px; line-height: 1.3; color: var(--ink-2); background: #fff; }
.give-close { text-align: center; max-width: 720px; margin: clamp(40px, 6vw, 64px) auto 0; }
.give-close .lead { margin: 0 0 10px; }
@media (max-width: 860px) { .give-take { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .gifts li { font-size: 17px; padding: 10px 12px; gap: 8px; min-height: 56px; } }
.check li { position: relative; padding-left: 36px; }
.check li::before { content: "\2713"; position: absolute; left: 0; top: .2em; width: 24px; height: 24px; border-radius: 50%; background: var(--sage-deep); color: #fff; font-size: 13px; line-height: 24px; text-align: center; }
.dark .check li::before { background: var(--sage); color: var(--night); }

/* notes: soft coloured cards with little stars, like the reference's pink card */
.note { position: relative; background: var(--peach); border-radius: var(--r); padding: clamp(28px, 4.5vw, 56px); }
.note.sky { background: var(--sky); }
.note.white { background: #fff; }
.note::before, .note::after { content: "\2733"; position: absolute; color: var(--ochre); font-size: 26px; line-height: 1; }
.note::before { top: 18px; right: 22px; }
.note::after { bottom: 18px; left: 22px; font-size: 18px; }
.note.plain::before, .note.plain::after { content: none; }
.note .title { margin-bottom: 18px; }
/* "Bring your craft": photo beside the text */
.craft-note { display: grid; grid-template-columns: minmax(0, .8fr) 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.craft-note::after { content: none; }
.craft-note .ph { aspect-ratio: 4 / 5; }
.craft-note .title { margin-bottom: 14px; }
@media (max-width: 860px) { .craft-note { grid-template-columns: 1fr; } .craft-note .ph { aspect-ratio: 4 / 3; } }
.split-note { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
@media (max-width: 860px) { .split-note { grid-template-columns: 1fr; } }

/* small photo gallery inside a section: swipe, arrows on hover, dots on the photo */
.pics .track { border-radius: var(--r); background: var(--sand); }
.pics .track > .ph { flex: 0 0 100%; scroll-snap-align: start; border-radius: 0; aspect-ratio: 4 / 5; }
.split .media.wide .pics .track > .ph, .split-note .pics .track > .ph { aspect-ratio: 4 / 3; }
.pics .cnav { width: 40px; height: 40px; opacity: 0; transition: opacity .25s; }
.pics:hover .cnav, .pics:focus-within .cnav { opacity: 1; }
.pics:hover .cnav[disabled] { opacity: .35; }
@media (hover: none) { .pics .cnav { display: none; } }
.pics .dots { position: absolute; left: 0; right: 0; bottom: 14px; margin: 0; color: #fff; pointer-events: none; }
.pics .dots button { pointer-events: auto; opacity: .55; box-shadow: 0 1px 4px rgba(0, 0, 0, .3); }
.pics .dots button[aria-current="true"] { opacity: 1; }
@media (max-width: 860px) { .pics .track > .ph { aspect-ratio: 4 / 3; } }

/* photo band between long texts, like the reference's pause photos */
.pause { padding: clamp(14px, 2.4vw, 28px) 0; background: var(--white); }
.pause .ph { height: clamp(220px, 34vw, 460px); }

/* film: a tall video card with a round play button and a caption over a dark fade */
.film { position: relative; margin: 0 auto; width: 100%; max-width: 380px; aspect-ratio: 9 / 16; border-radius: var(--r); overflow: hidden;
  background: var(--night-deep); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .55); }
.film video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film::after { content: ""; position: absolute; inset: 0; pointer-events: none; transition: opacity .4s;
  background: linear-gradient(to bottom, rgba(10, 20, 18, 0) 55%, rgba(10, 20, 18, .66)); }
.film .play { position: absolute; z-index: 2; left: 50%; top: 50%; translate: -50% -50%; width: 78px; height: 78px; border: 0; border-radius: 50%;
  background: #fff; color: var(--night); display: grid; place-items: center; cursor: pointer; box-shadow: 0 12px 30px rgba(0, 0, 0, .28);
  transition: scale .3s cubic-bezier(.2, .7, .2, 1), opacity .3s; }
.film .play svg { width: 28px; height: 28px; margin-left: 4px; }
.film figcaption { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 20px 22px; text-align: center; color: #fff;
  font-size: 14px; letter-spacing: .04em; transition: opacity .3s; }
.film.playing .play, .film.playing figcaption, .film.playing::after { opacity: 0; pointer-events: none; }
@media (hover: hover) { .film .play:hover { scale: 1.08; } }
@media (max-width: 860px) { .film { max-width: 340px; } }

/* steps to join */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.steps li { background: #fff; border-radius: var(--r); padding: 28px 26px; }
.white .steps li { background: var(--cream); }
.steps li::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--grad); color: #fff; font: 500 18px/1 var(--f-sans); margin-bottom: 18px; }
.steps p { color: var(--ink-2); margin-top: 6px; }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* a day: timeline */
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--sage); }
.timeline li { position: relative; padding: 0 0 30px 30px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -9px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--cream); border: 2px solid var(--sage-deep); }
.sand .timeline li::before { background: var(--sand); }
.timeline .t { font: 500 12px/1.4 var(--f-sans); letter-spacing: .22em; text-transform: uppercase; color: var(--sage-deep); margin-bottom: 4px; }
.timeline .h3 { margin-bottom: 6px; }
.timeline p { color: var(--ink-2); }

/* accordion (FAQ and "good to know") */
.qa-group { margin-top: 44px; }
.qa-group:first-child { margin-top: 0; }
.qa-group > h2 { font: 500 12px/1.4 var(--f-sans); letter-spacing: .28em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
details.qa { border-top: 1px solid var(--line); }
details.qa:last-child { border-bottom: 1px solid var(--line); }
details.qa summary { list-style: none; cursor: pointer; position: relative; padding: 22px 52px 22px 0; font: 500 20px/1.35 var(--f-sans); }
details.qa summary::-webkit-details-marker { display: none; }
details.qa summary::after { content: "+"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font: 300 34px/1 var(--f-sans); color: var(--sage-deep); transition: transform .2s; }
details.qa[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details.qa .a { padding: 0 0 26px; color: var(--ink-2); max-width: 720px; }
.dark details.qa { border-color: var(--line-dark); }
.dark details.qa summary::after { color: var(--sage); }
.dark details.qa .a { color: rgba(255, 255, 255, .82); }

/* plain-words text block (one per page, for search engines and careful readers) */
.prose { max-width: var(--narrow); margin: 0 auto; }
.prose p { color: var(--ink-2); }

/* closing band */
.cta { text-align: center; }
.cta .intro { margin-bottom: 0; }
.cta .small { margin-top: 22px; }

/* ---------- gallery and lightbox ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 28px; }
.filters button { border: 1.5px solid var(--field); background: #fff; color: var(--ink); border-radius: 999px; min-height: 40px; padding: 0 18px; cursor: pointer;
  font: 500 12px/1 var(--f-sans); letter-spacing: .14em; text-transform: uppercase; }
.filters button[aria-pressed="true"] { background: var(--sage-deep); border-color: var(--sage-deep); color: #fff; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.grid a { display: block; aspect-ratio: 1; border-radius: var(--r-sm); overflow: hidden; background: var(--sand); }
.grid a[hidden] { display: none; }
.grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.grid a:hover img { transform: scale(1.04); }
@media (max-width: 860px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr 1fr; gap: 8px; } }
.lightbox { border: 0; padding: 0; max-width: none; max-height: none; width: 100%; height: 100%; background: rgba(12, 20, 18, .94); color: #fff; }
.lightbox::backdrop { background: rgba(12, 20, 18, .94); }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: 14px var(--gut); font-size: 14px; color: rgba(255, 255, 255, .7); }
.lb-close { background: none; border: 1.5px solid rgba(255, 255, 255, .6); color: #fff; border-radius: 999px; min-height: 42px; padding: 0 18px; font: 500 12px/1 var(--f-sans); letter-spacing: .18em; text-transform: uppercase; cursor: pointer; }
.lb-img { display: grid; place-items: center; min-height: 0; padding: 0 var(--gut); position: relative; }
.lb-img img { max-width: 100%; max-height: calc(100vh - 150px); max-height: calc(100dvh - 150px); object-fit: contain; border-radius: 10px; }
.lb-img .cnav.prev { left: var(--gut); } .lb-img .cnav.next { right: var(--gut); }
.lb-cap { text-align: center; padding: 14px var(--gut) 22px; font-size: 15px; color: rgba(255, 255, 255, .8); min-height: 54px; }

/* ---------- forms ---------- */
.form-card { background: #fff; border-radius: var(--r); padding: clamp(22px, 4.5vw, 52px); max-width: 860px; margin: 0 auto; }
.form-card > .title { text-align: center; }
fieldset { border: 0; margin: 0 0 8px; padding: 0; min-width: 0; }
legend { font-family: var(--f-hand); font-size: 28px; letter-spacing: .02em; text-transform: uppercase; padding: 0; margin-bottom: 6px; }
.field { display: grid; gap: 7px; margin-bottom: 20px; }
.field label, .field .q { font-weight: 500; font-size: 16px; line-height: 1.45; }
.hint { font-weight: 400; color: var(--muted); font-size: 15px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 620px) { .row { grid-template-columns: 1fr; } }
input, select, textarea { width: 100%; font: 400 17px/1.4 var(--f-sans); color: var(--ink); background: #fff; border: 1.5px solid var(--field); border-radius: var(--r-field); padding: 12px 14px; min-height: 50px; }
textarea { min-height: 130px; resize: vertical; }
select { appearance: none; -webkit-appearance: none; padding-right: 42px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%232B2B2B' stroke-width='1.5'/%3E%3C/svg%3E") right 16px center/12px no-repeat; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--sage-deep); box-shadow: 0 0 0 3px rgba(141, 179, 166, .4); }
[aria-invalid="true"] { border-color: var(--red); }
.err { color: var(--red); font-size: 14px; }
label.tick { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1.5px solid #E6DFD4; border-radius: var(--r-field); margin-bottom: 10px; cursor: pointer; font-weight: 400; line-height: 1.5; }
label.tick input { width: 22px; height: 22px; min-height: 0; margin: 2px 0 0; flex: none; accent-color: var(--sage-deep); }
label.tick:has(input:checked) { border-color: var(--sage); background: #F4F8F6; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; border: 1.5px solid var(--field); border-radius: 999px; padding: 9px 16px; cursor: pointer; font-weight: 400; font-size: 15px; line-height: 1.3; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; }
.chips label:has(input:checked) { background: var(--sage-deep); border-color: var(--sage-deep); color: #fff; }
.chips label:has(input:disabled) { opacity: .45; cursor: default; }
.chips label:has(input:focus-visible) { outline: 3px solid var(--ochre); outline-offset: 2px; }
.count { font-size: 13px; color: var(--muted); }
.count.over { color: var(--red); }
.notice { border-radius: var(--r-sm); padding: 18px 20px; margin-top: 18px; font-size: 16px; }
.notice.no { background: #F8E7E0; }
.notice.ok { background: #E4EFEA; }
.notice.info { background: var(--peach); margin: 0 0 24px; }
.notice pre { white-space: pre-wrap; word-break: break-word; background: #fff; padding: 12px 14px; border-radius: 10px; font: 400 14px/1.5 ui-monospace, Menlo, monospace; max-height: 260px; overflow: auto; margin: 14px 0 0; }
.notice .btns { justify-content: flex-start; margin-top: 16px; }
.form-foot { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-top: 12px; }
.form-foot .back { background: none; border: 0; padding: 10px 0; cursor: pointer; font: 500 13px/1 var(--f-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.form-foot .back[hidden] { display: block; visibility: hidden; }

/* stepper: numbered circles joined by lines */
.stepper { display: flex; list-style: none; margin: 0 0 34px; padding: 0; counter-reset: st; }
.stepper li { flex: 1; position: relative; text-align: center; font: 500 11px/1.35 var(--f-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.stepper li::before { counter-increment: st; content: counter(st); position: relative; z-index: 1; display: grid; place-items: center; width: 42px; height: 42px; margin: 0 auto 10px; border-radius: 50%;
  border: 1.5px solid var(--field); background: #fff; color: var(--muted); font-size: 16px; letter-spacing: 0; }
.stepper li::after { content: ""; position: absolute; top: 21px; right: calc(50% + 21px); left: calc(-50% + 21px); height: 1.5px; background: var(--field); }
.stepper li:first-child::after { content: none; }
.stepper li.now { color: var(--ink); }
.stepper li.now::before { background: var(--grad); border-color: transparent; color: #fff; }
.stepper li.done::before { content: "\2713"; background: var(--sage-deep); border-color: var(--sage-deep); color: #fff; }
.stepper li.done::after, .stepper li.now::after { background: var(--sage-deep); }
@media (max-width: 560px) { .stepper li span { display: none; } .stepper li.now span { display: block; } }
.step-head { margin-bottom: 22px; }
.step-head .h3 { font-size: 30px; margin-bottom: 4px; }
.step-head p { color: var(--muted); }
.step[hidden] { display: none; }

/* ---------- giving box (support page): pick an amount, once or monthly, then off to Stripe ---------- */
.give-sec { position: relative; padding: var(--pad) 0; overflow: hidden; background: var(--night); }
.give-bg { position: absolute; inset: 0; }
.give-bg img { width: 100%; height: 100%; object-fit: cover; }
.give-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(23, 43, 39, .15), rgba(23, 43, 39, .45)); }
.give { position: relative; max-width: 500px; margin: 0 auto; background: var(--cream); border-radius: 26px; padding: clamp(22px, 5.5vw, 30px); box-shadow: 0 24px 60px rgba(0, 0, 0, .25); }
.give-top { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.give-pic { width: 64px; height: 64px; flex: none; border-radius: 50%; overflow: hidden; }
.give-pic img { width: 100%; height: 100%; object-fit: cover; }
.give-who .eyebrow { margin-bottom: 4px; font-size: 11px; letter-spacing: .26em; }
.give-logo { color: var(--night); }
.give-logo svg { height: 34px; width: auto; }
.give-quote { font-size: 16px; line-height: 1.6; color: var(--ink-2); margin-bottom: 20px; }
.give-step { margin: 0 0 18px; padding: 0; border: 0; min-width: 0; }
.give-step > .eyebrow { display: block; font: 500 11px/1.4 var(--f-sans); letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; padding: 0; }
.give-amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 8px; }
.give-amounts label, .give-often label { position: relative; cursor: pointer; }
.give-amounts input, .give-often input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; }
.give-amounts span { display: grid; place-items: center; min-height: 56px; border: 1.5px solid var(--field); border-radius: 10px; background: #fff; font: 600 clamp(19px, 5.4vw, 24px)/1 var(--f-sans); letter-spacing: -.01em; transition: background-color .15s, border-color .15s, color .15s; }
.give-often { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.give-often span { display: grid; place-items: center; min-height: 44px; padding: 6px 10px; border: 1.5px solid var(--field); border-radius: 10px; background: #fff; font: 500 12px/1.2 var(--f-sans); letter-spacing: .2em; text-transform: uppercase; text-align: center; transition: background-color .15s, border-color .15s, color .15s; }
.give-amounts label:hover span, .give-often label:hover span { border-color: var(--sage-deep); }
.give-amounts input:checked + span, .give-often input:checked + span { background: var(--night); border-color: var(--night); color: #fff; }
.give-amounts input:focus-visible + span, .give-often input:focus-visible + span { outline: 3px solid var(--ochre); outline-offset: 2px; }
.give-own { display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--field); border-radius: 10px; background: #fff; padding: 0 14px; min-height: 46px; cursor: text; }
.give-own:focus-within { border-color: var(--sage-deep); box-shadow: 0 0 0 3px rgba(141, 179, 166, .4); }
.give-own span { flex: 1; color: var(--muted); font-size: 16px; }
.give-own input { width: 7ch; flex: none; border: 0; padding: 0; min-height: 0; background: none; text-align: right; font-size: 16px; box-shadow: none; -moz-appearance: textfield; }
.give-own input::-webkit-outer-spin-button, .give-own input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.give-own input:focus { box-shadow: none; }
.give-own b { font-weight: 400; color: var(--muted); letter-spacing: .08em; }
.give-step input[type=email] { border-radius: 10px; min-height: 48px; font-size: 16px; }
.give-go { width: 100%; min-height: 52px; font-size: 14px; letter-spacing: .1em; }
.give-go[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.give-note { margin: 12px 0 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.give-note.warn { color: var(--red); }
.give-small { margin: 6px 0 16px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.give-more { text-decoration: none; font-size: 12px; }
.give-more:hover { text-decoration: underline; }

/* the Donate pop-up: the same box, opened from any page; a full-screen sheet on phones */
.give-dialog { position: fixed; padding: 0; border: 0; background: transparent; color: var(--ink); width: min(500px, calc(100% - 32px)); max-width: none; max-height: calc(100dvh - 32px); margin: auto; overflow: auto; overscroll-behavior: contain; }
.give-dialog::backdrop { background: rgba(23, 43, 39, .62); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.give-dialog .give { box-shadow: none; }
.give-x { position: absolute; top: 16px; right: 16px; z-index: 2; margin: 0; min-height: 40px; padding: 0 16px; border: 1.5px solid var(--field); border-radius: 999px; background: #fff; color: var(--ink);
  font: 500 11.5px/1 var(--f-sans); letter-spacing: .18em; text-transform: uppercase; cursor: pointer; }
.give-x:hover { border-color: var(--sage-deep); }
body.give-open { overflow: hidden; }
@media (max-width: 560px) {
  .give-dialog { width: 100%; height: 100%; max-height: none; margin: 0; }
  .give-dialog .give { border-radius: 0; min-height: 100%; padding-top: max(22px, env(safe-area-inset-top)); padding-bottom: max(26px, env(safe-area-inset-bottom)); }
  .give-x { top: max(14px, env(safe-area-inset-top)); right: 14px; }
}
@media (prefers-reduced-motion: no-preference) {
  .give-dialog[open] { animation: give-in .25s ease-out; }
  @keyframes give-in { from { opacity: 0; transform: translateY(14px); } }
}

/* ---------- footer ---------- */
.site-foot { background: var(--night); color: #DCE5E1; padding: clamp(56px, 7vw, 88px) 0 30px; }
.foot-top { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; padding-bottom: 48px; border-bottom: 1px solid var(--line-dark); }
.foot-top .title { font-size: clamp(32px, 4vw, 46px); margin-bottom: 16px; }
.foot-top p { color: rgba(255, 255, 255, .78); max-width: 520px; }
.foot-top .btns { justify-content: flex-start; }
.foot-logo { justify-self: end; width: 170px; color: #fff; }
.foot-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; padding: 40px 0; border-bottom: 1px solid var(--line-dark); }
.foot-cols h2 { font: 500 12px/1.4 var(--f-sans); letter-spacing: .28em; text-transform: uppercase; color: var(--sage); margin-bottom: 10px; }
.foot-cols a { display: block; padding: 6px 0; color: #fff; text-decoration: none; opacity: .88; }
.foot-cols a:hover { opacity: 1; text-decoration: underline; }
.foot-bottom { display: flex; flex-wrap: wrap; gap: 18px 40px; justify-content: space-between; align-items: flex-end; padding-top: 30px; font-size: 15px; color: rgba(255, 255, 255, .72); }
.foot-bottom a { color: #fff; }
.foot-bottom .social { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot-bottom .social a { font: 500 12px/1 var(--f-sans); letter-spacing: .18em; text-transform: uppercase; text-decoration: none; }
.foot-bottom p { margin: 4px 0 0; }
.sign { font-family: var(--f-script); font-size: 36px; line-height: 1; color: var(--sage); }
@media (max-width: 760px) {
  .foot-top { grid-template-columns: 1fr; }
  .foot-logo { justify-self: start; width: 120px; order: -1; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
}

/* ---------- 404 ---------- */
.lost .hero-card { margin-top: -160px; }

/* ---------- motion and hover (only when the device welcomes motion) ---------- */
/* rise: sections and cards float up softly as they come into view */
.motion .rise { opacity: 0; translate: 0 28px; transition: opacity .9s cubic-bezier(.2, .7, .2, 1) var(--d, 0s), translate .9s cubic-bezier(.2, .7, .2, 1) var(--d, 0s); }
.motion .rise.in { opacity: 1; translate: 0 0; }
/* drift (parallax): photos move a little slower than the page */
.motion .drift img, .motion .drift video { scale: 1.14; translate: 0 var(--py, 0px); will-change: translate; }
.motion .hero-media.drift img, .motion .hero-media.drift video { scale: 1.08; } /* less zoom, so the banner stays sharp */
/* hover: photos lean in, cards lift */
@media (hover: hover) {
  .card, .way, .quote, .numbers li { transition: transform .45s cubic-bezier(.2, .7, .2, 1), box-shadow .45s, rotate .45s cubic-bezier(.2, .7, .2, 1); }
  .numbers li:hover { rotate: 0deg; }
  .card:hover, .way:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(32, 58, 53, .14); }
  .quote:hover, .numbers li:hover { transform: translateY(-4px); }
  .card.photo .ph img, .way .ph img, .row3 .ph img, .grid a img, .thumbs img { transition: scale 1.1s cubic-bezier(.2, .7, .2, 1); }
  .card.photo:hover .ph img, .way:hover .ph img, .row3 .ph:hover img, .grid a:hover img { scale: 1.06; }
  .btn { transition: transform .25s, box-shadow .25s, background-color .25s, color .25s; }
  .btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, .14); }
  .btn.arrow:hover::after { translate: 5px 0; }
  .btn.arrow::after { transition: translate .3s; }
}
@media (prefers-reduced-motion: reduce) { * { transition-duration: .01ms !important; animation-duration: .01ms !important; } }
