/* Hemacare — warm editorial blood-health foundation theme */
:root {
  --bg-cream: #faf6f1;
  --bg-deep: #130f17;
  --paper: #fffdf9;
  --ink: #1c1520;
  --ink-soft: #4a3f4d;
  --blood: #b83245;
  --blood-light: #d4586a;
  --blood-dark: #8b2038;
  --rose: #e8c4b8;
  --gold: #c9a227;
  --muted: #8a7d88;
  --line: rgba(28, 21, 32, 0.08);
  --shadow: 0 24px 60px rgba(20, 16, 24, 0.12);
  --shadow-sm: 0 4px 16px rgba(20, 16, 24, 0.08);
  --radius: 20px;
  --radius-sm: 12px;
  --font-display: "Cormorant Infant", "Georgia", serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--bg-cream);
  overflow-x: hidden;
}

main {
  max-width: 100%;
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 999;
  padding: 0.75rem 1.25rem;
  background: var(--blood);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ——— Scroll Progress Bar ——— */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--blood-dark), var(--blood), var(--blood-light));
  z-index: 200;
  transition: width 0.1s linear;
}

/* ——— Brand logo (JPEG) ——— */
.brand-logo {
  width: auto;
  height: 44px;
  max-width: 180px;
  object-fit: contain;
  display: block;
  border-radius: 6px;
  transition: transform 0.4s var(--ease-spring), opacity 0.2s;
}
.brand:hover .brand-logo {
  transform: scale(1.04);
  opacity: 0.9;
}

/* ——— Header ——— */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
  transition:
    background 0.35s var(--ease-out),
    box-shadow 0.35s var(--ease-out),
    backdrop-filter 0.35s;
}

.header-inner {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 2rem;
}

.site-header.is-scrolled {
  background: rgba(250, 246, 241, 0.92);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  box-shadow: 0 1px 0 var(--line), 0 4px 20px rgba(20, 16, 24, 0.06);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}
.brand img {
  width: 40px;
  height: 40px;
  transition: transform 0.4s var(--ease-spring);
}
.brand:hover img {
  transform: rotate(-8deg) scale(1.08);
}
.brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}
.brand-text span {
  color: var(--blood);
}

.nav-links {
  display: flex;
  gap: 0.25rem;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover {
  color: var(--blood);
  background: rgba(184, 50, 69, 0.06);
}

.nav-cta {
  background: var(--blood) !important;
  color: #fff !important;
  padding: 0.5rem 1.2rem !important;
  border-radius: 999px !important;
  font-weight: 600 !important;
  margin-left: 0.5rem;
  box-shadow: 0 2px 12px rgba(184, 50, 69, 0.3);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s !important;
}
.nav-cta:hover {
  background: var(--blood-light) !important;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(184, 50, 69, 0.4) !important;
}

/* Light nav over dark hero before scroll */
.site-header:not(.is-scrolled) .nav-links a {
  color: rgba(255, 253, 249, 0.9);
}
.site-header:not(.is-scrolled) .nav-links a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}
.site-header:not(.is-scrolled) .nav-toggle {
  color: #fff;
  border-color: rgba(255, 253, 249, 0.35);
}
.site-header:not(.is-scrolled) .nav-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 253, 249, 0.5);
  color: #fff;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.45rem;
  cursor: pointer;
  color: var(--ink);
  flex-shrink: 0;
}
.nav-toggle:hover {
  background: rgba(184, 50, 69, 0.06);
  border-color: rgba(184, 50, 69, 0.2);
  color: var(--blood);
}

@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: min(300px, 85vw);
    height: 100vh;
    background: var(--paper);
    flex-direction: column;
    align-items: stretch;
    padding: 5rem 1.25rem 2rem;
    box-shadow: var(--shadow);
    transform: translateX(100%);
    transition: transform 0.35s var(--ease-out);
    gap: 0.25rem;
  }
  .nav-links a {
    font-size: 1rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
  }
  .nav-cta {
    text-align: center !important;
    margin-left: 0 !important;
    margin-top: 0.5rem;
  }
  .site-header.nav-open .nav-links {
    transform: translateX(0);
  }
  .header-inner {
    height: 64px;
  }
}

