/* ==========================================================================
   Canossa Mission Singapore — v2 stylesheet
   Editorial, warm, invitational. Companion to Tailwind CDN.
   ========================================================================== */

:root {
  --coral: #d9272d;
  --coral-dark: #b91f25;
  --coral-soft: #c94a3e;
  --clay: #B8654A;
  --sand: #E8DFD2;
  --sand-dark: #D9CDBB;
  --cream: #F8F6F3;
  --cream-dark: #EDE9E3;
  --ink: #1A1A1A;
  --ink-soft: #2D2D2D;
  --ink-muted: #5A5A5A;
  --moss: #5A6B4E;
  --gold: #D4A84B;

  --serif: 'Fraunces', 'Source Serif 4', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Base */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  color: var(--ink-soft);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

.font-serif {
  font-family: var(--serif);
  font-optical-sizing: auto;
}

.font-sans {
  font-family: var(--sans);
}

/* Editorial type */
.headline-xl {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.5rem, 6vw, 4.75rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.headline-lg {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.headline-md {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.eyebrow {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 1.2rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--coral);
}

.eyebrow-sm {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--coral);
}

.triptych-panel .eyebrow {
  font-size: 0.75rem;
}

.lede {
  font-family: var(--serif);
  font-weight: 300;
  /* font-style: italic; */
  font-size: clamp(1.125rem, 1.6vw, 1.375rem);
  line-height: 1.55;
  /* color: var(--ink-soft); */
  color: var(--ink);
}

.prose-body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--ink-soft);
}

.prose-body p+p {
  margin-top: 1.1em;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.95rem 1.75rem;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  border-radius: 999px;
  transition: all 0.25s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--coral);
  color: #fff;
}

.btn-primary:hover {
  background: var(--coral-dark);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn-ghost:hover {
  background: var(--ink);
  color: var(--cream);
}

.btn-soft {
  background: var(--sand);
  color: var(--ink);
}

.btn-soft:hover {
  background: var(--sand-dark);
}

.link-quiet {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--ink);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: color 0.2s;
}

.link-quiet:hover {
  color: var(--coral);
}

.link-quiet .arrow {
  transition: transform 0.25s;
}

.link-quiet:hover .arrow {
  transform: translateX(3px);
}

.link-disabled {
  pointer-events: none;
  cursor: default;
  color: #b7b7b7;
}

/* Sections */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: clamp(6rem, 10vw, 8rem) 0 clamp(3rem, 6vw, 5rem);
}

.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.section {
  padding: clamp(4rem, 9vw, 8rem) 0;
}

.section-tight {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.section-quiet {
  padding: clamp(6rem, 12vw, 12rem) 0;
}

.container-x {
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
}

.container-narrow {
  max-width: 780px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
}

.container-wide {
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
}

/* Backgrounds */
.bg-sand {
  background: var(--sand);
}

.bg-cream {
  background: var(--cream);
}

.bg-cream-dark {
  background: var(--cream-dark);
}

.bg-ink {
  background: var(--ink);
  color: var(--cream);
}

.bg-ink .headline-xl,
.bg-ink .headline-lg,
.bg-ink .headline-md {
  color: var(--cream);
}

/* Pull-quote */
.pullquote {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.5rem, 2.6vw, 2.125rem);
  line-height: 1.35;
  color: var(--ink);
}

.pullquote::before {
  content: "\201C";
  display: inline;
  font-size: 1.1em;
  line-height: 0;
  color: var(--coral);
  margin-right: 0.1em;
}

.pullquote::after {
  content: "\201D";
  display: inline;
  font-size: 1.1em;
  line-height: 0;
  color: var(--coral);
  margin-left: 0.05em;
}

.pullquote.noquote::before,
.pullquote.noquote::after {
  content: '';
}

.pullquote-attr {
  margin-top: 1.25rem;
  font-family: var(--sans);
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* Unifier ribbon — recurring visual refrain */
.unifier {
  background: var(--sand);
  padding: 1.5rem 1rem;
  text-align: center;
}

.unifier span {
  font-family: var(--sans);
  font-weight: 500;
  /* font-size: 0.8125rem; */
  font-size: 1rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink);
}

.unifier span em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--coral);
  font-size: 1.05em;
}

/* Triptych — Education · Coordinated Children's Development · Pastoral Care */
.triptych {
  display: grid;
  grid-template-columns: 1fr;
  /* gap: 1.5rem; */
  gap: 1rem;
  position: relative;
}

