/* Forest field-journal palette: warm paper, moss ink, amber light, bark depth. */
:root {
  --bg: #f5f2ea;
  --surface: #fffdf8;
  --surface-2: #f3efe4;
  --text: #25271f;
  --muted: #6a6a5c;
  --line: #dfd8c6;
  --strong: #171a12;
  --brand: #3d5f34;
  --brand-strong: #2c4626;
  --brand-soft: #eef2e6;
  --accent: #d6a24a;
  --accent-bright: #f2cf7c;
  --accent-soft: #fbf3e2;
  --bark: #24160c;
  --ring: color-mix(in srgb, var(--accent) 70%, #fff);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --shadow: 0 1px 2px rgb(52 42 24 / 6%), 0 6px 18px rgb(52 42 24 / 7%);
  --shadow-lift: 0 2px 4px rgb(52 42 24 / 7%), 0 18px 40px -8px rgb(52 42 24 / 22%);
  --shadow-inset: inset 0 1px 0 rgb(255 255 255 / 70%);
  --site-watermark-tile: 360px 240px;
  --site-watermark-opacity: 0.8;
  --site-watermark-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'360'%20height%3D'240'%20viewBox%3D'0%200%20360%20240'%3E%3Ctext%20x%3D'-12'%20y%3D'136'%20transform%3D'rotate(-18%20180%20120)'%20fill%3D'%233d5f34'%20fill-opacity%3D'0.05'%20font-family%3D'Nunito%2C%20Yu%20Gothic%20UI%2C%20sans-serif'%20font-size%3D'28'%20font-weight%3D'800'%20letter-spacing%3D'1.5'%3EMASAKUWA%20%E6%98%86%E8%99%AB%E5%8A%87%E5%A0%B4%3C%2Ftext%3E%3C%2Fsvg%3E");
  color-scheme: light;
  accent-color: var(--brand);
  scrollbar-color: color-mix(in srgb, var(--brand) 45%, var(--line)) transparent;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  color: var(--text);
  background: var(--bg);
  font-family: var(--font-nunito, "Nunito"), var(--font-rounded, "M PLUS Rounded 1c"), "Yu Gothic UI", sans-serif;
  line-height: 1.68;
  font-feature-settings: "palt" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection {
  color: var(--bark);
  background: color-mix(in srgb, var(--accent-bright) 70%, transparent);
}

:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  color: var(--bark);
  background: var(--accent-bright);
  font-weight: 800;
  text-decoration: none;
  box-shadow: var(--shadow-lift);
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease-out);
}

.skip-link:focus-visible {
  transform: translateY(0);
}

.site-main:focus {
  outline: none;
}

/* Site-wide decoration only; content layers stay responsible for readability.
   The ambient light lives on this fixed layer so scrolling never repaints the page background. */
.site-watermark {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    var(--site-watermark-image) 32px 24px / var(--site-watermark-tile) repeat,
    radial-gradient(1200px 600px at 10% -10%, rgb(214 162 74 / 11%), transparent 60%) no-repeat,
    radial-gradient(900px 700px at 100% 30%, rgb(61 95 52 / 9%), transparent 60%) no-repeat;
  opacity: var(--site-watermark-opacity);
}

.site-header,
.site-masthead-shell,
.sticky-nav-wrap,
.site-main,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-masthead-shell {
  position: relative;
}

.site-footer,
.site-main {
  width: min(1120px, calc(100% - 2.4rem));
  margin-left: auto;
  margin-right: auto;
}

/* Short pages still scroll far enough for the rail to reach the top after internal navigation. */
.site-main {
  min-height: calc(100svh - 15rem);
  padding-bottom: 2.4rem;
}

.site-content {
  display: flow-root;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--strong);
  font-family: var(--font-rounded, "M PLUS Rounded 1c"), var(--font-nunito, "Nunito"), "Yu Gothic UI", sans-serif;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.25;
  text-wrap: balance;
}

h1 {
  font-size: clamp(1.7rem, 3vw, 2.45rem);
}

h2 {
  font-size: clamp(1.2rem, 2.1vw, 1.75rem);
}

/* Page titles carry the same brand accent as the home section headings. */
.site-content > h1::after,
.site-content > :is(header, section, article, div) > h1::after {
  content: "";
  display: block;
  width: 2.75rem;
  height: 3px;
  margin-top: 0.55rem;
  background: linear-gradient(90deg, var(--brand), var(--accent));
}

/* Page header: optional kicker, title and lead with a tight internal rhythm. */
.page-header {
  display: grid;
  gap: 0.35rem;
}

.page-header > :is(h1, p) {
  margin: 0;
}

.page-kicker {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--brand-strong);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.page-kicker::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-bright), var(--brand));
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 25%, transparent);
}

.page-lead {
  color: var(--muted);
  overflow-wrap: anywhere;
}

/* Page-title icon: the home section pop icons, enlarged beside page headings. */
.page-icon {
  width: clamp(2.1rem, 4vw, 2.6rem);
  height: clamp(2.1rem, 4vw, 2.6rem);
  margin-right: 0.5rem;
  vertical-align: middle;
  border-radius: 999px;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent), 0 4px 10px rgb(52 42 24 / 14%);
}

/* The icon hangs in its own column: wrapped title lines and the accent bar align under the first line's text,
   matching the home section headings. */
.site-content > h1:has(> .page-icon),
.site-content > :is(header, section, article, div) > h1:has(> .page-icon) {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 0.55rem;
  align-items: start;
}

/* Centre the icon on the first line box (line-height 1.25) so wrapped titles keep it beside the opening words. */
h1:has(> .page-icon) > .page-icon {
  margin-top: calc(0.625em - clamp(2.1rem, 4vw, 2.6rem) / 2);
}

.site-content > h1:has(> .page-icon)::after,
.site-content > :is(header, section, article, div) > h1:has(> .page-icon)::after {
  grid-column: 2;
}

h1:has(> .page-icon) > .page-icon {
  margin-right: 0;
}