/* ——— Hero ——— */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: clamp(6rem, 12vw, 8rem) clamp(1.25rem, 5vw, 4rem) clamp(3rem, 6vw, 5rem);
  position: relative;
  overflow: hidden;
  margin: 0 auto;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  animation: hero-crossfade 15s ease-in-out infinite;
  transform: scale(1.04);
}

.hero-slide:nth-child(1) {
  animation-delay: 0s;
}

.hero-slide:nth-child(2) {
  animation-delay: 5s;
}

.hero-slide:nth-child(3) {
  animation-delay: 10s;
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide {
    animation: none !important;
    opacity: 0;
    transform: none;
  }
  .hero-slide:first-child {
    opacity: 1 !important;
  }
  .hero-headline {
    animation: none !important;
  }
  .hero-conditions-track {
    position: static;
    min-height: 0;
    overflow: visible;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    justify-content: flex-start;
  }
  .hero-condition {
    position: static;
    display: inline;
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    font-style: normal;
    font-size: 1rem;
    font-family: var(--font-body);
    font-weight: 500;
    color: rgba(255, 253, 249, 0.92);
    text-shadow: none;
  }
  .hero-condition:not(:last-child)::after {
    content: " · ";
    font-weight: 400;
    opacity: 0.7;
  }
}

@media (prefers-reduced-motion: reduce) and (max-width: 860px) {
  .hero-conditions-track {
    justify-content: center;
  }
}

@keyframes hero-crossfade {
  0% {
    opacity: 0;
    transform: scale(1.06);
  }
  6% {
    opacity: 1;
    transform: scale(1.04);
  }
  30% {
    opacity: 1;
    transform: scale(1);
  }
  40% {
    opacity: 0;
    transform: scale(1.02);
  }
  100% {
    opacity: 0;
    transform: scale(1.04);
  }
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
      105deg,
      rgba(10, 8, 14, 0.82) 0%,
      rgba(10, 8, 14, 0.55) 45%,
      rgba(10, 8, 14, 0.68) 100%
    ),
    rgba(19, 15, 23, 0.35);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: left;
  max-width: min(42rem, 100%);
}

.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 1.25rem;
  opacity: 0;
  transform: translateY(12px);
  animation: fade-up 0.9s var(--ease-out) 0.1s forwards;
}

.hero .eyebrow::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 2px;
  background: rgba(232, 196, 184, 0.95);
  flex-shrink: 0;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.12;
  color: #fffdf9;
  margin: 0 0 1.5rem;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.45);
}

.hero-headline-line {
  display: block;
  opacity: 0;
  transform: translateY(1.25rem);
  filter: blur(10px);
  animation: hero-headline-in 1s var(--ease-out) forwards;
}

.hero-headline-line:nth-child(1) {
  animation-delay: 0.22s;
}

.hero-headline-line:nth-child(2) {
  animation-delay: 0.48s;
}

@keyframes hero-headline-in {
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-headline {
    animation: hero-headline-glow 9s ease-in-out 1.1s infinite;
  }
}

@keyframes hero-headline-glow {
  0%,
  100% {
    text-shadow: 0 2px 28px rgba(0, 0, 0, 0.45);
  }
  50% {
    text-shadow:
      0 2px 32px rgba(0, 0, 0, 0.52),
      0 0 44px rgba(232, 196, 184, 0.22);
  }
}

/* Rotating conditions — one term visible at a time (18s loop, 3s each) */
.hero-conditions {
  margin: 0 0 1.35rem;
  opacity: 0;
  transform: translateY(14px);
  animation: fade-up 0.95s var(--ease-out) 0.56s forwards;
}

.hero-conditions-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(232, 196, 184, 0.88);
  margin-bottom: 0.5rem;
}

.hero-conditions-track {
  position: relative;
  min-height: 2.85rem;
  overflow: hidden;
}

.hero-condition {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.6vw, 1.72rem);
  font-weight: 600;
  font-style: italic;
  color: #fffdf9;
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.4);
  line-height: 1.35;
  max-width: 100%;
  animation: hero-condition-slot 18s ease-in-out infinite;
  animation-fill-mode: both;
}

.hero-condition:nth-child(1) {
  animation-delay: 0s;
}
.hero-condition:nth-child(2) {
  animation-delay: 3s;
}
.hero-condition:nth-child(3) {
  animation-delay: 6s;
}
.hero-condition:nth-child(4) {
  animation-delay: 9s;
}
.hero-condition:nth-child(5) {
  animation-delay: 12s;
}
.hero-condition:nth-child(6) {
  animation-delay: 15s;
}