@media (min-width: 1000px) {
  .triptych {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.triptych-panel {
  padding: clamp(2.5rem, 4vw, 4rem) clamp(1.5rem, 3vw, 2.75rem);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
  overflow: hidden;
  height: 100%;
}

.triptych-panel .headline-md {
  font-size: clamp(1.375rem, 1.7vw, 1.625rem);
  text-align: left;
}

.triptych-panel .link-quiet {
  margin-top: auto;
  align-self: flex-start;
}

.triptych-panel--education {
  background: transparent;
}

.triptych-panel--development {
  background: transparent;
}

.triptych-panel--care {
  background: var(--sand);
  border-radius: 16px;
}

.triptych-panel img {
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
  border-radius: 14px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  transition: transform 1.2s cubic-bezier(.2, .7, .2, 1);
}

.triptych-panel .prose-body {
  text-align: left;
}

.triptych-panel:hover img {
  transform: scale(1.035);
}

/* Coral threads removed — middle sand panel now provides the visual structure */

/* Story card */
.story-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.story-card img {
  aspect-ratio: 4/5;
  object-fit: cover;
  width: 100%;
  border-radius: 14px;
  filter: saturate(0.92);
}

.story-card .name {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--ink);
}

.story-card .role {
  font-family: var(--sans);
  font-size: 0.8125rem;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
}

.story-card .quote {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

/* Invitation cards (replaces Get Involved cards) */
.invite-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(1rem, 2vw, 1.75rem);
}

.invite-grid .photo-frame {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.invite-card {
  background: #fff;
  padding: 2rem 1.75rem 2.25rem;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--sand-dark);
}

.invite-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.12);
}

.invite-card .verb {
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--ink);
}

.invite-card .body {
  font-family: var(--sans);
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--ink-muted);
  flex: 1;
}

/* Image masks */
.mask-soft {
  mask-image: radial-gradient(ellipse at center, #000 70%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 70%, transparent 100%);
}

.img-warm {
  filter: saturate(0.95) contrast(1.02);
}

/* Reveal animations (restrained) */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(.2, .7, .2, 1);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-22px);
  transition: opacity 1s ease, transform 1s cubic-bezier(.2, .7, .2, 1);
}

.reveal-right {
  opacity: 0;
  transform: translateX(22px);
  transition: opacity 1s ease, transform 1s cubic-bezier(.2, .7, .2, 1);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(.2, .7, .2, 1);
}

.reveal.visible,
.reveal-left.visible,
.reveal-right.visible,
.reveal-scale.visible {
  opacity: 1;
  transform: none;
}

/* Stagger children inside a reveal-stagger wrapper */
.reveal-stagger>* {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(.2, .7, .2, 1);
}

.reveal-stagger.visible>* {
  opacity: 1;
  transform: none;
}

.reveal-stagger.visible>*:nth-child(1) {
  transition-delay: 0ms;
}

.reveal-stagger.visible>*:nth-child(2) {
  transition-delay: 120ms;
}

.reveal-stagger.visible>*:nth-child(3) {
  transition-delay: 240ms;
}

.reveal-stagger.visible>*:nth-child(4) {
  transition-delay: 360ms;
}

/* Subtle perpetual float (only where tasteful) */
@keyframes gentleFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

.float-slow {
  animation: gentleFloat 7s ease-in-out infinite;
}

/* Hover interactions */
.zoom-on-hover {
  overflow: hidden;
}

.zoom-on-hover img {
  transition: transform 1.1s cubic-bezier(.2, .7, .2, 1), filter 0.6s ease;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.zoom-on-hover:hover img {
  transform: scale(1.055);
  filter: saturate(1.02) contrast(1.03);
}

.lift-on-hover {
  transition: transform 0.35s cubic-bezier(.2, .7, .2, 1), box-shadow 0.35s ease;
}

.lift-on-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 44px -22px rgba(0, 0, 0, 0.18);
}

/* Apply hover to existing components */
/* Triptych hover handled within .triptych-panel rules below */

.invite-card .photo-frame {
  overflow: hidden;
}

.invite-card .photo-frame img {
  transition: transform 1.1s cubic-bezier(.2, .7, .2, 1);
}

.invite-card:hover .photo-frame img {
  transform: scale(1.05);
}

/* Heritage timeline */
.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: clamp(2rem, 3vw, 3rem);
  max-width: 860px;
}

@media (min-width: 900px) {
  .timeline {
    padding-left: 2.5rem;
    border-left: 1px solid var(--sand-dark);
  }
}

.timeline-item {
  position: relative;
  padding-left: 0;
}

@media (min-width: 900px) {
  .timeline-item::before {
    content: "";
    position: absolute;
    left: -2.85rem;
    top: 0.75rem;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--coral);
    box-shadow: 0 0 0 4px var(--sand);
  }
}

.timeline-year {
  display: inline-block;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.125rem;
  color: var(--coral);
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
}

.timeline-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.375rem, 2.2vw, 1.75rem);
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.timeline-body {
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 620px;
}

/* Values — two-row layout: 3 cards on top, 2 centred below */
.values-row-3,
.values-row-2 {
  display: grid;
  gap: clamp(1rem, 2vw, 2rem);
  max-width: 1080px;
  margin-inline: auto;
}

.values-row-3 {
  grid-template-columns: 1fr;
  margin-bottom: clamp(1rem, 2vw, 2rem);
}

.values-row-2 {
  grid-template-columns: 1fr;
  max-width: 720px;
}

@media (min-width: 768px) {
  .values-row-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .values-row-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.value-card {
  background: #fff;
  border: 1px solid var(--sand-dark);
  border-top: 3px solid var(--coral);
  padding: 2.25rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  transition: transform 0.35s cubic-bezier(.2, .7, .2, 1), box-shadow 0.35s ease;
  border-radius: 14px;
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 44px -22px rgba(0, 0, 0, 0.14);
}

.value-head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.value-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(217, 39, 45, 0.10);
  color: var(--coral);
  font-size: 1.25rem;
  transition: background 0.35s ease, transform 0.35s ease;
}

