/* Bunny Kissed Bake Shop: shared styles for every page (index.html, about.html). */

/* Christmas palette. The three brand colours (--red, --green, --pink) are
   too light for small text, so text and buttons use the deeper shades,
   which pass WCAG AA (4.5:1) on white and cream. */
:root {
  --red: #E8467C;         /* raspberry, decoration only */
  --green: #7CCBA2;       /* mint, decoration only */
  --pink: #FF99CC;
  --red-deep: #C2185B;    /* buttons, links, accent text */
  --pink-deep: #B8326B;   /* chip text */
  --green-deep: #1E7550;  /* icons and icon circles only, no text */
  --green-dark: #17613F;  /* footer background */    --pink-soft: #FFE5F1;   /* light pink panels */
  --pink-line: #E0559A;   /* pill button outlines (3:1 against the page, for visibility) */
  --cream: #FFF7FA;
  --paper: #ffffff;
  --ink: #4a3638;
  --ink-soft: #7a6265;
  --radius: 22px;
  --shadow: 0 12px 30px -12px rgba(194, 24, 91, 0.28);
}

* { box-sizing: border-box; }

/* Keep focused or jumped-to content from hiding under the sticky nav */
html { scroll-padding-top: 175px; }

/* Bigger screens (large monitors, TVs): scale all text, buttons and spacing
   set in rem or em up a step */
@media (min-width: 1400px) { html { font-size: 112.5%; } }
@media (min-width: 1800px) { html { font-size: 125%; } }

/* Smooth scrolling only for people who haven't asked for reduced motion */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* Skip link: hidden until a keyboard user tabs to it */
.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--red-deep);
  color: #fff;
  font-weight: 800;
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
}

.skip-link:focus { top: 12px; }

body {
  margin: 0;
  font-family: 'Nunito', sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
}

/* Headings: Spicy Rice only comes in one weight (400), so keep it at 400
   to stop browsers faking a bold version */
h1, h2, h3, .display {
  font-family: 'Spicy Rice', 'Nunito', sans-serif;
  font-weight: 400;
  color: var(--ink);
  margin: 0;
}

a { color: inherit; }

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

.wrap {
  max-width: 67.5rem;   /* 1080px at normal size; grows on big screens */
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Nav ---------- */
header.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 247, 250, 0.97);
  backdrop-filter: blur(8px);
}

/* Holly garland hanging from the bottom of the nav (images/holly-garland.svg, tiled) */
header.site-nav::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -78px;
  height: 82px;
  /* Offset by half a swag so the garland peaks in the middle of the screen */
  background: url("../images/holly-garland.svg") repeat-x calc(50% - 260px) top / 520px 82px;
  pointer-events: none;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 67.5rem;   /* 1080px at normal size; grows on big screens */
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Spicy Rice', 'Nunito', sans-serif;
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-decoration: none;
}

/* Mowgli logo next to the shop name, in the nav and footer. The drawing has
   empty space on its right inside the file, so pull the name in a little. */
.brand img {
  width: 56px;
  height: auto;
  flex-shrink: 0;
  margin-right: -8px;
}

nav.nav-links {
  display: flex;
  gap: 28px;
  font-weight: 700;
  font-size: 0.95rem;
}

nav.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  transition: color 0.15s ease;
}

nav.nav-links a:hover { color: var(--red-deep); }

/* The page you're on */
nav.nav-links a[aria-current="page"] { color: var(--red-deep); }

/* Once the page has scrolled (the script adds "is-scrolled"), the nav turns a
   little see-through to break it up from the page. The links switch to dark
   brown so they stay readable over photos; the page you're on gets a
   raspberry underline instead of raspberry text. */
header.site-nav { transition: background-color 0.2s ease; }

header.site-nav.is-scrolled {
  background: rgba(255, 247, 250, 0.8);
  backdrop-filter: blur(10px);
}

header.site-nav.is-scrolled nav.nav-links a { color: var(--ink); }

