/* IDX Cares — one-page site (v3, light/airy layout)
   Brand: navy #0f143a, yellow #f3c91a, red #ed1c24 + light blue #9ccaf5 (sparingly).
   Fonts: Montserrat (display) + Inter (body). */

:root {
  --navy: #0f143a;
  --navy-mid: #272c67;
  --yellow: #f3c91a;
  --yellow-hl: rgba(243, 201, 26, .55);
  --yellow-soft: #fff3b0;
  --red: #ed1c24;
  --blue: #9ccaf5;
  --cream: #fff9ea;
  --cream-2: #fdf3d8;
  --cream-line: #f3e6c2;
  --white: #fff;
  --text: #2b3050;
  --muted: #5d627c;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 10px 30px rgba(15, 20, 58, .07);
  --shadow-lg: 0 24px 60px rgba(15, 20, 58, .14);
  --font-display: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --container: 1180px;
  --nav-h: 76px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body { margin: 0; font-family: var(--font-sans); font-size: 1.0625rem; line-height: 1.7; color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); color: var(--navy); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.015em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 800; }
p { margin: 0 0 1em; }
.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.section { position: relative; padding: clamp(4rem, 8vw, 7rem) 0; }
.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; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 200; background: var(--yellow); color: var(--navy); padding: .6rem 1rem; border-radius: 999px; font-weight: 700; }
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 8px; }
.donate :focus-visible, .site-footer :focus-visible { outline-color: var(--yellow); }

/* ---------- Custom cursor: zipper heart ---------- */
html, body {
  cursor: url("../images/cursor-heart-zip.png") 5 5, auto;
  cursor: url("../images/cursor-heart-zip.svg") 5 5, url("../images/cursor-heart-zip.png") 5 5, auto;
}
a, button, select, label[for], summary, [role="button"], .btn, .nav-toggle {
  cursor: url("../images/cursor-heart-zip-hover.png") 5 5, pointer;
  cursor: url("../images/cursor-heart-zip-hover.svg") 5 5, url("../images/cursor-heart-zip-hover.png") 5 5, pointer;
}
input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]), textarea { cursor: text; }

