/* ==========================================================================
   UKACA — United Kenyans in Australia Cultural Association
   "Warm editorial" theme. Plain CSS, no build step.

   1. Tokens          2. Base & type     3. Layout
   4. Header & nav    5. Heroes          6. Buttons & small parts
   7. Home sections   8. Cards & lists   9. Timeline
   10. Join / FAQ     11. Blog           12. Contact & forms
   13. Gallery        14. Footer         15. Utilities
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  --cream: #f6efe4;
  --paper: #fbf8f2;
  --sand: #eadcc6;
  --ochre: #c9a46c;
  --terracotta: #b0442a;
  --terracotta-dark: #8e3420;
  --forest: #1f4a38;
  --forest-dark: #163628;
  --ink: #221c18;
  --ink-soft: #4a413a;
  --muted: #74685d;
  --line: #e3d6c3;
  --white: #ffffff;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 22px;
  --radius-sm: 12px;
  --arch: 999px 999px var(--radius) var(--radius);

  --container: 1200px;
  --gutter: clamp(16px, 4.5vw, 40px);
  --section-y: clamp(72px, 10vw, 140px);
  --header-h: 84px;

  /* Beadwork band: diamonds in the Kenyan colours */
  --beads: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='18' viewBox='0 0 72 18'%3E%3Cpath fill='%23b0442a' d='M9 0l9 9-9 9-9-9z'/%3E%3Cpath fill='%23221c18' d='M27 0l9 9-9 9-9-9z'/%3E%3Cpath fill='%231f4a38' d='M45 0l9 9-9 9-9-9z'/%3E%3Cpath fill='%23c9a46c' d='M63 0l9 9-9 9-9-9z'/%3E%3Ccircle cx='18' cy='9' r='1.6' fill='%23221c18'/%3E%3Ccircle cx='36' cy='9' r='1.6' fill='%23221c18'/%3E%3Ccircle cx='54' cy='9' r='1.6' fill='%23221c18'/%3E%3Ccircle cx='0' cy='9' r='1.6' fill='%23221c18'/%3E%3Ccircle cx='72' cy='9' r='1.6' fill='%23221c18'/%3E%3C/svg%3E");
}

/* 2. Base & type ----------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

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

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 0.55em;
  font-variation-settings: "SOFT" 60, "WONK" 1;
}
h1 { font-size: clamp(2.6rem, 6.4vw, 5.2rem); font-weight: 400; letter-spacing: -0.03em; line-height: 1.02; }
h2 { font-size: clamp(2rem, 4.2vw, 3.3rem); font-weight: 400; letter-spacing: -0.025em; }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.1rem; }
h1 em, h2 em, h3 em { font-style: italic; color: var(--terracotta); font-weight: 400; }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }
strong { color: var(--ink); font-weight: 700; }

a { color: var(--terracotta); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: var(--terracotta-dark); }

:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--terracotta); color: var(--paper); }

.skip-link {
  position: absolute; left: 12px; top: -80px; z-index: 300;
  background: var(--ink); color: var(--paper); padding: 10px 18px; border-radius: 999px;
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--paper); }

.icon { width: 1.1em; height: 1.1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.icon--fill { fill: currentColor; stroke: none; }

/* 3. Layout ---------------------------------------------------------------- */
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.container--narrow { max-width: 780px; }
.container--mid { max-width: 980px; }

.section { padding-block: var(--section-y); }
.section--paper { background: var(--paper); }
.section--sand { background: var(--sand); }
.section--forest { background: var(--forest); color: #d9e2dc; }
.section--forest h2, .section--forest h3 { color: var(--paper); }
.section--forest h2 em { color: var(--ochre); }

.section--flush-top { padding-top: 0; }

.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }

.section-head p { font-size: 1.15rem; color: var(--muted); }
.section--forest .section-head p { color: #b9c8bf; }

.split { display: grid; gap: clamp(40px, 7vw, 96px); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 920px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--wide-left { grid-template-columns: 1.15fr 0.85fr; }
  .split--reverse > :first-child { order: 2; }
  .split--top { align-items: start; }
}

.beads { height: 18px; background: var(--beads) repeat-x center / auto 18px; }

/* 4. Header & nav ---------------------------------------------------------- */
.site-header {
  /* Solid background on purpose: backdrop-filter would trap the fixed mobile menu inside the header. */
  position: sticky; top: 0; z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.4s cubic-bezier(.2,.7,.2,1);
}
.site-header.is-hidden { transform: translateY(-100%); }
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 10px 30px -24px rgba(34, 28, 24, 0.45); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; flex: none; border-radius: 8px; }
.brand img { width: 158px; height: auto; mix-blend-mode: multiply; }