header.site-nav.is-scrolled nav.nav-links a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--red-deep);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.75em 1.65em;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background: var(--red-deep);
  color: #fff;
  box-shadow: var(--shadow);
}

@media (prefers-reduced-motion: no-preference) {
  .btn-primary:hover { transform: translateY(-2px); }
}

.btn-ghost {
  background: var(--paper);
  border-color: var(--red-deep);
  color: var(--red-deep);
}

.btn-ghost:hover { background: var(--pink-soft); }

.nav-cta { display: none; }
@media (min-width: 720px) { .nav-cta { display: inline-flex; } }
@media (max-width: 719px) { nav.nav-links { display: none; } }

/* "Order on Square" inside the menu: phone drop-down only (wider screens
   have the Order Now button instead) */
.nav-order { display: none; }

/* ---------- Phone menu ----------
   Under 720px the links above are hidden and this button opens them as a
   drop-down under the header. js/nav.js adds "menu-open" to the header. */
.nav-toggle { display: none; }

@media (max-width: 719px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-left: auto;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
  }

  .nav-toggle:focus-visible {
    outline: 3px solid var(--red-deep);
    outline-offset: 2px;
  }

  /* Three bars, which turn into an X when the menu is open */
  .nav-toggle-bars,
  .nav-toggle-bars::before,
  .nav-toggle-bars::after {
    display: block;
    width: 24px;
    height: 3px;
    border-radius: 2px;
    background: currentColor;
  }

  .nav-toggle-bars { position: relative; }

  .nav-toggle-bars::before,
  .nav-toggle-bars::after {
    content: "";
    position: absolute;
    left: 0;
  }

  .nav-toggle-bars::before { top: -8px; }
  .nav-toggle-bars::after { top: 8px; }

  .site-nav.menu-open .nav-toggle-bars { background: transparent; }
  .site-nav.menu-open .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
  .site-nav.menu-open .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }

  /* The drop-down: solid background so it's easy to read, above the garland */
  .site-nav.menu-open nav.nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1;
    padding: 8px 24px 24px;
    background: var(--cream);
    box-shadow: 0 18px 24px -18px rgba(74, 54, 56, 0.4);
  }

  .site-nav.menu-open nav.nav-links a {
    padding: 14px 0;
    font-size: 1.1rem;
    color: var(--ink);
    border-bottom: 1px solid rgba(194, 24, 91, 0.15);
  }

  .site-nav.menu-open nav.nav-links a.nav-order {
    display: block;
    margin-top: 16px;
    padding: 12px 20px;
    border: 0;
    border-radius: 999px;
    background: var(--red-deep);
    color: #fff;
    font-weight: 800;
    text-align: center;
  }
}

@media (max-width: 719px) and (prefers-reduced-motion: no-preference) {
  .nav-toggle-bars::before,
  .nav-toggle-bars::after { transition: transform 0.2s ease, top 0.2s ease; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 90px;
  text-align: center;
  background: var(--cream);  /* same pale pink as the nav and menu section */
}

/* Mowgli, the chef-hat lop, at the top of the hero, above the
   "Home Baked in Calgary" pill */
.hero-brand {
  width: min(20rem, 72vw);
  margin: 0 auto 20px;
}

.hero-logo {
  display: block;
  width: 100%;
  height: auto;
  /* The drawing sits left of centre in the file; nudge it so it looks centred */
  transform: translateX(10%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--paper);
  border: 1px solid rgba(194, 24, 91, 0.25);
  color: var(--red-deep);
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

/* Grows with the screen, up to about 6rem on large screens and TVs */
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 6rem);
  line-height: 1.05;
  margin: 0 auto;
}

/* On wider screens, keep "Holiday Menu Today" together on its own line */
@media (min-width: 640px) {
  .hero h1 .h1-line { display: block; white-space: nowrap; }
}

.hero h1 em {
  font-style: italic;
  color: var(--red-deep);
}

.hero p.lead {
  max-width: 560px;
  margin: 22px auto 0;
  font-size: 1.15rem;
  color: var(--ink);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 36px;
}