@keyframes hero-condition-slot {
  0% {
    opacity: 0;
    transform: translateY(12px);
  }
  1.5% {
    opacity: 1;
    transform: translateY(0);
  }
  14.5% {
    opacity: 1;
    transform: translateY(0);
  }
  16.66% {
    opacity: 0;
    transform: translateY(-10px);
  }
  16.67%,
  100% {
    opacity: 0;
    transform: translateY(12px);
  }
}

.hero-lead {
  font-size: 1.1rem;
  color: rgba(255, 253, 249, 0.88);
  margin: 0 0 2.25rem;
  max-width: 42ch;
  line-height: 1.7;
  opacity: 0;
  transform: translateY(16px);
  animation: fade-up 1s var(--ease-out) 0.72s forwards;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  opacity: 0;
  animation: fade-up 1s var(--ease-out) 0.88s forwards;
}

.hero-btn-ghost {
  color: #fffdf9 !important;
  border-color: rgba(255, 253, 249, 0.45) !important;
  background: rgba(255, 253, 249, 0.06);
}
.hero-btn-ghost:hover {
  border-color: var(--rose) !important;
  color: #fff !important;
  background: rgba(255, 253, 249, 0.12);
}

@keyframes fade-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition:
    transform 0.2s var(--ease-spring),
    box-shadow 0.2s,
    background 0.2s;
}
.btn-primary {
  background: var(--blood);
  color: #fff;
  box-shadow: 0 4px 20px rgba(184, 50, 69, 0.35);
}
.btn-primary:hover {
  background: var(--blood-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(184, 50, 69, 0.45);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid rgba(28, 21, 32, 0.15);
}
.btn-ghost:hover {
  border-color: var(--blood);
  color: var(--blood);
  transform: translateY(-2px);
}

@media (max-width: 860px) {
  .hero {
    text-align: center;
    padding-top: 7rem;
  }
  .hero-content {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }
  .hero-lead {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero .eyebrow {
    justify-content: center;
  }
  .hero-condition {
    text-align: center;
  }
}

/* ——— Vision Band ——— */
.vision-band {
  background: var(--bg-deep);
  color: #fff;
  padding: clamp(4rem, 9vw, 6.5rem) clamp(1rem, 3vw, 2rem);
  position: relative;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 1400px) {
  .vision-band {
    padding-left: clamp(1rem, 2.5vw, 2.5rem);
    padding-right: clamp(1rem, 2.5vw, 2.5rem);
  }
}

.vision-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 70% at 10% 50%, rgba(184, 50, 69, 0.12), transparent 65%),
    radial-gradient(ellipse 40% 50% at 90% 20%, rgba(201, 162, 39, 0.06), transparent 55%);
  pointer-events: none;
}

.vision-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: center;
  width: 100%;
  max-width: none;
  margin: 0 auto;
}

@media (min-width: 1200px) {
  .vision-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
  }
}

@media (min-width: 1600px) {
  .vision-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 3.5fr);
  }
}

.vision-label {
  color: var(--rose) !important;
  opacity: 0.85;
}
.vision-label::before,
.vision-label::after {
  background: var(--rose) !important;
}

.vision-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 1.25rem;
  letter-spacing: -0.025em;
  line-height: 1.15;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.vision-body {
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(255, 250, 248, 0.78);
  max-width: 36ch;
  margin: 0;
}

.vision-video-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5);
  min-width: 0;
  align-self: start;
}

.vision-video {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  opacity: 0.92;
  transition: opacity 0.4s;
}
.vision-video-wrap:hover .vision-video {
  opacity: 1;
}

.vision-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--blood-dark), var(--blood-light));
  z-index: 2;
  transition: width 0.2s linear;
}

@media (max-width: 900px) {
  .vision-inner {
    grid-template-columns: 1fr;
  }
  .vision-body {
    max-width: 100%;
  }
}

/* ——— Name origin (under vision video) ——— */
.name-origin {
  background: var(--bg-cream);
  border-top: 1px solid var(--line);
  position: relative;
  z-index: 1;
}

