/* ============ 1. Design Tokens ============ */
:root {
  --color-bg: #F5F0E6;
  --color-primary: #1B3A5C;
  --color-primary-deep: #142B46;
  --color-text: #2E2A26;
  --color-accent: #F2703B;
  --color-accent-deep: #D95E2D;
  --color-gold: #C9A227;
  --color-gold-deep: #8A6F1E;
  --color-brick: #A63D2F;
  --color-secondary-bg: #D9C7A7;
  --color-light-blue: #6B8FA3;
  --color-white: #FFFFFF;

  --font-heading: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
  --font-mono: "Roboto Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;

  --text-xl: 36px;
  --text-lg: 28px;
  --text-md: 22px;
  --text-sm: 18px;
  --text-body: 16px;
  --text-small: 14px;
  --text-note: 12px;

  --space-sm: 12px;
  --space-md: 24px;
  --space-lg: 48px;
  --space-xl: 80px;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 2px 8px rgba(46, 42, 38, 0.06);
  --shadow-lg: 0 12px 32px rgba(46, 42, 38, 0.14);

  --nav-top-h: 46px;
  --nav-main-h: 64px;
}

/* ============ 2. Reset & Base ============ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

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

ul,
ol,
menu {
  list-style: none;
}

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

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

::selection {
  background: var(--color-primary);
  color: var(--color-bg);
}

:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 3px;
}

/* ============ 3. Layout Utilities ============ */
.container {
  width: calc(100% - 48px);
  max-width: 1200px;
  margin-right: auto;
  margin-left: auto;
}

.section {
  padding: var(--space-lg) 0;
  position: relative;
}

.section--tight {
  padding: var(--space-md) 0;
}

.section--loose {
  padding: var(--space-xl) 0;
}

.section-head {
  margin-bottom: var(--space-md);
}

.section-head--split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.section-title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 900;
  color: var(--color-primary);
  line-height: 1.3;
}

.section-title::after {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  border-radius: 2px;
  margin-top: 8px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-gold));
}

.section-desc {
  margin-top: var(--space-sm);
  max-width: 70ch;
  color: rgba(46, 42, 38, 0.85);
  font-size: 15px;
}

.title-block {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

.title-block h1,
.title-block h2 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  font-weight: 900;
  line-height: 1.25;
  margin: 0;
}

.note-vertical {
  writing-mode: vertical-rl;
  font-size: var(--text-note);
  letter-spacing: 0.2em;
  color: var(--color-light-blue);
  text-orientation: mixed;
}

.note-vertical--brick {
  color: var(--color-brick);
}

.divider {
  height: 4px;
  border-radius: 4px;
  border: 0;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent) 60%, var(--color-gold));
  margin: var(--space-lg) 0;
  opacity: 0.85;
}

/* ============ 4. Header & Navigation ============ */
.nav-skip {
  position: fixed;
  top: var(--space-sm);
  left: var(--space-sm);
  z-index: 9999;
  padding: 10px 18px;
  background: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: var(--text-small);
  font-weight: 700;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  transform: translateY(-200%);
  transition: transform 0.2s ease;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-bg);
  border-bottom: 1px solid rgba(27, 58, 92, 0.08);
  transition: box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 8px 28px rgba(46, 42, 38, 0.16);
}

.nav-top {
  background: var(--color-primary);
  color: rgba(245, 240, 230, 0.9);
}

.nav-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--nav-top-h);
  transition: min-height 0.3s ease;
}

.site-header.is-scrolled .nav-top-inner {
  min-height: 36px;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 36px;
  color: var(--color-white);
}

.nav-brand-name {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.05em;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
}

.nav-brand-name::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  border-radius: 2px;
  margin-right: 8px;
  flex: 0 0 auto;
}

.nav-brand-tag {
  font-size: var(--text-note);
  letter-spacing: 0.12em;
  color: rgba(245, 240, 230, 0.65);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 26ch;
}

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

