/* ==========================================================
   乐鱼体育 / assets/site.css
   技术蓝图 + 开赛哨声：深绿 / 金黄 / 暗红
   ========================================================== */

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd,
ul,
ol,
pre {
  margin: 0;
}

ul[class],
ol[class] {
  padding: 0;
  list-style: none;
}

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

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

main {
  display: block;
}

#main-content:focus {
  outline: none;
}

/* ---------- Design Tokens ---------- */
:root {
  --green: #0B5D34;
  --green-light: #1B7A46;
  --green-deep: #062D18;
  --gold: #F2B705;
  --gold-dark: #C99400;
  --red: #8C1C13;
  --gray: #8A8D8F;
  --clay: #B75D41;
  --mint: #E8F0E9;
  --ink: #1A1A1A;
  --white: #FFFFFF;
  --font-head: "Impact", "Arial Black", "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  --font-mono: "Courier New", "SF Mono", "Roboto Mono", monospace;
  --shadow-green: 4px 4px 0 rgba(11, 93, 52, 0.14);
  --shadow-green-lg: 8px 8px 0 rgba(11, 93, 52, 0.16);
}

/* ---------- Base ---------- */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background-color: var(--mint);
  background-image: linear-gradient(rgba(138, 141, 143, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(138, 141, 143, 0.1) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.16;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  letter-spacing: 0.02em;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

h3 {
  font-size: 1.3rem;
}

a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(11, 93, 52, 0.35);
}

a:hover {
  color: var(--gold-dark);
}

:focus-visible {
  outline: 3px solid var(--gold-dark);
  outline-offset: 2px;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.container {
  width: min(1200px, 92%);
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Skip Link ---------- */
.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 400;
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.65rem 1.2rem;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  transition: top 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

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

/* ---------- Scroll Progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--red));
  transform: scaleX(0);
  transform-origin: left center;
  z-index: 500;
  pointer-events: none;
}

/* ---------- Header ---------- */
.site-header {
  position: relative;
  z-index: 100;
  background: var(--green);
  box-shadow: 0 6px 24px rgba(11, 93, 52, 0.18);
}

.header-meta {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.75);
  border-bottom: 1px solid rgba(242, 183, 5, 0.35);
}

.header-meta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 2.25rem;
  padding-block: 0.3rem;
  font-size: 0.78rem;
  gap: 1rem;
}

.header-slogan {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  letter-spacing: 0.04em;
}

.header-slogan-dot {
  width: 8px;
  height: 8px;
  background: var(--gold);
  transform: rotate(45deg);
  display: inline-block;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.header-coord {
  margin: 0;
  color: var(--gold);
  letter-spacing: 0.12em;
  font-size: 0.72rem;
}

.header-main {
  position: relative;
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(115deg, var(--green-deep) 0%, var(--green) 55%, var(--green-light) 130%);
  background-size: 34px 34px, 34px 34px, auto;
}

.header-main-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 0.1rem;
  line-height: 1;
  text-decoration: none;
  position: relative;
}

.brand-mark {
  font-family: var(--font-head);
  font-size: 2.35rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.04em;
  line-height: 1;
}

.brand-mark::after {
  content: "/";
  color: var(--gold);
  font-family: var(--font-mono);
  margin-left: 0.12em;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.62);
  text-transform: uppercase;
  margin-top: 0.3rem;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: var(--gold);
  position: relative;
  z-index: 3;
}

.nav-toggle-bar {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--ink);
  transform: skewX(-12deg);
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle:hover {
  background: var(--gold-dark);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: skewX(-12deg) translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
  transform: skewX(-12deg) scaleX(0.4);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: skewX(-12deg) translateY(-8px) rotate(-45deg);
}

.header-nav {
  background: var(--ink);
  position: relative;
}

.header-nav::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold) 0 68%, var(--red) 68% 100%);
  z-index: 2;
}

.header-nav-inner {
  display: flex;
  align-items: stretch;
  flex-wrap: nowrap;
}

.header-nav-index {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  padding-left: 1.5rem;
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  white-space: nowrap;
}

.nav-tab {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0.8rem 1.45rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  background: var(--green);
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  margin-right: 4px;
  transition: background 0.2s, color 0.2s;
}

.nav-tab:hover {
  background: var(--green-light);
  color: var(--white);
}