.nav__list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav__link {
  position: relative; display: block; padding: 10px 12px;
  font-weight: 500; font-size: 0.97rem; color: var(--ink); text-decoration: none; white-space: nowrap;
}
.nav__link::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 1px;
  background: var(--terracotta); transform: scaleX(0); transform-origin: left; transition: transform 0.3s ease;
}
.nav__link:hover { color: var(--terracotta); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--terracotta); }
.nav__cta { margin-left: 14px; }

.nav-toggle {
  display: none; align-items: center; justify-content: center; gap: 10px;
  height: 46px; padding: 0 18px; border: 1px solid var(--ink); border-radius: 999px;
  background: transparent; color: var(--ink); cursor: pointer; font: 600 0.9rem var(--sans);
}
.nav-toggle .icon { width: 20px; height: 20px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 99;
    background: var(--cream); padding: 16px var(--gutter) 48px; overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link {
    font-family: var(--serif); font-size: 1.9rem; font-weight: 400; letter-spacing: -0.02em;
    padding: 14px 0; border-bottom: 1px solid var(--line);
  }
  .nav__link::after { display: none; }
  .nav__cta { margin: 28px 0 0; }
  .nav__cta .btn { width: 100%; }
  body.nav-open { overflow: hidden; }
}

/* 5. Heroes ---------------------------------------------------------------- */
.hero { padding-block: clamp(24px, 4vw, 56px) clamp(24px, 4vw, 48px); overflow: hidden; }
.hero__title { margin-bottom: 28px; }
.hero__lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); max-width: 520px; color: var(--ink-soft); margin-bottom: 14px; }
.hero__org { font-size: 0.95rem; color: var(--muted); margin-bottom: 36px; max-width: 520px; padding-left: 14px; border-left: 2px solid var(--terracotta); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 30px; }

.hero__visual { position: relative; isolation: isolate; justify-self: center; width: min(100%, 500px); padding: 0 0 40px 40px; }
.hero__arch { border-radius: var(--arch); overflow: hidden; aspect-ratio: 4 / 5; background: var(--sand); }
.hero__arch img { width: 100%; height: 100%; object-fit: cover; object-position: 60% center; }
.hero__circle {
  position: absolute; left: 0; bottom: 0; width: 42%; aspect-ratio: 1;
  border-radius: 50%; overflow: hidden; border: 8px solid var(--cream);
}
.hero__circle img { width: 100%; height: 100%; object-fit: cover; }

/* Inner page header */
.page-head { padding-block: clamp(40px, 7vw, 96px) clamp(36px, 5vw, 64px); }
.page-head__inner { display: grid; gap: 20px 64px; align-items: end; padding-bottom: clamp(28px, 4vw, 44px); border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .page-head__inner { grid-template-columns: 1.4fr 1fr; } }
.page-head h1 { margin: 0; }
.page-head h1 { font-size: clamp(2.6rem, 6.5vw, 5rem); }
.page-head .lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); max-width: 440px; margin: 0; padding-bottom: 8px; }
.page-banner { margin-top: clamp(32px, 4vw, 48px); }
.page-banner img {
  width: 100%; aspect-ratio: 21 / 8; object-fit: cover; border-radius: var(--radius);
  background: var(--sand);
}
@media (max-width: 700px) { .page-banner { margin-top: clamp(32px, 4vw, 48px); }
.page-banner img { aspect-ratio: 4 / 3; } }

