/* ==========================================================================
   百胜游境 Site CSS
   File: /assets/site.css
   ========================================================================== */

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

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

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #0a1628;
  background-image:
    radial-gradient(circle 360px at 88% 8%, rgba(255, 107, 0, 0.05), transparent 70%),
    radial-gradient(circle 280px at 8% 92%, rgba(20, 42, 76, 0.7), transparent 70%);
  color: #f5f8fc;
  font-family: "Noto Sans SC", "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Saira", "Arial Black", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 800;
  line-height: 1.08;
  color: #f5f8fc;
  text-wrap: balance;
}

p {
  color: #b8c4d6;
  line-height: 1.75;
}

a {
  color: #3d7eff;
  text-decoration: none;
  transition: color 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

a:hover {
  color: #ff6b00;
}

ul, ol {
  list-style: none;
}

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

button, input, select, textarea {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

/* 2. Design Tokens
   ========================================================================== */
:root {
  --color-bg: #0a1628;
  --color-bg-panel: #142a4c;
  --color-bg-deep: #0d1c33;
  --color-accent: #ff6b00;
  --color-gold: #ffd700;
  --color-text: #f5f8fc;
  --color-text-dim: #b8c4d6;
  --color-link: #3d7eff;
  --font-heading: "Saira", "Arial Black", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  --container-width: 1280px;
  --container-pad: clamp(20px, 4vw, 40px);
  --gap: 24px;
  --radius: 6px;
  --speed: 0.3s;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* 3. Utilities
   ========================================================================== */
.container,
.masthead,
.site-nav,
.site-footer__inner {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

#main-content {
  flex: 1 1 auto;
  width: 100%;
}

.site-header,
.site-footer {
  flex-shrink: 0;
}

.section {
  padding-block: 64px;
}

.section--tight {
  padding-block: 40px;
}

.divider {
  height: 1px;
  border: none;
  background: linear-gradient(90deg, transparent, rgba(184, 196, 214, 0.25), transparent);
  margin-block: 40px;
}

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

:focus-visible {
  outline: 2px solid #ff6b00;
  outline-offset: 3px;
  border-radius: 2px;
}

::selection {
  background: rgba(255, 107, 0, 0.35);
  color: #f5f8fc;
}

/* 4. Skip Link
   ========================================================================== */
.skip-link {
  position: fixed;
  top: -72px;
  left: 16px;
  z-index: 9999;
  display: inline-block;
  padding: 12px 24px;
  background: #ff6b00;
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: top 0.3s var(--ease);
}

.skip-link:hover {
  color: #ffffff;
  background: #ff7a1a;
}

.skip-link:focus {
  top: 0;
}

/* 5. Header
   ========================================================================== */
.site-header {
  position: relative;
  z-index: 100;
  background: linear-gradient(180deg, rgba(10, 22, 40, 0.98) 0%, rgba(10, 22, 40, 0.96) 100%);
  border-bottom: 1px solid rgba(255, 107, 0, 0.2);
}

.site-header__inner {
  position: relative;
}

.site-header__inner::before {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, #ff6b00 0%, #ffd700 60%, transparent 100%);
  opacity: 0.9;
}

/* Masthead row */
.masthead {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  min-height: 120px;
  padding-block: 16px;
}

.masthead::before {
  content: "";
  position: absolute;
  left: 60px;
  bottom: 18px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 215, 0, 0.65);
  box-shadow:
    -40px -22px 0 rgba(255, 215, 0, 0.35),
    -90px 12px 0 rgba(255, 107, 0, 0.4),
    130px -32px 0 rgba(255, 255, 255, 0.25),
    210px 22px 0 rgba(255, 107, 0, 0.3),
    320px -8px 0 rgba(255, 215, 0, 0.3);
  pointer-events: none;
}

.masthead__side {
  display: flex;
  align-items: center;
}

.masthead__side--left {
  justify-content: flex-start;
}

.masthead__side--right {
  position: relative;
  justify-content: flex-end;
}

.masthead__center {
  display: flex;
  justify-content: center;
}

/* Brand */
.masthead__brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: var(--color-text);
}

.masthead__brand:hover {
  color: var(--color-text);
}

.brand-mark {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 10px rgba(255, 107, 0, 0.35));
  transition: filter 0.3s var(--ease);
}

