/* Kingdom Sandbox — Custom CSS overrides for things Tailwind can't handle easily */

/* ─── Scroll-fade-up animation ──────────────────────────────────────────── */

.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for sibling cards */
.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }
.fade-up:nth-child(4) { transition-delay: 0.3s; }
.fade-up:nth-child(5) { transition-delay: 0.4s; }

/* ─── Sticky nav ────────────────────────────────────────────────────────── */

#sticky-nav {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#sticky-nav.nav-visible {
  opacity: 1;
  pointer-events: auto;
}

.nav-active {
  color: #C9A227 !important;
}

/* ─── Parchment scroll block ────────────────────────────────────────────── */

.parchment {
  background: linear-gradient(
    160deg,
    #2a2215 0%,
    #1e1a0f 40%,
    #231d10 100%
  );
  border: 1px solid #4a3c1a;
  box-shadow:
    inset 0 0 40px rgba(0,0,0,0.4),
    0 4px 24px rgba(0,0,0,0.5);
  position: relative;
}

.parchment::before,
.parchment::after {
  content: '';
  position: absolute;
  left: 16px;
  right: 16px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #6b4f1a 20%, #8b6820 50%, #6b4f1a 80%, transparent);
}

.parchment::before { top: 12px; }
.parchment::after  { bottom: 12px; }

/* ─── Blueprint / technical section ────────────────────────────────────── */

.blueprint {
  background:
    linear-gradient(rgba(74, 110, 138, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74, 110, 138, 0.04) 1px, transparent 1px),
    #0a0f14;
  background-size: 32px 32px, 32px 32px;
}

/* ─── SVG diagram labels ────────────────────────────────────────────────── */

.diagram-label {
  font-family: 'IBM Plex Mono', 'Courier New', monospace;
  font-size: 11px;
  fill: #9B8E6F;
}

.diagram-label-em {
  font-family: 'IBM Plex Mono', 'Courier New', monospace;
  font-size: 11px;
  fill: #C9A227;
}

/* ─── Number stat highlight ─────────────────────────────────────────────── */

.stat-num {
  font-family: 'IBM Plex Mono', 'Courier New', monospace;
  color: #C9A227;
  font-size: 2.25rem;
  line-height: 1;
  font-weight: 700;
}

/* ─── Table ─────────────────────────────────────────────────────────────── */

.story-table {
  border-collapse: collapse;
  width: 100%;
}

.story-table th {
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9B8E6F;
  border-bottom: 1px solid #2a2316;
  padding: 10px 16px;
  text-align: left;
}

.story-table td {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.82rem;
  color: #d0c8b0;
  padding: 10px 16px;
  border-bottom: 1px solid #1f1c12;
}

.story-table tr:last-child td { border-bottom: none; }

.story-table td.highlight {
  color: #C9A227;
  font-weight: 700;
}

.story-table tr.row-profit td {
  background: rgba(201, 162, 39, 0.07);
}

/* ─── Hero background SVG ───────────────────────────────────────────────── */

#hero-bg {
  will-change: transform;
}

/* Hero banner image — primary visual; overlays the SVG */
#hero-banner {
  will-change: transform;
  filter: brightness(0.78) saturate(1.05);
}

/* ─── Cinematic scene figures (image / video tier showcase) ────────────── */

.scene-figure {
  position: relative;
  margin: 0;
  border: 1px solid #2a2316;
  border-radius: 4px;
  overflow: hidden;
  background: #0a0805;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.35s ease,
              box-shadow 0.35s ease;
  will-change: transform;
}

.scene-figure:hover {
  transform: translateY(-3px);
  border-color: rgba(201, 162, 39, 0.4);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.6),
              0 0 0 1px rgba(201, 162, 39, 0.2);
}

.scene-figure-wide .scene-video,
.scene-figure-wide .scene-still {
  aspect-ratio: 16 / 9;
}

.scene-video,
.scene-still {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #0a0805;
}

.scene-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 18px 16px;
  background: linear-gradient(
    to top,
    rgba(13, 11, 8, 0.92) 0%,
    rgba(13, 11, 8, 0.75) 50%,
    rgba(13, 11, 8, 0) 100%
  );
  display: flex;
  flex-direction: column;
  gap: 2px;
  pointer-events: none;
}