.nav-top-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  border-radius: 999px;
  color: rgba(245, 240, 230, 0.85);
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-top-link:hover {
  background: rgba(245, 240, 230, 0.1);
  color: var(--color-white);
}

.nav-main {
  position: relative;
  background: var(--color-bg);
  border-top: 1px solid rgba(201, 162, 39, 0.45);
}

.nav-main-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--nav-main-h);
  transition: min-height 0.3s ease;
}

.site-header.is-scrolled .nav-main-inner {
  min-height: 52px;
}

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

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-block;
  padding: 10px 16px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--color-primary);
  border-radius: var(--radius-sm);
  position: relative;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-link:hover {
  background: rgba(27, 58, 92, 0.06);
  color: var(--color-primary-deep);
}

.nav-link[aria-current="page"] {
  color: var(--color-primary);
  font-weight: 900;
  background: rgba(27, 58, 92, 0.04);
}

.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--color-accent);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid rgba(27, 58, 92, 0.18);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-size: var(--text-small);
  font-weight: 700;
  min-height: 44px;
  min-width: 44px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.nav-toggle:hover {
  background: rgba(27, 58, 92, 0.06);
  border-color: rgba(27, 58, 92, 0.3);
}

.nav-toggle-icon {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: 20px;
  flex: 0 0 auto;
}

.nav-toggle-line {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-main[data-open] .nav-toggle-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-main[data-open] .nav-toggle-line:nth-child(2) {
  opacity: 0;
}

.nav-main[data-open] .nav-toggle-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-toggle-text {
  letter-spacing: 0.05em;
}

.nav-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(27, 58, 92, 0.1);
  z-index: 2;
}

.nav-progress-bar {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--color-accent), var(--color-gold));
  border-radius: 0 2px 2px 0;
}

/* ============ 5. Footer ============ */
.site-footer {
  position: relative;
  background-color: var(--color-secondary-bg);
  background-image: radial-gradient(rgba(27, 58, 92, 0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  margin-top: var(--space-xl);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg,
    var(--color-primary) 0 20%,
    var(--color-accent) 20% 40%,
    var(--color-gold) 40% 60%,
    var(--color-brick) 60% 80%,
    var(--color-light-blue) 80% 100%);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.3fr 2fr;
  gap: var(--space-lg);
  padding: var(--space-lg) 0 var(--space-md);
}

.footer-brand {
  max-width: 52ch;
}

.footer-name {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 900;
  color: var(--color-primary);
  letter-spacing: 0.05em;
  line-height: 1.3;
}

.footer-name::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  background: var(--color-accent);
  border-radius: 2px;
  margin-right: 8px;
  vertical-align: 4px;
}

.footer-slogan {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: rgba(46, 42, 38, 0.6);
}

.footer-desc {
  margin-top: var(--space-sm);
  font-size: 14px;
  line-height: 1.8;
  color: rgba(46, 42, 38, 0.85);
}

.footer-trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.footer-trust-item {
  padding: 6px 14px;
  background: rgba(27, 58, 92, 0.08);
  border: 1px solid rgba(27, 58, 92, 0.12);
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 800;
  color: var(--color-primary);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 900;
  color: var(--color-primary);
  letter-spacing: 0.08em;
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-heading::before {
  content: "";
  width: 16px;
  height: 3px;
  border-radius: 2px;
  background: var(--color-accent);
  flex: 0 0 auto;
}

.footer-list {
  display: flex;
  flex-direction: column;
}

.footer-list .footer-link {
  display: inline-block;
  padding: 4px 0;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(46, 42, 38, 0.85);
  transition: color 0.2s ease, transform 0.2s ease;
}

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

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 0;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(46, 42, 38, 0.85);
  word-break: break-all;
}

.footer-contact-item::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--color-brick);
  border-radius: 1px;
  margin-top: 10px;
  flex: 0 0 auto;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px var(--space-md);
  padding: var(--space-md) 0;
  border-top: 2px solid rgba(27, 58, 92, 0.2);
}