.masthead__brand:hover .brand-mark {
  filter: drop-shadow(0 0 16px rgba(255, 107, 0, 0.6));
}

.brand-mark__orbit {
  transform-origin: 24px 24px;
  animation: orbit-spin 12s linear infinite;
}

.brand-mark__dot {
  animation: dot-pulse 2.4s ease-in-out infinite alternate;
}

.brand-mark__dot:nth-of-type(2) {
  animation-delay: 0.3s;
}

.brand-mark__dot:nth-of-type(3) {
  animation-delay: 0.6s;
}

.brand-mark__dot:nth-of-type(4) {
  animation-delay: 0.9s;
}

@keyframes orbit-spin {
  to { transform: rotate(360deg); }
}

@keyframes dot-pulse {
  from { opacity: 0.4; }
  to { opacity: 1; }
}

.brand-word {
  display: flex;
  flex-direction: column;
}

.brand-word__zh {
  font-family: var(--font-heading);
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1;
  color: var(--color-text);
  transition: color 0.3s var(--ease);
}

.masthead__brand:hover .brand-word__zh {
  color: #ff6b00;
}

.brand-word__zh::after {
  content: "◇";
  font-size: 9px;
  color: #ff6b00;
  margin-left: 6px;
  vertical-align: super;
}

.brand-word__en {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.32em;
  color: #ffd700;
  margin-top: 4px;
}

/* Gift CTA */
.btn-gift {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 22px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #ffffff;
  background: linear-gradient(135deg, #ff6b00 0%, #e85400 100%);
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  filter: drop-shadow(0 5px 12px rgba(255, 107, 0, 0.35));
  transition: transform 0.3s var(--ease), filter 0.3s var(--ease);
}

.btn-gift:hover {
  color: #ffffff;
  transform: translateY(-2px);
  filter: drop-shadow(0 10px 20px rgba(255, 107, 0, 0.45)) brightness(1.07);
}

.btn-gift:active {
  transform: translateY(0);
}

.btn-gift__icon {
  font-size: 14px;
  color: #ffd700;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.8);
}

.btn-gift__text {
  white-space: nowrap;
}

.btn-gift--mobile {
  display: none;
}

/* Search toggle & panel */
.search-toggle {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(184, 196, 214, 0.35);
  border-radius: 6px;
  color: var(--color-text-dim);
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}

.search-toggle:hover,
.search-toggle[aria-expanded="true"] {
  border-color: var(--color-accent);
  color: var(--color-accent);
  box-shadow: 0 0 18px rgba(255, 107, 0, 0.18);
}

.search-toggle:active {
  transform: scale(0.94);
}

.search-panel {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  z-index: 90;
  width: 300px;
  padding: 20px;
  background: linear-gradient(160deg, rgba(20, 42, 76, 0.98), rgba(13, 28, 51, 0.98));
  border: 1px solid rgba(255, 107, 0, 0.25);
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 26px rgba(255, 107, 0, 0.08);
}

.search-panel[hidden] {
  display: none;
}

.search-panel::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 16px;
  width: 10px;
  height: 10px;
  background: #132740;
  border-left: 1px solid rgba(255, 107, 0, 0.25);
  border-top: 1px solid rgba(255, 107, 0, 0.25);
  transform: rotate(45deg);
}

.search-panel__diamond {
  display: block;
  font-size: 10px;
  letter-spacing: 0.3em;
  color: #ffd700;
  margin-bottom: 6px;
}

.search-panel__title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 6px;
}

.search-panel__text {
  font-size: 13px;
  color: var(--color-text-dim);
  margin-bottom: 14px;
}

.search-panel .btn {
  margin-top: 2px;
}