.name-origin-intro {
  max-width: 62ch;
}

@media (min-width: 1200px) {
  .name-origin .section-intro.name-origin-intro {
    max-width: none;
  }
}

.name-origin-intro strong {
  color: var(--ink);
  font-weight: 600;
}

/* ——— Stats Strip ——— */
.stats-strip {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 2.5rem clamp(1.25rem, 5vw, 3rem);
}

.stats-inner {
  max-width: 64rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  align-items: center;
}

.stat-item {
  text-align: center;
  padding: 1rem;
  position: relative;
}

.stat-item + .stat-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15%;
  bottom: 15%;
  width: 1px;
  background: var(--line);
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--blood);
  line-height: 1;
  letter-spacing: -0.03em;
  display: block;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

@media (max-width: 640px) {
  .stats-inner {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 0;
  }
  .stat-item:nth-child(2)::before,
  .stat-item:nth-child(4)::before {
    display: none;
  }
  .stat-item:nth-child(3) {
    border-top: 1px solid var(--line);
  }
  .stat-item:nth-child(4) {
    border-top: 1px solid var(--line);
  }
}

/* ——— Sections shared ——— */
section {
  padding: clamp(4rem, 9vw, 6.5rem) clamp(1.25rem, 5vw, 3rem);
}

section.hero,
section.story-band,
section.cta-band,
section.gallery,
section.vision-band,
section.name-origin {
  width: 100%;
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}

section:not(.hero):not(.story-band):not(.cta-band):not(.gallery):not(.vision-band):not(.name-origin) {
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
}

.section-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blood);
  margin: 0 auto 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

.section-label::before,
.section-label::after {
  content: "";
  display: inline-block;
  width: 20px;
  height: 1px;
  background: var(--blood);
  opacity: 0.4;
  flex-shrink: 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.5vw, 3rem);
  font-weight: 700;
  color: var(--ink);
  margin: 0 auto 1.1rem;
  letter-spacing: -0.025em;
  max-width: 24ch;
  text-align: center;
  line-height: 1.15;
}

.section-intro {
  max-width: 54ch;
  margin: 0 auto 3rem;
  color: var(--ink-soft);
  text-align: center;
  font-size: 1rem;
  line-height: 1.7;
}

/* ——— Pillars ——— */
.pillars {
  background: var(--paper);
  position: relative;
  overflow: hidden;
}

.pillars .section-intro strong {
  color: var(--blood);
  font-weight: 600;
}

.pillars::before {
  content: "";
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(184, 50, 69, 0.04), transparent 70%);
  pointer-events: none;
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 0 auto;
  max-width: 60rem;
}

@media (max-width: 800px) {
  .pillar-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
  }
}

.pillar {
  background: var(--bg-cream);
  border-radius: var(--radius);
  padding: 2.25rem 1.75rem;
  border: 1px solid var(--line);
  transition:
    box-shadow 0.35s,
    transform 0.35s var(--ease-out),
    border-color 0.35s;
  text-align: left;
  position: relative;
  overflow: visible;
}

.pillar::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--pillar-color, var(--blood)), transparent);
  opacity: 0;
  transition: opacity 0.35s;
}

.pillar:hover::after {
  opacity: 1;
}

.pillar:hover {
  box-shadow: 0 16px 50px rgba(20, 16, 24, 0.1);
  transform: translateY(-4px);
  border-color: rgba(184, 50, 69, 0.15);
}

.pillar:nth-child(1) { --pillar-color: #b83245; }
.pillar:nth-child(2) { --pillar-color: #c9a227; }
.pillar:nth-child(3) { --pillar-color: #2d6a8f; }

.pillar-inner {
  position: relative;
  z-index: 1;
  perspective: 760px;
  transform-style: preserve-3d;
}

.pillar-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 1.25rem;
  font-size: 1.4rem;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  will-change: transform, opacity;
}

.pillar:nth-child(1) .pillar-inner .pillar-icon {
  background: linear-gradient(135deg, rgba(184, 50, 69, 0.12), rgba(184, 50, 69, 0.05));
  color: var(--blood);
}
.pillar:nth-child(2) .pillar-inner .pillar-icon {
  background: linear-gradient(135deg, rgba(201, 162, 39, 0.15), rgba(201, 162, 39, 0.05));
  color: var(--gold);
}
.pillar:nth-child(3) .pillar-inner .pillar-icon {
  background: linear-gradient(135deg, rgba(45, 106, 143, 0.12), rgba(45, 106, 143, 0.05));
  color: #2d6a8f;
}

.pillar h3 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  color: var(--ink);
  margin: 0 0 0.6rem;
  font-weight: 700;
}

.pillar p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.65;
}