/* ---------- Eyebrow with sprout ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem; margin: 0 0 1rem;
  font-family: var(--font-display); font-weight: 800; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
  color: #8a6d00;
}
.eyebrow .sprout { color: var(--yellow); flex: 0 0 auto; }
.eyebrow--light { color: var(--yellow); }

.lead { color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.1rem); }
.lead-strong { font-family: var(--font-display); font-weight: 600; color: var(--navy); font-size: clamp(1.1rem, 1.8vw, 1.3rem); line-height: 1.55; }
.section-head { text-align: center; max-width: 820px; margin: 0 auto clamp(2.5rem, 5vw, 3.5rem); }
.headline-white { color: var(--white); white-space: nowrap; }

/* yellow highlighter underline */
mark {
  color: inherit; background: linear-gradient(transparent 58%, var(--yellow-hl) 58%, var(--yellow-hl) 92%, transparent 92%);
  padding: 0 .08em; border-radius: 2px; -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

/* ---------- Buttons (pills) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-display); font-weight: 700; font-size: .95rem; text-decoration: none;
  padding: .8rem 1.5rem; border-radius: 999px; border: 2px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--sm { padding: .55rem 1.2rem; font-size: .88rem; }
.btn--lg { padding: .95rem 1.9rem; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--yellow { background: var(--yellow); color: var(--navy); box-shadow: 0 8px 20px rgba(243, 201, 26, .35); }
.btn--yellow:hover { background: #ffd83a; box-shadow: 0 12px 26px rgba(243, 201, 26, .45); }
.btn--outline { color: var(--navy); border-color: var(--navy); background: transparent; }
.btn--outline:hover { background: var(--navy); color: var(--white); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-mid); box-shadow: 0 12px 26px rgba(15, 20, 58, .25); }

/* ---------- Nav ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 100; height: var(--nav-h);
  background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid rgba(15, 20, 58, .06);
}
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand img { height: 48px; width: auto; transition: transform .35s var(--ease); }
.brand:hover img { transform: rotate(-3deg) scale(1.04); }
.nav-links { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: clamp(1rem, 2.6vw, 2.25rem); }
.nav-links a:not(.btn) { position: relative; text-decoration: none; font-family: var(--font-display); font-weight: 600; font-size: .92rem; color: var(--navy); padding: .3rem 0; }
.nav-links a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 3px; background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav-links a:not(.btn):hover::after { transform: scaleX(1); }
.nav-toggle { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; }
.nav-toggle .bar { display: block; width: 26px; height: 3px; margin: 5px 0; border-radius: 3px; background: var(--navy); transition: transform .3s, opacity .3s; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(4) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- 1. Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2rem, 4vw, 3rem);
  background:
    radial-gradient(circle at 78% 30%, rgba(243, 201, 26, .32) 0, rgba(243, 201, 26, .12) 28%, transparent 55%),
    radial-gradient(circle at 0% 100%, rgba(243, 201, 26, .14) 0, transparent 40%),
    var(--cream);
}
.hero-arcs span { position: absolute; z-index: -1; border: 1.5px solid rgba(15, 20, 58, .08); border-radius: 50%; pointer-events: none; }
.hero-arcs span:nth-child(1) { width: 820px; height: 520px; top: 4%; right: -260px; }
.hero-arcs span:nth-child(2) { width: 620px; height: 400px; top: 16%; right: -120px; border-color: rgba(243, 201, 26, .45); }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.75rem); font-weight: 800; margin-bottom: .55em; }
.hero-sub { max-width: 540px; color: var(--muted); font-size: clamp(1.02rem, 1.4vw, 1.15rem); margin-bottom: 2rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .9rem; }
.hero-art { position: relative; padding: 1.5rem 1.5rem 1.5rem 0; }
.logo-card {
  position: relative; background: var(--white); border-radius: 28px; padding: clamp(2rem, 4vw, 3.25rem);
  box-shadow: var(--shadow-lg); transform: rotate(-2.5deg); transition: transform .5s var(--ease);
}
.logo-stack { position: relative; }
.logo-back { position: absolute; inset: 0; border-radius: 28px; background: var(--yellow); transform: translate(16px, -14px) rotate(2deg); box-shadow: var(--shadow); transition: transform .5s var(--ease); }
.hero-art:hover .logo-card { transform: rotate(-1deg) translateY(-4px); }
.hero-art:hover .logo-back { transform: translate(20px, -18px) rotate(3.5deg); }
.logo-card img { width: 100%; height: auto; }
.dot { position: absolute; border-radius: 50%; animation: float 7s ease-in-out infinite; }
.dot--blue { width: 18px; height: 18px; background: var(--blue); left: -6px; bottom: 14%; }
.dot--red { width: 11px; height: 11px; background: var(--red); right: 0; bottom: 2%; animation-delay: -2s; }
.dot--yellow { width: 14px; height: 14px; background: var(--yellow); left: 18%; top: -4px; animation-delay: -4s; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }

/* DNA helix scroll cue */
.scroll-cue {
  display: flex; flex-direction: column; align-items: center; gap: .55rem; width: max-content;
  margin: clamp(1.5rem, 4vw, 2.75rem) auto 0; padding: .3rem .6rem; text-decoration: none;
  border-radius: 999px; transition: transform .3s var(--ease);
}
.helix-bob { display: block; line-height: 0; animation: helix-bob 2.8s ease-in-out infinite; }
.scroll-word {
  display: block; font-family: var(--font-display); font-weight: 800; font-size: .68rem;
  letter-spacing: .32em; text-transform: uppercase; color: var(--navy); padding-left: .32em;
  animation: scroll-word 2.8s ease-in-out infinite; animation-delay: -.6s;
}
@keyframes helix-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(9px); } }
@keyframes scroll-word { 0%, 100% { transform: translateY(0); opacity: .55; } 50% { transform: translateY(6px); opacity: 1; } }
.scroll-cue:hover { transform: translateY(4px); }
.helix { width: 32px; height: 84px; overflow: hidden; }
.helix-flow { animation: helix-flow 2.4s linear infinite; }
.helix-strand { fill: none; stroke-width: 2.6; stroke-linecap: round; }
.helix-strand--a { stroke: var(--yellow); }
.helix-strand--b { stroke: var(--navy); }
.helix-rungs line { stroke: rgba(15, 20, 58, .28); stroke-width: 1.6; stroke-linecap: round; }
@keyframes helix-flow { from { transform: translateY(0); } to { transform: translateY(28px); } }