/* 6. Buttons & small parts ------------------------------------------------- */
.btn {
  --bg: var(--ink); --fg: var(--paper); --bd: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px; border-radius: 999px; border: 1px solid var(--bd);
  background: var(--bg); color: var(--fg);
  font: 600 0.98rem/1.2 var(--sans); letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
/* Hover: a fill sweeps up from the bottom. Each variant sets --fill. */
.btn { --fill: var(--terracotta); position: relative; overflow: hidden; isolation: isolate; }
.btn::before {
  content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit;
  background: var(--fill); transform: translateY(102%); transition: transform 0.45s cubic-bezier(.2,.7,.2,1);
}
.btn:hover { color: var(--paper); border-color: var(--fill); }
.btn:hover::before { transform: none; }
.btn .icon { transition: transform 0.25s; }
.btn:hover .icon { transform: translateX(3px); }
.btn--accent { --bg: var(--terracotta); --bd: var(--terracotta); --fill: var(--ink); }
.btn--outline { --bg: transparent; --fg: var(--ink); --bd: var(--ink); --fill: var(--ink); }
.btn--sm { padding: 11px 20px; font-size: 0.9rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; color: var(--ink); text-decoration: none;
  border-bottom: 1px solid var(--ink); padding-bottom: 3px;
}
.link-arrow:hover { color: var(--terracotta); border-color: var(--terracotta); }
.link-arrow .icon { transition: transform 0.25s; }
.link-arrow:hover .icon { transform: translateX(4px); }

/* 7. Home sections --------------------------------------------------------- */

.intro-quote {
  font-family: var(--serif); font-weight: 400; font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.3; letter-spacing: -0.015em; color: var(--ink); margin: 0 0 32px;
}
.intro-quote em { color: var(--terracotta); }

.collage { position: relative; padding: 0 0 70px; isolation: isolate; }
.collage__main { width: 82%; border-radius: var(--arch); overflow: hidden; aspect-ratio: 4 / 5; background: var(--sand); }
.collage__main img, .collage__sub img { width: 100%; height: 100%; object-fit: cover; }
.collage__sub {
  position: absolute; right: 0; bottom: 0; width: 50%; aspect-ratio: 1;
  border-radius: var(--radius); overflow: hidden; border: 8px solid var(--cream); background: var(--sand);
}
.section--paper .collage__sub { border-color: var(--paper); }
.collage__tag {
  position: absolute; left: -8px; bottom: 24px; z-index: 2; background: var(--paper);
  padding: 14px 20px; border-radius: 14px; border: 1px solid var(--line);
  font-weight: 600; color: var(--ink); font-size: 0.95rem; display: flex; align-items: center; gap: 12px;
}
.collage__tag .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--forest); box-shadow: 0 0 0 5px rgba(31, 74, 56, 0.15); }