.footer-copy {
  font-size: 13px;
  font-family: var(--font-heading);
  color: rgba(46, 42, 38, 0.75);
}

.footer-legal {
  display: flex;
  gap: var(--space-md);
}

.footer-legal .footer-link {
  display: inline-block;
  padding: 6px 0;
  font-size: 13px;
  color: rgba(46, 42, 38, 0.65);
  transition: color 0.2s ease;
}

.footer-legal .footer-link:hover {
  color: var(--color-brick);
}

.footer-icp {
  font-size: 13px;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  color: rgba(46, 42, 38, 0.75);
}

/* ============ 6. Components ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 26px;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease,
    box-shadow 0.2s ease, transform 0.2s ease;
}

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

.btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn-primary:hover {
  background: var(--color-primary-deep);
}

.btn-accent {
  background: var(--color-accent);
  color: var(--color-white);
}

.btn-accent:hover {
  background: var(--color-accent-deep);
}

.card {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(27, 58, 92, 0.08);
  border-radius: var(--radius);
  padding: var(--space-md);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: rgba(27, 58, 92, 0.18);
}

.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-md);
}

.bento-cell {
  position: relative;
  min-width: 0;
}

.bento-cell-3 {
  grid-column: span 3;
}

.bento-cell-4 {
  grid-column: span 4;
}

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

.bento-cell-8 {
  grid-column: span 8;
}

.bento-cell-12 {
  grid-column: span 12;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: 999px;
  background: rgba(27, 58, 92, 0.08);
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.tag--brick {
  background: rgba(166, 61, 47, 0.1);
  color: var(--color-brick);
}

.tag--gold {
  background: rgba(201, 162, 39, 0.12);
  color: var(--color-brick);
  border: 1px solid rgba(201, 162, 39, 0.25);
}

.stat {
  font-family: var(--font-mono);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.stat--accent {
  color: var(--color-accent);
}

.stat-label {
  font-family: var(--font-heading);
  font-size: var(--text-small);
  font-weight: 700;
  color: var(--color-text);
  margin-top: 4px;
}

.index-list {
  border-top: 2px solid var(--color-primary);
}

.index-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: calc(var(--space-md) - 4px) 0;
  border-bottom: 1px solid rgba(27, 58, 92, 0.1);
}

.index-link {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-primary);
  transition: color 0.2s ease;
}

.index-link:hover {
  color: var(--color-brick);
}

.index-meta {
  font-size: 13px;
  color: var(--color-light-blue);
  white-space: nowrap;
  font-family: var(--font-mono);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.data-table th,
.data-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(27, 58, 92, 0.08);
}

.data-table thead th {
  background: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: var(--text-small);
  font-weight: 700;
  letter-spacing: 0.05em;
}

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

.data-table tbody tr:hover {
  background: rgba(27, 58, 92, 0.04);
}

.quote-block {
  margin: var(--space-lg) 0;
  padding: var(--space-md) var(--space-lg);
  background: rgba(166, 61, 47, 0.06);
  border-left: 4px solid var(--color-brick);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 17px;
  line-height: 1.8;
  color: var(--color-text);
}

.quote-block cite {
  display: block;
  margin-top: var(--space-sm);
  font-family: var(--font-heading);
  font-size: var(--text-small);
  font-style: normal;
  font-weight: 700;
  color: var(--color-brick);
}

.notice-block {
  padding: var(--space-md);
  background: rgba(27, 58, 92, 0.06);
  border: 1px solid rgba(27, 58, 92, 0.14);
  border-left: 4px solid var(--color-primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--color-primary);
  font-size: 15px;
  line-height: 1.7;
}

.breadcrumb {
  font-size: var(--text-small);
  margin-bottom: var(--space-md);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.breadcrumb li {
  display: flex;
  align-items: center;
}

.breadcrumb li:not(:last-child)::after {
  content: "／";
  margin-left: 8px;
  font-size: 12px;
  color: var(--color-gold);
}

.breadcrumb a {
  color: var(--color-primary);
  font-weight: 600;
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: var(--color-brick);
}

.breadcrumb [aria-current="page"] {
  color: var(--color-text);
  font-weight: 400;
}

.content-body {
  font-size: var(--text-body);
  line-height: 1.8;
  color: var(--color-text);
}

.content-body p {
  margin-bottom: var(--space-md);
}

.content-body h2 {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  color: var(--color-primary);
  font-weight: 900;
  line-height: 1.3;
  margin: var(--space-lg) 0 var(--space-md);
}

.content-body h2::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 22px;
  border-radius: 2px;
  background: var(--color-accent);
  margin-right: 10px;
  vertical-align: -4px;
}

.content-body h3 {
  font-family: var(--font-heading);
  font-size: var(--text-md);
  color: var(--color-primary);
  font-weight: 900;
  margin: var(--space-md) 0 var(--space-sm);
}

.content-body ul {
  margin: var(--space-sm) 0 var(--space-md);
}

.content-body ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
}

.content-body ul li::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 2px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--color-accent);
}

.img-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(135deg, rgba(27, 58, 92, 0.05), rgba(166, 61, 47, 0.05)),
    var(--color-secondary-bg);
}

.img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s ease;
}

.img-frame:hover img {
  transform: scale(1.02);
}

.img-frame--tall {
  aspect-ratio: 4 / 5;
}

.img-frame--wide {
  aspect-ratio: 21 / 9;
}

/* ============ 7. Motion & Reveal ============ */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