/* ---------- 2. Mission ---------- */
.mission { background: var(--white); }
.cards { display: grid; gap: 1.5rem; }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--cream); border: 1px solid var(--cream-line); border-radius: var(--radius);
  padding: 1.75rem 1.6rem; transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card p { color: var(--muted); font-size: .98rem; margin: 0; }
.icon-tile { width: 52px; height: 52px; border-radius: 14px; background: var(--navy); color: var(--yellow); display: grid; place-items: center; margin-bottom: 1.25rem; transition: transform .35s var(--ease); }
.icon-tile svg { width: 26px; height: 26px; }
.card:hover .icon-tile { transform: rotate(-8deg) scale(1.06); }
.icon-tile--sm { width: 46px; height: 46px; flex: 0 0 46px; margin: 0; border-radius: 12px; }
.icon-tile--sm svg { width: 22px; height: 22px; }

/* ---------- 3. Who we are ---------- */
.who { background: var(--cream); }
.who-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.who-art { position: relative; max-width: 440px; width: 100%; margin: 0 auto; }
.glow-circle {
  aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 40%, #fffdf4 0, #fff3c4 60%, #fde9a0 100%);
  border: 14px solid var(--white);
  box-shadow: 0 0 0 4px rgba(243, 201, 26, .35), 0 0 70px rgba(243, 201, 26, .4), var(--shadow-lg);
}
.glow-circle img { width: 64%; height: auto; transition: transform .6s var(--ease); }
.who-art:hover .glow-circle img { transform: rotate(-4deg) scale(1.04); }
.sticker {
  position: absolute; top: 6%; right: -4%; background: var(--red); color: var(--white);
  font-family: var(--font-display); font-weight: 800; font-size: .8rem; padding: .55rem 1rem;
  border-radius: 999px; transform: rotate(8deg); box-shadow: 0 10px 24px rgba(237, 28, 36, .28);
}
.who-copy p:not(.eyebrow):not(.lead-strong) { color: var(--muted); }
.checks { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: .75rem; }
.checks li { display: flex; gap: .75rem; align-items: flex-start; }
.checks svg { flex: 0 0 22px; margin-top: .2rem; }
.checks--dark li span { color: var(--text); }
.note-card {
  display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap;
  background: var(--white); border-left: 5px solid var(--navy); border-radius: var(--radius-sm);
  padding: 1.1rem 1.4rem; box-shadow: var(--shadow);
}
.note-card img { width: 120px; height: auto; }
.note-card p { margin: 0; font-weight: 600; color: var(--navy) !important; font-size: .95rem; }