.nav-tab[aria-current="page"] {
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
}

.header-nav:focus-within {
  outline: 3px solid var(--gold);
  outline-offset: -4px;
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  margin-top: 4rem;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.82);
  background: linear-gradient(115deg, #071B10 0%, var(--green) 55%, var(--green-light) 130%);
  border-top: 4px solid var(--gold);
}

.site-footer::after {
  content: "LEYU / SPORTS / DATA";
  position: absolute;
  right: 1.5rem;
  bottom: 0;
  font-family: var(--font-mono);
  font-size: clamp(4.5rem, 12vw, 9rem);
  font-weight: 700;
  line-height: 0.8;
  color: rgba(255, 255, 255, 0.04);
  letter-spacing: 0.08em;
  pointer-events: none;
  user-select: none;
}

.footer-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.7fr 1.4fr 1.3fr;
  gap: 2.5rem;
  padding-block: 3rem;
}

.footer-brand-name {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1;
  color: var(--white);
  letter-spacing: 0.03em;
}

.footer-brand-sub {
  font-family: var(--font-mono);
  color: var(--gold);
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  text-transform: uppercase;
  margin: 0.65rem 0 1.2rem;
}

.footer-phrase {
  max-width: 36ch;
  color: rgba(255, 255, 255, 0.68);
  border-left: 3px solid var(--clay);
  padding-left: 1rem;
  font-size: 0.94rem;
  margin-top: 1.2rem;
}

.footer-index {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 1.4rem 1.5rem;
  align-content: start;
}

.footer-col {
  min-width: 0;
}

.footer-title {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 0.4rem 1rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.18rem 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-links a::before {
  content: "›";
  font-family: var(--font-mono);
  color: var(--gold);
  font-size: 1em;
  line-height: 1;
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-contact {
  min-width: 0;
}

.footer-contact-line {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 0.5rem;
  align-items: baseline;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 0.45rem;
  font-family: var(--font-body);
  word-break: break-all;
}

.footer-contact-key {
  font-size: 0.72rem;
  color: var(--gold);
  letter-spacing: 0.06em;
}

.footer-contact-note {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.58);
  border-left: 2px solid var(--red);
  padding-left: 0.6rem;
  margin-top: 0.6rem;
}

.footer-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.4rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-block: 1.1rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer-icp,
.footer-copy {
  margin: 0;
}

/* ---------- To Top ---------- */
.to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 220;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-width: 56px;
  height: 44px;
  padding: 0 0.7rem;
  background: var(--green);
  color: var(--gold);
  border: 2px solid var(--gold);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) skewX(-8deg);
  transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.to-top[data-visible] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) skewX(-8deg);
}

.to-top:hover {
  background: var(--gold);
  color: var(--ink);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.72rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  background: var(--gold);
  color: var(--ink);
  text-decoration: none;
  transform: skewX(-8deg);
  transition: background 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 4px 4px 0 rgba(11, 93, 52, 0.18);
  border: 2px solid transparent;
}

.btn:hover {
  background: var(--gold-dark);
  color: var(--white);
  transform: skewX(-8deg) translateY(-2px);
  box-shadow: 6px 8px 0 rgba(11, 93, 52, 0.2);
}

.btn-ghost {
  background: transparent;
  color: var(--green);
  border-color: var(--green);
  box-shadow: none;
}

.btn-ghost:hover {
  background: var(--green);
  color: var(--mint);
  box-shadow: none;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--gray);
}

.breadcrumb a {
  color: var(--green);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb .current {
  color: var(--ink);
  font-weight: 700;
}

.breadcrumb-sep {
  color: var(--gray);
}

/* ---------- Page Head ---------- */
.page-head {
  padding: 2.25rem 0 1.5rem;
  border-bottom: 2px solid var(--green);
  margin-bottom: 2rem;
}

.page-index {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: var(--gold-dark);
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.page-title {
  margin-bottom: 0.6rem;
}

.page-intro {
  max-width: 64ch;
  color: rgba(26, 26, 26, 0.72);
  font-size: 1.02rem;
}

/* ---------- Section / Theme Band ---------- */
.section {
  padding: 2.75rem 0;
}

.section + .section {
  border-top: 1px dashed rgba(138, 141, 143, 0.45);
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.4rem;
}

.section-index {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--red);
  letter-spacing: 0.1em;
}

.section-title {
  margin: 0;
  flex: 1 1 auto;
}

.section-title::before {
  content: "// ";
  font-family: var(--font-mono);
  color: var(--red);
}

.section-meta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--gray);
}