/* Breadcrumb home: a small house beside the label. */
.breadcrumbs .breadcrumb-home {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.breadcrumb-home-icon {
  width: 0.95rem;
  height: 0.95rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.page-header + :is(.species-entry-grid, .report-link-list, .section-action-row) {
  margin-top: var(--site-block-gap);
}

h2.title-with-icon {
  position: relative;
  padding-bottom: 0.5rem;
}

h2.title-with-icon::after {
  content: "";
  position: absolute;
  left: 2.65rem;
  bottom: 0;
  width: 2.6rem;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  transition: width 0.5s var(--ease-out);
}

section:hover > h2.title-with-icon::after {
  width: 4.4rem;
}

.title-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.ui-icon {
  display: inline-block;
}

.brand-icon {
  width: 1.2rem;
  height: 1.2rem;
  vertical-align: middle;
}

.section-icon {
  width: 2.1rem;
  height: 2.1rem;
  vertical-align: middle;
  border-radius: 999px;
  background: linear-gradient(145deg, #fff, var(--accent-soft));
  padding: 0.2rem;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent), 0 4px 10px rgb(52 42 24 / 14%);
  transition: transform 0.5s var(--ease-spring);
}

section:hover > .title-with-icon .section-icon {
  transform: rotate(-12deg) scale(1.08);
}

p,
li,
input,
a {
  font-size: 0.98rem;
  overflow-wrap: anywhere;
}

a {
  color: var(--strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  text-decoration-color: color-mix(in srgb, var(--brand) 40%, transparent);
  transition: color 0.18s ease, text-decoration-color 0.18s ease;
}

a:hover {
  color: var(--brand);
  text-decoration-color: currentColor;
}

ul {
  margin: 0.65rem 0 0.1rem;
  padding-left: 1.2rem;
}

li + li {
  margin-top: 0.35rem;
}

.site-header {
  width: 100%;
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
}

.masthead-scene {
  --masthead-min-height: clamp(260px, 25.5vw, 370px);
  --masthead-padding: clamp(0.28rem, 0.72vw, 0.68rem) 1rem clamp(0.44rem, 0.8vw, 0.74rem);
  --brand-logo-width: min(39vw, 600px);
  --brand-logo-min-width: 320px;
  --beetle-left-width: min(43vw, 820px);
  --beetle-right-width: min(38vw, 740px);
  --beetle-bottom: clamp(-3rem, -2.5vw, -1.6rem);
  --beetle-opacity: 1;
  --beetle-left-offset: max(-7.5rem, calc((100vw - 1320px) / 2 - 15rem));
  --beetle-right-offset: max(-5.6rem, calc((100vw - 1320px) / 2 - 13rem));
  --stats-width: min(700px, calc(100% - 2rem));
  --stats-columns: repeat(var(--stats-count, 3), minmax(0, 1fr));
  --stats-padding: 0.26rem 0.42rem;
  --stats-label-size: 0.66rem;
  --stats-value-size: clamp(1.08rem, 1.46vw, 1.42rem);
  position: relative;
  min-height: var(--masthead-min-height);
  display: grid;
  align-items: start;
  justify-items: center;
  padding: var(--masthead-padding);
  isolation: isolate;
}

.masthead-bg,
.masthead-beetle {
  position: absolute;
  pointer-events: none;
  user-select: none;
}

.masthead-bg {
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate3d(0, var(--parallax-y, 0px), 0) scale(1.06);
  will-change: transform;
}

/* Sun shafts through the canopy; purely decorative and behind the brand. */
.masthead-light {
  position: absolute;
  inset: -20% -10% 0;
  z-index: -2;
  pointer-events: none;
  background:
    repeating-linear-gradient(105deg, transparent 0 7%, rgb(255 246 214 / 10%) 9%, transparent 13% 22%);
  mask-image: radial-gradient(ellipse 70% 80% at 50% 0%, #000 20%, transparent 75%);
  will-change: transform, opacity;
  animation: canopy-light 14s ease-in-out infinite alternate;
}

@keyframes canopy-light {
  from { transform: translateX(-3%) skewX(-2deg); opacity: 0.55; }
  to { transform: translateX(3%) skewX(2deg); opacity: 0.95; }
}

.masthead-fireflies {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.masthead-fireflies span {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff9d6 0 30%, rgb(242 207 124 / 85%) 45%, transparent 70%);
  box-shadow: 0 0 10px 3px rgb(242 207 124 / 45%);
  opacity: 0;
  animation:
    firefly-drift var(--drift, 10s) ease-in-out var(--delay, 0s) infinite alternate,
    firefly-glow var(--glow, 3s) ease-in-out var(--delay, 0s) infinite;
}

@keyframes firefly-drift {
  0% { transform: translate(0, 0); }
  33% { transform: translate(24px, -18px); }
  66% { transform: translate(-16px, -34px); }
  100% { transform: translate(18px, -8px); }
}

@keyframes firefly-glow {
  0%, 100% { opacity: 0; }
  45%, 60% { opacity: 0.95; }
}

.masthead-scene::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 29%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff 88%);
  pointer-events: none;
}

.masthead-beetle {
  z-index: -1;
  max-width: none;
  height: auto;
  bottom: var(--beetle-bottom);
  opacity: var(--beetle-opacity);
  filter: drop-shadow(0 14px 18px rgba(43, 28, 14, 0.16));
  translate: var(--parallax-x, 0px) var(--parallax-y, 0px);
  transition: translate 0.6s var(--ease-out);
}

.masthead-beetle--left {
  width: var(--beetle-left-width);
  left: var(--beetle-left-offset);
  transform-origin: left bottom;
}

.masthead-beetle--right {
  width: var(--beetle-right-width);
  right: var(--beetle-right-offset);
  transform-origin: right bottom;
}

.site-brand {
  position: relative;
  z-index: 2;
  justify-self: center;
  margin-top: clamp(0.1rem, 0.45vw, 0.45rem);
}

.brand-link {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.brand-title-image {
  display: block;
  width: var(--brand-logo-width);
  min-width: var(--brand-logo-min-width);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgb(38 26 10 / 18%));
  transition: transform 0.45s var(--ease-spring), filter 0.45s ease;
}

.brand-link:hover .brand-title-image {
  transform: scale(1.025) rotate(-0.6deg);
  filter: drop-shadow(0 10px 20px rgb(38 26 10 / 24%));
}

.masthead-stats {
  position: absolute;
  left: 50%;
  bottom: clamp(0.34rem, 0.62vw, 0.58rem);
  transform: translateX(-50%);
  z-index: 2;
  width: var(--stats-width);
  margin: 0;
  padding: var(--stats-padding);
  display: grid;
  grid-template-columns: var(--stats-columns);
  gap: 0;
  list-style: none;
  border: 1px solid rgb(255 255 255 / 55%);
  border-radius: 12px;
  background: linear-gradient(180deg, rgb(255 255 255 / 72%), rgb(255 250 236 / 58%));
  box-shadow: 0 8px 24px rgb(42 35 21 / 12%), inset 0 1px 0 rgb(255 255 255 / 80%);
  backdrop-filter: blur(8px) saturate(1.2);
  -webkit-backdrop-filter: blur(8px) saturate(1.2);
}

.masthead-stats li {
  min-width: 0;
  margin: 0;
  padding: 0.01rem 0.34rem;
  text-align: center;
  border-left: 1px solid rgba(87, 74, 52, 0.11);
}

.masthead-stats li:first-child {
  border-left: 0;
}

.masthead-stats span {
  display: block;
  color: #3b321d;
  font-size: var(--stats-label-size);
  font-weight: 700;
}

.masthead-stats strong {
  display: inline-block;
  margin-top: 0.02rem;
  color: var(--brand-strong);
  font-size: var(--stats-value-size);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.masthead-stats em {
  margin-left: 0.14rem;
  color: #3b321d;
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 700;
}

/* Wood rail: owns the bark image height and its vertical coordinate system. */
.sticky-nav-wrap {
  position: sticky;
  top: 0;
  z-index: 40;
  --wood-control-height: max(44px,calc(1.62rem + 8px));
  --wood-rail-height: max(50px,calc(var(--wood-control-height) + 6px));
  --nav-leaves-height: 34px;
  --nav-leaves-offset: -29px;
  --nav-leaves-rail-overlap: calc(var(--nav-leaves-height) + var(--nav-leaves-offset));
  --wood-rail-visible-height: calc(var(--wood-rail-height) - var(--nav-leaves-rail-overlap));
  --wood-rail-control-center: calc(var(--wood-rail-height) / 2);
  /* Seamless SVG vine tiles; front and back periods differ so the garland never visibly repeats. */
  --nav-vine-front: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22180%22%20height%3D%2230%22%20viewBox%3D%220%200%20180%2030%22%3E%3Cpath%20d%3D%22M0%205Q45%2010%2090%205T180%205%22%20fill%3D%22none%22%20stroke%3D%22%234b5a2a%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%2F%3E%3Cpath%20d%3D%22M74%205.73c2%204%204%207%201.2%209.5c-1.6%201.4-3.2%200-2-1.4%22%20fill%3D%22none%22%20stroke%3D%22%234b5a2a%22%20stroke-width%3D%22.9%22%20stroke-linecap%3D%22round%22%2F%3E%3Cg%20transform%3D%22translate%2814%206.26%29%20rotate%2820%29%20scale%281%29%22%3E%3Cpath%20d%3D%22M0%200C5%203%206.2%2010%200%2015C-6.2%2010-5%203%200%200Z%22%20fill%3D%22%235f8f3e%22%2F%3E%3Cpath%20d%3D%22M0%201.6V13.4%22%20stroke%3D%22%23fff%22%20stroke-opacity%3D%22.32%22%20stroke-width%3D%22.7%22%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate%2837%206.81%29%20rotate%28-12%29%20scale%280.78%29%22%3E%3Cpath%20d%3D%22M0%200C5.6%202.6%206.4%208.6%200%2012.6C-6.4%208.6-5.6%202.6%200%200Z%22%20fill%3D%22%237fae4f%22%2F%3E%3Cpath%20d%3D%22M0%201.6V11%22%20stroke%3D%22%23fff%22%20stroke-opacity%3D%22.32%22%20stroke-width%3D%22.7%22%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate%2861%206.69%29%20rotate%2830%29%20scale%281.12%29%22%3E%3Cpath%20d%3D%22M0%200C4%203%204.6%2011%200%2016C-4.6%2011-4%203%200%200Z%22%20fill%3D%22%233d5f34%22%2F%3E%3Cpath%20d%3D%22M0%201.6V13.4%22%20stroke%3D%22%23fff%22%20stroke-opacity%3D%22.32%22%20stroke-width%3D%22.7%22%2F%3E%3C%2Fg%3E%3Cpath%20d%3D%22M84%205.91q1.2%203.5%200%207%22%20fill%3D%22none%22%20stroke%3D%22%234b5a2a%22%20stroke-width%3D%22.9%22%20stroke-linecap%3D%22round%22%2F%3E%3Cg%20transform%3D%22translate%2884%2012.91%29%20rotate%286%29%20scale%280.86%29%22%3E%3Cpath%20d%3D%22M0%200C5%203%206.2%2010%200%2015C-6.2%2010-5%203%200%200Z%22%20fill%3D%22%236f9f45%22%2F%3E%3Cpath%20d%3D%22M0%201.6V13.4%22%20stroke%3D%22%23fff%22%20stroke-opacity%3D%22.32%22%20stroke-width%3D%22.7%22%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate%2899%205.15%29%20rotate%28-26%29%20scale%280.9%29%22%3E%3Cpath%20d%3D%22M0%200C5.6%202.6%206.4%208.6%200%2012.6C-6.4%208.6-5.6%202.6%200%200Z%22%20fill%3D%22%235f8f3e%22%2F%3E%3Cpath%20d%3D%22M0%201.6V11%22%20stroke%3D%22%23fff%22%20stroke-opacity%3D%22.32%22%20stroke-width%3D%22.7%22%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate%28121%204.47%29%20rotate%2810%29%20scale%281.22%29%22%3E%3Cpath%20d%3D%22M0%200C4%203%204.6%2011%200%2016C-4.6%2011-4%203%200%200Z%22%20fill%3D%22%234f7a37%22%2F%3E%3Cpath%20d%3D%22M0%201.6V13.4%22%20stroke%3D%22%23fff%22%20stroke-opacity%3D%22.32%22%20stroke-width%3D%22.7%22%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate%28149%204.47%29%20rotate%28-32%29%20scale%280.82%29%22%3E%3Cpath%20d%3D%22M0%200C5.6%202.6%206.4%208.6%200%2012.6C-6.4%208.6-5.6%202.6%200%200Z%22%20fill%3D%22%2386b556%22%2F%3E%3Cpath%20d%3D%22M0%201.6V11%22%20stroke%3D%22%23fff%22%20stroke-opacity%3D%22.32%22%20stroke-width%3D%22.7%22%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate%28166%204.94%29%20rotate%2816%29%20scale%280.7%29%22%3E%3Cpath%20d%3D%22M0%200C5%203%206.2%2010%200%2015C-6.2%2010-5%203%200%200Z%22%20fill%3D%22%235f8f3e%22%2F%3E%3Cpath%20d%3D%22M0%201.6V13.4%22%20stroke%3D%22%23fff%22%20stroke-opacity%3D%22.32%22%20stroke-width%3D%22.7%22%2F%3E%3C%2Fg%3E%3Ccircle%20cx%3D%22108%22%20cy%3D%227.2%22%20r%3D%221.9%22%20fill%3D%22%23d6a24a%22%2F%3E%3Ccircle%20cx%3D%22110.6%22%20cy%3D%229%22%20r%3D%221.5%22%20fill%3D%22%23c08a34%22%2F%3E%3Ccircle%20cx%3D%22107.5%22%20cy%3D%226.6000000000000005%22%20r%3D%22.55%22%20fill%3D%22%23fff6d8%22%2F%3E%3C%2Fsvg%3E");
  --nav-vine-back: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22232%22%20height%3D%2230%22%20viewBox%3D%220%200%20232%2030%22%3E%3Cpath%20d%3D%22M0%205Q58%201%20116%205T232%205%22%20fill%3D%22none%22%20stroke%3D%22%2334401f%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%2F%3E%3Cpath%20d%3D%22M110%204.8c-2%204%20-4%207%20-1.2%209.5c-1.6%201.4-3.2%200-2-1.4%22%20fill%3D%22none%22%20stroke%3D%22%2334401f%22%20stroke-width%3D%22.9%22%20stroke-linecap%3D%22round%22%2F%3E%3Cg%20transform%3D%22translate%2822%204.99%29%20rotate%28-18%29%20scale%280.9%29%22%3E%3Cpath%20d%3D%22M0%200C4%203%204.6%2011%200%2016C-4.6%2011-4%203%200%200Z%22%20fill%3D%22%232f4a28%22%2F%3E%3Cpath%20d%3D%22M0%201.6V13.4%22%20stroke%3D%22%23fff%22%20stroke-opacity%3D%22.32%22%20stroke-width%3D%22.7%22%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate%2858%204.6%29%20rotate%2824%29%20scale%280.72%29%22%3E%3Cpath%20d%3D%22M0%200C5.6%202.6%206.4%208.6%200%2012.6C-6.4%208.6-5.6%202.6%200%200Z%22%20fill%3D%22%233d5f34%22%2F%3E%3Cpath%20d%3D%22M0%201.6V11%22%20stroke%3D%22%23fff%22%20stroke-opacity%3D%22.32%22%20stroke-width%3D%22.7%22%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate%2888%204.87%29%20rotate%28-6%29%20scale%281.05%29%22%3E%3Cpath%20d%3D%22M0%200C5%203%206.2%2010%200%2015C-6.2%2010-5%203%200%200Z%22%20fill%3D%22%2335552d%22%2F%3E%3Cpath%20d%3D%22M0%201.6V13.4%22%20stroke%3D%22%23fff%22%20stroke-opacity%3D%22.32%22%20stroke-width%3D%22.7%22%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate%28131%206.05%29%20rotate%2834%29%20scale%280.82%29%22%3E%3Cpath%20d%3D%22M0%200C4%203%204.6%2011%200%2016C-4.6%2011-4%203%200%200Z%22%20fill%3D%22%232f4a28%22%2F%3E%3Cpath%20d%3D%22M0%201.6V13.4%22%20stroke%3D%22%23fff%22%20stroke-opacity%3D%22.32%22%20stroke-width%3D%22.7%22%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate%28170%206.6%29%20rotate%28-26%29%20scale%281.1%29%22%3E%3Cpath%20d%3D%22M0%200C5%203%206.2%2010%200%2015C-6.2%2010-5%203%200%200Z%22%20fill%3D%22%233d5f34%22%2F%3E%3Cpath%20d%3D%22M0%201.6V13.4%22%20stroke%3D%22%23fff%22%20stroke-opacity%3D%22.32%22%20stroke-width%3D%22.7%22%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate%28205%206.31%29%20rotate%2812%29%20scale%280.76%29%22%3E%3Cpath%20d%3D%22M0%200C5.6%202.6%206.4%208.6%200%2012.6C-6.4%208.6-5.6%202.6%200%200Z%22%20fill%3D%22%2335552d%22%2F%3E%3Cpath%20d%3D%22M0%201.6V11%22%20stroke%3D%22%23fff%22%20stroke-opacity%3D%22.32%22%20stroke-width%3D%22.7%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
  --nav-vine-front-size: 204px 34px;
  --nav-vine-back-size: 263px 34px;
  /* Procedural walnut board: seamless turbulence grain, plank seams every 420px, brass tacks, bevelled edges. */
  --wood-grain: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22640%22%20height%3D%2264%22%20viewBox%3D%220%200%20640%2064%22%3E%3Cfilter%20id%3D%22g%22%20filterUnits%3D%22userSpaceOnUse%22%20x%3D%220%22%20y%3D%22-12%22%20width%3D%22640%22%20height%3D%2288%22%20color-interpolation-filters%3D%22sRGB%22%3E%3CfeTurbulence%20type%3D%22fractalNoise%22%20baseFrequency%3D%220.0035%200.19%22%20numOctaves%3D%224%22%20seed%3D%2211%22%20stitchTiles%3D%22stitch%22%20result%3D%22grain%22%2F%3E%3CfeTurbulence%20type%3D%22fractalNoise%22%20baseFrequency%3D%220.006%200.02%22%20numOctaves%3D%222%22%20seed%3D%224%22%20stitchTiles%3D%22stitch%22%20result%3D%22warp%22%2F%3E%3CfeColorMatrix%20in%3D%22warp%22%20type%3D%22matrix%22%20values%3D%220%200%200%200%200.5%20%200%201%200%200%200%20%200%200%200%200%200%20%200%200%200%200%201%22%20result%3D%22warpY%22%2F%3E%3CfeDisplacementMap%20in%3D%22grain%22%20in2%3D%22warpY%22%20scale%3D%2216%22%20xChannelSelector%3D%22R%22%20yChannelSelector%3D%22G%22%20result%3D%22flow%22%2F%3E%3CfeColorMatrix%20in%3D%22flow%22%20type%3D%22matrix%22%20values%3D%220.62%200%200%200%200.1%20%200.42%200%200%200%200.02%20%200.22%200%200%200%200.0%20%200%200%200%200%201%22%20result%3D%22wood%22%2F%3E%3CfeTurbulence%20type%3D%22fractalNoise%22%20baseFrequency%3D%220.012%200.9%22%20numOctaves%3D%222%22%20seed%3D%2223%22%20stitchTiles%3D%22stitch%22%20result%3D%22fine%22%2F%3E%3CfeColorMatrix%20in%3D%22fine%22%20type%3D%22matrix%22%20values%3D%220%200%200%200%200.14%20%200%200%200%200%200.07%20%200%200%200%200%200.03%20%20-1.4%200%200%200%200.9%22%20result%3D%22lines%22%2F%3E%3CfeComposite%20in%3D%22lines%22%20in2%3D%22wood%22%20operator%3D%22over%22%2F%3E%3C%2Ffilter%3E%3Crect%20y%3D%22-12%22%20width%3D%22640%22%20height%3D%2288%22%20filter%3D%22url%28%23g%29%22%2F%3E%3C%2Fsvg%3E");
  --wood-bevel:
    inset 0 1px 0 rgb(255 218 170 / 34%),
    inset 0 2px 0 rgb(255 218 170 / 8%),
    inset 0 -2px 0 rgb(14 6 2 / 55%);
  height: var(--wood-rail-height);
  background:
    radial-gradient(circle at 12px 11px, #f6dfa8 0 0.7px, #c69a55 1.5px, #7a5424 2.7px, rgb(20 9 3 / 45%) 3.3px, transparent 3.9px) 0 0 / 420px 100% repeat-x,
    radial-gradient(circle at 12px calc(100% - 11px), #f6dfa8 0 0.7px, #c69a55 1.5px, #7a5424 2.7px, rgb(20 9 3 / 45%) 3.3px, transparent 3.9px) 0 0 / 420px 100% repeat-x,
    linear-gradient(90deg, rgb(20 10 4 / 55%) 0 1px, rgb(255 214 160 / 16%) 1px 2px, transparent 2px) 0 0 / 420px 100% repeat-x,
    linear-gradient(180deg, rgb(255 222 176 / 16%), transparent 38%, transparent 62%, rgb(20 9 3 / 30%)),
    var(--wood-grain) 0 0 / auto 100% repeat-x,
    #5d3519;
  box-shadow:
    var(--wood-bevel),
    0 8px 20px rgb(0 0 0 / 22%),
    0 12px 14px -10px rgb(0 0 0 / 42%);
  overflow: visible;
  overflow-x: clip;
  isolation: isolate;
  margin-bottom: 18px;
}

/* Idle sway runs on the compositor; a pointer sweeping the rail adds a one-shot gust on top. */
.sticky-nav-wrap::before,
.sticky-nav-wrap::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: var(--nav-leaves-height);
  bottom: var(--nav-leaves-offset);
  pointer-events: none;
  z-index: 0;
  transform-origin: center top;
  will-change: transform;
}

/* Back strand: a darker vine plus the soft shade the rail casts on the page. */
.sticky-nav-wrap::before {
  --vine-gust-strand: 0.6;
  background:
    linear-gradient(180deg, rgb(16 24 8 / 16%), transparent) center top / 100% 10px no-repeat,
    var(--nav-vine-back) 37% 0 / var(--nav-vine-back-size) repeat-x;
  opacity: 0.92;
  animation: vine-sway-back 11s ease-in-out infinite alternate;
}

/* Front strand: sparse hanging leaves keep content readable beneath the sticky rail. */
.sticky-nav-wrap::after {
  background: var(--nav-vine-front) 0 0 / var(--nav-vine-front-size) repeat-x;
  filter: drop-shadow(0 2px 2px rgb(0 0 0 / 28%));
  animation: vine-sway 7.6s ease-in-out infinite alternate;
}

.sticky-nav-wrap.is-vine-gust::before {
  animation: vine-sway-back 11s ease-in-out infinite alternate, vine-gust 0.9s ease-out;
  animation-composition: replace, add;
}

.sticky-nav-wrap.is-vine-gust::after {
  animation: vine-sway 7.6s ease-in-out infinite alternate, vine-gust 0.9s ease-out;
  animation-composition: replace, add;
}

@keyframes vine-sway {
  from { transform: skewX(-2deg); }
  to { transform: skewX(2deg); }
}

@keyframes vine-sway-back {
  from { transform: skewX(1.5deg); }
  to { transform: skewX(-1.5deg); }
}

/* Damped swing: lean with the sweep, overshoot back, settle. */
@keyframes vine-gust {
  0% { transform: skewX(0deg); }
  22% { transform: skewX(calc(var(--vine-gust, 0deg) * var(--vine-gust-strand, 1))); }
  48% { transform: skewX(calc(var(--vine-gust, 0deg) * var(--vine-gust-strand, 1) * -0.45)); }
  74% { transform: skewX(calc(var(--vine-gust, 0deg) * var(--vine-gust-strand, 1) * 0.16)); }
  100% { transform: skewX(0deg); }
}

.site-nav {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 2.4rem));
  margin: 0 auto;
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0.52rem 0.1rem;
}

/* Wood controls: centered against the bark rail, independent from leaf decoration. */
.site-nav.wood-nav {
  --wood-text: #faeee0;
  --wood-nav-gap: 0.4rem;
  --wood-nav-justify: safe center;
  --wood-nav-flex-wrap: nowrap;
  --wood-nav-overflow-x: auto;
  --wood-nav-white-space: nowrap;
  --wood-nav-padding: 0 clamp(0.4rem, 2vw, 0.8rem);
  --wood-item-min-width: 6.75rem;
  --wood-item-gap: 0.32rem;
  --wood-item-padding: 0 0.58rem;
  --nav-icon-size: 1.45rem;
  --nav-icon-accent: #f2cf7c;
  --nav-icon-fill: rgb(255 235 205 / 15%);
  --nav-label-size: 0.96rem;
  --nav-sub-label-size: 0.58rem;
  --nav-sub-label-display: block;
  position: absolute;
  top: var(--wood-rail-control-center);
  left: 0;
  right: 0;
  width: 100%;
  max-width: none;
  height: var(--wood-control-height);
  box-sizing: border-box;
  border-radius: 0;
  padding: var(--wood-nav-padding);
  background: transparent;
  box-shadow: none;
  align-items: center;
  transform: translateY(-50%);
  flex-wrap: var(--wood-nav-flex-wrap);
  justify-content: var(--wood-nav-justify);
  gap: var(--wood-nav-gap);
  overflow-x: var(--wood-nav-overflow-x);
  white-space: var(--wood-nav-white-space);
  scrollbar-width: none;
  -ms-overflow-style: none;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
}

.site-nav.wood-nav a {
  flex: 0 0 auto;
  scroll-snap-align: start;
  display: inline-flex;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  gap: var(--wood-item-gap);
  min-width: var(--wood-item-min-width);
  height: var(--wood-control-height);
  padding: var(--wood-item-padding);
  line-height: 1;
  border: 1px solid rgba(255, 235, 205, 0.18);
  border-radius: 8px;
  color: var(--wood-text);
  text-decoration: none;
  background: rgba(16, 7, 3, 0.56);
  box-shadow:
    inset 0 1px 0 rgba(255, 235, 205, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.48),
    0 2px 6px rgba(0, 0, 0, 0.16);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.sticky-nav-wrap[data-nav-overflow] .site-nav.wood-nav {
  left: 48px;
  right: 48px;
  width: calc(100% - 96px);
  padding-inline: 6px;
  scroll-padding-inline: 6px;
}

.sticky-nav-wrap:focus-within .site-nav.wood-nav {
  scroll-snap-type: none;
}

.wood-nav-scroll {
  position: absolute;
  z-index: 2;
  top: var(--wood-rail-control-center);
  width: 44px;
  height: var(--wood-control-height);
  min-height: 44px;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  padding: 0;
  border: 1px solid rgba(255, 235, 205, 0.3);
  border-radius: 8px;
  color: #faeee0;
  background: #29170e;
  box-shadow: inset 0 1px 0 rgba(255, 235, 205, 0.18);
  cursor: pointer;
}

.wood-nav-scroll:not([hidden]) { display: inline-flex; }
.wood-nav-scroll--previous { left: 2px; }
.wood-nav-scroll--next { right: 2px; }
.wood-nav-scroll:disabled { opacity: 0.5; cursor: default; }
.wood-nav-scroll:focus-visible { outline: 3px solid #faeee0; outline-offset: 2px; }
.wood-nav-scroll svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Lantern light that follows the pointer across a wood control. */
.site-nav.wood-nav a::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(120px circle at var(--spot-x, 50%) var(--spot-y, 50%), rgb(255 214 140 / 26%), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.site-nav.wood-nav a:hover::before {
  opacity: 1;
}

.site-nav.wood-nav a::after {
  content: "";
  position: absolute;
  left: 22%;
  right: 22%;
  bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, #ffd98c, transparent);
  box-shadow: 0 0 8px 1px rgb(255 200 110 / 70%);
  transform: scaleX(0);
  transition: transform 0.35s var(--ease-out);
}

.site-nav.wood-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.site-nav.wood-nav a .nav-icon,
.site-nav.wood-nav a .label-manager-stag-icon {
  transition: transform 0.4s var(--ease-spring);
}

.site-nav.wood-nav a:hover .nav-icon,
.site-nav.wood-nav a:hover .label-manager-stag-icon {
  transform: translateY(-2px) rotate(-8deg) scale(1.08);
}

.site-nav.wood-nav a:hover,
.site-nav.wood-nav a:focus-visible,
.site-nav.wood-nav a[aria-current="page"] {
  --nav-icon-accent: #ffe09a;
  --nav-icon-fill: rgb(255 235 205 / 24%);
}

.site-nav.wood-nav a:active {
  transform: translateY(1px) scale(0.98);
}

.site-nav.wood-nav::-webkit-scrollbar {
  display: none;
}

.nav-icon {
  width: var(--nav-icon-size, 2rem);
  height: var(--nav-icon-size, 2rem);
  flex: 0 0 auto;
  display: block;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-icon :is(path, circle, rect, ellipse) {
  vector-effect: non-scaling-stroke;
}

.nav-icon .nav-icon-fill {
  fill: var(--nav-icon-fill, rgb(255 255 255 / 15%));
}

.nav-icon .nav-icon-accent {
  stroke: var(--nav-icon-accent, currentColor);
}

.nav-icon .nav-icon-accent-fill {
  fill: var(--nav-icon-accent, currentColor);
  stroke: none;
}

.label-manager-stag-icon {
  display: block;
  width: var(--nav-icon-size, 2rem);
  height: var(--nav-icon-size, 2rem);
  flex: 0 0 auto;
  object-fit: contain;
}

.nav-label {
  display: grid;
  align-content: center;
  gap: 0;
  line-height: 1;
  text-align: left;
}

.nav-label span {
  color: #fffaf2;
  font-size: var(--nav-label-size, 1.05rem);
  font-weight: 800;
}

.nav-label small {
  display: var(--nav-sub-label-display, block);
  margin-top: 0.08rem;
  color: #d7bf82;
  font-size: var(--nav-sub-label-size, 0.68rem);
  font-weight: 800;
  letter-spacing: 0.05em;
}

.site-nav.wood-nav a:hover {
  color: var(--wood-text);
  border-color: rgb(255 220 160 / 34%);
  background: rgba(30, 14, 7, 0.66);
  box-shadow:
    inset 0 1px 0 rgba(255, 235, 205, 0.22),
    inset 0 -1px 0 rgba(0, 0, 0, 0.46),
    0 4px 8px rgba(0, 0, 0, 0.22);
}

.site-nav.wood-nav a[aria-current="page"] {
  color: #fff2e4;
  border-color: transparent;
  background: rgba(10, 4, 2, 0.62);
  box-shadow:
    inset 0 2px 6px rgba(0, 0, 0, 0.54),
    inset 0 1px 0 rgba(186, 118, 70, 0.2);
}

.site-nav.wood-nav .site-nav-app-entry {
  color: #33200c;
  background: linear-gradient(180deg, #ffd98c, #e8a94c);
  box-shadow: inset 0 1px rgb(255 255 255 / 70%), 0 2px 0 #8a531d, 0 0 16px rgb(255 200 110 / 30%);
  text-shadow: none;
}

.site-nav.wood-nav .site-nav-app-entry .nav-label span {
  color: #2a1a08;
}

.site-nav.wood-nav .site-nav-app-entry .nav-label small {
  color: #7a4d12;
}

.site-nav.wood-nav .site-nav-app-entry:hover,
.site-nav.wood-nav .site-nav-app-entry:focus-visible {
  background: linear-gradient(180deg, #ffe5ad, #efb85f);
}

.site-nav.wood-nav a:focus-visible {
  outline: 3px solid rgba(255, 236, 210, 0.76);
  outline-offset: 2px;
}

.site-nav:not(.wood-nav) a {
  text-decoration: none;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  padding: 0.18rem 0;
  font-size: 0.92rem;
  color: var(--muted);
  background: transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.site-nav:not(.wood-nav) a[aria-current="page"] {
  color: var(--strong);
  border-color: color-mix(in srgb, var(--brand) 80%, transparent);
}

.site-nav:not(.wood-nav) a:hover {
  color: var(--strong);
  border-color: color-mix(in srgb, var(--brand) 55%, transparent);
}

@media (max-width: 1120px) {
  .site-nav.wood-nav {
    --wood-nav-padding: 0 0.62rem;
  }
}

.breadcrumbs {
  margin-top: 1rem;
  padding: 0.55rem 0 0.15rem;
  color: var(--muted);
  font-size: 0.85rem;
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat;
  transition: color 0.2s ease, background-size 0.3s var(--ease-out);
}

.breadcrumbs a:hover {
  color: var(--brand);
  background-size: 100% 1px;
}

.breadcrumbs > span {
  color: color-mix(in srgb, var(--muted) 50%, transparent);
}

.breadcrumbs strong {
  color: var(--text);
}

.home-intro {
  position: relative;
  overflow: hidden;
  margin-top: 0.72rem;
  padding: 0.9rem 1rem 0.9rem 1.25rem;
  background: linear-gradient(120deg, color-mix(in srgb, var(--surface) 92%, transparent), color-mix(in srgb, var(--accent-soft) 80%, transparent));
  border: 1px solid color-mix(in srgb, var(--line) 62%, transparent);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow), var(--shadow-inset);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(130px, 0.24fr);
  gap: 0.78rem;
  align-items: center;
}

.home-intro::before {
  content: "";
  position: absolute;
  inset: 0.9rem auto 0.9rem 0;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, var(--accent), var(--brand));
}

.home-intro p {
  margin: 0.38rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.home-intro-copy,
.home-intro-media {
  min-width: 0;
}

.home-intro-copy h1,
.home-intro-copy h2 {
  font-size: clamp(1.15rem, 1.9vw, 1.55rem);
  line-height: 1.32;
  overflow-wrap: anywhere;
}

.home-intro-media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  opacity: 0.9;
  transition: transform 0.6s var(--ease-out), opacity 0.3s ease;
}

.home-intro:hover .home-intro-media img {
  transform: scale(1.04) rotate(0.6deg);
  opacity: 1;
}

.btn {
  position: relative;
  overflow: hidden;
  display: inline-block;
  border-radius: 12px;
  padding: 0.58rem 0.85rem;
  border: 1px solid color-mix(in srgb, var(--line) 75%, transparent);
  text-decoration: none;
  font-weight: 700;
  background: var(--surface-2);
  box-shadow: var(--shadow-inset);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s ease, background-color 0.2s ease;
}

.btn.primary {
  background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 88%, #fff), var(--brand));
  border-color: var(--brand-strong);
  color: #fff;
}

.btn[hidden] {
  display: none;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
  background: var(--surface);
}

.btn.primary:hover {
  color: #fff;
  background: linear-gradient(180deg, var(--brand), var(--brand-strong));
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.chip-grid {
  margin-top: 0.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  border-radius: 999px;
  padding: 0.38rem 0.7rem;
  background: var(--brand-soft);
  color: var(--brand-strong);
  text-decoration: none;
  font-size: 0.87rem;
  font-weight: 700;
  transition: transform 0.3s var(--ease-spring), background-color 0.2s ease, box-shadow 0.2s ease;
}

.species-entry-grid {
  margin-top: 0.75rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.66rem;
}

.species-entry-card {
  display: grid;
  align-content: start;
  gap: 0.3rem;
  min-width: 0;
  border: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  border-radius: var(--radius-md);
  background: linear-gradient(160deg, rgb(255 255 255 / 92%), color-mix(in srgb, var(--surface) 80%, var(--brand-soft)));
  box-shadow: var(--shadow), var(--shadow-inset);
  color: var(--text);
  text-decoration: none;
}

.species-entry-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--brand), var(--accent));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s var(--ease-out);
}

.species-entry-card:hover::before {
  transform: scaleY(1);
}

.species-entry-main,
.species-entry-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-width: 0;
}

.species-entry-name {
  min-width: 0;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.species-entry-status {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  flex: 0 0 auto;
  padding: 0.12rem 0.45rem;
  border: 1px solid #cfe8b8;
  border-radius: 999px;
  background: #f3fbec;
  color: #3f5a24;
  font-size: 0.72rem;
  font-weight: 800;
}

.species-entry-status::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #62a13a;
}

/* Live ring around the dot; transform/opacity only so it never repaints the card. */
.species-entry-status::after {
  content: "";
  position: absolute;
  left: 0.45rem;
  top: 50%;
  width: 0.45rem;
  height: 0.45rem;
  margin-top: -0.225rem;
  border-radius: 50%;
  background: rgb(98 161 58 / 55%);
  pointer-events: none;
  animation: status-pulse 2.2s ease-out infinite;
}

@keyframes status-pulse {
  0% { transform: scale(1); opacity: 0.8; }
  70%, 100% { transform: scale(2.8); opacity: 0; }
}

.species-entry-sub {
  color: var(--muted);
  font-size: 0.78rem;
  font-style: italic;
  overflow-wrap: anywhere;
}

.species-entry-meta {
  justify-content: flex-start;
  color: var(--muted);
  font-size: 0.78rem;
}

/* Taxonomy pages reuse the species entry surface as an article whose name link covers the card. */
.species-entry-card .species-entry-link {
  color: inherit;
  text-decoration: none;
}

.species-entry-card .species-entry-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.species-entry-card:hover .species-entry-link {
  color: var(--brand-strong);
}

.species-entry-card .species-entry-link:focus-visible {
  outline: none;
}

.species-entry-card:has(.species-entry-link:focus-visible) {
  outline: 3px solid var(--ring);
  outline-offset: 3px;
}

.species-entry-latest {
  position: relative;
  z-index: 2;
  justify-self: start;
  min-width: 0;
  max-width: 100%;
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.8rem;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.species-entry-latest:hover {
  color: var(--brand);
  text-decoration: underline;
}

.secondary-entry-grid {
  margin-top: 0.78rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.66rem;
}

.secondary-entry-grid--tags {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.secondary-entry-card {
  display: grid;
  align-content: start;
  gap: 0.32rem;
  min-width: 0;
  min-height: 8.1rem;
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  border-radius: var(--radius-md);
  background: linear-gradient(170deg, var(--surface), color-mix(in srgb, var(--surface) 85%, var(--accent-soft)));
  color: var(--text);
  text-decoration: none;
  box-shadow: var(--shadow), var(--shadow-inset);
}

.secondary-entry-card::before {
  content: "\2192";
  position: absolute;
  right: 1rem;
  bottom: 0.8rem;
  color: var(--brand);
  font-weight: 900;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.25s ease, transform 0.35s var(--ease-out);
}

.secondary-entry-card:hover::before {
  opacity: 1;
  transform: none;
}

.secondary-entry-card--tag {
  min-height: 6.7rem;
}

.secondary-entry-kicker {
  color: color-mix(in srgb, var(--accent) 55%, var(--bark));
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.secondary-entry-title {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.secondary-entry-copy {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.section-action-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.72rem;
}

.section-action-row--start {
  justify-content: flex-start;
}

.section-action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.1rem;
  padding: 0.36rem 0.78rem;
  position: relative;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--brand) 22%, var(--line));
  border-radius: 999px;
  background: var(--surface);
  color: var(--brand-strong);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  box-shadow: var(--shadow), var(--shadow-inset);
  transition: color 0.25s ease, border-color 0.25s ease, background-color 0.25s ease, transform 0.25s var(--ease-out), box-shadow 0.25s ease;
}

.section-action-link::after {
  content: "\2192";
  margin-left: 0.5rem;
  color: var(--accent);
  transition: transform 0.35s var(--ease-spring);
}

.section-action-link:hover {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px -8px rgb(61 95 52 / 55%);
}

.section-action-link:hover::after {
  color: var(--accent-bright);
  transform: translateX(4px);
}

.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;
}

.home-search {
  position: relative;
  border: 1px solid color-mix(in srgb, var(--line) 58%, transparent);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(420px 160px at 100% 0%, rgb(214 162 74 / 12%), transparent 70%),
    linear-gradient(160deg, var(--surface), color-mix(in srgb, var(--surface) 85%, var(--brand-soft)));
  box-shadow: var(--shadow), var(--shadow-inset);
  transition: box-shadow 0.35s ease, border-color 0.35s ease;
}

.home-search:focus-within {
  border-color: color-mix(in srgb, var(--brand) 40%, var(--line));
  box-shadow: 0 0 0 4px rgb(61 95 52 / 10%), var(--shadow-lift);
}

.home-search-form .site-search-input {
  max-width: none;
}

.home-search-form button {
  min-width: 5.2rem;
  min-height: 2.75rem;
  font: inherit;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--brand-strong);
  border-radius: 12px;
  padding: 0.58rem 0.78rem;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 85%, #fff), var(--brand));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 25%), 0 6px 14px -6px rgb(61 95 52 / 60%);
  cursor: pointer;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s ease, background 0.2s ease;
}

.home-search-form button:hover {
  background: linear-gradient(180deg, var(--brand), var(--brand-strong));
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 25%), 0 10px 20px -8px rgb(61 95 52 / 70%);
}

.home-search-form button:active {
  transform: translateY(1px) scale(0.98);
}

.home-search-status {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.home-search-results {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-search-results:empty {
  display: none;
}

.home-search-results li {
  margin: 0;
  border: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-inset);
  animation: result-in 0.4s var(--ease-out) both;
  transition: border-color 0.2s ease, transform 0.25s var(--ease-out), box-shadow 0.25s ease;
}

.home-search-results li:nth-child(2) { animation-delay: 40ms; }
.home-search-results li:nth-child(3) { animation-delay: 80ms; }
.home-search-results li:nth-child(4) { animation-delay: 120ms; }
.home-search-results li:nth-child(n + 5) { animation-delay: 160ms; }

.home-search-results li:hover {
  border-color: color-mix(in srgb, var(--brand) 35%, var(--line));
  transform: translateX(3px);
  box-shadow: var(--shadow);
}

@keyframes result-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.home-search-results a {
  font-weight: 700;
  text-decoration: none;
}

.home-search-results span {
  margin-left: 0.45rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.home-search-results p {
  margin: 0.28rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.latest-grid {
  margin-top: 0.8rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  align-items: start;
}

.sns-slider {
  --cards-per-view: 3;
  --card-gap: 0.8rem;
  margin-top: 0.8rem;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.55rem;
}

.sns-viewport {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
}

.sns-track {
  display: flex;
  gap: var(--card-gap);
  overflow: visible;
  padding-bottom: 0;
}

.sns-nav-btn {
  width: 2.75rem;
  height: 2.75rem;
  grid-row: 1;
  position: relative;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  border-radius: 999px;
  background: var(--surface);
  color: var(--brand-strong);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow), var(--shadow-inset);
  transition: transform 0.3s var(--ease-spring), background 0.2s ease, color 0.2s ease;
}

.sns-nav-btn[data-prev] {
  grid-column: 1;
}

.sns-nav-btn[data-next] {
  grid-column: 3;
}

.sns-nav-btn[hidden] {
  display: none;
}

.sns-slider[data-slider-scrollable="0"] {
  display: block;
}

.sns-slider[data-slider-count="1"] {
  --cards-per-view: 1;
  max-width: 360px;
}

@media (min-width: 761px) {
  .sns-slider[data-slider-count="2"] {
    --cards-per-view: 2;
  }
}

.sns-nav-btn:hover {
  color: #fff;
  background: var(--brand);
  transform: scale(1.1);
}

.sns-nav-btn:active {
  transform: scale(0.94);
}

.sns-card {
  display: block;
  scroll-snap-align: start;
  width: auto;
  flex: 0 0 calc((100% - (var(--cards-per-view) - 1) * var(--card-gap)) / var(--cards-per-view));
  border: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
  text-decoration: none;
}

.sns-card img {
  display: block;
  width: 100%;
  height: clamp(150px, 28vw, 220px);
  object-fit: cover;
  background: var(--surface-2);
  transition: transform 0.7s var(--ease-out), filter 0.4s ease;
}

.sns-card:hover img {
  transform: scale(1.06);
  filter: saturate(1.12);
}

.sns-platform {
  margin: 0;
  font-size: 0.72rem;
  color: var(--muted);
}

.sns-card h3,
.sns-card h2 {
  margin: 0.2rem 0 0;
  font-size: 1rem;
}

.sns-card p {
  margin: 0.38rem 0 0;
}

.latest-card {
  margin: 0;
  border: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.latest-card h3 a {
  text-decoration: none;
  background: linear-gradient(var(--accent-bright), var(--accent-bright)) left 88% / 0 0.35em no-repeat;
  transition: background-size 0.4s var(--ease-out), color 0.2s ease;
}

.latest-card:hover h3 a {
  color: var(--strong);
  background-size: 100% 0.35em;
}

.latest-card--featured {
  grid-column: span 2;
  display: grid;
  grid-template-columns: minmax(260px, 0.92fr) minmax(0, 1fr);
  align-items: stretch;
  min-height: 260px;
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
  background:
    radial-gradient(500px 240px at 100% 100%, rgb(61 95 52 / 8%), transparent 70%),
    linear-gradient(135deg, rgba(255, 247, 232, 0.9), rgba(255, 255, 255, 0.96) 52%),
    var(--surface);
  box-shadow: 0 2px 4px rgb(52 42 24 / 6%), 0 22px 44px -12px rgb(52 42 24 / 22%);
}

.latest-card--featured .latest-card-body::before {
  content: "FEATURED";
  display: inline-block;
  justify-self: start;
  margin-bottom: 0.55rem;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  color: var(--bark);
  background: linear-gradient(135deg, var(--accent-bright), var(--accent));
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  box-shadow: 0 4px 10px -4px rgb(214 162 74 / 80%);
}

.latest-card--featured:not(.latest-card--media) {
  display: block;
  min-height: 0;
}

.latest-card-media {
  display: block;
  aspect-ratio: 16 / 10;
  color: inherit;
  text-decoration: none;
  background: linear-gradient(135deg, #f4f4f4, #e8e8e8);
  overflow: hidden;
}

.latest-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out), filter 0.4s ease;
}

.latest-card--featured .latest-card-media {
  aspect-ratio: auto;
  min-height: 100%;
}

.latest-card:hover .latest-card-media img {
  transform: scale(1.06);
  filter: saturate(1.1) contrast(1.03);
}

.latest-card--featured .latest-card-body {
  display: grid;
  align-content: center;
}

.latest-date {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  color: color-mix(in srgb, var(--accent) 50%, var(--bark));
}

.latest-card h3 {
  margin: 0;
  font-size: 1rem;
}

.latest-card--featured h3 {
  font-size: clamp(1.22rem, 2vw, 1.72rem);
  line-height: 1.25;
}

.scientific-name {
  margin: 0.18rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  font-style: italic;
  letter-spacing: 0.01em;
}

.latest-card p {
  margin: 0.42rem 0 0;
}

.mini-tags {
  margin-top: 0.55rem;
  display: flex;
  gap: 0.38rem;
  flex-wrap: wrap;
}

.mini-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.18rem 0.45rem;
  font-size: 0.72rem;
  color: var(--muted);
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  border-radius: 999px;
  background: var(--surface-2);
}

.mini-tag--status {
  background: #f3fbec;
  border-color: #cfe8b8;
  color: #3f5a24;
}

.mini-tag--season {
  background: #edf5ff;
  border-color: #c7dcf7;
  color: #29435f;
}

.mini-tag--line {
  background: #fff7e8;
  border-color: #ead3a8;
  color: #6a4a17;
}

.mini-tag-icon {
  display: block;
  width: 0.95rem;
  height: 0.95rem;
  min-width: 0.95rem;
  min-height: 0.95rem;
  flex: 0 0 auto;
}

a.chip:hover {
  transform: translateY(-2px);
  color: var(--brand-strong);
  background: color-mix(in srgb, var(--brand-soft) 60%, var(--accent-soft));
  box-shadow: 0 6px 14px -6px rgb(61 95 52 / 40%);
}

.kicker {
  margin-bottom: 0.3rem;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.content-card {
  background: linear-gradient(170deg, var(--surface), color-mix(in srgb, var(--surface) 90%, var(--accent-soft)));
  border: 1px solid color-mix(in srgb, var(--line) 62%, transparent);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow), var(--shadow-inset);
}

/* Fixed-article typography: scannable headings, readable tables and media. */
.content-card > h1 + p {
  color: var(--muted);
}

.content-card h2 {
  margin-top: 1.75rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
}

.content-card h3 {
  margin-top: 1.25rem;
  font-size: 1.05rem;
}

.content-card :is(h2, h3) + :is(p, ul, ol) {
  margin-top: 0.55rem;
}

.content-card img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}

.content-card table {
  width: 100%;
  margin: 1rem 0;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.content-card th,
.content-card td {
  padding: 0.5rem 0.65rem;
  border: 1px solid color-mix(in srgb, var(--line) 85%, transparent);
  text-align: left;
  vertical-align: top;
}

.content-card th {
  background: var(--surface-2);
  font-weight: 700;
}

.content-card blockquote {
  margin: 1rem 0;
  padding: 0.5rem 1rem;
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--accent-soft);
  color: var(--muted);
}

.content-card code {
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  background: var(--surface-2);
  font-size: 0.9em;
}

/* In-article table of contents for long guides. */
.article-toc {
  margin: 1.25rem 0 0;
  padding: 0.85rem 1rem;
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--surface-2) 70%, transparent);
}

