*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

:root {
  --deep-moss: #1F3D2B;
  --gold: #C9A34E;
  --rock-gray: #4B4A45;
  --linen: #F2EFE9;
  --clay: #B85C38;
  --olive: #2A3B2F;
  --glass: rgba(255, 255, 255, 0.12);
  --gold-fade: rgba(201, 163, 78, 0.25);
  --graph-line: #E6DFD3;
  --ink: #181D1A;
  --font-display: 'Barlow Condensed', 'Anton', Impact, 'Arial Narrow', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-body: 'Inter', 'Source Sans 3', 'Helvetica Neue', Arial, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-data: 'DIN Alternate', 'Roboto Mono', 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  --header-h: 72px;
  --content-w: 1280px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 14px;
}

body {
  min-height: 100vh;
  background: var(--linen);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

ul, ol {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: inherit;
  letter-spacing: 0.01em;
}

::selection {
  background: var(--gold);
  color: var(--ink);
}

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

#main-content {
  display: block;
  min-height: 65vh;
  scroll-margin-top: 90px;
}

[hidden] {
  display: none !important;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--linen);
}

::-webkit-scrollbar-thumb {
  background: var(--deep-moss);
  border-radius: 6px;
  border: 2px solid var(--linen);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}

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

.skip-link {
  position: fixed;
  top: -64px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2000;
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
  font-size: 15px;
  padding: 10px 24px;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 6px 20px rgba(24, 29, 26, 0.3);
  transition: top 0.2s ease;
}

.skip-link:focus-visible {
  top: 0;
  outline: none;
  box-shadow: 0 6px 20px rgba(24, 29, 26, 0.3), 0 0 0 3px var(--ink);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--deep-moss);
  color: var(--linen);
  border-top: 3px solid var(--gold);
  box-shadow: 0 4px 0 rgba(201, 163, 78, 0.18);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(-65deg, transparent 0 26px, rgba(255, 255, 255, 0.024) 26px 27px);
}

.site-header::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  pointer-events: none;
  background: repeating-linear-gradient(-65deg, var(--gold) 0 14px, var(--clay) 14px 18px, transparent 18px 30px);
  z-index: 3;
}

.site-header[data-scrolled] {
  background: rgba(31, 61, 43, 0.88);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 4px 0 rgba(201, 163, 78, 0.22), 0 12px 32px rgba(24, 29, 26, 0.28);
}

.header-shell {
  max-width: 1440px;
  margin: 0 auto;
  min-height: var(--header-h);
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
  z-index: 2;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--gold) 0%, #A68133 100%);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.02em;
  clip-path: polygon(0 0, 100% 0, 100% 78%, 78% 100%, 0 100%);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.brand-lockup:hover .brand-mark,
.brand-lockup:focus-visible .brand-mark {
  box-shadow: 0 0 0 4px rgba(201, 163, 78, 0.25);
  transform: translateY(-1px);
}

.brand-divider {
  width: 2px;
  height: 32px;
  background: var(--gold);
  transform: skewX(-15deg);
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--linen);
  color: var(--linen);
  white-space: nowrap;
}

.brand-tagline {
  font-family: var(--font-data);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--gold);
  white-space: nowrap;
}

.primary-nav {
  margin-left: auto;
  position: relative;
  z-index: 2;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: block;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: rgba(242, 239, 233, 0.86);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.nav-link:hover {
  color: var(--linen);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
}

.nav-link[aria-current="page"] {
  color: var(--gold);
  background: rgba(201, 163, 78, 0.12);
  border-color: rgba(201, 163, 78, 0.4);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid rgba(242, 239, 233, 0.3);
  background: rgba(255, 255, 255, 0.07);
  color: rgba(242, 239, 233, 0.92);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.tool-btn:hover {
  border-color: var(--gold);
  background: rgba(201, 163, 78, 0.18);
  transform: translateY(-1px);
}

.tool-search .tool-icon {
  color: var(--gold);
}

.tool-history {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
  font-weight: 700;
}

.tool-history:hover {
  background: #D9B763;
  border-color: #D9B763;
  color: var(--ink);
  box-shadow: 0 6px 18px rgba(201, 163, 78, 0.35);
}

.tool-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.tool-text {
  display: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border-radius: 10px;
  border: 1px solid rgba(242, 239, 233, 0.32);
  background: rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 3;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.nav-toggle:hover {
  border-color: var(--gold);
  background: rgba(201, 163, 78, 0.18);
}

.toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--linen);
  transition: transform 0.3s var(--ease), opacity 0.2s ease;
}

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

.nav-toggle[aria-expanded="true"] .toggle-bar:nth-child(2) {
  opacity: 0;
}

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

.scroll-progress {
  position: absolute;
  left: 0;
  bottom: 3px;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, var(--gold) 0%, var(--clay) 100%);
  transform: scaleX(0);
  transform-origin: left center;
  z-index: 4;
  pointer-events: none;
}