/* Navigation bar */
.masthead-nav {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(10, 22, 40, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(184, 196, 214, 0.08);
  border-bottom: 1px solid rgba(184, 196, 214, 0.08);
}

.nav-toggle {
  display: none;
}

.nav-list {
  display: flex;
  justify-content: center;
  align-items: center;
}

.nav-list__item {
  display: flex;
  align-items: center;
}

.nav-list__item + .nav-list__item::before {
  content: "◇";
  font-size: 7px;
  color: rgba(255, 107, 0, 0.7);
  margin-inline: 4px;
  animation: diamond-pulse 3s ease-in-out infinite;
}

@keyframes diamond-pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.9; }
}

.nav-list__link {
  display: block;
  padding: 14px 20px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--color-text-dim);
  position: relative;
  white-space: nowrap;
  transition: color 0.3s var(--ease);
}

.nav-list__link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 6px;
  width: 26px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ff6b00, transparent);
  transform: translateX(-50%) scaleX(0);
  transition: transform 0.3s var(--ease);
}

.nav-list__link:hover {
  color: var(--color-text);
}

.nav-list__link[aria-current="page"] {
  color: #ff6b00;
}

.nav-list__link[aria-current="page"]::after {
  transform: translateX(-50%) scaleX(1);
}

/* Header responsive */
@media (max-width: 959px) {
  .masthead {
    grid-template-columns: 48px 1fr 48px;
    gap: 8px;
    min-height: 72px;
    padding-block: 10px;
  }

  .masthead::before {
    display: none;
  }

  .masthead__side--left {
    justify-content: flex-start;
  }

  .btn-gift:not(.btn-gift--mobile) {
    display: none;
  }

  .masthead__brand {
    gap: 10px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .brand-word__zh {
    font-size: 22px;
    letter-spacing: 0.1em;
  }

  .brand-word__en {
    font-size: 8px;
    letter-spacing: 0.2em;
    margin-top: 3px;
  }

  .brand-word__zh::after {
    font-size: 7px;
  }

  .search-panel {
    width: min(280px, 90vw);
  }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 10px;
    border: 1px solid rgba(184, 196, 214, 0.3);
    border-radius: 6px;
    transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  }

  .nav-toggle:hover {
    border-color: rgba(255, 107, 0, 0.5);
  }

  .nav-toggle__bar {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 1px;
    background: var(--color-text-dim);
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease), background 0.3s var(--ease);
  }

  .nav-toggle[aria-expanded="true"] {
    border-color: rgba(255, 107, 0, 0.6);
    box-shadow: 0 0 14px rgba(255, 107, 0, 0.15);
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle__bar {
    background: #ff6b00;
  }

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

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

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

  .masthead-nav {
    position: static;
    background: transparent;
    border: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .site-nav {
    display: none;
    width: 100%;
    background: rgba(10, 22, 40, 0.98);
    border-bottom: 1px solid rgba(255, 107, 0, 0.2);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.35);
  }

  .site-nav[data-open] {
    display: block;
  }

  .site-nav::before {
    content: "";
    display: block;
    height: 2px;
    background: linear-gradient(90deg, #ff6b00, #ffd700, transparent);
    margin-bottom: 8px;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    padding: 8px 0;
  }

  .nav-list__item + .nav-list__item::before {
    display: none;
  }

  .nav-list__link {
    padding: 15px 20px 15px 36px;
    font-size: 15px;
    white-space: normal;
    border-bottom: 1px solid rgba(184, 196, 214, 0.1);
  }

  .nav-list__link::after {
    left: 16px;
    bottom: auto;
    top: 50%;
    width: 0;
    height: 0;
    background: none;
    border-left: 7px solid #ff6b00;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    transform: translateY(-50%);
  }

  .nav-list__link[aria-current="page"]::after {
    transform: translateY(-50%);
  }

  .btn-gift--mobile {
    display: flex;
    margin: 14px 20px 20px;
  }
}

/* 6. Footer
   ========================================================================== */
.site-footer {
  position: relative;
  margin-top: 80px;
  background: linear-gradient(180deg, #0a1628 0%, #0d1c33 100%);
  border-top: 1px solid rgba(255, 107, 0, 0.25);
}

.site-footer::before {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, transparent, #ff6b00 30%, #ffd700 70%, transparent);
  opacity: 0.7;
}

.site-footer::after {
  content: "百胜游境";
  position: absolute;
  right: 20px;
  bottom: 8px;
  font-family: var(--font-heading);
  font-size: clamp(60px, 12vw, 200px);
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 215, 0, 0.05);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

.footer-top {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  align-items: start;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(184, 196, 214, 0.1);
  margin-bottom: 36px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark--footer {
  width: 44px;
  height: 44px;
  filter: drop-shadow(0 0 8px rgba(255, 107, 0, 0.2));
}

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

.footer-brand__zh {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: #f5f8fc;
}

.footer-brand__en {
  font-family: var(--font-heading);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: #ffd700;
  margin-top: 3px;
}

.footer-trust {
  font-size: 13px;
  line-height: 1.9;
  color: var(--color-text-dim);
  max-width: 70ch;
  margin: 0;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col__title {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #ffd700;
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 28px;
  height: 2px;
  background: linear-gradient(90deg, #ff6b00, transparent);
}

.footer-col__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col__list a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--color-text-dim);
  transition: color 0.3s var(--ease), transform 0.3s var(--ease);
}

.footer-col__list a::before {
  content: "›";
  color: #ff6b00;
  font-weight: 700;
}

.footer-col__list a:hover {
  color: #f5f8fc;
  transform: translateX(3px);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid rgba(184, 196, 214, 0.1);
  font-size: 12px;
  color: var(--color-text-dim);
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-contact__item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.footer-contact__item + .footer-contact__item::before {
  content: "◇";
  font-size: 6px;
  color: #ff6b00;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.footer-icp {
  color: var(--color-text-dim);
}

.footer-rights {
  color: var(--color-text-dim);
}

/* Footer responsive */
@media (max-width: 959px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-cols {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

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

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

/* 7. Common Components
   ========================================================================== */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 30px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.2;
  border-radius: 4px;
  border: 1px solid transparent;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.btn--accent {
  background: linear-gradient(135deg, #ff6b00, #e85400);
  color: #ffffff;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  filter: drop-shadow(0 5px 12px rgba(255, 107, 0, 0.3));
}

.btn--accent:hover {
  color: #ffffff;
  transform: translateY(-2px);
  filter: drop-shadow(0 10px 22px rgba(255, 107, 0, 0.4)) brightness(1.06);
}

.btn--ghost {
  border-color: rgba(61, 126, 255, 0.6);
  color: #3d7eff;
  background: rgba(61, 126, 255, 0.06);
}

.btn--ghost:hover {
  background: rgba(61, 126, 255, 0.14);
  border-color: #3d7eff;
  color: #6f9cff;
  transform: translateY(-2px);
}

.btn--gold {
  background: linear-gradient(135deg, #ffd700, #e6b800);
  color: #0a1628;
  filter: drop-shadow(0 4px 12px rgba(255, 215, 0, 0.25));
}

.btn--gold:hover {
  color: #0a1628;
  transform: translateY(-2px);
  filter: drop-shadow(0 8px 20px rgba(255, 215, 0, 0.35));
}

.btn--small {
  padding: 8px 18px;
  font-size: 13px;
}

.btn--block {
  display: flex;
  width: 100%;
}

/* Tags */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #ff6b00;
  background: rgba(255, 107, 0, 0.1);
  border: 1px solid rgba(255, 107, 0, 0.3);
  border-radius: 2px;
}

.tag--gold {
  color: #ffd700;
  background: rgba(255, 215, 0, 0.08);
  border-color: rgba(255, 215, 0, 0.3);
}

.tag--blue {
  color: #3d7eff;
  background: rgba(61, 126, 255, 0.08);
  border-color: rgba(61, 126, 255, 0.3);
}

/* Section header */
.section-kicker {
  display: block;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #ff6b00;
  margin-bottom: 8px;
}

.section-kicker::before {
  content: "◇ ";
  color: #ffd700;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(30px, 5vw, 44px);
  font-weight: 800;
  line-height: 1.08;
  color: var(--color-text);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-text-dim);
  max-width: 62ch;
}

/* Cards */
.card {
  position: relative;
  background: linear-gradient(160deg, var(--color-bg-panel) 0%, rgba(20, 42, 76, 0.7) 100%);
  border: 1px solid rgba(184, 196, 214, 0.12);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.card:hover {
  border-color: rgba(255, 107, 0, 0.35);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25), 0 0 20px rgba(255, 107, 0, 0.06);
}

.card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 34px;
  height: 34px;
  border-top: 2px solid #ff6b00;
  border-left: 2px solid #ff6b00;
  border-top-left-radius: 6px;
  opacity: 0.4;
  transition: opacity 0.3s var(--ease);
}

.card:hover::before {
  opacity: 1;
}

.card__title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 12px;
}

.card__text {
  font-size: 14px;
  line-height: 1.8;
  color: var(--color-text-dim);
  margin-bottom: 18px;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-block: 16px;
  font-size: 13px;
  color: var(--color-text-dim);
}

.breadcrumb__item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.breadcrumb__item + .breadcrumb__item::before {
  content: "›";
  color: rgba(184, 196, 214, 0.4);
}

.breadcrumb__item a {
  color: var(--color-text-dim);
}

.breadcrumb__item a:hover {
  color: #ff6b00;
}

.breadcrumb__item--current {
  color: #ff6b00;
  font-weight: 600;
}

/* Grids */
.grid {
  display: grid;
  gap: var(--gap);
}

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

.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Image placeholder panels */
.img-panel {
  display: block;
  position: relative;
  overflow: hidden;
  background-color: var(--color-bg-panel);
  background-image:
    radial-gradient(circle 90px at 30% 30%, rgba(255, 107, 0, 0.08), transparent 100%),
    radial-gradient(circle 40px at 80% 75%, rgba(255, 215, 0, 0.08), transparent 100%),
    repeating-linear-gradient(45deg, rgba(184, 196, 214, 0.02) 0 2px, transparent 2px 12px);
  background-size: cover;
  background-position: center;
  border-radius: var(--radius);
  border: 1px solid rgba(184, 196, 214, 0.1);
}

.img-panel::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  width: 22px;
  height: 22px;
  border-top: 2px solid rgba(255, 107, 0, 0.7);
  border-left: 2px solid rgba(255, 107, 0, 0.7);
  border-top-left-radius: 4px;
}

.img-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, transparent 60%, rgba(10, 22, 40, 0.28) 100%);
  pointer-events: none;
}

.img-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.img-panel:hover img {
  transform: scale(1.03);
}

.img-panel--hero {
  aspect-ratio: 21 / 9;
}

.img-panel--wide {
  aspect-ratio: 16 / 9;
}

.img-panel--card {
  aspect-ratio: 4 / 3;
}

.img-panel--portrait {
  aspect-ratio: 3 / 4;
}

.img-panel--icon {
  width: 56px;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
}

.img-panel__label {
  position: absolute;
  left: 14px;
  bottom: 12px;
  z-index: 1;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--color-text-dim);
  background: rgba(10, 22, 40, 0.72);
  padding: 4px 10px;
  border-radius: 2px;
  border-left: 2px solid var(--color-accent);
}

/* 8. Back to Top
   ========================================================================== */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 999;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 42, 76, 0.9);
  border: 1px solid rgba(255, 107, 0, 0.4);
  border-radius: 6px;
  color: #ff6b00;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  visibility: hidden;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
}

.back-to-top.is-visible {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  border-color: #ff6b00;
  color: #ffd700;
  box-shadow: 0 8px 28px rgba(255, 107, 0, 0.25);
}

/* 9. Scroll Reveal Protocol
   ========================================================================== */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

.js [data-reveal][data-revealed] {
  opacity: 1;
  transform: translateY(0);
}

/* 10. Responsive Grids
   ========================================================================== */
@media (max-width: 1023px) {
  .grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 640px) {
  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }

  .section {
    padding-block: 40px;
  }

  .section--tight {
    padding-block: 28px;
  }

  .back-to-top {
    right: 16px;
    bottom: 16px;
  }
}

/* 11. 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;
  }

  .brand-mark__orbit,
  .brand-mark__dot,
  .nav-list__item + .nav-list__item::before {
    animation: none !important;
  }

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