.value-card:hover .value-icon {
  background: rgba(217, 39, 45, 0.18);
  transform: scale(1.05);
}

.value-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.25rem;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0;
}

.value-body {
  font-family: var(--sans);
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--ink-muted);
}

/* Placeholder people/governance cards */
.placeholder-card {
  background: var(--cream-dark);
  border: 1px dashed var(--sand-dark);
  padding: 2.5rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border-radius: 14px;
}

.placeholder-avatar {}

.placeholder-avatar img {
  border-radius: 5px;

}

.placeholder-name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.125rem;
  color: var(--ink);
  text-align: left;
}

.placeholder-role {
  font-family: var(--sans);
  font-size: 0.8125rem;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
  text-align: left;
  /* text-transform: uppercase; */
}

.view-profile,
.view-report {
  color: var(--coral);
  font-size: 13px;
}

/* Mission Companions grid (feedback §2) */
.companion-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  list-style: none;
  padding: 0;
  margin: 0;
}

@media (min-width: 700px) {
  .companion-grid {
    grid-template-columns: 1fr 1fr;
    column-gap: 3rem;
  }
}

.companion-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.5rem 0;
  border-top: 1px solid var(--sand-dark);
  transition: transform 0.35s cubic-bezier(.2, .7, .2, 1);
}

.companion-item:last-child {
  border-bottom: 1px solid var(--sand-dark);
}

@media (min-width: 700px) {
  .companion-item:nth-last-child(2) {
    border-bottom: 1px solid var(--sand-dark);
  }
}

.companion-item:hover {
  transform: translateX(4px);
}

.companion-item:hover .companion-num {
  color: var(--coral);
}

.companion-photo {
  position: relative;
  flex-shrink: 0;
  width: 64px;
  height: 64px;
}

.companion-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  transition: transform 0.5s cubic-bezier(.2, .7, .2, 1), filter 0.5s ease;
  box-shadow: 0 6px 14px -8px rgba(0, 0, 0, 0.25);
}

.companion-item:hover .companion-photo img {
  transform: scale(1.06);
  filter: saturate(1.05) contrast(1.03);
}

.companion-num {
  position: absolute;
  bottom: -4px;
  right: -4px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 0.75rem;
  color: var(--ink);
  background: var(--cream);
  border-radius: 999px;
  min-width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.35rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  transition: color 0.35s ease, background 0.35s ease;
  letter-spacing: 0;
}

.companion-item:hover .companion-num {
  color: #fff;
  background: var(--coral);
}

.companion-label {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.25rem;
  color: var(--ink);
  margin-bottom: 0.25rem;
  letter-spacing: -0.01em;
}

.companion-body {
  font-family: var(--sans);
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--ink-muted);
}

/* Foundress quote card (hero attribution) */
.quote-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  max-width: 540px;
  padding: 1.5rem 0;
  border-top: 1px solid var(--sand-dark);
}

.quote-card--centered {
  margin-inline: auto;
  max-width: 640px;
  border-top: none;
  padding-top: 0;
}

.quote-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  filter: saturate(0.95) contrast(1.02);
  box-shadow: 0 4px 14px -6px rgba(0, 0, 0, 0.18);
}

.quote-text {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.125rem, 1.6vw, 1.3125rem);
  line-height: 1.4;
  color: var(--ink);
  margin: 0;
}

.quote-text::before {
  content: "";
}

.quote-attr {
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.06em;
  margin-top: 0.5rem;
  display: block;
}

.quote-attr span {
  display: block;
  font-weight: 400;
  font-size: 0.75rem;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
  margin-top: 0.15rem;
  text-transform: none;
}

@media (max-width: 640px) {
  .quote-avatar {
    width: 60px;
    height: 60px;
  }

  .quote-card {
    gap: 1rem;
  }
}

/* Whole-person quartet — Mind · Heart · Body · Spirit (feedback §11) */
.wholeperson {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(2rem, 3.5vw, 3.5rem);
  max-width: 1040px;
  margin-inline: auto;
}

.wp-facet {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  padding-top: 2.5rem;
}

.wp-facet::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 1px;
  background: var(--coral);
  opacity: 0.65;
  transition: width 0.5s cubic-bezier(.2, .7, .2, 1);
}

.wp-facet:hover::before {
  width: 64px;
  opacity: 1;
}

.wp-glyph {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 1.75rem;
  color: var(--coral);
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
  transition: transform 0.5s cubic-bezier(.2, .7, .2, 1);
  display: block;
}

.wp-facet:hover .wp-glyph {
  transform: translateY(-3px);
}

.wp-label {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.375rem;
  color: var(--ink);
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.wp-body {
  font-family: var(--sans);
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--ink-muted);
  max-width: 240px;
}

/* Mosaic — balanced 2x2 with gentle vertical staggering, centered */
.mosaic {
  display: grid;
  /* grid-template-columns: 1fr 1fr; */
  gap: clamp(0.75rem, 1.4vw, 1.25rem);
  max-width: 520px;
  margin-inline: auto;
  align-items: center;
}

.mosaic>div {
  aspect-ratio: 4/5;
  overflow: hidden;
  will-change: transform, opacity;
}