.pillars { display: grid; grid-template-columns: 1fr; }
@media (min-width: 860px) { .pillars { grid-template-columns: repeat(3, 1fr); } }
.pillar { padding: 40px 0; border-top: 1px solid rgba(255, 255, 255, 0.14); }
@media (min-width: 860px) {
  .pillar { padding: 12px clamp(20px, 3vw, 44px); border-top: 0; border-left: 1px solid rgba(255, 255, 255, 0.14); }
  .pillar:first-child { border-left: 0; padding-left: 0; }
}
.pillar__word { font-family: var(--serif); font-style: italic; font-size: clamp(2.4rem, 4vw, 3.4rem); line-height: 1; color: var(--paper); margin-bottom: 22px; display: block; }
.pillar:nth-child(1) .pillar__word { color: #eba48f; }
.pillar:nth-child(3) .pillar__word { color: var(--ochre); }
.pillar p { color: #c3d0c8; font-size: 1.05rem; }

.testimonials { display: grid; gap: clamp(28px, 5vw, 72px); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .testimonials { grid-template-columns: 1.35fr 1fr; } }
.quote { margin: 0; }
.quote blockquote { margin: 0 0 20px; font-family: var(--serif); color: var(--ink); line-height: 1.3; font-weight: 400; letter-spacing: -0.01em; }
.quote--feature blockquote { font-size: clamp(1.8rem, 3.4vw, 2.8rem); }
.quote--feature blockquote::before { content: "\201C"; display: block; font-size: 6rem; line-height: 0.7; color: var(--terracotta); margin-bottom: 8px; }
.quote--small { padding: 28px 0; border-top: 1px solid var(--line); }
.quote--small:last-child { border-bottom: 1px solid var(--line); }
.quote--small blockquote { font-size: 1.5rem; font-style: italic; }
.quote figcaption { font-weight: 700; color: var(--ink); font-size: 0.95rem; }
.quote figcaption span { font-weight: 400; color: var(--muted); }
.quote figcaption::before { content: "\2014\00a0"; color: var(--terracotta); }

.cta {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background: var(--terracotta); color: #f8e4dc; text-align: center;
  padding: clamp(72px, 9vw, 112px) var(--gutter);
}
.cta::before, .cta::after { content: ""; position: absolute; left: 0; right: 0; height: 14px; background: var(--beads) repeat-x center / auto 14px; }
.cta::before { top: 24px; }
.cta::after { bottom: 24px; }
.cta h2 { color: var(--paper); margin-bottom: 14px; }
.cta h2 em { color: var(--ink); }
.cta p { max-width: 560px; margin: 0 auto 34px; font-size: 1.15rem; }
.cta .btn { --bg: var(--paper); --fg: var(--ink); --bd: var(--paper); --fill: var(--ink); }

/* 8. Cards & lists --------------------------------------------------------- */
.tiles { display: grid; gap: clamp(36px, 4vw, 52px) clamp(20px, 2.5vw, 32px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.tile { display: flex; flex-direction: column; }
.tile__img { overflow: hidden; border-radius: var(--arch); aspect-ratio: 4 / 5; background: var(--sand); margin-bottom: 22px; }
.tile__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.tile:hover .tile__img img { transform: scale(1.05); }

.tile h3 { margin: 0; font-size: 1.35rem; line-height: 1.25; }
@media (max-width: 599px) {
  .tiles { grid-template-columns: repeat(2, 1fr); gap: 28px 14px; }
  .tile__img { margin-bottom: 14px; }
  .tile h3 { font-size: 1.05rem; }
  
}

.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li { position: relative; padding: 16px 0 16px 40px; border-bottom: 1px solid var(--line); }
.check-list li:first-child { border-top: 1px solid var(--line); }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 20px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--forest) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.receipt {
  background: var(--paper); border-radius: var(--radius); padding: clamp(32px, 4vw, 48px);
  border: 1px solid var(--line); position: relative;
}
.receipt::before { content: ""; position: absolute; top: 0; left: 28px; right: 28px; height: 12px; background: var(--beads) repeat-x center / auto 12px; transform: translateY(-50%); }
.receipt h3 { margin-bottom: 18px; }
.receipt__row { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 16px 0; border-bottom: 1px dashed #d8c8b1; }
.receipt__row span { color: var(--muted); }
.receipt__row strong { font-family: var(--serif); font-size: 1.4rem; font-weight: 500; white-space: nowrap; }
.receipt__total { border-bottom: 0; padding-top: 22px; }
.receipt__total span { color: var(--ink); font-weight: 700; }
.receipt__total strong { font-size: 2.2rem; color: var(--terracotta); }

/* 9. Timeline -------------------------------------------------------------- */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline__item { display: grid; gap: 8px 48px; grid-template-columns: 1fr; padding: clamp(32px, 4vw, 52px) 0; border-top: 1px solid var(--line); }
.timeline__item:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 820px) { .timeline__item { grid-template-columns: 240px 1fr; } }
.timeline__year { font-family: var(--serif); font-size: clamp(3.2rem, 6vw, 5rem); line-height: 0.9; font-weight: 300; letter-spacing: -0.04em; }
.timeline__item:nth-child(1) .timeline__year { color: var(--terracotta); }
.timeline__item:nth-child(2) .timeline__year { color: var(--ink); }
.timeline__item:nth-child(3) .timeline__year { color: var(--forest); }
.timeline__item:nth-child(4) .timeline__year { color: var(--ochre); }
.timeline h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: 12px; }
.timeline h4 { font-family: var(--sans); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--terracotta); margin: 24px 0 8px; }
.timeline h3 + h4 { margin-top: 0; }
.timeline p { max-width: 680px; }

.drop::first-letter {
  float: left; font-family: var(--serif); font-size: 4.4em; line-height: 0.8;
  padding: 0.08em 0.12em 0 0; color: var(--terracotta); font-weight: 400;
}

.pull { font-family: var(--serif); font-size: clamp(1.35rem, 2.3vw, 1.8rem); line-height: 1.35; color: var(--ink); border-left: 2px solid var(--terracotta); padding-left: 24px; margin: 32px 0; }

.arch-img { border-radius: var(--arch); overflow: hidden; aspect-ratio: 4 / 5; background: var(--sand); }
.arch-img img { width: 100%; height: 100%; object-fit: cover; }

/* 10. Join / FAQ ----------------------------------------------------------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; column-gap: 32px; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { counter-increment: step; display: flex; flex-direction: column; gap: 12px; padding: 32px 0 40px; border-top: 1px solid var(--ink); }
.steps { counter-reset: step; }
.step::before { content: "0" counter(step); font-family: var(--serif); font-style: italic; font-size: 3rem; line-height: 1; color: var(--terracotta); }
.step h3 { margin: 6px 0 0; }
.step p { color: var(--muted); margin: 0; }
.step .btn { align-self: flex-start; margin-top: auto; }
.step > a:last-child { margin-top: auto; align-self: flex-start; }
.step > p { margin-bottom: 14px; }

.terms { list-style: none; margin: 0; padding: 0; counter-reset: term; }
.terms li { counter-increment: term; display: grid; grid-template-columns: 52px 1fr; gap: 12px; padding: 22px 0; border-top: 1px solid #d8c8b1; }
.terms li:last-child { border-bottom: 1px solid #d8c8b1; }
.terms li::before { content: counter(term, decimal-leading-zero); font-family: var(--serif); font-style: italic; font-size: 1.45rem; line-height: 1.3; color: var(--terracotta); }
.declaration { margin-top: 40px; padding: 32px 36px; background: var(--forest); color: #e3ece6; border-radius: var(--radius); font-family: var(--serif); font-size: clamp(1.15rem, 2vw, 1.35rem); line-height: 1.45; }

.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 26px 64px 26px 0; font-family: var(--serif); font-size: clamp(1.2rem, 2vw, 1.45rem); color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 0; top: 50%; width: 40px; height: 40px; margin-top: -20px;
  border: 1px solid #d8c8b1; border-radius: 50%;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 14px 1.5px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 1.5px 14px no-repeat;
  transition: transform 0.3s, background-color 0.3s;
}
.faq summary:hover { color: var(--terracotta); }
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--sand); }
.faq details > div { padding: 0 64px 28px 0; color: var(--muted); font-size: 1.08rem; }

/* 11. Blog ----------------------------------------------------------------- */
.letter { background: var(--paper); border-radius: var(--radius); padding: clamp(32px, 6vw, 72px); border: 1px solid var(--line); position: relative; }
.letter::before { content: ""; position: absolute; top: 0; left: 40px; right: 40px; height: 14px; background: var(--beads) repeat-x center / auto 14px; transform: translateY(-50%); }
.letter__meta { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 0 0 36px; padding: 0 0 28px; border-bottom: 1px solid var(--line); list-style: none; color: var(--muted); font-weight: 500; }
.letter__meta li { display: inline-flex; align-items: center; gap: 8px; }
.letter__meta .icon { color: var(--terracotta); }
.letter h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
.letter ol { padding-left: 0; list-style: none; counter-reset: agenda; margin: 0 0 1.4em; }
.letter ol li { counter-increment: agenda; position: relative; padding: 12px 0 12px 44px; border-bottom: 1px solid var(--line); }
.letter ol li:first-child { border-top: 1px solid var(--line); }
.letter ol li::before { content: counter(agenda); position: absolute; left: 4px; top: 9px; font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--terracotta); }
.signature { font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--ink); margin-top: 32px; line-height: 1.5; }
.tag { display: inline-block; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--forest); background: #dfe8e1; border-radius: 999px; padding: 6px 14px; margin-bottom: 22px; }