.hero .hero-sub {
  max-width: 900px;
  margin: 18px auto 0;
  font-size: clamp(1.15rem, 2.6vw, 2.4rem);
  line-height: 1.3;
  color: var(--red-deep);  /* same raspberry as the buttons */
}

/* AARCS logo: sits on plain white, unaltered, per AARCS brand rules */
.fundraiser {
  display: inline-flex;
  margin-top: 24px;
  padding: 10px 16px;
  background: #fff;
  border-radius: 14px;
}

.fundraiser img { width: 250px; height: auto; }   /* AARCS logo: at least 250px wide */

/* Disclaimer under the AARCS logo: fine print, on one line where it fits.
   Phones are too narrow for one line at a readable size, so it wraps there. */
.hero p.fundraiser-note {
  margin: 8px auto 0;
  font-size: 8pt;   /* about 10.7px; stays 8pt on every screen size */
  line-height: 1.4;
  color: var(--ink-soft);
  text-wrap: balance;
}

@media (min-width: 600px) {
  .hero p.fundraiser-note { white-space: nowrap; }
}

/* ---------- Badges strip ---------- */
.badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 46px;
}

.badge {
  background: var(--paper);
  border: 1px solid rgba(194, 24, 91, 0.18);
  border-radius: 999px;
  padding: 0.7em 1.4em;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--green-deep); }

/* Pills that are links or buttons */
a.badge, button.badge {
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  border: 2px solid var(--pink-line);
  transition: border-color 0.15s ease, background 0.15s ease;
}

a.badge:hover, button.badge:hover,
button.badge[aria-expanded="true"] {
  border-color: var(--red-deep);
  background: var(--pink-soft);
}

a.badge:focus-visible, button.badge:focus-visible {
  outline: 3px solid var(--red-deep);
  outline-offset: 2px;
}

/* The "surprise" message revealed by the third pill */
.surprise:not([hidden]) {
  display: inline-block;
  margin: 20px auto 0;
  padding: 12px 24px;
  background: var(--pink-soft);
  border: 2px dashed var(--pink);
  border-radius: 999px;
  font-family: 'Spicy Rice', 'Nunito', sans-serif;
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--red-deep);
}

@media (prefers-reduced-motion: no-preference) {
  .surprise:not([hidden]) { animation: surprise-pop 0.3s ease-out; }
  @keyframes surprise-pop {
    from { opacity: 0; transform: scale(0.85); }
    to { opacity: 1; transform: scale(1); }
  }
}

/* ---------- Section shell ---------- */
section { padding: 84px 0; }

.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 52px;
}

.section-head .eyebrow { margin-bottom: 16px; }

.section-head h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
}

.section-head p {
  color: var(--ink-soft);
  margin-top: 14px;
  font-size: 1.05rem;
}

/* ---------- Menu cards ---------- */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 0;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.card-media {
  aspect-ratio: 4 / 3.1;
  overflow: hidden;
  background: var(--pink-soft);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Holiday photo grid: 2 across on phones, 4 across on wider screens.
   Flexbox rather than grid so a part-filled last row sits centred. */
.menu-grid.photo-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.photo-grid > .photo-card { flex: 0 0 calc((100% - 16px) / 2); }

@media (min-width: 760px) {
  .menu-grid.photo-grid { gap: 24px; }
  .photo-grid > .photo-card { flex-basis: calc((100% - 3 * 24px) / 4); }
}

.photo-card .card-media { aspect-ratio: 1 / 1; }

.photo-card h3 {
  font-size: 1.02rem;
  line-height: 1.3;
  text-align: center;
  padding: 14px 12px 16px;
}

.card-body {
  padding: 26px 30px 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card h3 { font-size: 1.3rem; }

.card .price {
  font-weight: 800;
  color: var(--red-deep);
  font-size: 0.95rem;
  margin-top: -6px;
}

.card p { color: var(--ink-soft); font-size: 0.98rem; margin: 0; }

.card.has-sticker { position: relative; overflow: visible; }

.sticker {
  position: absolute;
  top: -18px;
  right: -14px;
  width: 58px;
  height: auto;
  transform: rotate(14deg);
  filter: drop-shadow(0 6px 10px rgba(74, 54, 56, 0.25));
}

.card .options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.chip {
  background: var(--cream);
  border: 1px solid rgba(194, 24, 91, 0.2);
  color: var(--pink-deep);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
}

.card .card-cta {
  margin-top: auto;
  padding-top: 10px;
  font-weight: 800;
  color: var(--red-deep);
  text-decoration: none;
  font-size: 0.92rem;
}

.card .card-cta:hover { text-decoration: underline; }

/* ---------- About ---------- */
.about {
  background: var(--paper);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

@media (min-width: 860px) {
  .about-grid { grid-template-columns: 1.1fr 0.9fr; }
}

.about-copy h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); margin-bottom: 18px; }
.about-copy p { color: var(--ink-soft); font-size: 1.05rem; margin: 0 0 16px; }

.about-points {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 14px;
}

.about-points li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-weight: 700;
  color: var(--ink);
  font-size: 0.98rem;
}