.mosaic>div img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1.1s cubic-bezier(.2, .7, .2, 1), filter 0.5s ease;
}

.mosaic>div:hover img {
  transform: scale(1.06);
  filter: saturate(1.03) contrast(1.03);
}

/* Per-tile resting offsets (gives the mosaic its rhythm) */
.mosaic-a {
  --rest-y: -16px;
}

.mosaic-b {
  --rest-y: 16px;
}

.mosaic-c {
  --rest-y: -16px;
}

.mosaic-d {
  --rest-y: 16px;
}

.mosaic>div {
  transform: translateY(var(--rest-y, 0));
}

/* Animated entrance — each tile flies in from a different direction with its own stagger.
   Bidirectional: uses the shared .visible class so scroll-up reverses the animation. */
.mosaic-animate>div {
  transition: opacity 1s cubic-bezier(.2, .7, .2, 1), transform 1s cubic-bezier(.2, .7, .2, 1);
  opacity: 0;
}

.mosaic-animate .mosaic-a {
  transform: translate(-32px, calc(var(--rest-y) - 20px)) scale(0.94);
}

.mosaic-animate .mosaic-b {
  transform: translate(32px, calc(var(--rest-y) - 20px)) scale(0.94);
}

.mosaic-animate .mosaic-c {
  transform: translate(-32px, calc(var(--rest-y) + 20px)) scale(0.94);
}

.mosaic-animate .mosaic-d {
  transform: translate(32px, calc(var(--rest-y) + 20px)) scale(0.94);
}

.mosaic-animate.visible>div {
  opacity: 1;
  transform: translateY(var(--rest-y)) scale(1);
}

.mosaic-animate.visible .mosaic-a {
  transition-delay: 0ms;
}

.mosaic-animate.visible .mosaic-b {
  transition-delay: 140ms;
}

.mosaic-animate.visible .mosaic-c {
  transition-delay: 280ms;
}

.mosaic-animate.visible .mosaic-d {
  transition-delay: 420ms;
}

@media (max-width: 640px) {

  .mosaic-a,
  .mosaic-b,
  .mosaic-c,
  .mosaic-d {
    --rest-y: 0;
  }
}

@media (prefers-reduced-motion: reduce) {

  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal-scale,
  .reveal-stagger>* {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .float-slow {
    animation: none;
  }

  .zoom-on-hover img,
  .triptych-panel img,
  .invite-card .photo-frame img,
  .mosaic img {
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(248, 246, 243, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: var(--sand-dark);
}

.nav-link {
  font-family: var(--sans);
  /* font-size: 0.875rem; */
  font-size: 1.1rem;
  color: var(--ink-soft);
  padding: 0.5rem 0.9rem;
  letter-spacing: 0.02em;
  transition: color 0.2s;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--coral);
}

.nav-item {
  position: relative;
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--sand-dark);
  border-radius: 14px;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.18);
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all 0.2s;
}

.nav-item:hover>.nav-dropdown,
.nav-item:focus-within>.nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown a {
  display: block;
  padding: 0.6rem 1.1rem;
  font-family: var(--sans);
  /* font-size: 0.875rem; */
  font-size: 1rem;
  color: var(--ink-soft);
  transition: background 0.15s, color 0.15s;
}

.nav-dropdown a:hover {
  background: var(--cream);
  color: var(--coral);
}

.nav-dropdown.level-1 .nav-link {
  display: flex;
}

.nav-dropdown.level-2 {
  left: initial;
  top: initial;
  right: -104%;
  min-width: 220px;
  max-width: 220px;
  background: #fff;
  border: 1px solid var(--sand-dark);
  border-radius: 14px;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.18);
  padding: 0.5rem 0;

  transform: translateY(-6px);
  transition: all 0.2s;
}

.nested-dropdown:hover .nav-dropdown.level-2 {
  opacity: 1;
  visibility: visible;
}


/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--cream);
  z-index: 40;
  transform: translateX(100%);
  transition: transform 0.4s ease;
  overflow-y: auto;
  padding: 6rem 2rem 3rem;
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-menu a {
  display: block;
  padding: 1rem 0;
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--ink);
  border-bottom: 1px solid var(--sand-dark);
}

.mobile-menu a:hover {
  color: var(--coral);
}

.mobile-menu .sub a {
  font-family: var(--sans);
  font-size: 1rem;
  padding: 0.6rem 0 0.6rem 1rem;
  border: none;
  color: var(--ink-muted);
}

body.menu-open {
  overflow: hidden;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding: 5rem 0 2rem;
}

.site-footer a {
  color: var(--cream);
  opacity: 0.75;
  transition: opacity 0.2s, color 0.2s;
}

.site-footer a:hover {
  opacity: 1;
  color: var(--coral);
}

.site-footer h4 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.6;
  margin-bottom: 1.25rem;
}

/* Utility */
.divider-thin {
  height: 1px;
  background: var(--sand-dark);
}

.small-caps {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.photo-frame {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
}

.photo-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.08);
  pointer-events: none;
}

/* How We Serve hero — compact, leaves room for the fan */
.hws-hero {
  min-height: auto;
  padding-top: clamp(7rem, 11vh, 9rem);
  padding-bottom: clamp(3rem, 6vh, 5rem);
  overflow-x: hidden;
}