/* ---------- 4. Donations ---------- */
.donate { background: var(--navy); color: rgba(255, 255, 255, .86); overflow: hidden; isolation: isolate; }
.donate::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url("../images/footer-diamond.png") repeat center / 280px auto; filter: brightness(0) invert(1); opacity: .035;
}
.donate-arcs span { position: absolute; z-index: -1; border-radius: 50%; border: 1.5px solid rgba(243, 201, 26, .2); pointer-events: none; }
.donate-arcs span:nth-child(1) { width: 760px; height: 520px; left: -380px; bottom: -300px; }
.donate-arcs span:nth-child(2) { width: 520px; height: 520px; right: -260px; top: -260px; border-color: rgba(156, 202, 245, .16); }
.donate-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.donate h2 { font-size: clamp(1.4rem, 3.4vw, 2.9rem); }
.donate .checks li { color: var(--white); font-weight: 500; }
.give-note { margin: 1.5rem 0 0; font-size: .95rem; }
.give-note a { color: var(--yellow); font-weight: 700; }
.give-stack { display: grid; gap: 1.25rem; }
.give-card { border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2rem); color: var(--text); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.give-card:hover { transform: translateY(-5px); }
.give-card p { color: var(--muted); font-size: .98rem; }
.give-card--primary { background: var(--white); border-top: 6px solid var(--yellow); box-shadow: 0 24px 60px rgba(0, 0, 0, .28); }
.give-card--alt { background: var(--cream); border: 2px solid var(--yellow); box-shadow: 0 18px 44px rgba(0, 0, 0, .22); }
.give-head { display: flex; align-items: center; gap: .8rem; margin-bottom: .75rem; }
.give-head h3 { margin: 0; font-size: 1.3rem; }
.give-logo { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 12px; display: grid; place-items: center; color: var(--white); }
.give-logo svg { width: 24px; height: 24px; }
.give-logo--venmo { background: #008cff; }
.give-logo--x { background: #000; }
.give-logo--zeffy { background: var(--red, #ed1c24); }
.zeffy-row { display: flex; align-items: center; gap: 1.25rem; }
.zeffy-row > div { flex: 1 1 auto; min-width: 0; }
.zeffy-row p { margin-top: 0; }
.zeffy-qr { flex: 0 0 140px; display: block; background: #fff; border: 2px solid var(--yellow); border-radius: 14px; padding: 6px; line-height: 0; }
.zeffy-qr img { width: 100%; height: auto; display: block; }
@media (max-width: 480px) { .zeffy-row { flex-direction: column; text-align: center; } .zeffy-qr { flex-basis: auto; width: 180px; } }
.handle {
  font-family: var(--font-display); font-weight: 700; font-size: .98rem; color: var(--navy) !important;
  background: #fff6d3; border: 2px dashed rgba(243, 201, 26, .9); border-radius: 10px;
  padding: .55rem .9rem; margin: 0 0 1.1rem; word-break: break-all; display: inline-block;
}

/* ---------- 5. Contact ---------- */
.contact { background: var(--white); }
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(1.5rem, 4vw, 2.5rem); align-items: start; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.contact-row { display: flex; align-items: center; gap: 1rem; background: var(--cream); border: 1px solid var(--cream-line); border-radius: var(--radius-sm); padding: 1.1rem 1.25rem; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.contact-row:hover { transform: translateX(4px); box-shadow: var(--shadow); }
.contact-row small { display: block; font-family: var(--font-display); font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--navy); }
.contact-row a { font-weight: 600; color: var(--text); text-decoration: none; }
.contact-row a:hover { color: var(--navy); text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; }
.social-links { display: flex; gap: 1rem; flex-wrap: wrap; }
.contact-form { background: var(--cream); border: 1px solid var(--cream-line); border-radius: calc(var(--radius) + 4px); padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: var(--shadow-lg); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-family: var(--font-display); font-weight: 700; font-size: .88rem; color: var(--navy); margin-bottom: .4rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--navy); background: var(--white);
  border: 1.5px solid #e6dcc0; border-radius: 12px; padding: .8rem 1rem; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(243, 201, 26, .45); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, .75); border-top: 5px solid var(--yellow); padding: 2rem 0; font-size: .9rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.footer-logo img { height: 56px; width: auto; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer-links a { color: var(--white); text-decoration: none; font-family: var(--font-display); font-weight: 600; }
.footer-links a:hover { color: var(--yellow); }
.footer-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; }
.footer-parent { display: inline-flex; align-items: center; gap: .6rem; }
.parent-logo { background: var(--white); border-radius: 8px; padding: .3rem .5rem; }
.parent-logo img { width: 96px; height: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .cards--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: var(--nav-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); box-shadow: 0 20px 30px rgba(15, 20, 58, .1); padding: .5rem 1.25rem 1.25rem;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s, visibility .25s;
  }
  .nav-links.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav-links a:not(.btn) { display: block; padding: .85rem 0; border-bottom: 1px solid rgba(15, 20, 58, .07); }
  .nav-links a:not(.btn)::after { display: none; }
  .nav-links .btn { margin-top: 1rem; width: 100%; }
  .hero-grid, .who-grid, .donate-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 440px; width: 100%; margin: 0 auto; padding: 1.5rem 1rem 0 0; }
  .donate h2 { font-size: clamp(1.4rem, 7vw, 2.6rem); }
  .who-art { max-width: 360px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-meta { justify-content: center; }
}
@media (max-width: 560px) {
  :root { --nav-h: 68px; }
  .brand img { height: 42px; }
  .cards--4 { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .hero-ctas .btn { flex: 1 1 140px; }
  .hero-art { max-width: 330px; padding-right: 1.25rem; }
  .eyebrow { font-size: .7rem; letter-spacing: .12em; }
  .sticker { right: 0; font-size: .72rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .btn:hover, .card:hover, .give-card:hover, .contact-row:hover, .scroll-cue:hover { transform: none; }
}

/* Mission: full-text paragraph spans the width of the 4 cards */
.mission .section-head { max-width: none; }
.mission .section-head .eyebrow,
.mission .section-head h2,
.mission .section-head .lead-strong { max-width: 820px; margin-left: auto; margin-right: auto; }
.mission .section-head .lead { max-width: none; }

/* Contact: short mission under the Social card; hero holds the full mission */
.contact-side { display: grid; gap: 1.25rem; }
.contact-mission { margin: 0; padding: 1.1rem 1.25rem; border-left: 4px solid var(--yellow); background: var(--white); color: var(--muted); font-size: 1rem; line-height: 1.65; }
.hero-sub { max-width: 600px; font-size: clamp(.98rem, 1.25vw, 1.06rem); line-height: 1.65; }

/* ---------- Eaglet fly-in on the hero logo card ---------- */
/* Landing point measured on idx-cares-logo-color.svg: nest top rim ≈ x 36%, y 25.5% of the logo image. */
.logo-card { outline-offset: 6px; }
.logo-figure { position: relative; }
.eaglet {
  position: absolute; z-index: 3; pointer-events: none;
  width: 24%; left: calc(36% - 24% * .42); bottom: 74.5%;
  opacity: 0; transform-origin: 42% 100%;
}
.eaglet-img { display: block; width: 100%; height: auto; transform-origin: 42% 100%; }
.poof { position: absolute; z-index: 4; left: 36%; top: 25.5%; width: 0; height: 0; pointer-events: none; }
.feather {
  position: absolute; left: -5px; top: -12px; width: 10px; height: 23px; opacity: 0;
  color: #774239; transform-origin: 50% 50%;
}
.feather svg { width: 100%; height: 100%; overflow: visible; }
.feather.f2, .feather.f5, .feather.f8 { color: #fff; filter: drop-shadow(0 0 1px rgba(15, 20, 58, .45)); }
.feather.f4 { color: #f3c91a; }
.feather.f7 { color: #8d5348; }
.f1 { --dx: -54px; --dy: -46px; --r: -140deg; --s: .9; }
.f2 { --dx: -30px; --dy: -70px; --r: 120deg;  --s: .8; }
.f3 { --dx: -6px;  --dy: -82px; --r: -60deg;  --s: 1; }
.f4 { --dx: 18px;  --dy: -66px; --r: 200deg;  --s: .7; }
.f5 { --dx: 44px;  --dy: -50px; --r: -170deg; --s: .85; }
.f6 { --dx: 62px;  --dy: -20px; --r: 90deg;   --s: .75; }
.f7 { --dx: -66px; --dy: -14px; --r: 150deg;  --s: .8; }
.f8 { --dx: 30px;  --dy: -90px; --r: -220deg; --s: .65; }
.f9 { --dx: -40px; --dy: -96px; --r: 60deg;   --s: .7; }

.logo-stack.bird-on .eaglet { animation: eaglet-fly 1.35s cubic-bezier(.3, .1, .3, 1) both; }
.logo-stack.bird-on .eaglet-img { animation: eaglet-flutter 1.35s linear both, eaglet-idle 2.6s ease-in-out 1.55s infinite; }
.logo-stack.bird-on .feather { animation: feather-poof 1s cubic-bezier(.2, .7, .3, 1) 1.12s both; }
.logo-stack.bird-on .feather:nth-child(odd) { animation-duration: 1.15s; }
.logo-stack.bird-off .eaglet { animation: eaglet-off .55s cubic-bezier(.5, 0, .75, .4) both; }

@keyframes eaglet-fly {
  0%   { opacity: 0; transform: translate(230%, -190%) scale(.55); }
  10%  { opacity: 1; }
  32%  { transform: translate(150%, -235%) scale(.7); }
  58%  { transform: translate(55%, -120%) scale(.86); }
  78%  { transform: translate(-6%, -26%) scale(.98); }
  90%  { transform: translate(0, 0) scale(1); }
  100% { opacity: 1; transform: translate(0, 0) scale(1); }
}
@keyframes eaglet-flutter {
  0%   { transform: rotate(-18deg) scale(1, 1); }
  8%   { transform: rotate(-6deg)  scale(.94, 1.08) translateY(-4%); }
  16%  { transform: rotate(-20deg) scale(1.06, .94) translateY(2%); }
  24%  { transform: rotate(-4deg)  scale(.94, 1.08) translateY(-4%); }
  32%  { transform: rotate(-16deg) scale(1.06, .94) translateY(2%); }
  40%  { transform: rotate(-2deg)  scale(.95, 1.07) translateY(-4%); }
  48%  { transform: rotate(-13deg) scale(1.05, .95) translateY(2%); }
  56%  { transform: rotate(0deg)   scale(.96, 1.06) translateY(-3%); }
  64%  { transform: rotate(-9deg)  scale(1.04, .96) translateY(1%); }
  72%  { transform: rotate(3deg)   scale(.97, 1.05) translateY(-2%); }
  80%  { transform: rotate(-4deg)  scale(1, 1); }
  88%  { transform: rotate(0deg)   scale(1.14, .84); }   /* landing squash */
  94%  { transform: rotate(0deg)   scale(.96, 1.05); }
  100% { transform: rotate(0deg)   scale(1, 1); }
}
@keyframes eaglet-idle {
  0%, 100% { transform: scale(1, 1); }
  50%      { transform: scale(1.015, 1.035) translateY(-1%); }
}
@keyframes eaglet-off {
  0%   { opacity: 1; transform: translate(0, 0) scale(1); }
  25%  { opacity: 1; transform: translate(-8%, -30%) scale(1.02) rotate(-6deg); }
  100% { opacity: 0; transform: translate(-150%, -230%) scale(.6) rotate(-18deg); }
}
@keyframes feather-poof {
  0%   { opacity: 0; transform: translate(0, 0) rotate(0deg) scale(.3); }
  12%  { opacity: 1; }
  55%  { opacity: 1; transform: translate(calc(var(--dx) * .85), var(--dy)) rotate(calc(var(--r) * .6)) scale(var(--s)); }
  100% { opacity: 0; transform: translate(var(--dx), calc(var(--dy) + 22px)) rotate(var(--r)) scale(var(--s)); }
}

@media (prefers-reduced-motion: reduce) {
  .logo-stack .eaglet { transform: none !important; transition: opacity .4s ease !important; }
  .logo-stack.bird-on .eaglet { opacity: 1; }
  .logo-stack .poof { display: none; }
}