/* Pillar cards: each panel enters with a distinct motion; icon squares “open” clockwise (L → C → R) */
.pillars:not(.is-visible) .pillar {
  opacity: 0;
}

.pillars:not(.is-visible) .pillar-icon {
  opacity: 0;
}

.pillars.is-visible .pillar:nth-child(1) {
  animation: pillar-card-from-left 0.92s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.32s;
}

.pillars.is-visible .pillar:nth-child(2) {
  animation: pillar-card-unfold-up 0.92s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.48s;
}

.pillars.is-visible .pillar:nth-child(3) {
  animation: pillar-card-from-right 0.92s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.64s;
}

@keyframes pillar-card-from-left {
  from {
    opacity: 0;
    transform: translateX(-40px) rotateZ(-5deg);
  }
  to {
    opacity: 1;
    transform: translateX(0) rotateZ(0);
  }
}

@keyframes pillar-card-unfold-up {
  from {
    opacity: 0;
    transform: translateY(36px) scale(0.9);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes pillar-card-from-right {
  from {
    opacity: 0;
    transform: translateX(40px) rotateZ(5deg);
  }
  to {
    opacity: 1;
    transform: translateX(0) rotateZ(0);
  }
}

/* Icon “tiles”: hinge opens in clockwise order — left edge → bottom edge → right edge */
.pillars.is-visible .pillar:nth-child(1) .pillar-icon {
  transform-origin: 0% 50%;
  animation: pillar-icon-hinge-left 0.88s cubic-bezier(0.34, 1.15, 0.52, 1) both;
  animation-delay: 0.52s;
}

.pillars.is-visible .pillar:nth-child(2) .pillar-icon {
  transform-origin: 50% 100%;
  animation: pillar-icon-hinge-bottom 0.88s cubic-bezier(0.34, 1.15, 0.52, 1) both;
  animation-delay: 0.68s;
}

.pillars.is-visible .pillar:nth-child(3) .pillar-icon {
  transform-origin: 100% 50%;
  animation: pillar-icon-hinge-right 0.88s cubic-bezier(0.34, 1.15, 0.52, 1) both;
  animation-delay: 0.84s;
}

@keyframes pillar-icon-hinge-left {
  0% {
    opacity: 0;
    transform: rotateY(-96deg) rotateZ(-10deg);
  }
  100% {
    opacity: 1;
    transform: rotateY(0deg) rotateZ(0deg);
  }
}

@keyframes pillar-icon-hinge-bottom {
  0% {
    opacity: 0;
    transform: rotateX(92deg) scale(0.88);
  }
  100% {
    opacity: 1;
    transform: rotateX(0deg) scale(1);
  }
}

@keyframes pillar-icon-hinge-right {
  0% {
    opacity: 0;
    transform: rotateY(96deg) rotateZ(10deg);
  }
  100% {
    opacity: 1;
    transform: rotateY(0deg) rotateZ(0deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pillars .pillar {
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
  }

  .pillars .pillar-inner {
    transform: none !important;
  }

  .pillars .pillar-icon {
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

/* ——— Story Band ——— */
.story-band {
  background: var(--bg-deep);
  color: #e8e0df;
  position: relative;
  overflow: hidden;
}

.story-band::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232, 196, 184, 0.3), transparent);
}

.story-band::after {
  content: "";
  position: absolute;
  bottom: -30%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(184, 50, 69, 0.06), transparent 65%);
  pointer-events: none;
}

.story-band .section-label {
  color: var(--rose);
  opacity: 0.85;
}
.story-band .section-label::before,
.story-band .section-label::after {
  background: var(--rose);
}
.story-band .section-title {
  color: #faf6f1;
  max-width: 28ch;
}
.story-band .section-intro {
  color: rgba(255, 250, 248, 0.72);
}

.story-video-wrap {
  width: 100%;
  max-width: 52rem;
  margin: 0 auto 2.5rem;
  position: relative;
  z-index: 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: #0d0a0f;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.06);
}

.story-video {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.98;
}

.story-video:focus {
  outline: none;
}

.story-video:focus-visible {
  outline: 2px solid var(--rose);
  outline-offset: 4px;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin: 0 auto;
  max-width: 58rem;
  position: relative;
  z-index: 1;
}

.story-card {
  background: rgba(255, 253, 249, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-left: 3px solid rgba(232, 196, 184, 0.3);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  transition: transform 0.35s var(--ease-out), border-left-color 0.35s, background 0.35s;
  text-align: left;
}
.story-card:hover {
  transform: translateY(-4px);
  border-left-color: var(--blood-light);
  background: rgba(255, 253, 249, 0.07);
}
.story-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: #fff;
  margin: 0 0 0.75rem;
  font-weight: 700;
}
.story-card p {
  margin: 0;
  font-size: 0.97rem;
  color: rgba(255, 250, 248, 0.72);
  line-height: 1.65;
}

/* ——— Gallery ——— */
.gallery {
  background: linear-gradient(180deg, var(--bg-cream) 0%, #eee4d8 100%);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, auto);
  gap: 1rem;
  margin: 0 auto;
  max-width: 70rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #d8cfc7;
  min-height: 0;
  height: 300px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease-out);
}
.gallery-item:hover img {
  transform: scale(1.06);
}
.gallery-item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2rem 1.25rem 1.1rem;
  background: linear-gradient(transparent, rgba(20, 16, 24, 0.88));
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.35;
  text-align: left;
  transform: translateY(4px);
  transition: transform 0.4s var(--ease-out), opacity 0.4s;
}
.gallery-item:hover figcaption {
  transform: translateY(0);
}

@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }

  .gallery-item {
    height: 220px;
  }
}