.article-toc p {
  margin: 0 0 0.4rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.article-toc ol {
  margin: 0;
  padding-left: 1.3rem;
  columns: 2;
  column-gap: 1.5rem;
}

.article-toc li {
  margin: 0;
  padding: 0.12rem 0;
  break-inside: avoid;
  font-size: 0.92rem;
}

.article-toc a {
  text-decoration: none;
}

.article-toc a:hover {
  text-decoration: underline;
}

@media (max-width: 540px) {
  .article-toc ol {
    columns: 1;
  }
}

/* Shared empty state: a quiet dashed panel instead of bare text. Inset comes from .site-reading-panel. */
.empty-state {
  border: 1px dashed color-mix(in srgb, var(--line) 70%, var(--brand));
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  color: var(--muted);
  text-align: center;
  overflow-wrap: anywhere;
}

.empty-state::before {
  content: "";
  display: block;
  width: 3.25rem;
  height: 3.25rem;
  margin: 0 auto 0.6rem;
  background: var(--empty-state-icon, url("/assets/icons/empty-pop.svg")) center / contain no-repeat;
}

.empty-state--lost {
  --empty-state-icon: url("/assets/icons/lost-pop.svg");
}

.empty-state--lost::before {
  width: 4.5rem;
  height: 4.5rem;
}

.empty-state a {
  color: var(--brand-strong);
  font-weight: 700;
}

/* Compact report rows for tag, species, lineage and breeding-log lists. Inset comes from .site-result-card. */
.report-link-list {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

:is(h1, h2, h3) + .report-link-list {
  margin-top: 0.75rem;
}

.report-link-list li {
  margin: 0;
}

.report-link-row {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.25rem 0.85rem;
  min-height: 44px;
  border: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-inset);
  transition: border-color 0.2s ease, transform 0.25s var(--ease-out), box-shadow 0.25s ease;
}

.report-link-row--with-aside {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.report-link-row:hover {
  border-color: color-mix(in srgb, var(--brand) 35%, var(--line));
  transform: translateX(3px);
  box-shadow: var(--shadow);
}

.report-link-row:has(.report-link-row__title:focus-visible) {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
}

.report-link-row time {
  color: color-mix(in srgb, var(--accent) 50%, var(--bark));
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.report-link-row__title {
  min-width: 0;
  color: var(--strong);
  font-weight: 700;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.report-link-row__title:focus-visible {
  outline: none;
}

.report-link-row__title::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.report-link-row:hover .report-link-row__title {
  color: var(--brand-strong);
}

.report-link-row__aside {
  position: relative;
  z-index: 2;
  justify-self: end;
  color: var(--muted);
  font-size: 0.8rem;
  text-decoration: none;
  white-space: nowrap;
}

.report-link-row__aside:hover {
  color: var(--brand);
  text-decoration: underline;
}

@media (max-width: 540px) {
  .report-link-row,
  .report-link-row--with-aside {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.15rem;
  }

  .report-link-row__aside {
    justify-self: start;
    white-space: normal;
  }
}

/* Legal pages: revision line and the disclosure table. */
.legal-revised {
  margin: 0.5rem 0 1rem;
  color: var(--muted);
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}

.legal-disclosure {
  margin: 0;
  border-top: 1px solid var(--line);
}

.legal-disclosure > div {
  display: grid;
  grid-template-columns: minmax(8.5rem, 12rem) minmax(0, 1fr);
  gap: 0.35rem 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
}

.legal-disclosure dt {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.legal-disclosure dd {
  margin: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 540px) {
  .legal-disclosure > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.15rem;
  }
}

.post-tag-row {
  margin: 0.7rem 0 0.85rem;
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.post-tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.5rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.78rem;
}

.post-tag-chip--status {
  background: #f3fbec;
  border-color: #cfe8b8;
  color: #3f5a24;
}

.post-tag-chip--season {
  background: #edf5ff;
  border-color: #c7dcf7;
  color: #29435f;
}

.post-tag-chip--line {
  background: #fff7e8;
  border-color: #ead3a8;
  color: #6a4a17;
}

.post-tag-chip img {
  display: block;
  width: 1.1rem;
  height: 1.1rem;
  min-width: 1.1rem;
  min-height: 1.1rem;
  flex: 0 0 auto;
}

.tag-text-row {
  margin: 0.1rem 0 0.6rem;
  color: var(--muted);
  font-size: 0.84rem;
}

.tag-text-row a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
}

.tag-text-row a:hover {
  color: var(--text);
  border-bottom-color: color-mix(in srgb, var(--brand) 50%, transparent);
}

.animated-tag-icon {
  animation: tagFloat 2.8s ease-in-out infinite;
  transform-origin: center;
}

.mini-tag--season .animated-tag-icon,
.post-tag-chip--season .animated-tag-icon {
  animation-duration: 3.4s;
}

@keyframes tagFloat {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-1px) rotate(-3deg);
  }
  100% {
    transform: translateY(0) rotate(0deg);
  }
}

.site-search-input {
  width: 100%;
  max-width: 580px;
  padding: 0.7rem 0.92rem 0.7rem 2.6rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236a6a5c' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m16 16 5 5'/%3E%3C/svg%3E") 0.9rem center / 1.15rem no-repeat;
  box-shadow: inset 0 1px 2px rgb(52 42 24 / 6%);
  outline: none;
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.25s ease, background-color 0.2s ease;
}

.site-search-input::placeholder {
  color: color-mix(in srgb, var(--muted) 75%, transparent);
}

.site-search-input:hover {
  border-color: color-mix(in srgb, var(--brand) 30%, var(--line));
}

.site-search-input:focus {
  border-color: var(--brand);
  background-color: #fff;
  box-shadow: 0 0 0 4px rgb(61 95 52 / 14%), inset 0 1px 2px rgb(52 42 24 / 6%);
}

/* Bottom margin keeps the last footer row scrollable clear of the floating back-to-top button. */
.site-footer {
  position: relative;
  margin: 2.4rem auto 5.5rem;
  padding-top: 1.1rem;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--brand) 45%, var(--line)), color-mix(in srgb, var(--accent) 60%, var(--line)), transparent);
}