.diag-band {
  height: 14px;
  background: linear-gradient(105deg,
    var(--green) 0 28%,
    var(--gold) 28% 32%,
    var(--red) 32% 33%,
    var(--green) 33% 66%,
    var(--clay) 66% 68%,
    var(--green) 68%);
  opacity: 0.85;
}

.diag-band--thin {
  height: 8px;
}

.theme-band {
  position: relative;
  margin: 2.5rem 0;
  padding: 1.5rem 1.75rem;
  background: var(--green);
  color: var(--mint);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), 0 100%);
  box-shadow: var(--shadow-green);
}

.theme-band h2 {
  color: var(--gold);
}

/* ---------- Grid ---------- */
.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}

.g-span-4 {
  grid-column: span 4;
}

.g-span-5 {
  grid-column: span 5;
}

.g-span-6 {
  grid-column: span 6;
}

.g-span-7 {
  grid-column: span 7;
}

.g-span-8 {
  grid-column: span 8;
}

.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* ---------- Cards ---------- */
.card {
  position: relative;
  background: var(--white);
  border: 1px solid rgba(138, 141, 143, 0.35);
  padding: 1.35rem 1.4rem;
  box-shadow: var(--shadow-green);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-green-lg);
}

.card--flag::after {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  width: 0;
  height: 0;
  border-width: 0 22px 22px 0;
  border-style: solid;
  border-color: transparent var(--gold) transparent transparent;
}

.card-title {
  font-family: var(--font-head);
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.card-meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--gray);
  margin-bottom: 0.75rem;
  letter-spacing: 0.08em;
}

.card-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  padding: 0.12rem 0.5rem;
  margin-right: 0.3rem;
  background: var(--clay);
  color: var(--white);
  letter-spacing: 0.05em;
}

.card-tag--green {
  background: var(--green);
}

.card-tag--gold {
  background: var(--gold);
  color: var(--ink);
}

.card-tag--red {
  background: var(--red);
}

.card-body {
  font-size: 0.92rem;
  color: rgba(26, 26, 26, 0.75);
}

.glass {
  background: rgba(255, 255, 255, 0.68);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.92);
}

/* ---------- TOC / Directory ---------- */
.toc {
  background: var(--white);
  border: 1px solid rgba(138, 141, 143, 0.3);
  box-shadow: var(--shadow-green);
}

.toc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.25rem;
  background: var(--ink);
  color: var(--mint);
}

.toc-title {
  font-family: var(--font-head);
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0;
}

.toc-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--gold);
  letter-spacing: 0.14em;
}

.toc-list {
  list-style: none;
  margin: 0;
  padding: 0.4rem 1.25rem 0.8rem;
}

.toc-item {
  display: flex;
  gap: 0.8rem;
  padding: 0.58rem 0;
  border-bottom: 1px dashed rgba(138, 141, 143, 0.38);
  align-items: baseline;
}

.toc-item:last-child {
  border-bottom: 0;
}

.toc-num {
  font-family: var(--font-mono);
  color: var(--red);
  font-size: 0.82rem;
  min-width: 2.2em;
}

.toc-item a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}

.toc-item a:hover {
  color: var(--gold-dark);
}

/* ---------- Note / Prose ---------- */
.note {
  position: relative;
  background: rgba(183, 93, 65, 0.1);
  border-left: 4px solid var(--clay);
  padding: 0.95rem 1.2rem;
  margin: 1.5rem 0;
  font-size: 0.92rem;
  color: rgba(26, 26, 26, 0.8);
}

.note::before {
  content: "NOTE // ";
  font-family: var(--font-mono);
  color: var(--clay);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.prose {
  font-size: 1rem;
  line-height: 1.9;
}

.prose p {
  margin-bottom: 1.1rem;
}

.prose strong {
  color: var(--green);
}

.prose ul,
.prose ol {
  margin-bottom: 1.2rem;
  padding-left: 1.4rem;
}

.prose li {
  margin-bottom: 0.35rem;
}

/* ---------- Panel ---------- */
.panel-col {
  background: var(--white);
  border: 1px solid rgba(138, 141, 143, 0.3);
  margin-bottom: 1rem;
}

.panel-col > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 1.2rem;
  font-weight: 700;
  background: var(--mint);
}