@media (max-width: 520px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item {
    height: 240px;
  }
}

/* ——— Partners ——— */
.partners {
  background: var(--paper);
}

.partner-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1.25rem;
  margin: 0 auto;
  max-width: 58rem;
  align-items: center;
  justify-items: center;
}

.partner-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.5rem 1.25rem 1rem;
  width: 100%;
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  transition:
    box-shadow 0.3s,
    border-color 0.3s,
    transform 0.3s var(--ease-out);
}
.partner-card:hover {
  box-shadow: var(--shadow-sm);
  border-color: rgba(184, 50, 69, 0.2);
  transform: translateY(-2px);
}

.partner-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
}

.partner-logo {
  max-width: 100%;
  max-height: 52px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(0.2) opacity(0.85);
  transition: filter 0.3s;
}
.partner-card:hover .partner-logo {
  filter: grayscale(0) opacity(1);
}
.partner-card img.partner-logo[src$=".svg"] {
  max-height: 68px;
}

.partner-card figcaption {
  font-size: 0.7rem;
  text-align: center;
  color: var(--muted);
  line-height: 1.35;
}

/* ——— CTA Band ——— */
.cta-band {
  background: linear-gradient(135deg, #7d1e36 0%, #b83245 45%, #c63e54 100%);
  color: #fff;
  text-align: center;
  padding: clamp(4rem, 10vw, 6rem) 1.5rem;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(255,255,255,0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.04) 0%, transparent 40%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Ccircle cx='100' cy='100' r='80' fill='none' stroke='rgba(255,255,255,0.04)' stroke-width='1'/%3E%3Ccircle cx='100' cy='100' r='50' fill='none' stroke='rgba(255,255,255,0.03)' stroke-width='1'/%3E%3C/svg%3E") repeat;
  background-size: auto, auto, 120px 120px;
  pointer-events: none;
}

.cta-band::after {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 320px;
  height: 320px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  pointer-events: none;
}

.cta-inner {
  position: relative;
  z-index: 1;
  max-width: 38rem;
  margin: 0 auto;
}
.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0 0 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.cta-band p {
  margin: 0 0 2rem;
  opacity: 0.88;
  font-size: 1.1rem;
  max-width: 42ch;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2rem;
}
.cta-band .btn-primary {
  background: #fff;
  color: var(--blood-dark);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
  font-weight: 700;
}
.cta-band .btn-primary:hover {
  background: var(--bg-cream);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

/* ——— Footer ——— */
.site-footer {
  padding: 3rem clamp(1.25rem, 5vw, 3rem);
  background: var(--bg-deep);
  color: rgba(255, 250, 248, 0.55);
  font-size: 0.88rem;
}

.footer-inner {
  max-width: 72rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}

.footer-brand img {
  width: 28px;
  height: 28px;
  opacity: 0.7;
}

.footer-brand-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: rgba(255, 250, 248, 0.6);
}

.footer-brand-text span {
  color: var(--blood-light);
}

.footer-copy {
  margin: 0;
  line-height: 1.5;
}

.footer-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
}