.site-footer::after {
  content: "";
  position: absolute;
  top: -4px;
  left: 50%;
  width: 9px;
  height: 9px;
  translate: -50% 0;
  rotate: 45deg;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--accent-bright), var(--accent));
  box-shadow: 0 0 0 4px var(--bg);
}

/* Link groups share the first row; the copyright line always sits beneath them. */
.site-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 1.25rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.site-footer-inner > small {
  order: 1;
  flex-basis: 100%;
}

.site-footer nav {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
  padding-bottom: 1px;
  background: linear-gradient(var(--brand), var(--brand)) left bottom / 0 1px no-repeat;
  transition: color 0.2s ease, background-size 0.3s var(--ease-out);
}

.site-footer a:hover {
  color: var(--brand-strong);
  background-size: 100% 1px;
}

.site-footer nav + nav {
  padding-left: 1rem;
  border-left: 1px solid color-mix(in srgb, var(--line) 80%, var(--brand));
}

/* Shared card surface motion: lift, pointer tilt and a soft light under the cursor. */
.latest-card,
.species-entry-card,
.secondary-entry-card,
.sns-card,
.report-gallery-card,
.home-app-features li {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateY(var(--lift, 0px));
  transition: transform 0.45s var(--ease-out), box-shadow 0.35s ease, border-color 0.35s ease;
}