.panel-col > summary::-webkit-details-marker {
  display: none;
}

.panel-col > summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--gold-dark);
}

.panel-col[open] > summary::after {
  content: "-";
}

.panel-col-body {
  padding: 1rem 1.2rem;
  border-top: 1px solid rgba(138, 141, 143, 0.2);
}

/* ---------- Data Strip / Table ---------- */
.data-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1px;
  background: rgba(138, 141, 143, 0.35);
  border: 1px solid rgba(138, 141, 143, 0.35);
}

.data-cell {
  background: var(--white);
  padding: 0.85rem 1rem;
}

.data-cell b {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.25rem;
  line-height: 1.3;
  color: var(--green);
}

.data-cell span {
  font-size: 0.76rem;
  color: var(--gray);
  letter-spacing: 0.06em;
  font-family: var(--font-mono);
  text-transform: uppercase;
}

.data-cell--gold b {
  color: var(--gold-dark);
}

.data-cell--red b {
  color: var(--red);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  background: var(--white);
  border: 1px solid rgba(138, 141, 143, 0.3);
}

.data-table caption {
  caption-side: top;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--gray);
  padding: 0.5rem 0;
}

.data-table th,
.data-table td {
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid rgba(138, 141, 143, 0.3);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  background: var(--green);
  color: var(--mint);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.data-table tbody tr:hover {
  background: rgba(242, 183, 5, 0.1);
}

/* ---------- Filter ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.5rem;
  align-items: center;
}

.filter-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--gray);
  margin-right: 0.25rem;
  letter-spacing: 0.1em;
}

.filter-btn {
  border: 1px solid rgba(11, 93, 52, 0.4);
  background: var(--white);
  color: var(--green);
  padding: 0.45rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}

.filter-btn:hover {
  background: var(--green);
  color: var(--mint);
}

.filter-btn[data-active] {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
  font-weight: 700;
}

[data-filter-item] {
  transition: opacity 0.2s, transform 0.2s;
}

[data-filter-item][data-hidden] {
  display: none;
}

/* ---------- Image Frame ---------- */
.img-frame {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(138, 141, 143, 0.4);
}

.img-frame::before {
  content: "";
  display: block;
}

.img-frame--16-9::before {
  padding-top: 56.25%;
}

.img-frame--4-3::before {
  padding-top: 75%;
}

.img-frame--3-2::before {
  padding-top: 66.66%;
}

.img-frame--1-1::before {
  padding-top: 100%;
}

.img-frame--21-9::before {
  padding-top: 42.85%;
}

.img-frame::after {
  content: "IMG // " attr(data-label);
  position: absolute;
  inset: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  color: var(--gray);
  text-transform: uppercase;
  background-color: rgba(232, 240, 233, 0.9);
  background-image: linear-gradient(rgba(138, 141, 143, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(138, 141, 143, 0.14) 1px, transparent 1px);
  background-size: 16px 16px;
  border: 1px dashed var(--gray);
}

.img-frame > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-frame--filled::after {
  display: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav-tab {
    padding: 0.72rem 1rem;
  }

  .header-nav-index {
    display: none;
  }
}

@media (max-width: 960px) {
  .nav-toggle {
    display: flex;
  }

  .header-nav {
    display: none;
  }

  .header-nav[data-open] {
    display: block;
    border-top: 3px solid var(--gold);
  }

  .header-nav::before {
    display: none;
  }

  .header-nav-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    padding-block: 0.6rem;
  }

  .nav-tab {
    justify-content: flex-start;
    clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
    margin-right: 0;
    padding: 0.75rem 1.1rem;
  }

  .header-nav-index {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-index {
    grid-template-columns: 1fr;
  }

  .site-footer::after {
    font-size: 4rem;
  }
}

@media (max-width: 640px) {
  .header-meta-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
  }

  .header-coord {
    font-size: 0.66rem;
  }

  .brand-mark {
    font-size: 1.9rem;
  }

  .section {
    padding: 2rem 0;
  }

  .footer-grid {
    padding-block: 2rem;
  }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