.site-footer a {
  color: var(--rose);
  text-decoration: none;
  opacity: 0.75;
  transition: opacity 0.2s;
}
.site-footer a:hover {
  opacity: 1;
  text-decoration: underline;
}

@media (max-width: 600px) {
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-actions {
    align-items: center;
  }
}

/* ——— CTA buttons row ——— */
.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
}

.btn-whatsapp {
  background: #25d366;
  color: #fff;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
  border: none;
}
.btn-whatsapp:hover {
  background: #1ebe5d;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.45);
}

/* ——— Footer redesign ——— */
.site-footer {
  padding: 3.5rem clamp(1.25rem, 5vw, 3rem) 2rem;
  background: var(--bg-deep);
  color: rgba(255, 250, 248, 0.55);
  font-size: 0.88rem;
}

.footer-inner {
  max-width: 72rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 2rem 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 2rem;
  margin-bottom: 1.5rem;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-logo-link {
  display: block;
}

.footer-logo-img {
  height: 56px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  border-radius: 8px;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.footer-logo-link:hover .footer-logo-img {
  opacity: 1;
}

.footer-copy {
  margin: 0;
  line-height: 1.65;
  font-size: 0.85rem;
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1.25rem;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.footer-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: rgba(255, 250, 248, 0.6);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s;
}
.footer-contact-link:hover {
  color: var(--rose);
  text-decoration: none;
}
.footer-wa {
  color: rgba(37, 211, 102, 0.75) !important;
}
.footer-wa:hover {
  color: #25d366 !important;
}

/* Social media icons */
.footer-social {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 250, 248, 0.55);
  text-decoration: none;
  transition: background 0.2s, color 0.2s, transform 0.2s var(--ease-spring);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.social-link:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  transform: translateY(-2px);
}

.footer-top-link {
  color: rgba(255, 250, 248, 0.4);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
.footer-top-link:hover {
  color: var(--rose);
}

@media (max-width: 640px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .footer-right {
    align-items: flex-start;
  }
  .footer-contact {
    align-items: flex-start;
  }
}

/* ——— Floating WhatsApp Button ——— */
.whatsapp-fab {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 150;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #25d366;
  color: #fff;
  text-decoration: none;
  padding: 0.75rem 1.1rem 0.75rem 0.9rem;
  border-radius: 999px;
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.4), 0 2px 8px rgba(0, 0, 0, 0.15);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.88rem;
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s, background 0.2s;
  animation: fab-in 0.6s var(--ease-spring) 1.5s both;
}

@keyframes fab-in {
  from {
    opacity: 0;
    transform: scale(0.7) translateY(16px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.whatsapp-fab:hover {
  background: #1ebe5d;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 40px rgba(37, 211, 102, 0.5), 0 2px 8px rgba(0, 0, 0, 0.15);
}

.whatsapp-fab-label {
  white-space: nowrap;
}

@media (max-width: 480px) {
  .whatsapp-fab-label {
    display: none;
  }
  .whatsapp-fab {
    padding: 0.85rem;
    border-radius: 50%;
  }
}

/* ——— Reveal on scroll ——— */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.85s var(--ease-out),
    transform 0.85s var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-child > * {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.7s var(--ease-out),
    transform 0.7s var(--ease-out);
}
.reveal-child.is-visible > *:nth-child(1) { opacity: 1; transform: none; transition-delay: 0.05s; }
.reveal-child.is-visible > *:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.15s; }
.reveal-child.is-visible > *:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.25s; }
.reveal-child.is-visible > *:nth-child(4) { opacity: 1; transform: none; transition-delay: 0.35s; }
.reveal-child.is-visible > *:nth-child(5) { opacity: 1; transform: none; transition-delay: 0.45s; }