.latest-card::after,
.species-entry-card::after,
.secondary-entry-card::after,
.sns-card::after,
.report-gallery-card::after,
.home-app-features li::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(360px circle at var(--spot-x, 50%) var(--spot-y, 0%), rgb(255 236 190 / 26%), transparent 45%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.latest-card:hover,
.species-entry-card:hover,
.secondary-entry-card:hover,
.sns-card:hover,
.report-gallery-card:hover,
.home-app-features li:hover {
  --lift: -4px;
  border-color: color-mix(in srgb, var(--brand) 26%, var(--line));
  box-shadow: var(--shadow-lift);
}

.latest-card:hover::after,
.species-entry-card:hover::after,
.secondary-entry-card:hover::after,
.sns-card:hover::after,
.report-gallery-card:hover::after,
.home-app-features li:hover::after {
  opacity: 1;
}

.latest-card:active,
.species-entry-card:active,
.secondary-entry-card:active,
.report-gallery-card:active {
  --lift: -1px;
  transition-duration: 0.12s;
}

/* Scroll progress: a thin vine across the top of the viewport. */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  height: 3px;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--brand), #7fae4f 55%, var(--accent-bright));
  box-shadow: 0 0 10px rgb(242 207 124 / 70%);
  transform: scaleX(var(--progress, 0));
  transform-origin: left center;
  border-radius: 0 3px 3px 0;
}

/* Back to top: a floating acorn-toned button with a reading-progress ring. */
.back-to-top {
  position: fixed;
  right: clamp(0.9rem, 2.5vw, 1.75rem);
  bottom: clamp(0.9rem, 2.5vw, 1.75rem);
  z-index: 50;
  display: grid;
  place-items: center;
  width: 3.1rem;
  height: 3.1rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #fff8e6;
  background: radial-gradient(circle at 35% 30%, #5b7f4c, var(--brand-strong) 70%);
  box-shadow: 0 10px 24px -6px rgb(28 40 22 / 55%), inset 0 1px 0 rgb(255 255 255 / 25%);
  cursor: pointer;
  opacity: 0;
  translate: 0 16px;
  scale: 0.8;
  pointer-events: none;
  transition: opacity 0.35s ease, translate 0.45s var(--ease-spring), scale 0.45s var(--ease-spring), box-shadow 0.25s ease;
}

.back-to-top.is-shown {
  opacity: 1;
  translate: 0 0;
  scale: 1;
  pointer-events: auto;
}

.back-to-top.is-auth-focused,
.back-to-top.is-media-focused {
  visibility: hidden;
  pointer-events: none;
}

.back-to-top:hover {
  scale: 1.08;
  box-shadow: 0 14px 30px -6px rgb(28 40 22 / 65%), 0 0 0 4px rgb(242 207 124 / 35%);
}

.back-to-top svg {
  grid-area: 1 / 1;
}

.back-to-top-ring {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  fill: none;
  stroke-width: 3;
}

.back-to-top-ring circle {
  stroke: rgb(255 255 255 / 16%);
}

.back-to-top-ring .back-to-top-ring-value {
  stroke: var(--accent-bright);
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transition: stroke-dashoffset 0.15s linear;
}

.back-to-top-arrow {
  width: 1.2rem;
  height: 1.2rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.35s var(--ease-spring);
}

.back-to-top:hover .back-to-top-arrow {
  transform: translateY(-3px);
}

/* Tactile ripple spawned by the ambient motion runtime. */
.ui-ripple {
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(255 255 255 / 45%), rgb(255 255 255 / 0%) 70%);
  pointer-events: none;
  transform: scale(0);
  animation: ui-ripple 0.6s var(--ease-out) forwards;
}

@keyframes ui-ripple {
  to { transform: scale(1); opacity: 0; }
}

/* Easter egg: a stag beetle strolls along the bottom of the viewport. */
.easter-beetle {
  position: fixed;
  left: 0;
  bottom: 1.2rem;
  z-index: 70;
  width: 88px;
  pointer-events: none;
  filter: drop-shadow(0 6px 6px rgb(0 0 0 / 25%));
  animation: beetle-stroll 7s linear forwards;
}

.easter-beetle svg {
  display: block;
  width: 100%;
  animation: beetle-bob 0.32s ease-in-out infinite alternate;
}

.easter-beetle .leg {
  transform-box: fill-box;
  transform-origin: center;
  animation: beetle-leg 0.32s ease-in-out infinite alternate;
}

.easter-beetle .leg-b {
  animation-direction: alternate-reverse;
}

@keyframes beetle-stroll {
  from { transform: translateX(-120px); }
  to { transform: translateX(calc(100vw + 40px)); }
}

@keyframes beetle-bob {
  to { transform: translateY(-2px) rotate(1.5deg); }
}

@keyframes beetle-leg {
  from { transform: rotate(-14deg); }
  to { transform: rotate(14deg); }
}

/* Fun staff: three chibi beetles (kabuto, kuwagata, female kuwagata) walk on the footer's top
   divider line. The layer is anchored to the footer and adds no layout height; it takes no pointer
   events and is not printed. Each beetle is an inline SVG puppet of smoothed artwork parts; the
   walker's data-action selects the animation set. SVG lengths are art pixels (0.7 CSS px each). */