.scene-tier {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  color: #C9A227;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.scene-title {
  font-family: 'Cinzel', serif;
  font-size: 1.05rem;
  color: #F4EBD9;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.scene-sub {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  color: rgba(244, 235, 217, 0.6);
}

@media (max-width: 640px) {
  .scene-caption { padding: 10px 12px 12px; }
  .scene-title { font-size: 0.92rem; }
  .scene-sub { font-size: 0.65rem; }
}

/* ─── Profession + gather cards (Day in the Life) ──────────────────────── */

.profession-card,
.gather-card {
  padding: 16px 16px 18px;
  border: 1px solid #2a2316;
  border-radius: 4px;
  background: #141008;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.3s ease,
              box-shadow 0.3s ease;
  will-change: transform;
}

.profession-card:hover,
.gather-card:hover {
  transform: translateY(-2px);
  border-color: rgba(201, 162, 39, 0.45);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}

.gather-card {
  background: #0f1408;
  border-color: #1f2916;
}

.gather-card:hover {
  border-color: rgba(106, 170, 80, 0.5);
}

.profession-icon {
  width: 32px;
  height: 32px;
  margin-bottom: 10px;
  display: block;
}

.profession-title {
  font-family: 'Cinzel', serif;
  font-size: 0.95rem;
  color: #C9A227;
  font-weight: 600;
  margin-bottom: 2px;
}

.gather-card .profession-title {
  color: #6aaa50;
}

.profession-station {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  color: #9B8E6F;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.profession-body {
  font-size: 0.75rem;
  line-height: 1.5;
  color: rgba(244, 235, 217, 0.72);
}

/* ─── Combat pills (Day in Life recap) ─────────────────────────────────── */

.combat-pill {
  padding: 12px;
  border: 1px solid rgba(201, 162, 39, 0.45);
  border-radius: 4px;
  background: #141008;
  text-align: center;
}

.combat-pill-title {
  font-family: 'Cinzel', serif;
  font-size: 0.92rem;
  color: #C9A227;
  font-weight: 700;
  margin-bottom: 2px;
}

.combat-pill-sub {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.6rem;
  color: #9B8E6F;
  margin-bottom: 6px;
}

.combat-pill-sig {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.62rem;
  color: rgba(244, 235, 217, 0.7);
  line-height: 1.35;
}

/* ─── Sleep pills (Day in Life recap) ──────────────────────────────────── */

.sleep-pill {
  padding: 12px;
  border: 1px solid #2a2316;
  border-radius: 4px;
  background: #141008;
  text-align: center;
}

.sleep-pill-tier {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.6rem;
  color: #9B8E6F;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.sleep-pill-name {
  font-family: 'Cinzel', serif;
  font-size: 0.92rem;
  color: #F4EBD9;
  font-weight: 600;
  margin-bottom: 4px;
}

.sleep-pill-cost {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.62rem;
  color: #9B8E6F;
  margin-bottom: 4px;
}

.sleep-pill-risk {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.62rem;
  font-weight: 600;
}

/* ─── Section dividers ──────────────────────────────────────────────────── */

.section-rule {
  width: 64px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #C9A227, transparent);
  margin: 0 auto 2rem;
}

/* ─── CTA buttons ───────────────────────────────────────────────────────── */

.btn-primary {
  background: #C9A227;
  color: #0D0B08;
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.75rem 1.75rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  display: inline-block;
  text-decoration: none;
}

.btn-primary:hover {
  background: #d4b53a;
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: #C9A227;
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.75rem 1.75rem;
  border: 1px solid #C9A227;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  display: inline-block;
  text-decoration: none;
}

.btn-secondary:hover {
  background: rgba(201, 162, 39, 0.1);
  transform: translateY(-1px);
}

/* ─── Timeline ──────────────────────────────────────────────────────────── */

.timeline-line {
  stroke: #2a2316;
  stroke-width: 2;
}

.timeline-dot {
  fill: #C9A227;
}

.timeline-dot-muted {
  fill: #4a3c1a;
  stroke: #C9A227;
  stroke-width: 1.5;
}

/* ─── Responsive tweaks ─────────────────────────────────────────────────── */

@media (max-width: 640px) {
  .stat-num { font-size: 1.75rem; }

  .parchment::before,
  .parchment::after { left: 8px; right: 8px; }
}