@media (min-width: 1024px) {
  .hws-hero {
    min-height: 100vh;
  }
}

/* Fanned trio — three overlapping, slightly rotated cards */
.hws-fan {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin-inline: auto;
  aspect-ratio: 1 / 0.95;
  perspective: 1200px;
  overflow: visible;
}

.hws-fan-card {
  position: absolute;
  display: block;
  overflow: hidden;
  border-radius: 16px;
  width: 62%;
  aspect-ratio: 3 / 4;
  text-decoration: none;
  box-shadow: 0 14px 44px rgba(26, 26, 26, 0.18), 0 2px 6px rgba(26, 26, 26, 0.08);
  transition: transform 0.55s cubic-bezier(.2, .7, .2, 1), box-shadow 0.55s ease, z-index 0s linear 0.55s;
  transform-origin: 50% 100%;
  background: var(--ink);
}

.hws-fan-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1.2s cubic-bezier(.2, .7, .2, 1), filter 0.6s ease;
}

.hws-fan-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(26, 26, 26, 0.05) 0%, rgba(26, 26, 26, 0.25) 55%, rgba(26, 26, 26, 0.78) 100%);
}

.hws-fan-card::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  z-index: 2;
  background: var(--coral);
}

.hws-fan-label {
  position: absolute;
  left: 1.1rem;
  right: 1.1rem;
  bottom: 1rem;
  z-index: 3;
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  color: var(--cream);
}

.hws-fan-num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 1.1rem;
  opacity: 0.72;
}

.hws-fan-name {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  line-height: 1.25;
}

/* Side cards (1 and 3) — label at TOP so it clears the centre card */
.hws-fan-card--1 .hws-fan-label,
.hws-fan-card--3 .hws-fan-label {
  top: 1rem;
  bottom: auto;
}

.hws-fan-card--1::before,
.hws-fan-card--3::before {
  background: linear-gradient(180deg, rgba(26, 26, 26, 0.78) 0%, rgba(26, 26, 26, 0.25) 45%, rgba(26, 26, 26, 0.05) 100%);
}

/* Fan positioning — spread so side labels clear the front card */
.hws-fan-card--1 {
  left: -6%;
  bottom: 14%;
  transform: rotate(-10deg);
  z-index: 1;
  width: 58%;
}

.hws-fan-card--2 {
  left: 24%;
  bottom: 0%;
  transform: rotate(0deg);
  z-index: 3;
  width: 54%;
  aspect-ratio: 3 / 4.2;
}

.hws-fan-card--3 {
  right: -6%;
  bottom: 14%;
  transform: rotate(10deg);
  z-index: 2;
  width: 58%;
}

.hws-fan-card--2::after {
  background: var(--clay);
}

.hws-fan-card--3::after {
  background: var(--moss);
}

/* Lift on hover (bring card forward) */
.hws-fan-card:hover {
  transform: translateY(-10px) rotate(0deg) scale(1.04);
  z-index: 4;
  box-shadow: 0 22px 60px rgba(26, 26, 26, 0.28), 0 4px 10px rgba(26, 26, 26, 0.12);
  transition: transform 0.45s cubic-bezier(.2, .7, .2, 1), box-shadow 0.45s ease, z-index 0s;
}

.hws-fan-card:hover img {
  transform: scale(1.04);
  filter: saturate(1.06);
}

/* Mobile — un-fan into a gently overlapping vertical stack */
@media (max-width: 767px) {
  .hws-fan {
    aspect-ratio: auto;
    max-width: 420px;
    height: auto;
    padding: 0.5rem 0 1.5rem;
  }

  .hws-fan-card {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    margin-top: -1.75rem;
    transform-origin: 50% 0%;
  }

  /* Each later card sits on top of the previous — natural stacking order */
  .hws-fan-card--1 {
    margin-top: 0;
    transform: rotate(-1.5deg);
    left: auto;
    right: auto;
    bottom: auto;
    z-index: 1;
  }

  .hws-fan-card--2 {
    transform: rotate(1deg);
    left: auto;
    right: auto;
    bottom: auto;
    width: 100%;
    aspect-ratio: 16 / 10;
    z-index: 2;
  }

  .hws-fan-card--3 {
    transform: rotate(-0.5deg);
    left: auto;
    right: auto;
    bottom: auto;
    z-index: 3;
  }

  /* Labels at top for all cards on mobile — each clears the card overlapping it from below */
  .hws-fan-card .hws-fan-label {
    top: 1rem;
    bottom: auto;
  }

  .hws-fan-card::before {
    background: linear-gradient(180deg, rgba(26, 26, 26, 0.78) 0%, rgba(26, 26, 26, 0.25) 45%, rgba(26, 26, 26, 0.05) 100%);
  }

  .hws-fan-card:hover {
    transform: translateY(-4px) scale(1.015);
    z-index: 4;
  }
}

@media (prefers-reduced-motion: reduce) {

  .hws-fan-card,
  .hws-fan-card img {
    transition: none;
  }

  .hws-fan-card:hover,
  .hws-fan-card:hover img {
    transform: none;
  }
}