.ground-beetles {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  z-index: 1;
  height: 72px;
  pointer-events: none;
}

.ground-beetle {
  position: absolute;
  left: 0;
  bottom: 0;
  transform: translateX(var(--x, 0px));
  will-change: transform;
}

/* Contact shadow on the divider line: stays put while the puppet hops or hovers. */
.ground-beetle::before {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: -3px;
  height: 5px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(48 30 14 / 30%), rgb(48 30 14 / 0%));
}

.gb-flip {
  transform: scaleX(var(--face, 1));
  transition: transform 0.32s ease-in-out;
}

.gb-svg {
  display: block;
  overflow: visible;
}

.gb-svg g {
  transform-box: view-box;
}

.gb-face {
  visibility: hidden;
}

.gb-heart,
.gb-z,
.gb-spark,
.gb-note {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}

.gb-z,
.gb-note {
  font: 800 10px/1 system-ui, sans-serif;
  scale: var(--face, 1) 1;
}

.gb-z--2 {
  font-size: 12px;
}

.gb-z--3 {
  font-size: 14px;
}

.gb-z {
  fill: #6b4a2e;
}

.gb-note {
  fill: #c75b4f;
  font-size: 13px;
}

.gb-spark {
  fill: #ffd166;
  stroke: #fff6d8;
  stroke-width: 0.6;
}

.gb-speed {
  fill: none;
  stroke: #9db4d6;
  stroke-width: 1.4;
  stroke-linecap: round;
  opacity: 0;
}

.gb-buzz {
  fill: none;
  stroke: #7a5a32;
  stroke-width: 1.2;
  stroke-linecap: round;
  opacity: 0;
}

/* Blinking runs in every action that does not set its own face. */
.gb-face--blink {
  animation: gb-blink 3.9s steps(1) infinite;
}

.ground-beetle--kuwagata .gb-face--blink {
  animation-duration: 4.7s;
}

.ground-beetle--kuwagata-female .gb-face--blink {
  animation-duration: 4.3s;
}

/* Walk: alternating steps, waddle, head counter-sway, arm swing, wing and antennae bounce. */
.ground-beetle[data-action="walk"] .gb-leg--l { animation: gb-step-l var(--gb-step, 0.6s) ease-in-out infinite; }
.ground-beetle[data-action="walk"] .gb-leg--r { animation: gb-step-r var(--gb-step, 0.6s) ease-in-out calc(var(--gb-step, 0.6s) * -0.5) infinite; }
.ground-beetle[data-action="walk"] .gb-upper { animation: gb-waddle var(--gb-step, 0.6s) ease-in-out infinite; }
.ground-beetle[data-action="walk"] .gb-head { animation: gb-head-sway var(--gb-step, 0.6s) ease-in-out calc(var(--gb-step, 0.6s) * -0.13) infinite; }
.ground-beetle[data-action="walk"] .gb-arm { animation: gb-arm-swing var(--gb-step, 0.6s) ease-in-out infinite; }
.ground-beetle[data-action="walk"] .gb-wing { animation: gb-wing-walk var(--gb-step, 0.6s) ease-in-out infinite; }
.ground-beetle[data-action="walk"] .gb-ant--l { animation: gb-ant-l var(--gb-step, 0.6s) ease-in-out infinite; }
.ground-beetle[data-action="walk"] .gb-ant--r { animation: gb-ant-r var(--gb-step, 0.6s) ease-in-out calc(var(--gb-step, 0.6s) * -0.17) infinite; }

/* Idle: breathing, a gentle head bob and swaying antennae. */
.ground-beetle[data-action="idle"] .gb-torso { animation: gb-breathe 2.6s ease-in-out infinite; }
.ground-beetle[data-action="idle"] .gb-head { animation: gb-head-idle 2.6s ease-in-out infinite; }
.ground-beetle[data-action="idle"] .gb-arm { animation: gb-arm-idle 2.6s ease-in-out infinite; }
.ground-beetle[data-action="idle"] .gb-ant--l { animation: gb-ant-l 2.2s ease-in-out infinite; }
.ground-beetle[data-action="idle"] .gb-ant--r { animation: gb-ant-r 2.2s ease-in-out -0.4s infinite; }

/* Look around: the head turns one way, then the other. */
.ground-beetle[data-action="look"] .gb-head { animation: gb-look 2.6s ease-in-out both; }
.ground-beetle[data-action="look"] .gb-torso { animation: gb-breathe 2.6s ease-in-out both; }
.ground-beetle[data-action="look"] .gb-ant--l { animation: gb-ant-l 1.3s ease-in-out 2; }
.ground-beetle[data-action="look"] .gb-ant--r { animation: gb-ant-r 1.3s ease-in-out 2; }

/* Wave. */
.ground-beetle[data-action="wave"] .gb-arm { animation: gb-wave 0.8s ease-in-out 3; }
.ground-beetle[data-action="wave"] .gb-head { animation: gb-tilt 2.4s ease-in-out both; }
.ground-beetle--kuwagata-female[data-action="wave"] .gb-arm { animation: gb-wave-raise 2.4s ease-in-out both; }

/* Hop: squash, stretch, dangling legs; happy face. */
.ground-beetle[data-action="hop"] .gb-rig { animation: gb-hop 0.9s ease-in-out 2; }
.ground-beetle[data-action="hop"] .gb-leg--l { animation: gb-dangle-l 0.9s ease-in-out 2; }
.ground-beetle[data-action="hop"] .gb-leg--r { animation: gb-dangle-r 0.9s ease-in-out 2; }
.ground-beetle[data-action="hop"] .gb-arm { animation: gb-arm-hop 0.9s ease-in-out 2; }
.ground-beetle[data-action="hop"] .gb-face--happy { visibility: visible; }
.ground-beetle[data-action="hop"]::before { animation: gb-shadow-hop 0.9s ease-in-out 2; }

/* Flutter: the wing beats and the beetle hovers. */
.ground-beetle[data-action="flutter"] .gb-wing { animation: gb-flutter 0.14s ease-in-out infinite alternate; }
.ground-beetle[data-action="flutter"] .gb-rig { animation: gb-hover 2s ease-in-out both; }
.ground-beetle[data-action="flutter"] .gb-leg--l { animation: gb-dangle-l 1s ease-in-out 2; }
.ground-beetle[data-action="flutter"] .gb-leg--r { animation: gb-dangle-r 1s ease-in-out 2; }
.ground-beetle[data-action="flutter"] .gb-face--happy { visibility: visible; }
.ground-beetle[data-action="flutter"]::before { animation: gb-shadow-hover 2s ease-in-out both; }

/* Dance: sway with bouncing steps, arm pumps and floating notes. */
.ground-beetle[data-action="dance"] .gb-rig { animation: gb-dance 0.8s ease-in-out 4; }
.ground-beetle[data-action="dance"] .gb-head { animation: gb-dance-head 0.8s ease-in-out 4; }
.ground-beetle[data-action="dance"] .gb-arm { animation: gb-dance-arm 0.4s ease-in-out 8 alternate; }
.ground-beetle[data-action="dance"] .gb-leg--l { animation: gb-step-l 0.8s ease-in-out 4; }
.ground-beetle[data-action="dance"] .gb-leg--r { animation: gb-step-r 0.8s ease-in-out -0.4s 4; }
.ground-beetle[data-action="dance"] .gb-face--happy { visibility: visible; }
.ground-beetle[data-action="dance"] .gb-note--1 { animation: gb-note 1.6s ease-out 2; }
.ground-beetle[data-action="dance"] .gb-note--2 { animation: gb-note 1.6s ease-out 0.8s 2; }
.ground-beetle--kuwagata-female[data-action="dance"] .gb-arm { animation: gb-dance-arm-raise 0.4s ease-in-out 8 alternate; }

/* Nap: the head nods off, eyes closed, slow breathing and floating z's. */
.ground-beetle[data-action="nap"] .gb-head { animation: gb-nap-in 0.6s ease-out both, gb-nap-head 3.2s ease-in-out 0.6s infinite; }
.ground-beetle[data-action="nap"] .gb-upper { animation: gb-slump-in 0.6s ease-out both; }
.ground-beetle[data-action="nap"] .gb-torso { animation: gb-breathe 3.2s ease-in-out infinite; }
.ground-beetle[data-action="nap"] .gb-arm { animation: gb-arm-rest-in 0.6s ease-out both; }
.ground-beetle[data-action="nap"] .gb-ant--l { animation: gb-ant-droop-l 0.8s ease-out both; }
.ground-beetle[data-action="nap"] .gb-ant--r { animation: gb-ant-droop-r 0.8s ease-out both; }
.ground-beetle[data-action="nap"] .gb-face--blink { visibility: visible; animation: none; }
.ground-beetle[data-action="nap"] .gb-z--1 { animation: gb-z 3s ease-out 0.4s infinite; }
.ground-beetle[data-action="nap"] .gb-z--2 { animation: gb-z 3s ease-out 1.4s infinite; }
.ground-beetle[data-action="nap"] .gb-z--3 { animation: gb-z 3s ease-out 2.4s infinite; }

/* Twirl: a happy spin in place with sparkles. */
.ground-beetle[data-action="twirl"] .gb-rig { animation: gb-twirl 1s ease-in-out both; }
.ground-beetle[data-action="twirl"] .gb-face--happy { visibility: visible; }
.ground-beetle[data-action="twirl"] .gb-spark { animation: gb-spark 0.7s ease-out both; }
.ground-beetle[data-action="twirl"]::before { animation: gb-shadow-hop 1s ease-in-out both; }

/* Specials: kabuto flexes, kuwagata waves his leaf, the female winks; sparkles for all. */
.ground-beetle[data-action="special"] .gb-spark { animation: gb-spark 0.8s ease-out 3; }
.ground-beetle--kabuto[data-action="special"] .gb-arm { animation: gb-flex 0.45s ease-in-out 5 alternate; }
.ground-beetle--kabuto[data-action="special"] .gb-rig { animation: gb-puff 2.4s ease-in-out both; }
.ground-beetle--kabuto[data-action="special"] .gb-face--happy { visibility: visible; }
.ground-beetle--kuwagata[data-action="special"] .gb-arm { animation: gb-wave 0.5s ease-in-out 4; }
.ground-beetle--kuwagata[data-action="special"] .gb-head { animation: gb-tilt 2.4s ease-in-out both; }
.ground-beetle--kuwagata[data-action="special"] .gb-face--happy { visibility: visible; }
.ground-beetle--kuwagata-female[data-action="special"] .gb-arm { animation: gb-wave-raise 2.4s ease-in-out both; }
.ground-beetle--kuwagata-female[data-action="special"] .gb-head { animation: gb-tilt 2.4s ease-in-out both; }
.ground-beetle--kuwagata-female[data-action="special"] .gb-face--wink { visibility: visible; }

/* Kanabun special: a buzzing hover flight, wings a blur and buzz lines on both sides. */
.ground-beetle--kanabun[data-action="special"] .gb-rig { animation: gb-buzz-flight 2.4s ease-in-out both; }
.ground-beetle--kanabun[data-action="special"] .gb-wing { animation: gb-flutter 0.09s linear infinite alternate; }
.ground-beetle--kanabun[data-action="special"] .gb-leg--l { animation: gb-dangle-l 1.2s ease-in-out 2; }
.ground-beetle--kanabun[data-action="special"] .gb-leg--r { animation: gb-dangle-r 1.2s ease-in-out 2; }
.ground-beetle--kanabun[data-action="special"] .gb-face--happy { visibility: visible; }
.ground-beetle--kanabun[data-action="special"] .gb-buzz { animation: gb-buzz 0.36s ease-in-out infinite; }
.ground-beetle--kanabun[data-action="special"] .gb-buzz--2,
.ground-beetle--kanabun[data-action="special"] .gb-buzz--4 { animation-delay: 0.12s; }
.ground-beetle--kanabun[data-action="special"]::before { animation: gb-shadow-hover 2.4s ease-in-out both; }

/* Kanabun flight: take off, lean into the dash, wings a blur, legs tucked, arm forward, speed lines. */
.ground-beetle--kanabun[data-action="fly"] .gb-rig { animation: gb-takeoff 0.22s ease-out both, gb-fly 0.5s ease-in-out 0.22s infinite; }
.ground-beetle--kanabun[data-action="fly"] .gb-wing { animation: gb-flutter 0.06s linear infinite alternate; }
.ground-beetle--kanabun[data-action="fly"] .gb-leg--l { animation: gb-tuck-l 0.22s ease-out both; }
.ground-beetle--kanabun[data-action="fly"] .gb-leg--r { animation: gb-tuck-r 0.22s ease-out both; }
.ground-beetle--kanabun[data-action="fly"] .gb-arm { animation: gb-arm-fly 0.22s ease-out both; }
.ground-beetle--kanabun[data-action="fly"] .gb-ant--l { animation: gb-ant-droop-l 0.3s ease-out both; }
.ground-beetle--kanabun[data-action="fly"] .gb-ant--r { animation: gb-ant-droop-r 0.3s ease-out both; }
.ground-beetle--kanabun[data-action="fly"] .gb-face--happy { visibility: visible; }
.ground-beetle--kanabun[data-action="fly"] .gb-speed { animation: gb-speed 0.3s linear infinite; }
.ground-beetle--kanabun[data-action="fly"] .gb-speed--2 { animation-delay: -0.1s; }
.ground-beetle--kanabun[data-action="fly"] .gb-speed--3 { animation-delay: -0.2s; }
.ground-beetle--kanabun[data-action="fly"] .gb-buzz--3,
.ground-beetle--kanabun[data-action="fly"] .gb-buzz--4 { animation: gb-buzz 0.24s ease-in-out infinite; }
.ground-beetle--kanabun[data-action="fly"]::before { animation: gb-shadow-fly 0.22s ease-out both; }