.site-footer {
  position: relative;
  margin-top: 96px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--deep-moss) 0%, var(--olive) 55%, var(--ink) 130%);
  color: rgba(242, 239, 233, 0.82);
  border-top: 3px solid var(--gold);
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 0;
  right: 0;
  height: 5px;
  background: repeating-linear-gradient(-65deg, var(--gold) 0 14px, var(--clay) 14px 18px, transparent 18px 30px);
  z-index: 2;
  pointer-events: none;
}

.site-footer::after {
  content: 'SF SPORTS';
  position: absolute;
  right: -30px;
  bottom: -70px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(140px, 20vw, 280px);
  line-height: 1;
  color: rgba(242, 239, 233, 0.035);
  white-space: nowrap;
  pointer-events: none;
  letter-spacing: 0.03em;
  z-index: 0;
}

.footer-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 60px 32px 28px;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 44px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.footer-brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--gold) 0%, #A68133 100%);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  clip-path: polygon(0 0, 100% 0, 100% 78%, 78% 100%, 0 100%);
  flex-shrink: 0;
}

.footer-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.footer-brand-name {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--linen);
  white-space: nowrap;
}

.footer-brand-tagline {
  font-family: var(--font-data);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--gold);
  white-space: nowrap;
}

.footer-about {
  font-size: 15px;
  line-height: 1.75;
  color: rgba(242, 239, 233, 0.7);
  margin-bottom: 14px;
  max-width: 46em;
}

.footer-stat {
  font-family: var(--font-data);
  font-weight: 700;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.footer-trust {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(242, 239, 233, 0.48);
  border-left: 2px solid var(--gold);
  padding-left: 12px;
  max-width: 54em;
}

.footer-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--gold);
  margin-bottom: 18px;
  padding-left: 14px;
  position: relative;
}

.footer-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 3px;
  background: var(--gold);
  transform: skewX(-18deg);
}

.footer-nav-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 20px;
}

.footer-link {
  display: inline-block;
  padding: 5px 0;
  color: rgba(242, 239, 233, 0.76);
  font-size: 15px;
  position: relative;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-link:hover {
  color: var(--gold);
  transform: translateX(4px);
}

.footer-line {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 8px;
  color: rgba(242, 239, 233, 0.76);
}

.footer-note {
  color: rgba(242, 239, 233, 0.5);
  font-size: 13px;
}

.footer-link-inline {
  color: var(--gold);
  border-bottom: 1px dashed rgba(201, 163, 78, 0.4);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.footer-link-inline:hover {
  border-bottom-style: solid;
  border-color: var(--gold);
}

.footer-extra-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(242, 239, 233, 0.1);
}

.footer-link-sep {
  color: rgba(242, 239, 233, 0.3);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  border-top: 1px solid rgba(242, 239, 233, 0.12);
  padding-top: 22px;
  font-size: 13px;
  color: rgba(242, 239, 233, 0.5);
}

.footer-icp {
  font-family: var(--font-data);
  letter-spacing: 0.04em;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

.section {
  padding: 72px 0;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.1;
  color: var(--ink);
  padding-left: 20px;
  position: relative;
  margin-bottom: 12px;
}

.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 6px;
  background: var(--gold);
  transform: skewX(-18deg);
}

.section-head .section-title {
  margin-bottom: 0;
}

.section[data-tone="dark"] .section-title {
  color: var(--linen);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 30px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-solid {
  background: var(--gold);
  color: var(--ink);
}

.btn-solid:hover {
  background: #D9B763;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(201, 163, 78, 0.35);
}

.btn-solid:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--ink), 0 0 0 6px var(--gold);
}