/* ===========================================================
   Full-bleed page-hero banner (How We Serve sub-pages)
   =========================================================== */
.page-hero-banner {
  position: relative;
  min-height: clamp(420px, 68vh, 620px);
  display: flex;
  align-items: flex-end;
  padding: clamp(6rem, 10vh, 8rem) 0 clamp(3rem, 6vh, 4.5rem);
  overflow: hidden;
  color: var(--cream);
}

.page-hero-img {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.04);
  animation: heroKenBurns 22s ease-in-out infinite alternate;
}

@keyframes heroKenBurns {
  from {
    transform: scale(1.02) translate3d(0, 0, 0);
  }

  to {
    transform: scale(1.09) translate3d(-1.5%, -1%, 0);
  }
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(26, 26, 26, 0.28) 0%, rgba(26, 26, 26, 0.55) 55%, rgba(26, 26, 26, 0.82) 100%),
    linear-gradient(90deg, rgba(26, 26, 26, 0.42) 0%, rgba(26, 26, 26, 0.05) 55%);
}

.page-hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
}

@media (prefers-reduced-motion: reduce) {
  .page-hero-img img {
    animation: none;
    transform: none;
  }
}

/* ===========================================================
   Photo band — three images edge-to-edge between sections
   =========================================================== */
.photo-band {
  padding: 0;
}

.photo-band-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr 1fr;
  gap: 0;
}

.photo-band-item {
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.photo-band-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-band-item:nth-child(2) {
  aspect-ratio: 4 / 3.4;
}

@media (max-width: 767px) {
  .photo-band-grid {
    grid-template-columns: 1fr;
  }

  .photo-band-item,
  .photo-band-item:nth-child(2) {
    aspect-ratio: 16 / 10;
  }
}

/* ===========================================================
   Foundress portrait frame (pull-quote companion)
   =========================================================== */
.foundress-portrait {
  margin: 0;
  max-width: 260px;
  width: 100%;
}

.foundress-portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 12px 36px rgba(26, 26, 26, 0.16), 0 2px 6px rgba(26, 26, 26, 0.08);
  display: block;
}

/* ===========================================================
   Cross-link card with top image (for expression cross-links)
   =========================================================== */
.cross-card {
  transition: transform 0.45s cubic-bezier(.2, .7, .2, 1), box-shadow 0.45s ease;
}

.cross-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(26, 26, 26, 0.12);
}

.cross-card-img {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.cross-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1.1s cubic-bezier(.2, .7, .2, 1), filter 0.6s ease;
}

.cross-card:hover .cross-card-img img {
  transform: scale(1.05);
  filter: saturate(1.04);
}

/* ===========================================================
   Contact page — icons, social dots, form
   =========================================================== */
.contact-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(217, 39, 45, 0.10);
  color: var(--coral);
}

.social-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(26, 26, 26, 0.06);
  color: var(--ink-muted);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.social-dot:hover {
  background: var(--coral);
  color: var(--cream);
  transform: translateY(-1px);
}

.contact-form-wrap {
  background: var(--cream);
  border: 1px solid var(--sand-dark);
  border-radius: 16px;
  padding: 2.25rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-field label {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--sand-dark);
  border-radius: 14px;
  padding: 0.75rem 0.9rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}

.form-field textarea {
  resize: vertical;
  min-height: 140px;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(217, 39, 45, 0.12);
}

@media (max-width: 767px) {
  .contact-form-wrap {
    padding: 1.5rem;
  }
}

/* ==========================================================================
   Hero Carousel — cinematic crossfade with editorial overlay
   ========================================================================== */
.hero-carousel {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 640px;
  max-height: 900px;
  overflow: hidden;
  /* background: var(--ink); */
  isolation: isolate;
}

/* Stage holds slides */
.hero-stage {
  position: absolute;
  inset: 0;
}

/* Slide: absolute fill, fade in/out */
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1100ms cubic-bezier(.4, 0, .2, 1), visibility 0s linear 1100ms;
  pointer-events: none;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 1100ms cubic-bezier(.4, 0, .2, 1), visibility 0s linear 0s;
  z-index: 1;
}

/* Background image with Ken Burns slow zoom on active slide */
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.08);
  filter: saturate(1.02) contrast(1.02);
  transition: transform 1500ms ease;
}

.hero-slide.is-active .hero-bg img {
  animation: heroKenBurns 9000ms ease-out forwards;
}

@keyframes heroKenBurns {
  0% {
    transform: scale(1.08);
  }

  100% {
    transform: scale(1.18);
  }
}

/* Dark scrim — left-weighted gradient for text legibility */
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(95deg, rgba(20, 16, 14, 0.78) 0%, rgba(20, 16, 14, 0.55) 38%, rgba(20, 16, 14, 0.18) 70%, rgba(20, 16, 14, 0.05) 100%),
    linear-gradient(to top, rgba(20, 16, 14, 0.55) 0%, rgba(20, 16, 14, 0.0) 45%);
}

/* Content — middle-aligned editorial layout */
.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding-top: clamp(5rem, 10vh, 7rem);
  padding-bottom: clamp(3rem, 6vh, 5rem);
  top: initial;
  bottom: 0;
}

.hero-text-block {
  max-width: 760px;
  color: var(--cream);
  margin-top: 40vh;
}