/* Greeting: happy hop, wave and a heart. */
.ground-beetle[data-action="greet"] .gb-rig { animation: gb-hop-small 0.9s ease-in-out 2; }
.ground-beetle[data-action="greet"] .gb-arm { animation: gb-wave 0.6s ease-in-out 3; }
.ground-beetle[data-action="greet"] .gb-face--happy { visibility: visible; }
.ground-beetle[data-action="greet"] .gb-heart { animation: gb-heart 1.8s ease-out both; }
.ground-beetle[data-action="greet"]::before { animation: gb-shadow-hop 0.9s ease-in-out 2; }
.ground-beetle--kuwagata-female[data-action="greet"] .gb-arm { animation: gb-wave-raise 1.8s ease-in-out both; }

/* Staggered effects. */
.ground-beetle[data-action] .gb-spark--2 { animation-delay: 0.18s; }
.ground-beetle[data-action] .gb-spark--3 { animation-delay: 0.36s; }
.ground-beetle[data-action] .gb-spark--4 { animation-delay: 0.54s; }

@keyframes gb-blink {
  0% { visibility: hidden; }
  93% { visibility: visible; }
  96.5% { visibility: hidden; }
}

@keyframes gb-step-l {
  0%, 50%, 100% { transform: none; }
  25% { transform: translateY(-3px) rotate(5deg); }
}

@keyframes gb-step-r {
  0%, 50%, 100% { transform: none; }
  25% { transform: translateY(-3px) rotate(-5deg); }
}

@keyframes gb-waddle {
  0%, 50%, 100% { transform: none; }
  25% { transform: translateY(-1.2px) rotate(2deg); }
  75% { transform: translateY(-1.2px) rotate(-2deg); }
}

@keyframes gb-head-sway {
  0%, 50%, 100% { transform: none; }
  25% { transform: rotate(-2.5deg); }
  75% { transform: rotate(2.5deg); }
}

@keyframes gb-arm-swing {
  0%, 50%, 100% { transform: none; }
  25% { transform: rotate(7deg); }
  75% { transform: rotate(-5deg); }
}

@keyframes gb-wing-walk {
  0%, 50%, 100% { transform: none; }
  25% { transform: rotate(-3deg); }
  75% { transform: rotate(1.5deg); }
}

@keyframes gb-ant-l {
  0%, 100% { transform: none; }
  30% { transform: rotate(-9deg); }
  65% { transform: rotate(5deg); }
}

@keyframes gb-ant-r {
  0%, 100% { transform: none; }
  30% { transform: rotate(9deg); }
  65% { transform: rotate(-5deg); }
}

@keyframes gb-breathe {
  0%, 100% { transform: none; }
  50% { transform: scale(1.015, 1.03); }
}

@keyframes gb-head-idle {
  0%, 100% { transform: none; }
  50% { transform: translateY(-0.7px) rotate(1.2deg); }
}

@keyframes gb-arm-idle {
  0%, 100% { transform: none; }
  50% { transform: rotate(3deg); }
}

@keyframes gb-look {
  0%, 100% { transform: none; }
  15%, 42% { transform: translateX(-0.8px) rotate(-11deg); }
  58%, 85% { transform: translateX(0.8px) rotate(11deg); }
}

@keyframes gb-tilt {
  0%, 100% { transform: none; }
  20%, 80% { transform: rotate(7deg); }
}

@keyframes gb-wave {
  0%, 100% { transform: none; }
  25% { transform: rotate(12deg); }
  75% { transform: rotate(-14deg); }
}

@keyframes gb-wave-raise {
  0%, 100% { transform: none; }
  15%, 45%, 75% { transform: rotate(78deg); }
  30%, 60%, 88% { transform: rotate(58deg); }
}

@keyframes gb-hop {
  0%, 100% { transform: none; }
  14% { transform: scale(1.08, 0.9); }
  40% { transform: translateY(-15px) scale(0.95, 1.06); }
  55% { transform: translateY(-17px); }
  80% { transform: scale(1.06, 0.93); }
  90% { transform: scale(0.98, 1.02); }
}

@keyframes gb-hop-small {
  0%, 100% { transform: none; }
  15% { transform: scale(1.06, 0.92); }
  45% { transform: translateY(-9px) scale(0.97, 1.04); }
  80% { transform: scale(1.04, 0.95); }
}

@keyframes gb-dangle-l {
  0%, 100% { transform: none; }
  45% { transform: rotate(12deg); }
}

@keyframes gb-dangle-r {
  0%, 100% { transform: none; }
  45% { transform: rotate(-12deg); }
}

@keyframes gb-arm-hop {
  0%, 100% { transform: none; }
  45% { transform: rotate(10deg); }
}

@keyframes gb-shadow-hop {
  0%, 100% { transform: none; opacity: 1; }
  40%, 55% { transform: scale(0.6); opacity: 0.5; }
}

@keyframes gb-shadow-hover {
  0%, 100% { transform: none; opacity: 1; }
  20%, 80% { transform: scale(0.7); opacity: 0.55; }
}

@keyframes gb-flutter {
  from { transform: rotate(0deg); }
  to { transform: rotate(-16deg); }
}

@keyframes gb-hover {
  0%, 100% { transform: none; }
  20% { transform: translateY(-7px); }
  40% { transform: translateY(-5px); }
  60% { transform: translateY(-8px); }
  80% { transform: translateY(-5px); }
}

@keyframes gb-dance {
  0%, 100% { transform: none; }
  25% { transform: translateY(-1px) rotate(-8deg); }
  50% { transform: translateY(-3px); }
  75% { transform: translateY(-1px) rotate(8deg); }
}

@keyframes gb-dance-head {
  0%, 100% { transform: none; }
  25% { transform: rotate(6deg); }
  75% { transform: rotate(-6deg); }
}

@keyframes gb-dance-arm {
  from { transform: none; }
  to { transform: rotate(14deg); }
}

@keyframes gb-dance-arm-raise {
  from { transform: rotate(24deg); }
  to { transform: rotate(64deg); }
}

@keyframes gb-note {
  0% { opacity: 0; transform: scale(0.6); }
  20% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: translate(4px, -14px) rotate(15deg); }
}

@keyframes gb-nap-in {
  from { transform: none; }
  to { transform: translateY(1.2px) rotate(7deg); }
}

@keyframes gb-nap-head {
  0%, 100% { transform: translateY(1.2px) rotate(7deg); }
  50% { transform: translateY(1.8px) rotate(9deg); }
}

@keyframes gb-slump-in {
  to { transform: translateY(0.8px); }
}

@keyframes gb-arm-rest-in {
  to { transform: rotate(6deg); }
}

@keyframes gb-ant-droop-l {
  to { transform: rotate(-16deg); }
}

@keyframes gb-ant-droop-r {
  to { transform: rotate(16deg); }
}

@keyframes gb-z {
  0% { opacity: 0; transform: scale(0.5); }
  15% { opacity: 1; }
  100% { opacity: 0; transform: translate(6px, -12px) scale(1.2); }
}

@keyframes gb-twirl {
  0%, 100% { transform: none; }
  25% { transform: translateY(-5px) scaleX(0.05); }
  50% { transform: translateY(-7px) scaleX(-1); }
  75% { transform: translateY(-5px) scaleX(-0.05); }
}

@keyframes gb-spark {
  0% { opacity: 0; transform: scale(0.2); }
  40% { opacity: 1; transform: scale(1.15) rotate(45deg); }
  100% { opacity: 0; transform: scale(0.5) rotate(90deg); }
}

@keyframes gb-flex {
  from { transform: none; }
  to { transform: rotate(-12deg) scale(1.06); }
}

@keyframes gb-puff {
  0%, 100% { transform: none; }
  20%, 80% { transform: scale(1.04); }
}

@keyframes gb-buzz-flight {
  0%, 100% { transform: none; }
  15% { transform: translate(-2px, -10px); }
  35% { transform: translate(3px, -13px) rotate(3deg); }
  55% { transform: translate(-3px, -11px) rotate(-3deg); }
  75% { transform: translate(2px, -13px); }
  90% { transform: translateY(-4px); }
}

@keyframes gb-buzz {
  0%, 100% { opacity: 0; }
  40%, 60% { opacity: 0.85; }
}

@keyframes gb-takeoff {
  from { transform: none; }
  to { transform: translateY(-13px) rotate(-12deg); }
}

@keyframes gb-fly {
  0%, 100% { transform: translateY(-13px) rotate(-12deg); }
  50% { transform: translateY(-16px) rotate(-10deg); }
}

@keyframes gb-tuck-l {
  to { transform: translateY(-2px) rotate(22deg); }
}

@keyframes gb-tuck-r {
  to { transform: translateY(-2px) rotate(-8deg); }
}

@keyframes gb-arm-fly {
  to { transform: rotate(55deg); }
}

@keyframes gb-speed {
  0% { opacity: 0; transform: translateX(-4px); }
  30% { opacity: 0.9; }
  100% { opacity: 0; transform: translateX(9px); }
}

@keyframes gb-shadow-fly {
  to { transform: scale(0.5); opacity: 0.35; }
}

@keyframes gb-heart {
  0% { opacity: 0; transform: translateY(4px) scale(0.3); }
  20% { opacity: 1; transform: scale(1.2); }
  35% { transform: scale(1); }
  80% { opacity: 1; transform: translateY(-5px); }
  100% { opacity: 0; transform: translateY(-10px) scale(0.9); }
}

@media print {
  .ground-beetles { display: none; }
}

/* Page transition keyframes used by the layout's content swap. */
@keyframes site-page-out {
  to { opacity: 0; transform: translateY(-8px); }
}

@keyframes site-page-in {
  from { opacity: 0; transform: translateY(12px); }
}

@keyframes site-page-in-back {
  from { opacity: 0; transform: translateY(-12px); }
}

/* Sticky rail deepens once the page scrolls under it. */
.is-scrolled .sticky-nav-wrap {
  box-shadow:
    var(--wood-bevel),
    0 12px 28px rgb(0 0 0 / 30%),
    0 12px 14px -10px rgb(0 0 0 / 50%);
}

.sticky-nav-wrap {
  transition: box-shadow 0.35s ease;
}