.btn-outline {
  border: 2px solid var(--gold);
  color: var(--gold);
  background: transparent;
}

.btn-outline:hover {
  background: var(--gold);
  color: var(--ink);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 18px 0;
  font-size: 14px;
  color: var(--rock-gray);
}

.crumb-link {
  color: var(--deep-moss);
  font-weight: 600;
  transition: color 0.2s ease;
}

.crumb-link:hover {
  color: var(--clay);
}

.crumb-sep {
  color: var(--graph-line);
}

.crumb-current {
  color: var(--rock-gray);
  font-weight: 600;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.bento-cell {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 120px;
}

.bento-cell[data-span="3"] {
  grid-column: span 3;
}

.bento-cell[data-span="4"] {
  grid-column: span 4;
}

.bento-cell[data-span="5"] {
  grid-column: span 5;
}

.bento-cell[data-span="6"] {
  grid-column: span 6;
}

.bento-cell[data-span="7"] {
  grid-column: span 7;
}

.bento-cell[data-span="8"] {
  grid-column: span 8;
}

.bento-cell[data-span="12"] {
  grid-column: 1 / -1;
}

.panel-card {
  position: relative;
  border-radius: var(--radius);
  padding: 28px;
  overflow: hidden;
}

.panel-card[data-panel="glass"] {
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.22);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: var(--linen);
}

.panel-card[data-panel="frost"] {
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  color: var(--ink);
}

.panel-card[data-panel="moss"] {
  background: var(--deep-moss);
  color: var(--linen);
  box-shadow: 0 10px 30px rgba(31, 61, 43, 0.25);
}

.panel-card[data-panel="rock"] {
  background: var(--rock-gray);
  color: var(--linen);
}

.panel-card[data-panel="light"] {
  background: var(--linen);
  color: var(--ink);
  border: 1px solid var(--graph-line);
}

.panel-card[data-panel="line"] {
  background: transparent;
  border: 2px dashed var(--graph-line);
  color: var(--ink);
}

.data-number {
  font-family: var(--font-data);
  font-weight: 700;
  font-size: clamp(40px, 6vw, 56px);
  line-height: 1;
  color: var(--deep-moss);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.panel-card[data-panel="moss"] .data-number,
.panel-card[data-panel="rock"] .data-number,
.panel-card[data-panel="glass"] .data-number {
  color: var(--gold);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
  background: var(--gold-fade);
  color: var(--deep-moss);
  border: 1px solid rgba(201, 163, 78, 0.45);
}

.tag[data-tone="clay"] {
  background: var(--clay);
  color: var(--linen);
  border-color: var(--clay);
}

.tag[data-tone="glass"] {
  background: var(--glass);
  color: var(--linen);
  border-color: rgba(255, 255, 255, 0.22);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.tag[data-tone="rock"] {
  background: var(--rock-gray);
  color: var(--linen);
  border-color: var(--rock-gray);
}

.tag[data-tone="gold"] {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--graph-line);
  background: var(--linen);
  color: var(--rock-gray);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.filter-btn:hover {
  border-color: var(--deep-moss);
  color: var(--deep-moss);
  transform: translateY(-1px);
}

.filter-btn[data-active="true"],
.filter-btn[aria-pressed="true"] {
  background: var(--deep-moss);
  border-color: var(--deep-moss);
  color: var(--gold);
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  padding: 12px 18px;
  border: 1px solid var(--graph-line);
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  background: rgba(242, 239, 233, 0.65);
  font-size: 13px;
  color: var(--rock-gray);
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  transform: skewX(-15deg);
  background: var(--rock-gray);
}

.legend-dot[data-tone="moss"] {
  background: var(--deep-moss);
}

.legend-dot[data-tone="gold"] {
  background: var(--gold);
}

.legend-dot[data-tone="clay"] {
  background: var(--clay);
}

.legend-dot[data-tone="rock"] {
  background: var(--rock-gray);
}

.index-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.index-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 6px;
  border: 1px solid var(--graph-line);
  background: var(--linen);
  color: var(--rock-gray);
  font-size: 14px;
  font-weight: 500;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.index-link:hover {
  border-color: var(--gold);
  background: var(--gold-fade);
  color: var(--deep-moss);
}

.index-no {
  font-family: var(--font-data);
  font-weight: 700;
  color: var(--gold);
  font-size: 13px;
}

.data-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--graph-line);
  border-radius: 12px;
  background: var(--linen);
  box-shadow: 0 4px 20px rgba(24, 29, 26, 0.06);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.data-table th {
  background: var(--deep-moss);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-align: left;
  padding: 14px 18px;
  white-space: nowrap;
}

.data-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--graph-line);
  color: var(--ink);
}

