:root {
  --feed-bg: #fafafa;
  --feed-fg: #0a0a0a;
  --shot-bg: #f1f1f3;
  --shot-border: rgba(10, 10, 10, 0.06);
  /* Vertical room kept free around a card, so it always fits the screen. */
  --feed-gutter: 64px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --feed-bg: #0b0b0c;
    --feed-fg: #f5f5f5;
    --shot-bg: #19191b;
    --shot-border: rgba(255, 255, 255, 0.06);
  }
}

.feed {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  width: min(100%, 1200px);
  margin: 0 auto;
  padding: 32px 16px;
}

/* ── Shot card ───────────────────────────────────────────
   --ratio is the asset's own shape, set from the file.
   Width fills the column but is capped so height never passes
   the viewport: tall shots get narrower instead of cropped. */
.feed-col {
  display: contents;
}

.shot {
  box-sizing: border-box;
  color: var(--feed-fg);
  /* Masonry: each card keeps its asset's own shape (set from feed.js). */
  --ratio: 5360 / 3784;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  width: 100%;
  /* Tall shots get narrower instead of taller than the screen. */
  max-width: calc((100svh - var(--feed-gutter)) * (var(--ratio)));
  aspect-ratio: var(--ratio);
  overflow: hidden;
  border-radius: 28px;
  background: var(--shot-bg);
  outline: none;
}

/* Inside stroke: 0.5px, 12% black, drawn over the media so it
   stays visible on any image edge. */
.shot::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  border-radius: inherit;
  box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.12);
  pointer-events: none;
}

.shot-actions,
.shot-info,
.shot .project-like-button {
  z-index: 2;
}

.shot-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* fill the shared frame; odd shapes crop, spotlight shows them whole */
  display: block;
  transition: opacity 300ms ease;
}

.shot.is-loading .shot-media {
  opacity: 0;
}

.shot-scrim {
  position: absolute;
  inset: auto 0 0 0;
  height: 36%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.08) 60%, transparent);
  pointer-events: none;
}

.shot-scrim,
.shot-actions,
.shot-info {
  opacity: 0;
  transition:
    opacity 280ms var(--ease),
    transform 380ms var(--ease);
}

.shot-actions {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  gap: 8px;
  transform: translateY(-4px);
}

.shot-info {
  position: absolute;
  inset: auto 0 0 0;
  padding: 18px 20px;
  color: #fff;
  transform: translateY(6px);
}

.shot:hover :is(.shot-scrim, .shot-actions, .shot-info),
.shot:focus-within :is(.shot-scrim, .shot-actions, .shot-info) {
  opacity: 1;
  transform: none;
}

.shot-button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(115, 115, 115, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background-color 160ms ease;
}

.shot-button svg {
  width: 16px;
  height: 16px;
}

.shot-button:hover {
  background: rgba(82, 82, 82, 0.85);
}

.shot-title {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
}

.shot-description {
  max-width: 28rem;
  margin: 3px 0 0;
  font-size: 14px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.8);
}

.shot-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0 8px;
  margin-top: 6px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

.shot-link {
  color: inherit;
  text-decoration: none;
  transition: color 160ms ease;
}

.shot-link:hover {
  color: #fff;
}