.about-points svg { width: 20px; height: 20px; color: var(--green-deep); flex-shrink: 0; margin-top: 2px; }

.about-visual {
  background: var(--pink-soft);
  border-radius: var(--radius);
  aspect-ratio: 4 / 3.2;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}

.about-visual img { width: 62%; height: 62%; object-fit: contain; filter: drop-shadow(0 8px 16px rgba(74, 54, 56, 0.18)); }

/* ---------- Order / Delivery ---------- */
.order {
  background: var(--pink-soft);
}

.order-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 46px;
}

.order-card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  box-shadow: var(--shadow);
}

.order-card .icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--green-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.order-card .icon svg { width: 26px; height: 26px; color: #fff; }

.order-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.order-card p { color: var(--ink-soft); font-size: 0.92rem; margin: 0; }

.order-cta {
  text-align: center;
  margin-top: 48px;
}

/* Season's greetings: the CEOs' names and their photo */
.section-head p.ceo-names {
  margin-top: 10px;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--red-deep);
}

.ceo-photo {
  display: block;
  width: 100%;
  max-width: 900px;
  height: auto;
  /* Trim the empty white space above the tree, snowman and bunnies
     (the file itself isn't cropped) */
  aspect-ratio: 2 / 1;
  object-fit: cover;
  object-position: 50% 90%;
  margin: 0 auto;
  border: 6px solid #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------- Allergen note ---------- */
.notice {
  max-width: 760px;
  margin: 52px auto 0;
  background: var(--paper);
  border: 1px solid rgba(194, 24, 91, 0.2);
  border-radius: var(--radius);
  padding: 24px 28px;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.notice strong { color: var(--ink); }

/* ---------- Footer ---------- */
footer {
  background: var(--green-dark);
  color: #fff5f3;
  padding: 56px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; }
}

footer .brand { color: #fff; }

footer p { color: rgba(255, 245, 243, 0.8); font-size: 0.95rem; max-width: 20rem; }

footer h3 {
  font-family: 'Nunito', sans-serif;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 800;
  margin: 0 0 16px;
  color: rgba(255, 245, 243, 0.9);
}

footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }

footer a {
  text-decoration: none;
  color: #fff5f3;
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  opacity: 0.92;
}

footer a:hover { opacity: 1; text-decoration: underline; }

.footer-bottom {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 245, 243, 0.88);
}

/* Site credit under the copyright line, on its own line. Underlined so the
   link stands out from the text around it, not by colour alone. */
.site-credit { margin: 6px auto 0; max-width: none; font-size: 0.75rem; }   /* centred under the copyright, smaller */