/* ─── Mobile pass — 768px breakpoint ───────────────────────────────────── */

@media (max-width: 768px) {

  /* Sticky nav — horizontal scroll on narrow viewports so no links are lost */
  #sticky-nav .nav-links {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;       /* Firefox */
    -ms-overflow-style: none;    /* IE/Edge */
    justify-content: flex-start;
    padding-bottom: 2px;
  }
  #sticky-nav .nav-links::-webkit-scrollbar { display: none; }

  /* Tables — wrap in auto-scroll container; handled via overflow on parent */
  .story-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }

  /* Fallback: any table not using .story-table */
  table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Mockup images — cap width, preserve ratio */
  .frontier-mockup img,
  img[src*="mockups/"],
  img[src*="images/"] {
    max-width: 100%;
    height: auto;
  }

  /* Section padding — reduce desktop-sized top/bottom padding */
  section.py-24 { padding-top: 4rem; padding-bottom: 4rem; }
  section.py-20 { padding-top: 3rem; padding-bottom: 3rem; }

  /* Hero banner — prevent overflow bleed on narrow screens */
  #hero { overflow: hidden; }
  #hero-banner {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-width: none; /* ensure it fills, not shrinks */
  }

  /* Scene figures — kill any fixed aspect-ratio overflow on very small widths */
  .scene-figure { overflow: hidden; }
  .scene-video,
  .scene-still {
    width: 100%;
    max-width: 100%;
    height: auto;
  }

  /* Frontier section grid — single column on tablet/mobile */
  .frontier-grid {
    grid-template-columns: 1fr !important;
  }

  /* Prevent SVG world map from bleeding */
  #world svg,
  #mvp svg,
  #wastelands svg,
  #economy svg {
    max-width: 100%;
    height: auto;
  }
}

/* ─── Very narrow phones — 480px (iPhone SE) ───────────────────────────── */

@media (max-width: 480px) {

  /* Nav brand label — trim to fit */
  #sticky-nav .font-display.text-gold { font-size: 0.65rem; letter-spacing: 0.15em; }

  /* Hero headline — step down one size */
  #hero h1 { font-size: 2.75rem; }

  /* Card grids — ensure single column */
  .grid { grid-template-columns: 1fr !important; }

  /* btn group — stack vertically */
  .flex.flex-col.sm\\:flex-row { flex-direction: column; }
  .btn-primary,
  .btn-secondary { width: 100%; text-align: center; }

  /* Profession / gather cards — reduce padding */
  .profession-card,
  .gather-card { padding: 12px 12px 14px; }

  /* Frontier grid captions — smaller text */
  .frontier-caption { font-size: 0.7rem; }

  /* Stat numbers — keep readable but don't overflow */
  .stat-num { font-size: 1.5rem; }

  /* Parchment borders — tighten */
  .parchment::before,
  .parchment::after { left: 6px; right: 6px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   ANIMATIONS — subtle, motion-respecting, mobile-friendly
   All animation rules live inside @media (prefers-reduced-motion: no-preference)
   so users with reduced-motion preferences see static visuals.
   ═══════════════════════════════════════════════════════════════════════════ */

/* Always-on hover transitions (these are not "animations" per spec) — these
   are gentle enough to keep on even with reduced motion. */

/* combat class card lift */
#combat .grid > div {
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.35s ease;
  will-change: transform;
}
#combat .grid > div:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(201, 162, 39, 0.12);
}
#combat .grid > div svg {
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}
#combat .grid > div:hover svg {
  transform: scale(1.05) rotate(5deg);
}

/* crafting recipe ambiguity row hover */
#crafting table tbody tr {
  transition: background 0.25s ease, transform 0.25s ease;
}
#crafting table tbody tr:hover {
  background: rgba(201, 162, 39, 0.05);
}

/* sleep ladder rung hover */
.ks-sleep-rung {
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              filter 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
  transform-box: fill-box;
}
.ks-sleep-rung:hover {
  transform: scale(1.04);
  filter: drop-shadow(0 0 6px rgba(201, 162, 39, 0.55));
}

/* food web species hover halo */
.ks-eco-species {
  transition: filter 0.35s ease;
}
.ks-eco-species:hover {
  filter: drop-shadow(0 0 5px rgba(201, 162, 39, 0.55));
}

