@font-face {
  font-family: "Cormorant Garamond";
  src: url("assets/cormorant-garamond.woff2") format("woff2");
  font-weight: 500 600;
  font-display: swap;
}
.firefly {
  --brand-blue: #5676db;
  --brand-orange: #ee6c14;
  --brand-gold: #ebb51f;
  --brand-olive: #777f29;
  --ink: #343434;
  --paper: #f8f7f1;
  --blue: #26365f;
  --pale: #eaf0fe;
  --gold: #ffe7a2;
  --line: #a9b2c7;
  --action: #993900;
  --action-hover: #7c3007;
  --hero-ink: var(--ink);
  --serif: "Cormorant Garamond", Georgia, serif;
}
.firefly .shell { width: min(calc(100% - 144px), 1296px); }
.firefly [id] { scroll-margin-top: 82px; }
.firefly :focus-visible { outline-color: var(--action-hover); }
.firefly .proof :focus-visible, .firefly .footer :focus-visible { outline-color: var(--gold); }
.firefly .header { border: 0; }
.firefly .wordmark { display: inline-flex; flex: 0 0 auto; align-items: center; }
.firefly :is(.arabic-link, .path summary):hover { text-decoration: none; }
.firefly .text-link:hover { text-decoration-thickness: 1px; }
.logo-definitions { position: absolute; pointer-events: none; }
.amares-logo {
  --logo-text: var(--ink);
  --logo-blue: var(--brand-blue);
  --logo-orange: var(--brand-orange);
  --logo-gold: var(--brand-gold);
  --logo-olive: var(--brand-olive);
  display: block;
  width: 148px;
  max-width: 100%;
  height: auto;
}
.footer .amares-logo {
  --logo-text: #fff;
  --logo-blue: #9cb0ff;
  --logo-orange: #ff995a;
  --logo-olive: #c3cb66;
}
.firefly .button {
  border-radius: 100px;
  border-color: var(--action);
  background: var(--action);
  padding-inline: 24px;
}
.firefly :is(.button, button) { white-space: nowrap; }
.firefly .button:hover { background: var(--action-hover); }
.firefly .button.outline {
  border-color: currentColor;
  color: inherit;
  background: transparent;
}
.firefly .button.outline:hover { color: white; background: var(--action-hover); border-color: var(--action-hover); }
.firefly h2 { font-size: clamp(2.2rem, 5vw, 4.5rem); }
.firefly h3 {
  font: 600 clamp(1.85rem, 3.25vw, 3.25rem)/.95 var(--serif);
  letter-spacing: -.025em;
}
.firefly .hero-section {
  position: relative;
  overflow: clip;
  isolation: isolate;
}
.firefly .hero-section::before,
.firefly .hero-section::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
}
.firefly .hero-section::before {
  width: 390px;
  height: 430px;
  top: 12px;
  left: -205px;
  background: radial-gradient(ellipse, #f9aa71 15%, #f1b87abb 45%, transparent 70%);
}
.firefly .hero-section::after {
  width: 260px;
  height: 260px;
  right: -110px;
  top: 17%;
  background: radial-gradient(circle, #a5b6f4 12%, #afc1f6aa 36%, transparent 68%);
}
.firefly .hero {
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  grid-template-areas: "message photos";
  gap: clamp(16px, 2vw, 30px);
  padding-block: 18px 38px;
}
.firefly .hero-copy { grid-area: message; min-width: 0; color: var(--hero-ink); }
.hero-messages { display: grid; align-items: center; }
.hero-message { grid-area: 1 / 1; min-width: 0; }
[data-carousel-ready] .hero-message[hidden] { display: block; visibility: hidden; }
.firefly .hero-message :is(h1, h2) {
  font: 800 clamp(2.55rem, 5.5vw, 5.6rem)/.99 var(--heading);
  letter-spacing: -.039em;
  text-wrap: balance;
}
.firefly .hero-message :is(h1, h2) > span { color: #3c57b2; }
.firefly .hero-copy p:not(.hero-status) { margin-top: 20px; max-width: 46ch; font-weight: 600; }
.firefly .hero-actions .text-link { color: inherit; }
@media (width > 650px) {
  .firefly .hero-message :is(h1, h2) { font-size: 4rem; }
  .firefly .hero-message p { font-size: 1rem; }
}
.hero-controls {
  display: flex;
  align-items: center;
  width: fit-content;
  margin-top: 18px;
  color: var(--blue);
}
.hero-controls[hidden] { display: none; }
.hero-controls button {
  min-width: 44px;
  min-height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  border: 0;
  border-radius: 50%;
}
.hero-step .arrow { grid-area: 1 / 1; }
.hero-step:hover { background: var(--pale); }
.hero-prev .arrow { rotate: 180deg; }
.hero-dot::before {
  content: "";
  box-sizing: border-box;
  width: 10px;
  height: 10px;
  border: 1px solid currentColor;
  border-radius: 50%;
}
.hero-dot[aria-current]::before { background: currentColor; }
.hero-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.collage {
  grid-area: photos;
  height: clamp(380px, 36vw, 520px);
  position: relative;
  touch-action: pan-y pinch-zoom;
  perspective: 900px;
}
.collage-depth {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template: repeat(2, minmax(0, 1fr)) / minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 12px;
  transform-style: preserve-3d;
}
[data-carousel-ready] .collage { cursor: grab; }
[data-carousel-ready] .collage[data-dragging] { cursor: grabbing; }
@media (prefers-reduced-motion: no-preference) {
  .collage-depth { translate: var(--drag-offset, 0px); transition: translate 180ms ease-out; }
  [data-dragging] .collage-depth { transition: none; }
}
.collage-frame {
  overflow: hidden;
  border-radius: 12px;
  background: var(--pale);
  box-shadow: 0 12px 26px #0000001c;
}
.collage-frame[data-slot="lead"] { grid-area: 1 / 1 / 3 / 2; }
.collage-frame[data-slot="top"] { grid-area: 1 / 2; }
.collage-frame[data-slot="bottom"] { grid-area: 2 / 2; }
@supports (clip-path: url("#hero-clip-square")) {
  .collage-frame { background: transparent; box-shadow: none; }
  .collage-frame[data-slot="lead"] { clip-path: url("#hero-clip-square"); }
  .collage-frame[data-slot="top"] { clip-path: url("#hero-clip-heart"); }
  .collage-frame[data-slot="bottom"] { clip-path: url("#hero-clip-curve"); }
}
@media (min-width: 651px) and (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
  .collage-frame {
    translate: calc(var(--photo-x, 0) * var(--travel-x))
      calc(var(--photo-y, 0) * var(--travel-y))
      calc(var(--photo-hover, 0) * var(--depth));
    rotate: calc(var(--photo-x, 0) * var(--roll));
    transition: translate 220ms ease-out, rotate 220ms ease-out;
  }
  .collage-frame[data-slot="lead"] {
    --travel-x: 6px;
    --travel-y: 5px;
    --depth: 8px;
    --roll: .65deg;
  }
  .collage-frame[data-slot="top"] {
    --travel-x: -4px;
    --travel-y: -6px;
    --depth: -12px;
    --roll: -1.25deg;
  }
  .collage-frame[data-slot="bottom"] {
    --travel-x: -5px;
    --travel-y: 7px;
    --depth: -5px;
    --roll: .85deg;
  }
}
@keyframes settle-collage {
  from { transform: translateY(14px); opacity: .85; }
  to { transform: translateY(0); opacity: 1; }
}
@media (prefers-reduced-motion: no-preference) {
  .collage-frame { animation: settle-collage 460ms cubic-bezier(.16, 1, .3, 1) backwards; }
  .frame-school { animation-delay: 60ms; }
  .frame-solidarity { animation-delay: 120ms; }
}
.firefly .service h2 { font-size: clamp(1.85rem, 3.4vw, 3.25rem); }
.firefly .service p { max-width: 65ch; }
.firefly .service .button { flex: 0 0 auto; }
.programme-rows { margin-top: clamp(24px, 4vw, 48px); }
.programme-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 5.4vw, 80px);
  align-items: center;
  border-block-start: 1px solid var(--line);
  padding-block: clamp(20px, 3vw, 38px);
}
.programme-row:last-child { border-block-end: 1px solid var(--line); }
.programme-row p, .journal-grid p { margin-top: 10px; }
.circle-arrow { width: 28px; height: 28px; flex-basis: 28px; border: 1px solid currentColor; border-radius: 50%; }
.circle-arrow::before { top: 12px; inset-inline-start: 6px; }
.circle-arrow::after { top: 9px; inset-inline-end: 7px; }
.participation { background: #eef0dd; }
.firefly .paths { margin-top: 30px; column-gap: 32px; }
.firefly .path summary { font-family: var(--serif); font-size: clamp(1.55rem, 2.6vw, 2.55rem); font-weight: 600; }
.visit { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(24px, 6vw, 90px); }
.visit p { margin-top: 12px; }
.visit-list { margin: 0; }
.visit-list div { padding-block: 14px; border-block-start: 1px solid var(--line); }
.visit-list dt { font-weight: 700; }
.visit-list dd { margin-inline-start: 0; }
.firefly .proof { background: var(--blue); }
.firefly .report, .firefly .report dl div { border-color: #a6b4d8; }
.journal-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(20px, 4vw, 54px); margin-top: 28px; }
.journal-grid h3 { margin-top: 16px; }
.firefly .footer { background: var(--blue); }
.firefly .arabic-preview > div { grid-column: -2 / -1; }
.firefly .arabic-preview h2 { font-size: clamp(1.5rem, 2.7vw, 2.3rem); }
@media (max-width: 1100px) {
  .firefly .shell { width: calc(100% - 64px); }
}
@media (max-width: 900px) {
  .firefly .shell { width: calc(100% - 40px); }
  .firefly .hero-section::before { width: 260px; height: 340px; left: -166px; }
  .firefly .hero-section::after { top: auto; bottom: 8%; }
}
@media (max-width: 650px) {
  .firefly .hero {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "photos" "controls" "message";
    gap: 8px;
    padding-block: 8px 28px;
  }
  .firefly .hero-copy { display: contents; }
  .hero-messages { grid-area: message; align-items: start; color: var(--hero-ink); }
  .firefly .hero-message h1 { font-size: clamp(1.96rem, 9.3vw, 3rem); }
  .firefly .hero-message h2 { font-size: clamp(1.75rem, 8.2vw, 2.6rem); }
  .firefly #message-sante h2 { font-size: calc(clamp(1.625rem, 7.5vw, 2.35rem) - .25rem); }
  .firefly #message-sante p { font-size: 1rem; }
  .firefly .hero-copy p:not(.hero-status) { margin-top: 12px; }
  .firefly .hero-actions { margin-top: 12px; }
  .hero-controls { grid-area: controls; justify-self: center; margin: 0; }
  .collage { height: clamp(220px, 66vw, 365px); }
  .collage-depth { gap: 8px; }
  .firefly .button { padding-inline: 17px; }
  .firefly .button.small { padding-inline: 13px; }
  .programme-row, .visit, .journal-grid { grid-template-columns: 1fr; }
  .programme-row { gap: 16px; }
  .firefly .paths { margin-top: 20px; }
}
@media (max-width: 335px) {
  .firefly .shell { width: calc(100% - 32px); }
}

/* Field photographs and editorial sections */
.collage-frame img, .field-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.frame-health img { object-position: 48% 36%; }
.frame-health:not([data-slot="lead"]) img { object-position: 48% 23%; }
.frame-school img { object-position: 50% 48%; }
.frame-solidarity img { object-position: 50% 64%; }
.field-photo {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
}
.field-photo > :is(img, figcaption) { grid-area: 1 / 1; }
.field-photo img { aspect-ratio: 2.15; height: auto; border-radius: 9px; }
.field-photo figcaption {
  align-self: end;
  justify-self: start;
  margin: 8px;
  padding: 6px 10px;
  border-radius: 6px;
  color: white;
  background: rgb(16 22 36 / 78%);
  font-size: .875rem;
  line-height: 1.3;
}
.field-photo figcaption a { color: inherit; text-underline-offset: 3px; }
.firefly .field-photo figcaption a:focus-visible { outline-color: var(--gold); }
@media (prefers-reduced-transparency: reduce) {
  .field-photo figcaption { background: #101624; }
}
.programme-row:nth-child(1) .field-photo img { object-position: 50% 35%; }
.programme-row:nth-child(2) .field-photo img { object-position: 50% 51%; }
.programme-row:nth-child(3) .field-photo img { object-position: 50% 68%; }
.section-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 14px 28px; }
.section-heading p, .resources > p, .outcomes > p { margin-top: 14px; }
.resources { border-top: 1px solid var(--line); }
.resource-links { display: flex; flex-wrap: wrap; gap: 0 28px; margin-top: 14px; }
.firefly .proof .text-link { color: white; margin-top: 12px; }
.firefly .journal { padding-top: 0; }
.firefly .journal-grid { grid-template-columns: 1.35fr 1fr 1fr; }
.partner-section { background: #f3f5e9; }
.logo-toggle { cursor: pointer; font: 700 1rem/1.2 var(--body); }
.logo-toggle[hidden] { display: none; }
.logo-window { overflow: hidden; margin-block: 18px 4px; border-block: 1px solid var(--line); }
.logo-track { display: flex; }
.logo-group {
  flex: 0 0 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: center;
  list-style: none;
  gap: 18px 30px;
  padding: 28px 15px;
  margin: 0;
}
.logo-group[aria-hidden] { display: none; }
.logo-group img { display: block; max-width: min(180px, 32vw); max-height: 56px; width: auto; height: auto; object-fit: contain; }
@keyframes rotate-partners { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: no-preference) {
  .logo-track:has(.logo-group[aria-hidden]) { width: max(200%, 1960px); animation: rotate-partners 30s linear infinite paused; }
  .logo-track:has(.logo-group[aria-hidden]) .logo-group { flex-basis: 50%; flex-wrap: nowrap; }
  .logo-track:has(.logo-group[aria-hidden]) .logo-group li { flex-basis: 0; }
  .logo-track .logo-group[aria-hidden] { display: flex; }
  .logo-track[data-in-view]:not([data-paused]) { animation-play-state: running; }
}
.questions { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(24px, 6vw, 90px); }
.giving { background: #eef0dd; }
.giving .shell { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(24px, 6vw, 90px); align-items: center; }
.footer .footer-shortcuts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 0;
  width: 100%;
  margin: 0;
  border-block-end: 1px solid #a6b4d8;
}
.footer .footer-shortcuts > a {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 8px;
  padding: clamp(14px, 2.75vw, 40px);
  min-height: clamp(160px, 25vw, 360px);
  font: 600 clamp(1.3rem, 2.8vw, 2.55rem)/1.1 var(--serif);
  text-decoration: none;
  border-inline-start: 1px solid #a6b4d8;
}
.footer-shortcuts a:first-child { border-inline-start: 0; }
.firefly .footer-inner nav { flex-direction: column; align-items: flex-start; gap: 0; }
.firefly .footer-inner nav a { min-height: 44px; }
.footer-credit-row {
  border-block-start: 1px solid #a6b4d84f;
  background: #202e52;
  padding-block: clamp(24px, 3.2vw, 46px);
  text-align: center;
}
.firefly .footer .footer-credit {
  margin-block: 0;
  color: #e3eafd;
  font-size: clamp(1rem, 1.3vw, 1.125rem);
}
.firefly .footer .footer-credit-services {
  max-width: 58ch;
  margin-block-start: 10px;
  color: #e3eafd;
}
.footer-credit-services a { color: inherit; text-underline-offset: 3px; }
.firefly .footer-credit a {
  display: inline-flex;
  vertical-align: middle;
  color: var(--innovancy-footer-logo, #fff);
}
.firefly .footer-credit a:is(:hover, :focus-visible) { color: var(--innovancy-footer-logo-hover, var(--gold)); }
.footer-credit-logo {
  display: block;
  width: clamp(108px, 11vw, 148px);
  height: auto;
  fill: currentColor;
}
@media (max-width: 900px) {
  .firefly .journal-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 650px) {
  .firefly .journal-grid, .questions, .giving .shell { grid-template-columns: 1fr; }
  .field-photo img { aspect-ratio: 1.65; }
  .logo-group { gap: 12px; padding-inline: 12px; }
  .footer .footer-shortcuts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-shortcuts a:nth-child(3) { border-inline-start: 0; }
  .footer-shortcuts a:nth-child(n+3) { border-block-start: 1px solid #a6b4d8; }
}

/* Firefly reference rows, feature stories and footer tiles */
.field-rows { padding-bottom: 0; }
.reference-row h2 {
  font: 600 clamp(2rem, 3.25vw, 3.25rem)/1 var(--serif);
  letter-spacing: -.025em;
}
.reference-row .resource-links { align-items: center; gap: 8px 18px; }
.reference-row .path:first-of-type { margin-top: 18px; }
.reference-row .path p { margin-top: 0; }
.reference-row .path .text-link { margin-bottom: 12px; }

.outcome-rows { margin-top: clamp(24px, 4vw, 48px); }
.outcome-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr) minmax(0, 15rem);
  align-items: center;
  gap: clamp(20px, 4.5vw, 68px);
  padding-block: clamp(20px, 3vw, 40px);
  border-block-end: 1px solid var(--line);
}
.outcome-row .field-photo img { aspect-ratio: 1; }
.outcome-row:first-child .field-photo img { object-position: center 55%; }
.outcome-row:last-child .field-photo img { object-position: center 68%; }
.outcome-row p { margin-top: 12px; }
.outcome-value {
  display: block;
  font: 800 clamp(4rem, 10.6vw, 9.5rem)/.9 var(--heading);
  letter-spacing: -.035em;
  margin-bottom: 16px;
}
.outcome-row > .button { align-self: end; justify-self: end; margin-bottom: 26px; }
@media (max-width: 1000px) {
  .outcome-row { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); row-gap: 14px; }
  .outcome-row > .field-photo { grid-row: span 2; }
  .outcome-row > div { align-self: end; }
  .outcome-row > .button { grid-column: 2; justify-self: start; margin: 0; }
}
@media (max-width: 650px) {
  .outcome-row { grid-template-columns: minmax(0, 1fr); }
  .outcome-row > .field-photo { grid-row: auto; }
  .outcome-row > .button { grid-column: 1; }
  .outcome-row .field-photo img { aspect-ratio: 1.4; }
}

.firefly .journal { position: relative; isolation: isolate; }
.journal::before,
.journal::after {
  content: "";
  position: absolute;
  width: 110px;
  aspect-ratio: 1;
  z-index: -1;
  pointer-events: none;
}
.journal::before { inset: 26% auto auto -35px; background: radial-gradient(circle, #f2a35c 0%, transparent 70%); }
.journal::after { inset: 65% -32px auto auto; background: radial-gradient(circle, #8fa5f1 0%, transparent 69%); }
@media (prefers-reduced-motion: no-preference) {
  .journal::before, .journal::after { animation: journal-glow 14s ease-in-out infinite alternate; animation-play-state: paused; }
  .journal[data-glow-visible]::before, .journal[data-glow-visible]::after { animation-play-state: running; }
}
@keyframes journal-glow { to { transform: translateY(16px) scale(1.2); } }

.firefly .journal h2 { font-size: clamp(1.55rem, 2.2vw, 1.95rem); }
.firefly .journal-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: 1.6fr 1fr;
  gap: clamp(20px, 3.9vw, 56px);
  margin-top: clamp(22px, 3.4vw, 50px);
}
.story-card {
  border-radius: 10px;
  background: #f5c649;
  box-shadow: 0 4px 9px #0002;
  min-width: 0;
}
.story-card > a {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 270px;
  height: 100%;
  padding: clamp(22px, 3vw, 40px);
  text-decoration: none;
  border-radius: inherit;
  overflow: hidden;
  isolation: isolate;
}
.story-card-lead { grid-row: span 2; }
.story-card-lead > a { min-height: clamp(585px, 55.4vw, 800px); }
.story-card-lead a, .story-card-photo a { color: #fff; background: #252d45; }
.story-card img,
.story-card-lead a::before,
.story-card-photo a::before {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.story-card img {
  z-index: -2;
  display: block;
  object-fit: cover;
  object-position: center;
}
.story-card-lead a::before,
.story-card-photo a::before {
  content: "";
  z-index: -1;
  background: linear-gradient(#1a12158c, #1a121524 40%, #1a1215b8);
  transition: opacity 300ms ease-in-out;
}
.story-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: clamp(1.1rem, 1.85vw, 1.55rem); }
.story-card h3 { max-width: 20ch; font: 600 clamp(1.65rem, 2.7vw, 2.4rem)/1.12 var(--body); }
.story-card-color h3 { margin-block: auto; font-family: var(--serif); font-size: clamp(2rem, 3.4vw, 3.3rem); }
.story-card a:hover .arrow, .story-card a:focus-visible .arrow { transform: translateX(3px); }
.story-card .circle-arrow, .footer-shortcuts .circle-arrow, .giving-panel .circle-arrow {
  width: 50px;
  height: 50px;
  flex-basis: 50px;
}
.story-card .circle-arrow::before, .footer-shortcuts .circle-arrow::before, .giving-panel .circle-arrow::before { top: 23px; inset-inline-start: 15px; width: 19px; }
.story-card .circle-arrow::after, .footer-shortcuts .circle-arrow::after, .giving-panel .circle-arrow::after { top: 19px; inset-inline-end: 16px; width: 9px; height: 9px; }

.firefly .giving { background: var(--paper); }
.giving .shell { align-items: center; }
.giving h2 { margin-bottom: 16px; }
.giving-panel {
  display: grid;
  place-items: center;
  min-height: clamp(205px, 26vw, 360px);
  border-radius: 10px;
  padding: 22px;
  background: #304681;
}
.giving-panel .button {
  background: transparent;
  border-color: transparent;
  font: 600 clamp(1.75rem, 3.4vw, 3.2rem)/1.05 var(--serif);
}
.giving-panel .button:hover { background: #26365f; }
.giving-panel .button:focus-visible { outline-color: white; }

.firefly .partner-section { background: var(--paper); padding-block: clamp(28px, 6vw, 85px); }
.firefly .logo-window {
  margin-block: 0;
  border: 0;
  mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}
.logo-group li { flex: 1 1 120px; min-width: 0; display: grid; justify-items: center; }
.firefly .logo-group img { max-width: min(100%, 205px); max-height: 80px; }
.firefly .logo-toggle { display: block; margin: 4px auto 0; }
.firefly .logo-toggle[hidden] { display: none; }
.footer-shortcuts a:focus-visible { outline-offset: -5px; }
.footer-sitemap { border-block-end: 1px solid #a6b4d8; }
.footer-sitemap summary { cursor: pointer; padding: 17px clamp(20px, 2.75vw, 40px); }
.footer-sitemap nav { padding-block: 0 16px; }

@media (max-width: 900px) {
  .firefly .journal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
  .firefly .journal-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .story-card-lead { grid-row: auto; }
  .story-card > a, .story-card-lead > a { min-height: 285px; }
  .story-card .circle-arrow { width: 28px; height: 28px; flex-basis: 28px; }
  .story-card .circle-arrow::before { top: 12px; inset-inline-start: 6px; width: 13px; }
  .story-card .circle-arrow::after { top: 9px; inset-inline-end: 7px; width: 6px; height: 6px; }
  .journal::before { inset-inline-start: -16px; }
  .journal::after { inset-inline-end: -16px; }
}
.story-card a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  pointer-events: none;
  background: linear-gradient(45deg, #e9671879, #516fd962);
  transition: opacity 300ms ease-in-out;
}
.story-card a:focus-visible::after { opacity: 1; }
.story-pointer { display: none; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .story-card a:hover::after { opacity: 1; }
  .story-pointer {
    display: block;
    position: absolute;
    inset: 0 auto auto 0;
    opacity: 0;
    pointer-events: none;
    padding: 12px 20px;
    border-radius: 100px;
    background: #593415;
    color: white;
    font-size: 1rem;
    white-space: nowrap;
    transform: translate(var(--pointer-x, 85px), var(--pointer-y, 30px)) translate(-50%, -50%);
    transition: opacity 300ms ease-in-out;
  }
  .story-card a:hover .story-pointer { opacity: 1; }
}
.giving .shell > div:first-child > p {
  font: 500 clamp(2.1rem, 4.1vw, 3.9rem)/1.02 var(--serif);
  max-width: 16ch;
}
.giving-panel {
  align-content: center;
  gap: 18px;
  text-align: center;
  color: white;
  justify-self: center;
  width: min(100%, 412px);
  min-height: clamp(280px, 39vw, 560px);
  padding: clamp(20px, 3vw, 45px);
  border-radius: 20px;
}
.giving-panel .button {
  background: #fff0c5;
  color: var(--blue);
  font: 700 1rem/1.2 var(--body);
}
.giving-panel .button:hover { background: white; }
.giving-panel .circle-arrow { width: 28px; height: 28px; flex-basis: 28px; }
.giving-panel .circle-arrow::before { top: 12px; inset-inline-start: 6px; width: 13px; }
.giving-panel .circle-arrow::after { top: 9px; inset-inline-end: 7px; width: 6px; height: 6px; }
.footer-shortcuts a { position: relative; isolation: isolate; }
.footer-shortcuts a::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(33deg, #a64c13, #4d60ac 38%, transparent 80%);
  opacity: 0;
  transition: opacity 300ms ease-in-out;
}
.footer-shortcuts a:hover, .footer-shortcuts a:focus-visible { background: transparent; }
.footer-shortcuts a:hover::before, .footer-shortcuts a:focus-visible::before { opacity: 1; }
.footer-shortcuts .circle-arrow { transition: transform 300ms ease-in-out; }
.footer-shortcuts a:hover .circle-arrow, .footer-shortcuts a:focus-visible .circle-arrow { transform: rotate(-45deg); }
@media (max-width: 1100px) {
  .journal::before { inset-inline-start: -12px; }
  .journal::after { inset-inline-end: -12px; }
}
@media (max-width: 900px) {
  .footer-shortcuts .circle-arrow { width: 28px; height: 28px; flex-basis: 28px; }
  .footer-shortcuts .circle-arrow::before { top: 12px; inset-inline-start: 6px; width: 13px; }
  .footer-shortcuts .circle-arrow::after { top: 9px; inset-inline-end: 7px; width: 6px; height: 6px; }
  .journal::before { inset-inline-start: -4px; }
  .journal::after { inset-inline-end: -4px; }
}
@media (prefers-reduced-motion: reduce) {
  .story-card a:hover .arrow, .story-card a:focus-visible .arrow,
  .footer-shortcuts a:hover .circle-arrow, .footer-shortcuts a:focus-visible .circle-arrow { transform: none; }
}

/* Compact clinic-style navigation in the AMARES palette */
.firefly .clinic-header {
  background: #eef2fc;
  box-shadow: 0 1px 0 #00000020;
  transition: transform 360ms cubic-bezier(.22, 1, .36, 1), background-color 280ms ease, box-shadow 280ms ease;
}
.firefly .clinic-header.is-scrolled {
  box-shadow: 0 8px 24px #00000014, inset 0 1px 0 #ffffffe0;
}
.firefly .clinic-header.is-hidden {
  transform: translateY(calc(-100% - 12px));
  pointer-events: none;
  transition-duration: 260ms, 280ms, 280ms;
  transition-timing-function: cubic-bezier(.4, 0, .2, 1), ease, ease;
}
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  @media (prefers-reduced-transparency: no-preference) and (forced-colors: none) {
    .firefly .clinic-header {
      background: rgb(238 242 252 / 96%);
      -webkit-backdrop-filter: blur(24px) saturate(165%);
      backdrop-filter: blur(24px) saturate(165%);
    }
    .firefly .clinic-header.is-scrolled { background: rgb(238 242 252 / 82%); }
  }
}
.clinic-header .header-inner {
  height: 64px;
  min-height: 0;
  padding-block: 0;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 16px;
}
.clinic-header .desktop-nav { margin-inline-start: auto; align-items: stretch; gap: 4px; height: 100%; }
.clinic-header .header-tools {
  gap: 8px;
  flex-shrink: 0;
}
.clinic-header .desktop-nav + .header-tools {
  padding-inline-start: 14px;
  border-inline-start: 1px solid var(--line);
}
.clinic-header .header-disclosure { position: relative; align-content: center; }
.clinic-header details > summary { list-style: none; cursor: pointer; }
.clinic-header details > summary::-webkit-details-marker { display: none; }
.clinic-header .header-disclosure > summary {
  display: flex;
  align-items: center;
  min-height: 44px;
  gap: 8px;
  padding-inline: 12px;
  border-radius: 7px;
  font-size: 1rem;
  font-weight: 650;
}
.clinic-header .header-disclosure > summary:hover,
.clinic-header .header-disclosure[open] > summary { background: #dfe8ff; }
.header-chevron {
  width: 6px;
  height: 6px;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  rotate: 45deg;
  margin-bottom: 3px;
}
.header-disclosure[open] .header-chevron { rotate: 225deg; margin-bottom: -3px; }
.clinic-header .arabic-link { display: grid; place-items: center; min-width: 44px; min-height: 44px; }
.clinic-header .button.small { background: var(--brand-gold); border-color: var(--brand-gold); color: var(--ink); }
.clinic-header .button.small:hover { background: #ffd06b; }
.clinic-header .clinic-menu { display: block; }
.clinic-header .clinic-menu > summary {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  color: white;
  background: var(--blue);
}
.header-menu-icon { width: 18px; height: 14px; position: relative; }
.header-menu-icon::before, .header-menu-icon::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  border-top: 1.5px solid currentColor;
  border-radius: 2px;
}
.header-menu-icon::before { top: 4px; }
.header-menu-icon::after { bottom: 4px; }
.clinic-menu[open] .header-menu-icon::before { top: 6px; transform: rotate(45deg); }
.clinic-menu[open] .header-menu-icon::after { bottom: auto; top: 6px; transform: rotate(-45deg); }
.clinic-header .header-panel {
  position: absolute;
  inset-block-start: 100%;
  color: var(--ink);
  background: #fbfcff;
  box-shadow: 0 16px 28px #00000018;
}
.clinic-header details[open] > .header-panel,
.clinic-header .clinic-menu[open] .clinic-mega { animation: open-nav 180ms ease-out both; }
.clinic-header .header-dropdown {
  width: 248px;
  padding: 10px;
  border-radius: 0 0 12px 12px;
}
.clinic-header .header-panel a:not(.button) {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: inherit;
  font-weight: 500;
  text-decoration: none;
  border: 0;
}
.clinic-header .header-dropdown a:not(.button) { padding: 8px 12px; border-radius: 6px; }
.clinic-header .header-dropdown a:hover { background: var(--pale); }
.clinic-menu-viewport { display: contents; }
.clinic-header .clinic-mega {
  inset-inline: 0;
  width: 100%;
  max-height: calc(100dvh - 64px);
  padding: 34px 0 38px;
  overflow: auto;
  overscroll-behavior: contain;
}
.clinic-header .mega-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.25fr);
  gap: clamp(18px, 4vw, 56px);
}
.mega-group > p { color: #4d5d81; font-size: .875rem; margin-bottom: 12px; }
.mega-invitation > p { font: 600 clamp(1.7rem, 3vw, 2.85rem)/1 var(--serif); color: var(--blue); margin-bottom: 14px; }
.clinic-header .mega-invitation .text-link { border-bottom: 1px solid var(--line); }
.clinic-header .mega-donate { display: none; }
@keyframes slide-in-menu {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}
@media (max-width: 999px) {
  .clinic-header .desktop-nav { display: none; }
  .clinic-header .desktop-nav + .header-tools { margin-inline-start: auto; padding-inline-start: 0; border: 0; }
  .clinic-header .header-inner { gap: 10px; }
  .clinic-header .wordmark { min-height: 44px; }
  .clinic-header .amares-logo { width: 100px; }
  .clinic-menu-viewport {
    display: block;
    position: absolute;
    inset: 100% 0 auto;
    overflow: clip;
  }
  .clinic-header .clinic-mega { position: relative; inset: auto; }
  .clinic-header .clinic-menu[open] .clinic-mega { animation: none; }
  .clinic-header .mega-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
}
@media (max-width: 999px) and (prefers-reduced-motion: no-preference) {
  .clinic-header .clinic-menu[open] .clinic-mega { animation: slide-in-menu 260ms cubic-bezier(.16, 1, .3, 1) backwards; }
}
@media (max-width: 650px) {
  .clinic-header .header-donate { display: none; }
  .clinic-header .mega-donate { display: inline-flex; margin-top: 12px; }
  .clinic-header .clinic-mega { padding-block: 24px; }
  .clinic-header .mega-grid { grid-template-columns: minmax(0, 1fr); }
}

.hero-playback[hidden] { display: none; }
.hero-playback { margin-inline-start: 6px; box-shadow: inset 0 0 0 1px currentColor; }
.hero-playback:hover { background: var(--pale); }
.playback-icon { width: 10px; height: 13px; border-inline: 2px solid currentColor; }
.hero-playback[data-paused] .playback-icon {
  width: 0;
  height: 0;
  border: solid transparent;
  border-width: 6px 0 6px 9px;
  border-inline-start-color: currentColor;
  margin-inline-start: 2px;
}
@media (max-width: 335px) {
  .hero-controls button { min-width: 44px; }
  .hero-playback { margin-inline-start: 0; }
}

@media (prefers-reduced-transparency: no-preference) and (forced-colors: none) {
  .firefly {
    --glass-sheen: radial-gradient(ellipse at 26% 0%, #ffffff70, #ffffff08 61%, transparent 72%);
    --glass-rim: inset 0 1px 0 #ffffffb8, inset 0 -1px 0 #0000001a;
    --glass-shadow: 0 4px 10px #00000017;
  }
  .firefly :is(.button, .clinic-header .clinic-menu > summary, .hero-controls > button, .circle-arrow, .path .plus) {
    background: var(--glass-sheen), var(--glass-fill, #ffffff8c);
    background-size: 145% 130%, 100% 100%;
    background-position: 0 0, center;
    box-shadow: var(--glass-rim), var(--glass-shadow);
    transition: background-position 260ms ease, box-shadow 180ms ease,
      transform var(--glass-transform-duration, 180ms) var(--glass-transform-easing, ease);
  }
  .firefly .button {
    --glass-fill: linear-gradient(145deg, #f9d27d, #eab134 65%, #ffd980);
    color: var(--blue);
    border-color: #89641e;
  }
  .firefly .button.outline {
    --glass-fill: linear-gradient(145deg, #ffffffe8, #eff3f9a8 60%, #fff5debe);
    border-color: #7c8aaa;
  }
  .firefly .button.outline:is(:hover, :focus-visible) {
    color: var(--blue);
    border-color: #576889;
    background: var(--glass-sheen), var(--glass-fill);
    background-size: 145% 130%, 100% 100%;
  }
  .firefly .glass-cta {
    --glass-fill: linear-gradient(155deg, #fff2bd 5%, #f6ca62 48%, #e4a331 70%, #ffdf86);
    --glass-rim: inset 0 2px 1px #ffffffe0, inset 0 -2px 1px #00000029, inset 0 0 0 1px #ffffff8c;
    --glass-shadow: 0 5px 12px #00000022;
    position: relative;
    isolation: isolate;
    touch-action: manipulation;
  }
  .firefly .glass-cta.outline {
    --glass-fill: linear-gradient(155deg, #fff 5%, #f8fbffbb 40%, #dce6f7dc 72%, #fff5dd);
  }
  .firefly .glass-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    background: radial-gradient(ellipse 72px 29px at var(--cta-light-x, 50%) var(--cta-light-y, 18%),
      #fff 0%, #ffffffa6 36%, transparent 100%);
    transition: opacity 150ms ease-out;
  }
  .firefly .glass-cta:is([data-cta-pointer]:hover, :focus-visible)::before { opacity: .94; }
  .firefly .glass-cta:is(:active, [data-cta-pressed])::before { opacity: .68; }
  .firefly a.button.glass-cta[data-cta-pressed] { box-shadow: var(--glass-rim); }
  .firefly .clinic-header .clinic-menu > summary {
    --glass-fill: linear-gradient(150deg, #40578e, #26365f 62%, #344776);
    --glass-sheen: radial-gradient(ellipse at 26% 0%, #ffffff40, transparent 68%);
    --glass-rim: inset 0 1px 0 #ffffff70, inset 0 -1px 0 #0000002b;
  }
  .firefly :is(.story-card, .footer-shortcuts) .circle-arrow {
    --glass-fill: #172641b8;
    --glass-sheen: radial-gradient(ellipse at 26% 0%, #ffffff42, transparent 70%);
    --glass-rim: inset 0 1px 0 #ffffff70, inset 0 -1px 0 #0000002b;
    color: white;
    border-color: #ffffffa6;
  }
  .firefly .footer-shortcuts .circle-arrow {
    --glass-transform-duration: 300ms;
    --glass-transform-easing: ease-in-out;
  }
  .firefly .hero-controls > button {
    --glass-rim: inset 0 1px 0 #fff, inset 0 0 0 1px #26365f48;
  }
  .firefly .hero-controls > .hero-dot:not([aria-current]):not(:hover):not(:focus-visible):not(:active) {
    background: transparent;
    box-shadow: none;
  }
  .firefly .path .plus {
    flex-basis: 28px;
    height: 28px;
    border-radius: 50%;
  }
  .firefly .path .plus::before { inset: 13px auto auto 7px; }
  .firefly .path .plus::after { inset: 7px auto auto 13px; }
  .firefly :is(.button, .clinic-header .clinic-menu > summary, .hero-controls > button):is(:hover, :focus-visible),
  .firefly :is(a, summary):is(:hover, :focus-visible) :is(.circle-arrow, .plus) {
    background-position: 100% 0, center;
    box-shadow: var(--glass-rim), 0 6px 14px #00000024;
  }
  .firefly :is(.button, .clinic-header .clinic-menu > summary, .hero-controls > button):active {
    box-shadow: var(--glass-rim);
  }
  .firefly :is(.clinic-header .header-panel a:not(.button), .clinic-header .header-disclosure > summary,
    .arabic-link, .text-link, .footer-inner nav a, .footer-sitemap a, .footer-sitemap > summary,
    .path > summary, figcaption a, .wordmark, .skip):is(:hover, :focus-visible, :active) {
    background-image: linear-gradient(145deg, #ffffff45, #ffffff0d 65%, #ffffff32);
    box-shadow: inset 0 1px 0 #ffffff70, inset 0 -1px 0 #00000016;
    border-radius: 7px;
  }
  @supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
    .firefly :is(.button.outline, .hero-step, .hero-playback, .story-card .circle-arrow) {
      -webkit-backdrop-filter: blur(10px) saturate(140%);
      backdrop-filter: blur(10px) saturate(140%);
    }
  }
  @media (prefers-reduced-motion: no-preference) {
    .firefly :is(.button, .clinic-header .clinic-menu > summary, .hero-controls > button):active { transform: scale(.97); }
    .firefly a.button.glass-cta[data-cta-pressed] { transform: translateY(1px) scale(.98); }
  }
}