footer .site-credit a {
  display: inline;
  font-size: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- About page ---------- */
.about-intro {
  position: relative;
  text-align: center;
  padding: 112px 0 64px;
}

.about-intro > .wrap { position: relative; z-index: 1; }   /* text stays above the bunnies */

/* Elvis (left) and Mowgli (right) on the About page.
   Phones and smaller screens: side by side above the text.
   Desktops and laptops (a mouse or trackpad and room to spare): either side
   of the 40rem-wide text column, each 2rem outside its edge. */
.about-bunnies {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 20px;
}

.about-bunny {
  height: 140px;
  background: no-repeat center bottom / contain;
}

.about-bunny-elvis {
  aspect-ratio: 546 / 531;
  background-image: url("../images/elvis.png");
}

.about-bunny-mowgli {
  aspect-ratio: 471 / 573;
  background-image: url("../images/mowgli.png");
}

@media (min-width: 1200px) and (pointer: fine) {
  .about-bunnies { display: block; margin: 0; }   /* the bunnies position themselves */

  .about-bunny {
    position: absolute;
    top: calc(50% + 24px);       /* a little below centre, clear of the garland */
    transform: translateY(-50%);
    height: clamp(220px, 18vw, 340px);
    pointer-events: none;
  }

  .about-bunny-elvis { right: calc(50% + 22rem); }
  .about-bunny-mowgli { left: calc(50% + 22rem); }
}

.about-intro h1 {
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  line-height: 1.05;
  max-width: 40rem;
  margin: 0 auto;
  text-wrap: balance;   /* even line lengths, no single word left on its own */
}

.about-intro p {
  max-width: 40rem;
  margin: 18px auto 0;
  font-size: 1.1rem;
  color: var(--ink);
}

.ceos {
  background: var(--pink-soft);
  padding: 72px 0 96px;
}

/* Elvis and Mowgli side by side, on phones too */
.ceo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 46rem;
  margin: 0 auto;
}

.ceo-card {
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px 16px 20px;   /* headroom for the hop */
  text-align: center;
}

.ceo-card img {
  display: block;
  width: 100%;
  height: clamp(9rem, 30vw, 15rem);  /* same height for both, so they line up */
  object-fit: contain;
  object-position: center bottom;
  margin: 0 auto;
}

.ceo-card h3 {
  margin-top: 14px;
  font-size: clamp(1.4rem, 3vw, 2rem);
}

/* CEO bios: Breed, DOB and Favourite Greens under each name */
.ceo-bio {
  display: grid;
  gap: 6px;
  margin: 12px 0 0;
  font-size: 1rem;
}

.ceo-bio dt {
  display: inline;
  font-weight: 800;
  color: var(--red-deep);
}

.ceo-bio dd {
  display: inline;
  margin: 0;
  color: var(--ink);
}

/* Phones: one CEO card per row, so the bios have room */
@media (max-width: 560px) {
  .ceo-grid { grid-template-columns: minmax(0, 1fr); max-width: 22rem; }
}

/* CEO cards: one little hop (crouch, jump, squash on landing, settle).
   - Desktops and laptops (mouse or trackpad): a bunny hops when you hover
     over its card.
   - Phones and tablets: each bunny hops once on its own as its card scrolls
     into view (about.html adds the "hop-once" class).
   Nothing moves for people who've asked for reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  .ceo-card img { transform-origin: 50% 100%; }   /* squash from the feet */

  @media (hover: hover) and (pointer: fine) {
    .ceo-card:hover img { animation: bunny-hop 0.9s ease-in-out 1; }
  }

  .ceo-card.hop-once img { animation: bunny-hop 0.9s ease-in-out 0.2s 1 both; }
  .ceo-card.hop-now img { animation: bunny-hop 0.9s ease-in-out 1; }   /* tapped on a phone */

  @keyframes bunny-hop {
    0%, 100% { transform: translateY(0) scale(1, 1); }
    15%      { transform: translateY(0) scale(1.06, 0.92); }    /* crouch */
    45%      { transform: translateY(-9%) scale(0.97, 1.04); }  /* up */
    75%      { transform: translateY(0) scale(1.04, 0.95); }    /* land */
    90%      { transform: translateY(0) scale(1, 1); }          /* settle */
  }
}