@media (min-width: 761px) and (max-width: 980px) {
  .latest-grid,
  .species-entry-grid,
  .secondary-entry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .sticky-nav-wrap {
    --wood-control-height: 44px;
    --wood-rail-height: 48px;
    --nav-leaves-height: 26px;
    --nav-leaves-offset: -22px;
    --nav-vine-front-size: 156px 26px;
    --nav-vine-back-size: 201px 26px;
  }

  :root {
    --site-watermark-tile: 300px 200px;
  }

  .site-main,
  .site-footer {
    width: calc(100% - 2rem);
  }

  .home-intro {
    grid-template-columns: 1fr;
    padding: 0.72rem 0.78rem;
  }

  .home-intro-media {
    display: none;
  }

  .masthead-scene {
    --masthead-min-height: 238px;
    --masthead-padding: 0.26rem 0.55rem 0.52rem;
    --brand-logo-width: min(71vw, 390px);
    --brand-logo-min-width: 0;
    --beetle-left-width: 57vw;
    --beetle-right-width: 50vw;
    --beetle-bottom: 1.2rem;
    --beetle-opacity: 0.82;
    --beetle-left-offset: -24vw;
    --beetle-right-offset: -22vw;
    --stats-width: calc(100% - 0.8rem);
    --stats-columns: repeat(var(--stats-count, 3), minmax(5.8rem, 1fr));
    --stats-padding: 0.3rem 0.28rem;
    --stats-label-size: 0.62rem;
    --stats-value-size: 1.06rem;
  }

  .masthead-stats {
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -ms-overflow-style: none;
    mask-image: linear-gradient(90deg, transparent 0, #000 0.7rem, #000 calc(100% - 0.7rem), transparent 100%);
  }

  .masthead-stats::-webkit-scrollbar {
    display: none;
  }

  .masthead-stats li {
    padding: 0.02rem 0.34rem;
    scroll-snap-align: start;
  }

  .section-icon {
    width: 1.8rem;
    height: 1.8rem;
  }

  .site-nav:not(.wood-nav) {
    width: calc(100% - 1.1rem);
    justify-content: flex-start;
    gap: 0.85rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    white-space: nowrap;
    padding: 0.5rem 0.05rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .site-nav.wood-nav {
    --wood-nav-flex-wrap: nowrap;
    --wood-nav-gap: 0.28rem;
    --wood-nav-white-space: nowrap;
    --wood-nav-overflow-x: auto;
    --wood-nav-padding: 0 0.38rem;
    --wood-item-min-width: 4.9rem;
    --wood-control-height: 44px;
    --wood-item-gap: 0.24rem;
    --wood-item-padding: 0 0.38rem;
    --nav-icon-size: 1.25rem;
    --nav-label-size: 0.875rem;
    --nav-sub-label-display: none;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    border-radius: 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .site-nav:not(.wood-nav) a {
    flex: 0 0 auto;
  }

  .site-nav.wood-nav a {
    flex: 0 0 auto;
    flex-direction: row;
    scroll-snap-align: start;
  }

  .site-nav.wood-nav .nav-label {
    display: block;
    text-align: left;
  }

  .site-footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
  }

  .site-footer nav + nav {
    padding-left: 0;
    border-left: 0;
  }

  .site-footer-inner > small {
    flex-basis: auto;
  }

  .latest-grid {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .species-entry-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .secondary-entry-grid,
  .secondary-entry-grid--tags {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .secondary-entry-card,
  .secondary-entry-card--tag {
    min-height: 0;
  }

  .section-action-row {
    justify-content: stretch;
  }

  .section-action-link {
    width: 100%;
  }

  .latest-card--featured {
    grid-column: auto;
    display: block;
    min-height: 0;
  }

  .latest-card--featured .latest-card-media {
    aspect-ratio: 16 / 10;
    min-height: 0;
  }

  .latest-card--featured .latest-card-body {
    display: block;
  }

  .sns-slider {
    --cards-per-view: 1;
    --card-gap: 0.55rem;
    gap: 0.45rem;
  }

  .sns-viewport {
    grid-column: 1 / -1;
  }

  .sns-nav-btn {
    grid-row: 2;
  }
}

@media (max-width: 520px) {
  .sticky-nav-wrap {
    --wood-rail-height: 48px;
  }

  .masthead-scene {
    --masthead-min-height: 224px;
    --brand-logo-width: min(75vw, 340px);
    --beetle-left-width: 60vw;
    --beetle-right-width: 53vw;
    --beetle-bottom: 1.08rem;
    --beetle-left-offset: -29vw;
    --beetle-right-offset: -27vw;
    --stats-columns: repeat(var(--stats-count, 3), minmax(6.7rem, 1fr));
  }

  .masthead-beetle {
    display: none;
  }

  .site-nav.wood-nav {
    --wood-nav-gap: 0.2rem;
    --wood-nav-overflow-x: auto;
    --wood-nav-padding: 0 0.32rem;
    --wood-nav-white-space: nowrap;
    --wood-item-min-width: 4.55rem;
    --wood-control-height: 44px;
    --wood-item-gap: 0.22rem;
    --wood-item-padding: 0 0.36rem;
    --nav-icon-size: 1.15rem;
    --nav-label-size: 0.875rem;
    --nav-sub-label-display: none;
    border-radius: 0;
  }

  .site-nav.wood-nav a {
    flex: 0 0 auto;
    flex-direction: row;
    border-radius: 8px;
  }

  .nav-label {
    min-width: 0;
    text-align: left;
  }

  .nav-label span {
    white-space: nowrap;
  }
}

@media (max-width: 420px) {
  .sticky-nav-wrap {
    --wood-rail-height: 48px;
  }

  .masthead-scene {
    --masthead-min-height: 214px;
    --stats-columns: repeat(var(--stats-count, 3), minmax(6.25rem, 1fr));
    --stats-label-size: 0.62rem;
    --stats-value-size: 1.08rem;
  }

  .site-nav.wood-nav {
    --wood-nav-gap: 0.16rem;
    --wood-nav-padding: 0 0.24rem;
    --wood-control-height: 44px;
    --wood-item-padding: 0 0.32rem;
    --nav-icon-size: 1.1rem;
    --nav-label-size: 0.875rem;
  }
}

.account-menu {
  position: absolute;
  top: clamp(.55rem, 1.2vw, 1rem);
  right: clamp(.55rem, 1.2vw, 1rem);
  z-index: 30;
}

.account-menu details {
  display: grid;
  justify-items: end;
}

.account-menu summary {
  display: inline-flex;
  box-sizing: border-box;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  padding: .35rem .75rem;
  border: 1px solid rgb(255 255 255 / 72%);
  border-radius: 999px;
  color: #fff;
  background: rgb(45 74 35 / 88%);
  box-shadow: 0 .2rem .65rem rgb(0 0 0 / 28%);
  cursor: pointer;
  list-style: none;
}

.account-menu summary::-webkit-details-marker {
  display: none;
}

.account-menu summary svg {
  width: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.account-menu summary:focus-visible {
  outline: 3px solid #ffd76b;
  outline-offset: 3px;
}

.account-menu-panel {
  display: grid;
  grid-template-columns: repeat(2, 2.5rem);
  gap: .35rem;
  width: max-content;
  margin-top: .35rem;
  padding: .4rem;
  border: 1px solid rgb(82 105 70 / 24%);
  border-radius: 999px;
  background: rgb(255 255 255 / 94%);
  box-shadow: 0 .35rem 1rem rgb(0 0 0 / 22%);
  backdrop-filter: blur(10px);
}

.account-menu-panel a,
.account-menu-panel button {
  display: inline-flex;
  box-sizing: border-box;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid #d9cfbe;
  border-radius: 999px;
  color: #31502a;
  background: #fffdf8;
  cursor: pointer;
}

.account-menu-panel form {
  margin: 0;
}

.account-menu-panel svg {
  width: 1.2rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.account-menu-panel .label-manager-stag-icon {
  width: 1.45rem;
  height: 1.45rem;
}

.account-menu-panel a:hover,
.account-menu-panel button:hover,
.account-menu-panel a:focus-visible,
.account-menu-panel button:focus-visible {
  border-color: #6f8b60;
  background: #eef5e9;
}

.home-app-entry {
  --app-accent: #d7b45b;
  --app-accent-bright: #f3d884;
  --app-ink: #f8f4e9;
  --app-muted: #c8c6bc;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(20rem, .92fr);
  overflow: hidden;
  border: 1px solid rgb(239 216 150 / 28%);
  border-radius: clamp(1rem, 2vw, 1.5rem);
  background:
    radial-gradient(circle at 90% 12%, rgb(81 125 77 / 38%), transparent 33%),
    radial-gradient(circle at 7% 110%, rgb(126 91 41 / 30%), transparent 42%),
    linear-gradient(132deg, #172219 0%, #1a281d 48%, #101712 100%);
  box-shadow: 0 1.25rem 3.5rem rgb(20 28 17 / 24%), inset 0 1px rgb(255 255 255 / 8%);
  isolation: isolate;
}

.home-app-entry::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .28;
  background-image:
    linear-gradient(115deg, transparent 48%, rgb(255 255 255 / 5%) 49%, transparent 50%),
    radial-gradient(circle at center, rgb(255 255 255 / 12%) 0 1px, transparent 1.5px);
  background-size: 54px 54px, 22px 22px;
  mask-image: linear-gradient(90deg, #000, transparent 75%);
}

.home-app-entry-content {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: center;
  gap: clamp(.9rem, 1.6vw, 1.25rem);
  padding: clamp(1.35rem, 2.6vw, 2.25rem) clamp(1.5rem, 3.4vw, 3rem);
}

.home-app-entry-brandline { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem; }
.home-app-entry-mark {
  display: inline-grid;
  width: 2.45rem;
  height: 2.45rem;
  place-items: center;
  border: 1px solid rgb(243 216 132 / 42%);
  border-radius: .75rem;
  color: var(--app-accent-bright);
  background: linear-gradient(145deg, rgb(243 216 132 / 16%), rgb(255 255 255 / 3%));
  box-shadow: inset 0 1px rgb(255 255 255 / 12%);
}
.home-app-entry-mark img { display: block; width: 100%; height: 100%; border-radius: .68rem; object-fit: cover; }
.home-app-entry-product { color: var(--app-accent-bright); font-size: .76rem; font-weight: 900; letter-spacing: .16em; }
.home-app-entry-state { padding: .3rem .6rem; border: 1px solid rgb(180 222 170 / 24%); border-radius: 999px; color: #d4e9ce; background: rgb(105 154 92 / 16%); font-size: .7rem; font-weight: 800; }

.home-app-entry-copy { display: grid; gap: .65rem; }
.home-app-entry-copy h1, .home-app-entry-copy p { margin: 0; }
.home-app-entry-copy h1 { max-width: 15em; color: var(--app-ink); font-size: clamp(1.85rem, 2.55vw, 2.6rem); line-height: 1.2; letter-spacing: -.02em; text-wrap: balance; word-break: auto-phrase; }
.home-app-entry-copy p { max-width: 36rem; color: var(--app-muted); font-size: clamp(.9rem, 1.1vw, 1rem); line-height: 1.8; }

.home-app-entry-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem 1.25rem; }
.home-app-entry-action {
  display: inline-flex;
  min-height: 3.35rem;
  align-items: center;
  justify-content: center;
  padding: .78rem 1.35rem;
  border: 1px solid rgb(255 241 188 / 55%);
  border-radius: .75rem;
  color: #211b0c;
  background: linear-gradient(135deg, var(--app-accent-bright), var(--app-accent));
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 .65rem 1.5rem rgb(0 0 0 / 22%), inset 0 1px rgb(255 255 255 / 45%);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform .25s var(--ease-out), box-shadow .25s ease, filter .25s ease, background-color .25s ease;
}
.home-app-entry-action::before {
  content: "";
  position: absolute;
  inset: -50% auto -50% 0;
  z-index: -1;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgb(255 255 255 / 65%), transparent);
  transform: translateX(-150%) skewX(-18deg);
  animation: cta-sheen 4.8s ease-in-out 1.2s infinite;
}
@keyframes cta-sheen {
  0% { transform: translateX(-150%) skewX(-18deg); }
  28%, 100% { transform: translateX(330%) skewX(-18deg); }
}
.home-app-entry-action:hover { filter: brightness(1.06); transform: translateY(-2px); box-shadow: 0 .85rem 1.8rem rgb(0 0 0 / 28%), 0 0 0 4px rgb(243 216 132 / 18%), inset 0 1px rgb(255 255 255 / 45%); }
.home-app-entry-action:active { transform: translateY(0) scale(.98); }
.home-app-entry-action:focus-visible { outline: 3px solid #ffd76b; outline-offset: 3px; }
.home-app-entry-action + .home-app-entry-action { color: var(--app-ink); background: rgb(255 255 255 / 6%); border-color: rgb(243 216 132 / 40%); box-shadow: inset 0 1px rgb(255 255 255 / 10%); backdrop-filter: blur(4px); }
.home-app-entry-action + .home-app-entry-action::before { content: none; }
.home-app-entry-action + .home-app-entry-action:hover { background: rgb(243 216 132 / 14%); }
.home-app-entry::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(520px circle at var(--spot-x, 30%) var(--spot-y, 40%), rgb(243 216 132 / 10%), transparent 55%);
  opacity: 0;
  transition: opacity .4s ease;
}
.home-app-entry:hover::after { opacity: 1; }

.home-app-entry-preview { position: relative; min-height: 100%; overflow: hidden; }
.home-app-entry-hero-image { position: absolute; inset: 0; z-index: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: 58% center; will-change: transform; animation: hero-drift 24s ease-in-out infinite alternate; }
@keyframes hero-drift { from { transform: scale(1.02); } to { transform: scale(1.1) translate(-1.5%, -1%); } }
.home-app-entry-image-shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, #18231a 0%, rgb(24 35 26 / 72%) 8%, transparent 38%), linear-gradient(0deg, rgb(9 14 10 / 48%), transparent 42%); }

.home-app-features { scroll-margin-top: 5rem; }
.home-app-features-head { display: grid; gap: .35rem; margin-bottom: 1rem; }
.home-app-features-head p, .home-app-features-head h2 { margin: 0; }
.home-app-features-head p { color: #6b5931; font-size: .74rem; font-weight: 900; letter-spacing: .15em; }
.home-app-features ol { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .85rem; margin: 0; padding: 0; list-style: none; }
.home-app-features li { position: relative; overflow: hidden; border: 1px solid #ccd5c7; border-radius: .85rem; background: #faf9f3; box-shadow: 0 .5rem 1.2rem rgb(39 55 35 / 8%); }
.home-app-features li img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.home-app-feature-body > span { display: inline-grid; width: 2rem; height: 2rem; place-items: center; border-radius: 50%; color: #251d0c; background: #e1bd62; font-size: .72rem; font-weight: 900; }
.home-app-feature-body h3 { color: #263a28; font-size: 1rem; }
.home-app-feature-body p { color: #59635a; font-size: .82rem; line-height: 1.7; }

@media (max-width: 900px) {
  .home-app-entry { grid-template-columns: 1fr; }
  .home-app-entry-content { padding-bottom: 1rem; }
  .home-app-entry-preview { min-height: clamp(10.5rem, 27vw, 15rem); }
  .home-app-entry-hero-image { object-position: 56% 46%; }
  .home-app-entry-image-shade { background: linear-gradient(180deg, #18231a 0%, transparent 23%, rgb(9 14 10 / 22%) 72%, rgb(9 14 10 / 55%)); }
  .home-app-features ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .home-app-entry-content { padding: 1.25rem; }
  .home-app-entry-copy h1 { font-size: 1.55rem; }
  .home-app-entry-copy p { font-size: .9rem; line-height: 1.75; }
  .home-app-entry-actions { gap: .65rem; }
  .home-app-entry-action { flex: 1; min-height: 3rem; padding-inline: .75rem; white-space: nowrap; }
  .home-app-entry-hero-image { object-position: 58% center; }
  .home-app-features ol { grid-template-columns: 1fr; }
  .account-menu {
    top: .45rem;
    right: .45rem;
  }

  .account-menu summary {
    width: 2.25rem;
    height: 2.25rem;
    padding: .3rem;
  }
}

[data-motion-paused] *,
[data-motion-paused] *::before,
[data-motion-paused] *::after {
  animation-play-state: paused !important;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .masthead-fireflies,
  .masthead-light,
  .home-app-entry-action::before {
    display: none;
  }

  .latest-card,
  .species-entry-card,
  .secondary-entry-card,
  .sns-card,
  .report-gallery-card,
  .home-app-features li {
    transform: none;
  }

  .animated-tag-icon {
    animation: none;
  }

  .sticky-nav-wrap::after {
    animation: none;
  }

  .sticky-nav-wrap::before {
    animation: none;
  }

  .site-nav.wood-nav a {
    transition: none;
  }
}