/* Phones can't hover: keep the details visible. */
@media (hover: none) {
  .shot :is(.shot-scrim, .shot-actions, .shot-info) {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shot * {
    transition: none !important;
  }
}

/* ── Likes on feed cards ──────────────────────────────────
   The site's original like pill (styles.css), bottom-left,
   shown on hover. */
.shot:hover .project-like-button,
.shot:focus-within .project-like-button,
.shot .project-like-button.is-liked {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

@media (hover: none) {
  .shot .project-like-button {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }
}

/* ── Spotlight ────────────────────────────────────────────
   Lights down: a near-black veil over the page, the shot at
   its original resolution, fit to the screen. */
html.is-spotlit {
  overflow: hidden;
}

.spotlight {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100svh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #242528;
  overflow: hidden;
}

.spotlight::backdrop {
  background: rgba(236, 236, 238, 0.78);
  -webkit-backdrop-filter: blur(28px) saturate(1.1);
  backdrop-filter: blur(28px) saturate(1.1);
  animation: spotlight-dim 320ms ease both;
}

.spotlight[open] {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  animation: spotlight-fade 320ms ease both;
}

.spotlight.is-closing,
.spotlight.is-closing::backdrop {
  animation: spotlight-fade 220ms ease reverse both;
}

.spotlight-stage {
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  place-items: center;
  min-height: 0;
  padding: 0;
  container-type: size;
}

.spotlight-media {
  display: block;
  /* As large as the stage allows, at the file's own shape. */
  /* Whole shot, as large as fits. */
  width: min(100cqw, 100cqh * var(--r, 1.4165));
  height: auto;
  max-width: none;
  max-height: 100cqh;
  border-radius: 0;
  object-fit: contain;
  position: relative;
  z-index: 1;
  box-shadow: none;
  animation: spotlight-rise 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
  transition: opacity 240ms ease;
}

.spotlight-stage.is-loading .spotlight-media {
  opacity: 0;
}

.spotlight-caption {
  /* No caption in the spotlight: the shot gets the whole screen. */
  display: none !important;
  position: absolute;
  top: 20px;
  left: 24px;
  right: 84px;
  display: flex;
  align-items: center;
  height: 44px;
  pointer-events: none;
}

.spotlight-text {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 13px;
  line-height: 1;
  letter-spacing: -0.005em;
}

.spotlight-meta {
  display: none !important;
}

.spotlight-title {
  margin: 0;
  font-size: inherit;
  font-weight: 500;
}

.spotlight-description {
  margin: 0;
  font-size: inherit;
  color: #a1a1aa;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spotlight-description:empty {
  display: none;
}

.spotlight-meta {
  display: flex;
  justify-content: center;
  gap: 0 12px;
  margin-top: 6px;
  font-size: 13px;
  color: #a1a1aa;
}

.spotlight-link {
  color: inherit;
  text-decoration: none;
}

.spotlight-link:hover {
  color: #fff;
}

.spotlight-close,
.spotlight-nav {
  position: absolute;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(82, 82, 82, 0.82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: background-color 160ms ease;
}

.spotlight-close:hover,
.spotlight-nav:hover {
  background: rgba(58, 58, 58, 0.9);
}

.spotlight-close {
  top: 20px;
  right: 20px;
}

.spotlight-nav {
  top: 50%;
  transform: translateY(-50%);
}

.spotlight-prev {
  left: 20px;
}

.spotlight-next {
  right: 20px;
}

@media (max-width: 640px) {
  .spotlight-stage {
    padding: 0;
  }

  .spotlight-nav {
    top: auto;
    bottom: 24px;
    transform: none;
  }
}

@keyframes spotlight-dim {
  from { opacity: 0; }
}

@keyframes spotlight-fade {
  from { opacity: 0; }
}

@keyframes spotlight-rise {
  from { opacity: 0; transform: scale(0.97) translateY(8px); }
}

@media (prefers-reduced-motion: reduce) {
  .spotlight[open],
  .spotlight::backdrop,
  .spotlight-media {
    animation: none;
  }
}

/* ── Hero (Figma 730:4867) ───────────────────────────── */
@font-face {
  font-family: "Allo";
  src: url("assets/fonts/allo/AlloVariable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

.hero {
  display: flex;
  justify-content: center;
  padding: 50px 16px 40px;
  font-family: "Allo", -apple-system, BlinkMacSystemFont, sans-serif;
  color: #424346;
}

.hero-inner {
  width: min(100%, 500px);
}

.hero-avatar {
  display: block;
  width: 64px;
  height: 64px;
  border-radius: 20px;
  object-fit: cover;
}

.hero-name {
  margin: 21px 0 0;
  color: #242528;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.34px;
}

.hero-updated {
  margin: 5px 0 0;
  font-size: 13px;
  line-height: 1.1;
  letter-spacing: -0.26px;
  color: #a1a1aa;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 11px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  /* The shot card buttons' chip (+, ↗, like), a step darker. */
  background: rgba(82, 82, 82, 0.82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: -0.26px;
  text-decoration: none;
  margin-right: 2px;
  transition: background-color 160ms ease;
}

.hero-cta:hover {
  background: rgba(58, 58, 58, 0.9);
}

.hero-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  transition: background-color 160ms ease;
}

.hero-icon img {
  display: block;
}

/* Hover: a soft grey chip; the icon keeps its colour. */
.hero-icon:hover,
.hero-icon:focus-visible {
  background: #efeff0;
  outline: none;
}

.hero-bio {
  margin-top: 29px;
  font-size: 15px;
  line-height: 22px;
  letter-spacing: -0.3px;
}

.hero-bio p {
  margin: 0;
}

.hero-bio p + p {
  margin-top: 22px;
}


/* Underline: on hover the line glides off to the right while an
   identical line glides in from the left behind it, one continuous
   move. The strip is line | gap | line, 2.2x the link's width. */
.hero-u {
  position: relative;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
  transition: color 200ms ease;
}

a.hero-u:hover,
a.hero-u:focus-visible {
  color: #777777;
}

.hero-u::after {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 0.08em;
  background: linear-gradient(
      90deg,
      #b8b8b8 0 45.4545%,
      transparent 45.4545% 54.5454%,
      #b8b8b8 54.5454% 100%
    )
    100% 0 / 220% 100% no-repeat;
  content: "";
  pointer-events: none;
}

a.hero-u:hover::after,
a.hero-u:focus-visible::after {
  animation: hero-u-glide 640ms cubic-bezier(0.65, 0, 0.35, 1) both;
}

a.hero-u:focus-visible {
  outline: none;
}

@keyframes hero-u-glide {
  from {
    background-position: 100% 0;
  }
  to {
    background-position: 0% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  a.hero-u:hover::after,
  a.hero-u:focus-visible::after {
    animation: none;
  }
}

/* ── Hero tooltips ────────────────────────────────────────
   Text: the site's dark label (same as the GitHub calendar's).
   Websites: a small browser window showing the real page. */
.hero-tip {
  position: fixed;
  z-index: 60;
  top: 0;
  left: 0;
  padding: 6px 8px;
  border-radius: 6px;
  /* Same chip as Book a call and the icon hovers. */
  background: rgba(82, 82, 82, 0.82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: #fff;
  font-family: "Allo", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 12px;
  line-height: 14px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px) scale(0.98);
  transform-origin: var(--arrow-x, 50%) bottom;
  transition:
    opacity 140ms ease,
    transform 200ms cubic-bezier(0.2, 0, 0, 1);
}

.hero-tip.is-below {
  transform-origin: var(--arrow-x, 50%) top;
  transform: translateY(-4px) scale(0.98);
}

.hero-tip.is-visible {
  opacity: 1;
  transform: none;
}

/* Arrow: a triangle that starts where the tooltip ends, so the
   translucent fill never overlaps itself. */
.hero-tip::after {
  position: absolute;
  bottom: -5px;
  left: var(--arrow-x, 50%);
  width: 10px;
  height: 5px;
  background: inherit;
  -webkit-backdrop-filter: inherit;
  backdrop-filter: inherit;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  content: "";
  transform: translateX(-50%);
}

.hero-tip.is-below::after {
  top: -5px;
  bottom: auto;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

@media (hover: none) {
  .hero-tip {
    display: none;
  }
}

/* Hand cursor on anything clickable. styles.css sets a custom site cursor
   and makes every element inherit it (body * { cursor: inherit }), so this
   needs the extra "body" to win; children of links still inherit the hand. */
body a[href],
body button:not(:disabled),
body [role="button"] {
  cursor: pointer;
}

/* Quiet controls: hidden until the pointer moves over the spotlight,
   then faint; full only when hovered directly. */
.spotlight-close,
.spotlight-nav {
  width: 36px;
  height: 36px;
  background: rgba(0, 0, 0, 0.16);
  opacity: 0;
  transition: opacity 240ms ease, background-color 160ms ease;
}
.spotlight:hover .spotlight-close,
.spotlight:hover .spotlight-nav,
.spotlight-close:focus-visible,
.spotlight-nav:focus-visible {
  opacity: 0.55;
}
.spotlight .spotlight-close:hover,
.spotlight .spotlight-nav:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.32);
}
@media (hover: none) {
  .spotlight-close,
  .spotlight-nav { opacity: 0.55; }
}

/* Keep controls above the shot and its blurred fill. */
.spotlight-close,
.spotlight-nav { z-index: 3; }
/* Always visible, but soft: frosted glass that sits quietly on any shot. */
.spotlight .spotlight-close,
.spotlight .spotlight-nav {
  opacity: 1;
  color: #424346;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.06);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
}
.spotlight .spotlight-close:hover,
.spotlight .spotlight-nav:hover {
  color: #242528;
  background: rgba(255, 255, 255, 0.85);
}

/* No caption or dark overlay on cards; only the action buttons show on hover. */
.shot-info,
.shot-scrim {
  display: none !important;
}

/* Shots that fit inside the card: whole asset, white card, breathing room. */
.shot.is-contained {
  background: #ffffff !important;
}
.shot.is-contained .shot-media {
  inset: var(--pad, 5%);
  width: calc(100% - 2 * var(--pad, 5%));
  height: calc(100% - 2 * var(--pad, 5%));
  object-fit: contain;
}

/* Cropped assets: only the crop region shows, centred with padding. */
.shot-crop {
  position: absolute;
  inset: var(--pad, 5%);
  display: grid;
  place-items: center;
  container-type: size;
}
.shot-crop-box {
  position: relative;
  overflow: hidden;
  width: min(100cqw, 100cqh * var(--crop-r));
  aspect-ratio: var(--crop-ratio);
}
.shot.is-contained .shot-crop .shot-media {
  inset: auto;
}

/* Hairline border on cropped assets: 0.5px, 16% black, drawn inside the rounded edge. */
.shot-crop-box::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.16);
  pointer-events: none;
  z-index: 1;
}

/* Row shots: several images side by side, centred, each whole. */
.shot.is-row .shot-row {
  position: absolute;
  inset: var(--pad, 5%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.4%;
}
.shot-row-item {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  max-height: 100%;
  overflow: hidden;
  border-radius: 14px;
}
.shot-row-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.shot-row-item::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.16);
  pointer-events: none;
}

/* Row entries: cards side by side, the group as wide as a normal post. */
.shot-group {
  display: flex;
  gap: 16px;
  width: 100%;
  max-width: calc((100svh - var(--feed-gutter)) * (5360 / 3784));
}
.shot-group .shot {
  flex: 1 1 0;
  min-width: 0;
  max-width: none;
  aspect-ratio: var(--ratio);
}
/* A contained shot's own background colour wins over the default white. */
.shot.is-contained[style*="background"] { background: var(--shot-fill, #ffffff) !important; }

/* Filter bar pinned to the bottom of the screen. */
.shot.is-filtered { display: none; }
.feed-filters {
  position: fixed;
  left: 50%;
  bottom: max(16px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 50;
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(16px) saturate(1.6);
  backdrop-filter: blur(16px) saturate(1.6);
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.16), 0 8px 24px rgba(0, 0, 0, 0.08);
  font: 400 14px/1 "Allo", -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: -0.2px;
  color: #111;
  max-width: calc(100vw - 32px);
}
.feed-filter { position: relative; }
.feed-filter-button {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  white-space: nowrap;
}
.feed-filter-button:hover,
.feed-filter-button[aria-expanded="true"] { background: rgba(0, 0, 0, 0.05); }
.feed-filter-label { color: rgba(0, 0, 0, 0.45); }
.feed-filter-button.is-active { background: #111; color: #fff; }
.feed-filter-button.is-active .feed-filter-label { color: rgba(255, 255, 255, 0.6); }
.feed-filter-menu {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 200px;
  max-height: min(60vh, 420px);
  overflow-y: auto;
  padding: 4px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.16), 0 12px 32px rgba(0, 0, 0, 0.12);
}
.feed-filter-menu[hidden] { display: none; }
.feed-filter-option {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.feed-filter-option:hover { background: rgba(0, 0, 0, 0.05); }
.feed-filter-option[aria-checked="true"] { font-weight: 600; }
.feed-filter-count { color: rgba(0, 0, 0, 0.4); font-variant-numeric: tabular-nums; }
@media (max-width: 480px) {
  .feed-filter-button { padding: 0 10px; }
  .feed-filter-label { display: none; }
}

/* View toggle and shuffle in the bottom bar. */
.feed-filters { align-items: center; }
.feed-filters-sep { width: 1px; height: 20px; background: rgba(0, 0, 0, 0.1); margin: 0 2px; }
.feed-view { display: flex; gap: 2px; padding: 2px; border-radius: 999px; background: rgba(0, 0, 0, 0.05); }
.feed-view-option {
  height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(0, 0, 0, 0.5);
  font: inherit;
  cursor: pointer;
}
.feed-view-option[aria-checked="true"] { background: #fff; color: #111; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12); }
.feed-shuffle .feed-filter-label { color: inherit; }
.feed-shuffle svg { flex: none; }

/* Masonry view. */
.feed.is-masonry {
  flex-direction: row;
  align-items: flex-start;
  gap: 16px;
  width: min(100%, 1600px);
}
.feed.is-masonry .feed-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1 1 0;
  min-width: 0;
}
.feed.is-masonry .shot { max-width: none; border-radius: 16px; }
@media (max-width: 480px) {
  .feed-view-option { padding: 0 8px; }
}

/* Menus scroll without a visible scrollbar. */
.feed-filter-menu { scrollbar-width: none; }
.feed-filter-menu::-webkit-scrollbar { display: none; }

/* Bar typography: Allo, regular for labels, medium for the current values. */
.feed-filter-label { font-weight: 400; }
.feed-filter-value,
.feed-view-option[aria-checked="true"],
.feed-shuffle { font-weight: 500; }
.feed-shuffle .feed-filter-label { font-weight: 500; }
.feed-filter-option { font-weight: 400; }
.feed-filter-option[aria-checked="true"] { font-weight: 500; }
.feed-view-option { font-weight: 400; }

/* Media drawn at a fixed 1168px width, scaled to the card (see feed.js). */
.shot-inner {
  position: absolute;
  top: 0;
  left: 0;
  width: 1168px;
  height: 100%;
  transform-origin: 0 0;
  will-change: transform;
}

/* Smaller bar text. */
.feed-filters { font-size: 13px; }
.feed-filter-button { height: 32px; padding: 0 12px; }
.feed-view-option { height: 28px; padding: 0 10px; }

/* Bar slides down out of view while scrolling down, back up when scrolling up. */
.feed-filters {
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1), opacity 420ms ease;
}
.feed-filters.is-hidden {
  transform: translate(-50%, calc(100% + 32px));
  opacity: 0;
  pointer-events: none;
}

/* Hero icons: each one gets its own small motion on hover. */
.hero-icon:hover img,
.hero-icon:focus-visible img { animation: 560ms cubic-bezier(0.22, 1, 0.36, 1) both; }
.hero-icon[aria-label="Email"] { overflow: hidden; }
.hero-icon[aria-label="Email"]:hover img,
.hero-icon[aria-label="Email"]:focus-visible img { animation-name: icon-send; animation-duration: 1100ms; animation-timing-function: linear; }

@keyframes icon-spin {
  from { transform: rotate(0) scale(1); }
  50% { transform: rotate(180deg) scale(0.85); }
  to { transform: rotate(360deg) scale(1); }
}
@keyframes icon-hop {
  0%, 100% { transform: translateY(0) scale(1); }
  35% { transform: translateY(-4px) scale(1.08); }
  65% { transform: translateY(1px) scale(0.96); }
}
@keyframes icon-wiggle {
  0%, 100% { transform: rotate(0); }
  20% { transform: rotate(-12deg); }
  45% { transform: rotate(10deg); }
  70% { transform: rotate(-5deg); }
}
@keyframes icon-send {
  0% { transform: translate(0, 0); opacity: 1; animation-timing-function: cubic-bezier(0.55, 0, 0.75, 0.3); }
  45% { transform: translate(14px, -14px); opacity: 0; }
  50% { transform: translate(-14px, 14px); opacity: 0; animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); }
  100% { transform: translate(0, 0); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-icon img { animation: none !important; }
}




/* Tooltips have no arrow. */
.hero-tip::after { content: none; display: none; }