/* Slide-in stagger on active */
.hero-slide .hero-eyebrow,
.hero-slide .hero-headline,
.hero-slide .hero-lede,
.hero-slide .hero-ctas {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 800ms cubic-bezier(.2, .7, .2, 1), transform 900ms cubic-bezier(.2, .7, .2, 1);
}

.hero-slide.is-active .hero-eyebrow {
  opacity: 1;
  transform: none;
  transition-delay: 350ms;
}

.hero-slide.is-active .hero-headline {
  opacity: 1;
  transform: none;
  transition-delay: 500ms;
}

.hero-slide.is-active .hero-lede {
  opacity: 1;
  transform: none;
  transition-delay: 700ms;
}

.hero-slide.is-active .hero-ctas {
  opacity: 1;
  transform: none;
  transition-delay: 900ms;
}

.hero-eyebrow {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream);
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
  opacity: 0.92;
}

.hero-eyebrow-mark {
  display: inline-block;
  width: 38px;
  height: 1px;
  background: var(--coral);
}

.hero-headline {
  font-family: var(--serif);
  font-weight: 400;
  /* font-size: clamp(2rem, 4.6vw, 3.75rem); */
  font-size: clamp(2rem, 2.5vw, 3.75rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--cream);
  margin-bottom: 1.6rem;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}

.hero-headline em {
  font-style: italic;
  font-weight: 300;
  color: #f3c7a8;
  background: linear-gradient(90deg, #f5c8a4 0%, #ffd8b8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lede {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.0625rem, 1.5vw, 1.3125rem);
  line-height: 1.55;
  color: rgba(248, 246, 243, 0.92);
  max-width: 580px;
  margin-bottom: 1.25rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Light ghost button for dark backgrounds */
.btn-ghost-light {
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(248, 246, 243, 0.55);
}

.btn-ghost-light:hover {
  background: var(--cream);
  color: var(--ink);
  border-color: var(--cream);
}

/* Vertical tab navigation (right side, desktop) */
.hero-tabs {
  position: absolute;
  right: clamp(1.25rem, 3vw, 2.75rem);
  top: 50%;
  transform: translateY(-50%);
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  z-index: 5;
}

.hero-tab {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  padding: 0.85rem 0.4rem 0.85rem 1.15rem;
  background: transparent;
  border: 0;
  color: rgba(248, 246, 243, 0.55);
  cursor: pointer;
  font-family: var(--sans);
  position: relative;
  transition: color 0.3s ease;
}

.hero-tab::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%) scaleY(0.4);
  width: 1px;
  height: 1.25rem;
  background: rgba(248, 246, 243, 0.4);
  transition: transform 0.4s ease, background 0.3s ease, height 0.3s ease;
  transform-origin: center;
}

.hero-tab:hover {
  color: rgba(248, 246, 243, 0.95);
}

.hero-tab.is-active {
  color: var(--cream);
}

.hero-tab.is-active::before {
  transform: translateY(-50%) scaleY(1);
  background: var(--coral);
  height: 2rem;
}

.hero-tab-num {
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  opacity: 0.8;
}

.hero-tab-label {
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  font-weight: 500;
  white-space: nowrap;
}

/* Bottom controls bar */
.hero-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  padding-block: clamp(1.25rem, 3vw, 2rem);
  background: linear-gradient(to top, rgba(20, 16, 14, 0.4), rgba(20, 16, 14, 0));
}

.hero-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.hero-progress {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--cream);
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

.hero-index {
  color: var(--cream);
}

.hero-total {
  color: rgba(248, 246, 243, 0.55);
}

.hero-progress-track {
  position: relative;
  width: clamp(120px, 22vw, 280px);
  height: 1px;
  background: rgba(248, 246, 243, 0.25);
  overflow: hidden;
}

.hero-progress-fill {
  position: absolute;
  inset: 0;
  background: var(--coral);
  transform: scaleX(0);
  transform-origin: left center;
  height: 1px;
}

/* Ensure thicker visibility on hover/focus area */
.hero-progress-track::before {
  content: "";
  position: absolute;
  inset: -2px 0;
}