/* 12. Contact & forms ------------------------------------------------------ */
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list > li { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 22px 0; border-top: 1px solid var(--line); }
.contact-list > li:last-child { border-bottom: 1px solid var(--line); }
.contact-list .label { font-size: 0.76rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); padding-top: 6px; }
.contact-list .value-text { font-family: var(--serif); font-size: 1.3rem; color: var(--ink); line-height: 1.35; overflow-wrap: anywhere; }
.contact-list .value-text a { color: var(--ink); text-decoration: none; border-bottom: 1px solid #d8c8b1; }
.contact-list .value-text a:hover { color: var(--terracotta); border-color: var(--terracotta); }
@media (max-width: 520px) { .contact-list > li { grid-template-columns: 1fr; gap: 4px; } }

.form-card { position: relative; background: var(--paper); border-radius: var(--radius); padding: clamp(28px, 4.5vw, 52px); border: 1px solid var(--line); }
.form { display: grid; gap: 24px; }
.form__row { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.field { display: grid; gap: 2px; }
.field label { font-size: 0.76rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea {
  font: inherit; color: var(--ink); width: 100%;
  padding: 12px 0; border: 0; border-bottom: 1px solid #cdbfa9; border-radius: 0; background: transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #ab9c8a; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--terracotta); box-shadow: 0 1px 0 var(--terracotta); }
.form .btn { justify-self: start; }
.form__hint { font-size: 0.9rem; color: var(--muted); margin: 0; }
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { margin: 0; padding: 14px 18px; border-radius: var(--radius-sm); font-weight: 500; }
.form__status--success { background: #e3ece6; color: var(--forest-dark); border-left: 3px solid var(--forest); }
.form__status--error { background: #f6e1da; color: var(--terracotta-dark); border-left: 3px solid var(--terracotta); }
.form__status a { color: inherit; }
.btn:disabled { opacity: 0.65; cursor: wait; }

.map-wrap { border-radius: var(--radius); overflow: hidden; background: var(--sand); }
.map { display: block; border: 0; width: 100%; height: clamp(320px, 42vw, 460px); filter: sepia(0.2) saturate(0.9); }

.social { display: flex; gap: 10px; list-style: none; margin: 0; padding: 0; }
.social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid currentColor; color: inherit;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.social a:hover { background: var(--terracotta); border-color: var(--terracotta); color: var(--paper); }

/* 13. Gallery -------------------------------------------------------------- */
.gallery { columns: 3 300px; column-gap: 18px; }
.gallery__item {
  display: block; margin: 0 0 18px; break-inside: avoid; overflow: hidden;
  border-radius: var(--radius-sm); background: var(--sand); cursor: zoom-in;
}
.gallery__item:nth-child(6n + 1) { border-radius: var(--arch); }
.gallery__item img { width: 100%; height: auto; transition: transform 0.6s ease; }
.gallery__item:hover img { transform: scale(1.04); }

.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(24, 19, 16, 0.96); color: var(--paper);
}
.lightbox::backdrop { background: rgba(24, 19, 16, 0.96); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox__img { max-width: min(92vw, 1400px); max-height: 82vh; width: auto; height: auto; border-radius: 10px; }
.lightbox__btn {
  position: absolute; display: inline-flex; align-items: center; justify-content: center;
  width: 54px; height: 54px; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(251, 248, 242, 0.35); background: transparent; color: var(--paper);
  transition: background 0.2s, border-color 0.2s;
}
.lightbox__btn:hover { background: var(--terracotta); border-color: var(--terracotta); }
.lightbox__btn .icon { width: 24px; height: 24px; }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__count { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); font-family: var(--serif); font-style: italic; color: #cbbfb2; margin: 0; }
@media (max-width: 640px) { .lightbox__prev, .lightbox__next { top: auto; bottom: 14px; transform: none; } }

/* 14. Footer --------------------------------------------------------------- */
.site-footer { background: var(--ink); color: #b9ada1; font-size: 0.97rem; }
.footer-cta { padding-block: clamp(56px, 8vw, 96px) clamp(40px, 5vw, 56px); border-bottom: 1px solid rgba(251, 248, 242, 0.12); display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 28px; }
.footer-cta h2 { color: var(--paper); margin: 0; max-width: 640px; }
.footer-cta h2 em { color: var(--ochre); }
.footer-cta .btn { --bg: var(--paper); --fg: var(--ink); --bd: var(--paper); --fill: var(--terracotta); }
.site-footer .btn { color: var(--fg); }
.site-footer .btn:hover { color: var(--paper); }
.footer-main { display: grid; gap: 40px; padding-block: clamp(44px, 6vw, 64px); grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer-main { grid-template-columns: 1.5fr 1fr 1.2fr; } }
.footer-logo { display: inline-block; background: var(--paper); padding: 12px 16px; border-radius: 12px; margin-bottom: 20px; }
.footer-logo img { width: 170px; }
.footer-about { max-width: 360px; }
.site-footer .footer-title { font-family: var(--sans); color: var(--paper); font-size: 0.76rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 20px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.footer-links { display: grid; gap: 8px; }
.site-footer a { color: #e7ddd2; text-decoration: none; }
.site-footer a:hover { color: var(--ochre); }
.footer-contact { display: grid; gap: 14px; }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; }
.footer-contact .icon { margin-top: 5px; color: var(--ochre); }
.site-footer .social { color: #e7ddd2; margin-top: 24px; }
.site-footer .social a:hover { color: var(--paper); }
.footer-bottom { border-top: 1px solid rgba(251, 248, 242, 0.12); padding-block: 22px; font-size: 0.875rem; }
.footer-bottom .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.footer-bottom p { margin: 0; }

/* 404 page */
.notfound { padding-top: clamp(40px, 6vw, 80px); }
.notfound__code { display: flex; align-items: center; gap: 0.06em; margin: 0 0 24px; font: 300 clamp(6rem, 16vw, 11rem)/0.9 var(--serif); font-variation-settings: "SOFT" 100, "WONK" 1; color: var(--terracotta); letter-spacing: -0.04em; }
.notfound__zero { display: inline-block; width: 0.62em; height: 0.84em; border-radius: 999px 999px 0.12em 0.12em; overflow: hidden; background: var(--sand); }
.notfound__zero img { width: 100%; height: 100%; object-fit: cover; }
.notfound h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
.notfound__title { font: 700 0.76rem var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.notfound__links { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.notfound__links a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 4px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: padding 0.3s cubic-bezier(.2,.7,.2,1), color 0.2s; }
.notfound__links b { display: block; font: 400 1.35rem/1.2 var(--serif); }
.notfound__links small { color: var(--muted); font-size: 0.9rem; }
.notfound__links .icon { color: var(--terracotta); transition: transform 0.3s; }
.notfound__links a:hover { padding-left: 14px; color: var(--terracotta); }
.notfound__links a:hover .icon { transform: translateX(4px); }

/* 15. Utilities ------------------------------------------------------------ */
.text-center { text-align: center; }
.mt-lg { margin-top: clamp(32px, 4vw, 48px); }
.lead { font-size: 1.2rem; color: var(--muted); }

/* Gentle reveal on scroll. JS adds .js to <html> and .is-visible to items;
   without JS everything is simply shown. */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s ease, transform 0.9s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   16. Motion
   Everything here is decorative. The reduced-motion rule at the top of this
   file switches it off, and content is visible without JavaScript.
   ========================================================================== */

/* Hero: headline lines rise out of a mask, photos settle into place */
.hero__title .line { display: inline-block; overflow: hidden; padding: 0 0.06em 0.28em 0; margin-bottom: -0.28em; vertical-align: top; }
.hero__title .w { display: inline-block; animation: word-in 1s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(0.15s + var(--d, 0) * 0.11s); }
.hero__title .w--mark { position: relative; }
.scribble { position: absolute; left: -2%; bottom: -0.2em; width: 104%; height: 0.32em; overflow: visible; }
.scribble path { fill: none; stroke: var(--ochre); stroke-width: 5; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 0.9s cubic-bezier(.6,0,.2,1) 1.05s forwards; }
@keyframes word-in { from { transform: translateY(110%) rotate(4deg); opacity: 0; } 60% { opacity: 1; } to { transform: none; opacity: 1; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero__lead, .hero__org, .hero__actions { animation: fade-up 0.9s cubic-bezier(.2,.7,.2,1) both; }
.hero__lead { animation-delay: 0.7s; }
.hero__org { animation-delay: 0.8s; }
.hero__actions { animation-delay: 0.9s; }
.hero__arch { animation: arch-in 1.4s cubic-bezier(.2,.7,.2,1) 0.1s both; }
.hero__arch img { animation: settle 1.8s cubic-bezier(.2,.7,.2,1) 0.1s both; }
.hero__circle { animation: pop 0.9s cubic-bezier(.3,1.4,.5,1) 0.8s backwards; } /* "backwards" so parallax can move it afterwards */

@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes arch-in { from { clip-path: inset(100% 0 0 0 round 999px 999px 22px 22px); } to { clip-path: inset(0 0 0 0 round 999px 999px 22px 22px); } }
@keyframes settle { from { transform: scale(1.18); } to { transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: none; } }
@keyframes slide { to { transform: translateX(-50%); } }
@keyframes beads { to { background-position-x: 144px; } }

/* Rotating seal */
.seal { position: absolute; left: -36px; top: 26%; z-index: 2; width: 132px; height: 132px; border-radius: 50%; background: var(--cream); animation: pop 0.9s cubic-bezier(.3,1.4,.5,1) 1s both; }
.seal__text { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-20deg); }
.seal__text text { font: 700 13px var(--sans); text-transform: uppercase; fill: var(--ink); }
.seal__core {
  position: absolute; inset: 30px; border-radius: 50%; background: var(--terracotta); color: var(--paper);
  display: flex; align-items: center; justify-content: center;
}
.seal__core b { font: 400 1.65rem/1 var(--serif); font-variation-settings: "SOFT" 100; }
@media (max-width: 600px) { .seal { width: 104px; height: 104px; left: 0; top: 8px; } .seal__core { inset: 24px; } .seal__core b { font-size: 1.25rem; } }

/* Values ticker */
.ticker { overflow: hidden; border-block: 1px solid var(--line); padding-block: clamp(18px, 2.4vw, 28px); background: var(--paper); }
.ticker__group { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 0; }
.ticker__item { font: italic 400 clamp(1.3rem, 1.9vw, 1.75rem)/1.25 var(--serif); font-variation-settings: "SOFT" 100, "WONK" 1; color: var(--ink); white-space: nowrap; padding-inline: clamp(18px, 2.5vw, 32px); }
.ticker__bead { width: 14px; height: 14px; flex: none; transform: rotate(45deg); background: var(--terracotta); }
.ticker__group .ticker__bead:nth-of-type(4) { background: var(--forest); }
@media (max-width: 640px) { .ticker__group { flex-direction: column; gap: 4px; } .ticker__bead { display: none; } }

/* Photo reel */
.section--reel { overflow: hidden; }
.reel-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: clamp(28px, 4vw, 44px); }
.reel-head h2 { margin: 0; }
.reel { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.reel__track { display: flex; width: max-content; animation: slide 70s linear infinite; }
.reel:hover .reel__track, .reel:focus-within .reel__track { animation-play-state: paused; }
.reel__group { display: flex; gap: 16px; padding-right: 16px; flex: none; }
.reel__item { display: block; flex: none; width: clamp(200px, 22vw, 300px); aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--radius-sm); background: var(--sand); }
.reel__item:nth-child(3n + 1) { border-radius: var(--arch); }
.reel__item:nth-child(3n + 2) { aspect-ratio: 1; align-self: center; }
.reel__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s cubic-bezier(.2,.7,.2,1); }
.reel__item:hover img { transform: scale(1.06); }
.reel__group { align-items: center; }

/* Beadwork bands drift slowly */
.beads, .cta::before, .cta::after, .receipt::before, .letter::before { animation: beads 6s linear infinite; }

/* Scroll reveals (JS adds .is-visible) */
.js .reveal-img { clip-path: inset(18% 0 0 0); opacity: 0; transition: clip-path 1.2s cubic-bezier(.2,.7,.2,1), opacity 0.6s ease; }
.js .reveal-img img { transform: scale(1.12); transition: transform 1.6s cubic-bezier(.2,.7,.2,1); }
.js .reveal-img.is-visible { clip-path: inset(0 0 0 0); opacity: 1; }
.js .reveal-img.is-visible img { transform: none; }
.js .page-banner.reveal-img { clip-path: inset(0 8% 0 8% round 22px); }
.js .page-banner.reveal-img.is-visible { clip-path: inset(0 0 0 0 round 22px); }
/* The collage holds two photos, so reveal its children instead of clipping the whole block */
.js .collage.reveal-img { clip-path: none; opacity: 1; }
.js .collage.reveal-img > * { opacity: 0; transform: translateY(30px); transition: opacity 0.9s ease, transform 1.1s cubic-bezier(.2,.7,.2,1); }
.js .collage.reveal-img > :nth-child(2) { transition-delay: 0.2s; }
.js .collage.reveal-img > :nth-child(3) { transition-delay: 0.4s; }
.js .collage.reveal-img.is-visible > * { opacity: 1; transform: none; }

.js [data-stagger] > * { opacity: 0; transform: translateY(28px); transition: opacity 0.8s ease, transform 0.9s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--i, 0) * 70ms); }
.js [data-stagger] > .is-visible { opacity: 1; transform: none; }

/* Timeline line fills as you read */
.timeline[data-progress] { position: relative; padding-left: clamp(24px, 4vw, 48px); }
.timeline[data-progress]::before, .timeline[data-progress]::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; border-radius: 2px; }
.timeline[data-progress]::before { background: var(--line); }
.timeline[data-progress]::after { background: linear-gradient(var(--terracotta), var(--forest)); transform-origin: top; transform: scaleY(var(--progress, 1)); }
.js .timeline[data-progress]::after { transform: scaleY(var(--progress, 0)); }

/* Small interactions */
.tile h3 { background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat; transition: background-size 0.5s cubic-bezier(.2,.7,.2,1); display: inline; }
.tile:hover h3 { background-size: 100% 1px; }

.lightbox[open] .lightbox__img { animation: pop 0.45s cubic-bezier(.2,.7,.2,1) both; }

[data-parallax] { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  .reel__track { transform: none !important; }
  .scribble path { stroke-dashoffset: 0; }
  .reel { -webkit-mask-image: none; mask-image: none; overflow-x: auto; }
  .js .reveal-img, .js .reveal-img img, .js [data-stagger] > *, .js .collage.reveal-img > * { opacity: 1; transform: none; clip-path: none; }
  .js .timeline[data-progress]::after { transform: none; }
}