@media (prefers-reduced-motion: no-preference) {

  /* hero title — subtle glow pulse on first paint */
  #hero h1 {
    animation: ks-hero-glow 6s ease-in-out infinite;
  }
  @keyframes ks-hero-glow {
    0%, 100% { text-shadow: 0 0 0 rgba(201, 162, 39, 0); }
    50%      { text-shadow: 0 0 22px rgba(201, 162, 39, 0.18); }
  }

  /* ecology food web bob animation — three offset phases */
  .ks-eco-species {
    animation: ks-bob 5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    transform-box: fill-box;
    transform-origin: center;
  }
  .ks-eco-species:nth-child(3n + 1) { animation-delay: 0s;    animation-duration: 5s; }
  .ks-eco-species:nth-child(3n + 2) { animation-delay: -1.6s; animation-duration: 5.5s; }
  .ks-eco-species:nth-child(3n + 3) { animation-delay: -3.2s; animation-duration: 6s; }
  @keyframes ks-bob {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-3px); }
  }

  /* predation arrows pulse — gently breathe their opacity */
  .ks-eco-edges {
    animation: ks-edge-pulse 6s ease-in-out infinite;
  }
  @keyframes ks-edge-pulse {
    0%, 100% { opacity: 0.55; }
    50%      { opacity: 1; }
  }

  /* cascade flow fade-in — each step group fades into view in sequence,
     loops on a long timeline so the three cascade SVGs stagger naturally. */
  .ks-cascade > g {
    opacity: 0;
    animation: ks-cascade-fade 8s ease-in-out infinite;
  }
  @keyframes ks-cascade-fade {
    0%   { opacity: 0; }
    10%  { opacity: 1; }
    75%  { opacity: 1; }
    100% { opacity: 0; }
  }

  /* per-step delays inside cascade 1 */
  .ks-cascade-1 .ks-cascade-step-1 { animation-delay: 0s; }
  .ks-cascade-1 .ks-cascade-step-2 { animation-delay: 0.4s; }
  .ks-cascade-1 .ks-cascade-step-3 { animation-delay: 0.8s; }
  .ks-cascade-1 .ks-cascade-step-4 { animation-delay: 1.2s; }

  /* cascade 2 — staggered offset so it doesn't sync */
  .ks-cascade-2 .ks-cascade-step-1 { animation-delay: 1.5s; }
  .ks-cascade-2 .ks-cascade-step-2 { animation-delay: 1.9s; }
  .ks-cascade-2 .ks-cascade-step-3 { animation-delay: 2.3s; }
  .ks-cascade-2 .ks-cascade-step-4 { animation-delay: 2.7s; }

  /* cascade 3 — staggered further */
  .ks-cascade-3 .ks-cascade-step-1 { animation-delay: 3s; }
  .ks-cascade-3 .ks-cascade-step-2 { animation-delay: 3.4s; }
  .ks-cascade-3 .ks-cascade-step-3 { animation-delay: 3.8s; }
  .ks-cascade-3 .ks-cascade-step-4 { animation-delay: 4.2s; }

  /* sleep ladder rung — soft idle glow on the highest tier (owned house) */
  .ks-sleep-rung-tier4 {
    animation: ks-sleep-glow 6s ease-in-out infinite;
  }
  @keyframes ks-sleep-glow {
    0%, 100% { filter: drop-shadow(0 0 0 rgba(201, 162, 39, 0)); }
    50%      { filter: drop-shadow(0 0 8px rgba(201, 162, 39, 0.35)); }
  }

  /* bandit raid — branching arrows + outcome boxes fade in sequentially */
  .ks-raid-stage {
    opacity: 0;
    animation: ks-raid-fade 8s ease-in-out infinite;
  }
  .ks-raid-stage-1 { animation-delay: 0s; }
  .ks-raid-stage-2 { animation-delay: 0.6s; }
  .ks-raid-stage-3 { animation-delay: 1.2s; }
  .ks-raid-stage-4 { animation-delay: 1.8s; }
  @keyframes ks-raid-fade {
    0%   { opacity: 0; }
    15%  { opacity: 1; }
    80%  { opacity: 1; }
    100% { opacity: 0; }
  }

  /* crafting grid — iron sword input items wiggle into place softly */
  .ks-craft-input {
    animation: ks-craft-wiggle 4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    transform-box: fill-box;
    transform-origin: center;
  }
  .ks-craft-input:nth-child(1) { animation-delay: 0s; }
  .ks-craft-input:nth-child(2) { animation-delay: -1.3s; }
  .ks-craft-input:nth-child(3) { animation-delay: -2.6s; }
  @keyframes ks-craft-wiggle {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%      { transform: translateY(-2px) rotate(0.4deg); }
  }

  /* status grid — LOCKED cards pulse gently, PENDING cards breathe */
  .ks-status-locked {
    animation: ks-status-locked-pulse 5s ease-in-out infinite;
  }
  @keyframes ks-status-locked-pulse {
    0%, 100% { box-shadow: 0 0 0 rgba(34, 197, 94, 0); }
    50%      { box-shadow: 0 0 18px rgba(34, 197, 94, 0.18); }
  }
  .ks-status-pending {
    animation: ks-status-pending-breathe 4s ease-in-out infinite;
  }
  @keyframes ks-status-pending-breathe {
    0%, 100% { opacity: 0.85; }
    50%      { opacity: 1; }
  }

  /* tiered roadmap — MVP-1 bar pulses softly */
  .ks-mvp1-bar {
    animation: ks-mvp1-pulse 4s ease-in-out infinite;
    transform-box: fill-box;
    transform-origin: center;
  }
  @keyframes ks-mvp1-pulse {
    0%, 100% { filter: drop-shadow(0 0 0 rgba(201, 162, 39, 0)); }
    50%      { filter: drop-shadow(0 0 8px rgba(201, 162, 39, 0.55)); }
  }

  /* bandit camp upgrade ladder — each rung climbs into view in sequence */
  .ks-camp-rung {
    opacity: 0;
    animation: ks-rung-climb 8s ease-in-out infinite;
    transform-box: fill-box;
    transform-origin: center;
  }
  .ks-camp-rung-0 { animation-delay: 0s; }
  .ks-camp-rung-1 { animation-delay: 0.5s; }
  .ks-camp-rung-2 { animation-delay: 1s; }
  .ks-camp-rung-3 { animation-delay: 1.5s; }
  .ks-camp-rung-4 { animation-delay: 2s; }

  /* parallel kingdom upgrade tree — slightly offset so it stutter-mirrors */
  .ks-kingdom-rung {
    opacity: 0;
    animation: ks-rung-climb 8s ease-in-out infinite;
    transform-box: fill-box;
    transform-origin: center;
  }
  .ks-kingdom-rung-0 { animation-delay: 0.25s; }
  .ks-kingdom-rung-1 { animation-delay: 0.75s; }
  .ks-kingdom-rung-2 { animation-delay: 1.25s; }
  .ks-kingdom-rung-3 { animation-delay: 1.75s; }
  .ks-kingdom-rung-4 { animation-delay: 2.25s; }

  @keyframes ks-rung-climb {
    0%   { opacity: 0; }
    12%  { opacity: 1; }
    80%  { opacity: 1; }
    100% { opacity: 0; }
  }

  /* silver mint bars — grow upward in sequence so the wealth gradient lands */
  .ks-mint-bar {
    transform-box: fill-box;
    transform-origin: bottom;
    animation: ks-mint-grow 7s ease-in-out infinite;
  }
  .ks-mint-bar-1 { animation-delay: 0s; }
  .ks-mint-bar-2 { animation-delay: 0.4s; }
  .ks-mint-bar-3 { animation-delay: 0.8s; }
  .ks-mint-bar-4 { animation-delay: 1.2s; }
  .ks-mint-bar-5 { animation-delay: 1.6s; }
  .ks-mint-bar-5b { animation-delay: 1.8s; }

  @keyframes ks-mint-grow {
    0%   { transform: scaleY(0); }
    15%  { transform: scaleY(1.05); }
    20%  { transform: scaleY(1); }
    85%  { transform: scaleY(1); }
    100% { transform: scaleY(0); }
  }

  /* profession + gather card icons — soft bob */
  .profession-card .profession-icon,
  .gather-card .profession-icon {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .profession-card:hover .profession-icon,
  .gather-card:hover .profession-icon {
    transform: translateY(-2px) scale(1.06);
  }

}