.data-table tbody tr:nth-child(even) {
  background: rgba(230, 223, 211, 0.35);
}

.data-table tbody tr:hover {
  background: var(--gold-fade);
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.img-container {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, var(--olive), var(--deep-moss));
}

.img-container::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(-65deg, transparent 0 22px, rgba(255, 255, 255, 0.05) 22px 24px),
    linear-gradient(160deg, rgba(201, 163, 78, 0.28) 0%, transparent 40%);
}

.img-container::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 42%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.14), transparent);
  transform: skewX(-18deg) translateX(-30%);
  transition: transform 0.4s var(--ease);
  pointer-events: none;
}

.img-container:hover::after {
  transform: skewX(-18deg) translateX(120%);
}

.img-container[data-ratio="wide"] {
  aspect-ratio: 21 / 9;
}

.img-container[data-ratio="square"] {
  aspect-ratio: 1 / 1;
}

.img-container[data-ratio="portrait"] {
  aspect-ratio: 4 / 5;
}

.img-container img,
.img-container video,
.img-container > picture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.img-container img,
.img-container video,
.img-container > picture img {
  object-fit: cover;
}

.speed-lines {
  height: 12px;
  background: repeating-linear-gradient(-70deg, var(--gold) 0 10px, var(--clay) 10px 14px, transparent 14px 28px);
  opacity: 0.55;
}

@media (min-width: 1280px) {
  .tool-text {
    display: inline;
  }
}

@media (max-width: 1279px) {
  .tool-btn {
    width: 40px;
    height: 40px;
    padding: 0;
    justify-content: center;
  }
}

@media (max-width: 1023px) {
  .header-shell {
    min-height: 64px;
    padding: 0 16px;
    gap: 10px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    font-size: 17px;
  }

  .brand-name {
    font-size: 19px;
  }

  .brand-tagline {
    display: none;
  }

  .brand-divider {
    height: 22px;
  }

  .primary-nav {
    position: absolute;
    top: 100%;
    left: 16px;
    right: 16px;
    margin-left: 0;
    z-index: 1000;
    border: 1px solid rgba(201, 163, 78, 0.32);
    border-radius: 0 0 16px 16px;
    background: rgba(31, 61, 43, 0.96);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    box-shadow: 0 24px 48px rgba(24, 29, 26, 0.45);
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  }

  .primary-nav[data-open] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-list {
    flex-direction: column;
    gap: 2px;
  }

  .nav-link {
    border-radius: 10px;
    padding: 13px 16px;
    font-size: 16px;
  }

  .nav-link[aria-current="page"] {
    background: rgba(201, 163, 78, 0.16);
  }

  .nav-toggle {
    display: inline-flex;
  }

  .tool-btn {
    width: 40px;
    height: 40px;
    padding: 0;
    justify-content: center;
  }

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

  .footer-brand-block {
    grid-column: 1 / -1;
  }

  .bento-cell[data-span] {
    grid-column: span 6;
  }
}

@media (max-width: 767px) {
  .section {
    padding: 48px 0;
  }

  .container {
    padding: 0 20px;
  }

  .footer-shell {
    padding: 48px 20px 24px;
  }

  .site-footer {
    margin-top: 64px;
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 359px) {
  .brand-name {
    font-size: 17px;
  }

  .brand-divider {
    display: none;
  }

  .brand-lockup {
    gap: 8px;
  }
}

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