[data-reveal-delay="1"] {
  transition-delay: 0.1s;
}

[data-reveal-delay="2"] {
  transition-delay: 0.2s;
}

[data-reveal-delay="3"] {
  transition-delay: 0.3s;
}

[data-reveal-delay="4"] {
  transition-delay: 0.4s;
}

[data-reveal-delay="5"] {
  transition-delay: 0.5s;
}

@keyframes nav-drop {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nav-main[data-open] .nav-list {
  animation: nav-drop 0.25s ease;
}

/* ============ 8. Responsive ============ */
@media (max-width: 960px) {
  .bento-cell-3,
  .bento-cell-4 {
    grid-column: span 6;
  }

  .bento-cell-8 {
    grid-column: span 12;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
}

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

  .nav-main-inner {
    flex-wrap: wrap;
  }

  .nav-list {
    display: none;
    order: 3;
    width: 100%;
    flex-direction: column;
    gap: 0;
    margin: 8px 0 12px;
    padding: 8px;
    background: var(--color-primary);
    border-radius: var(--radius);
    max-height: calc(100vh - 180px);
    overflow-y: auto;
  }

  .nav-main[data-open] .nav-list {
    display: flex;
  }

  .nav-link {
    display: block;
    padding: 12px 20px;
    font-size: 17px;
    color: rgba(245, 240, 230, 0.92);
  }

  .nav-link:hover {
    background: rgba(245, 240, 230, 0.08);
    color: var(--color-white);
  }

  .nav-link[aria-current="page"] {
    background: rgba(242, 112, 59, 0.18);
    color: var(--color-white);
  }

  .nav-link[aria-current="page"]::after {
    left: 20px;
    right: auto;
    width: 24px;
    border-radius: 3px;
  }

  .nav-top-link {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 700px) {
  .footer-links {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  :root {
    --text-xl: 28px;
    --text-lg: 24px;
    --text-md: 20px;
    --space-lg: 36px;
  }

  .bento-cell-3,
  .bento-cell-4,
  .bento-cell-6,
  .bento-cell-8 {
    grid-column: span 12;
  }

  .section-head--split {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .nav-brand-tag {
    display: none;
  }

  .nav-top-inner {
    min-height: 44px;
  }

  .nav-top-link {
    font-size: 12px;
    padding: 4px 10px;
  }

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

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-legal {
    justify-content: center;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .img-frame:hover img {
    transform: none;
  }

  .nav-main[data-open] .nav-list {
    animation: none;
  }

  .btn:hover,
  .card:hover {
    transform: none;
  }
}