.hero-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-arrow,
.hero-toggle {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(248, 246, 243, 0.4);
  background: transparent;
  color: var(--cream);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.hero-arrow svg,
.hero-toggle svg {
  width: 18px;
  height: 18px;
}

.hero-arrow:hover,
.hero-toggle:hover {
  background: var(--cream);
  color: var(--ink);
  border-color: var(--cream);
}

.hero-arrow:active {
  transform: scale(0.96);
}

.hero-toggle .hero-icon-play {
  display: none;
}

.hero-toggle[data-state="paused"] .hero-icon-pause {
  display: none;
}

.hero-toggle[data-state="paused"] .hero-icon-play {
  display: block;
}

/* Responsive */
@media (max-width: 1023px) {
  .hero-tabs {
    display: none;
  }
}

@media (max-width: 767px) {
  .hero-carousel {
    min-height: 580px;
    height: 92vh;
  }

  .hero-headline {
    font-size: clamp(2.25rem, 9vw, 3.5rem);
  }

  .hero-lede {
    font-size: 1rem;
  }

  .hero-controls-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .hero-progress-track {
    width: min(60vw, 220px);
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero-slide.is-active .hero-bg img {
    animation: none;
    transform: scale(1.05);
  }

  .hero-slide,
  .hero-slide .hero-eyebrow,
  .hero-slide .hero-headline,
  .hero-slide .hero-lede,
  .hero-slide .hero-ctas {
    transition: opacity 200ms linear;
    transform: none !important;
  }
}

/* ==========================================================================
   Pillar cards — Who We Journey With
   ========================================================================== */
.pillar-card {
  background: var(--cream);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 1px 2px rgba(20, 16, 14, 0.04), 0 8px 28px -16px rgba(20, 16, 14, 0.18);
  transition: transform 0.45s cubic-bezier(.2, .7, .2, 1), box-shadow 0.45s cubic-bezier(.2, .7, .2, 1);
  border: 1px solid rgba(20, 16, 14, 0.04);
}

.pillar-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 4px 8px rgba(20, 16, 14, 0.05), 0 24px 48px -20px rgba(20, 16, 14, 0.28);
}

.pillar-card-media {
  position: relative;
  aspect-ratio: 4 / 3.2;
  overflow: hidden;
}

.pillar-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s cubic-bezier(.2, .7, .2, 1);
}

.pillar-card:hover .pillar-card-media img {
  transform: scale(1.06);
}

.pillar-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(20, 16, 14, 0) 60%, rgba(20, 16, 14, 0.18) 100%);
  pointer-events: none;
}

.pillar-card-num {
  position: absolute;
  top: 1rem;
  right: 1.1rem;
  z-index: 2;
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--cream);
  background: rgba(20, 16, 14, 0.55);
  backdrop-filter: blur(6px);
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
}

.pillar-card-body {
  padding: 1.75rem 1.75rem 1.85rem;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.pillar-card-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 1rem;
}

.pillar-card-mark {
  display: inline-block;
  width: 22px;
  height: 1px;
  background: var(--coral);
}

.pillar-card-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.375rem, 1.7vw, 1.625rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 0.85rem;
}

.pillar-card-text {
  font-family: var(--sans);
  font-size: 0.9688rem;
  line-height: 1.65;
  color: var(--ink-muted);
  margin-bottom: 1.25rem;
}

.pillar-card-tags {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 1rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  border-top: 1px solid rgba(20, 16, 14, 0.08);
}

.pillar-card-tags li {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  background: var(--sand);
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
}

.pillar-card-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--ink);
  border-bottom: 1px solid rgba(20, 16, 14, 0.18);
  padding-bottom: 4px;
  align-self: flex-start;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.pillar-card-link .arrow {
  transition: transform 0.25s ease;
}

.pillar-card-link:hover {
  color: var(--coral);
  border-color: var(--coral);
}

.pillar-card-link:hover .arrow {
  transform: translateX(3px);
}

@media (prefers-reduced-motion: reduce) {

  .pillar-card,
  .pillar-card-media img {
    transition: none;
  }

  .pillar-card:hover {
    transform: none;
  }
}

.report-card .year {
  font-weight: bold;
}

.fw-bold {
  font-weight: bold;
}

.privacy-policy-section h1 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  font-weight: bold;
}

.privacy-policy-section h2 {
  font-size: 1.5rem;
  margin-top: 2rem;
  font-weight: bold;
}

.privacy-policy-section h3 {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.privacy-policy-section p,
.term-of-use-section p {
  margin-bottom: 1rem;
}

.privacy-policy-section p a {
  font-weight: 700;
}

.privacy-policy-section ul.lower-alpha {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
  list-style-type: lower-alpha;
}

.main-logo {
  width: auto;
  height: 63px;
}

.btn-donate {
  font-size: 1.1rem;
  padding: 0.7rem 1.35rem;
}

.report-card {
  background: var(--cream-dark);
  border: 1px dashed var(--sand-dark);
  padding: 2.5rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border-radius: 14px;
}

#dynamic-modal .bg-white {
  border-radius: 20px;
  background-color: var(--cream-dark);
  max-width: 26rem;
}

#dynamic-modal .bg-white {
  align-items: center;
}

#dynamic-modal .placeholder-name {
  font-size: 1.7rem;
}

/* 
#modal-appointments,
#modal-occupation {
  color: var(--ink-muted);
  font-size: 16px;
  font-weight: 500;
}

#modal-appointments strong,
#modal-occupation strong {
  color: var(--ink);
  font-size: 18px;
} */

#close-modal {
  top: -22px;
  right: -22px;
  width: 44px;
  height: 44px;
  background-image: url(../images/close-btn.png);
  background-size: contain;
  background-repeat: no-repeat;
}

#dynamic-modal #modal-image {
  border-radius: 16px;
}

.table-responsive {
  overflow: auto
}

.table-responsive  table {
  border-collapse: collapse;
  width: 100%
}

.table-responsive  th,
.table-responsive  td {
  border: 1px solid #ddd;
  padding: 8px;
  vertical-align: top
}

.table-responsive th {
  background: #B8654A;
  color: #fff;
  font-weight: bold;
}

.table-responsive .principle {
  background: #e9ecef;
  font-weight: bold
}
.list-disc {
  list-style-type: disc;
}