/* BestGEO theme — local Bootstrap 5 + brand overrides */
:root {
  --best-black: #070708;
  --best-black-soft: #12110e;
  --best-paper: #070708;
  --best-gold: #d4af37;
  --best-gold-deep: #8a6416;
  --best-gold-light: #f6e7c1;
  --best-gold-metal: linear-gradient(165deg, #fff6d8 0%, #f3e0a4 22%, #d4af37 48%, #8d6918 62%, #f8e7b8 82%, #c6a15b 100%);
  --best-red: #f3e0a4;
  --best-red-hover: #fff6d8;
  --bs-body-font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --bs-body-bg: #070708;
  --bs-body-color: #f3ecdf;
  --bs-primary: #d4af37;
  --bs-primary-rgb: 212, 175, 55;
  --bs-secondary-color: #cbbfa6;
  --bs-dark: var(--best-black);
  --bs-dark-rgb: 7, 7, 8;
  --bs-link-color: #e8d5a3;
  --bs-link-hover-color: #fff6d8;
  --bs-border-color: rgba(212, 175, 55, 0.28);
  --bs-border-radius: 0;
  --bs-border-radius-sm: 0;
  --bs-border-radius-lg: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4.5rem;
  z-index: 4000;
  padding: 0.55rem 1rem;
  background: #d4af37;
  color: #070708;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.skip-link:focus {
  top: 0.75rem;
  outline: 2px solid #fff6d8;
  outline-offset: 2px;
}

body {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: #f3ecdf;
  background-color: #070708;
  background-image:
    radial-gradient(ellipse 70% 42% at 85% -8%, rgba(212, 175, 55, 0.18), transparent 55%),
    radial-gradient(ellipse 45% 30% at 0% 100%, rgba(141, 105, 24, 0.14), transparent 52%),
    repeating-linear-gradient(128deg, rgba(212, 175, 55, 0.045) 0 1px, transparent 1px 13px);
  background-attachment: fixed;
}

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

h1, h2, h3, h4, .display-font {
  font-family: "Didot", "Bodoni MT", "Songti SC", "STSong", Georgia, serif;
  letter-spacing: -0.02em;
  font-weight: 500;
  color: #f7f1e4;
}

a { text-decoration: none; }

/* —— Header / Nav —— */
.site-header {
  background: rgba(7, 7, 8, 0.88) !important;
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 0 !important;
  box-shadow:
    inset 0 -8px 0 #2c2b28,
    inset 0 -7px 0 #8a8883,
    inset 0 -6px 0 #d7d6d2;
}

.site-header .navbar {
  --bs-navbar-color: rgba(255, 255, 255, 0.72);
  --bs-navbar-hover-color: var(--best-gold-light);
  --bs-navbar-active-color: var(--best-gold-light);
  --bs-navbar-brand-color: var(--best-gold-light);
  --bs-navbar-brand-hover-color: #fff;
  padding-top: 0.65rem;
  padding-bottom: 0.95rem;
}

.logo-mark {
  font-family: "Didot", "Songti SC", Georgia, serif;
  font-size: 1.2rem;
  letter-spacing: 0.12em;
  color: var(--best-gold-light);
}

.logo-sub {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.site-nav .nav-link {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  padding: 0.5rem 0.65rem !important;
  position: relative;
}

.site-nav .nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0.65rem;
  right: 0.65rem;
  bottom: 0.25rem;
  height: 1px;
  background: var(--best-gold);
}

.navbar-toggler {
  border-color: rgba(198, 161, 91, 0.45) !important;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(198, 161, 91, 0.25);
}

/* —— Buttons (override Bootstrap) —— */
.btn {
  border-radius: 0;
  letter-spacing: 0.1em;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.75rem 1.45rem;
  text-transform: none;
}

.btn-primary {
  --bs-btn-color: #1a1408;
  --bs-btn-bg: #d4af37;
  --bs-btn-border-color: #f0d78c;
  --bs-btn-hover-color: #1a1408;
  --bs-btn-hover-bg: #f6e7c1;
  --bs-btn-hover-border-color: #fff6d8;
  --bs-btn-active-color: #1a1408;
  --bs-btn-active-bg: #c6a15b;
  --bs-btn-active-border-color: #f0d78c;
  background-image: var(--best-gold-metal);
  color: #1a1408;
  border-color: #f0d78c;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 10px 28px rgba(212, 175, 55, 0.18);
}

.btn-outline-light {
  --bs-btn-color: var(--best-gold-light);
  --bs-btn-border-color: rgba(198, 161, 91, 0.55);
  --bs-btn-hover-bg: var(--best-gold);
  --bs-btn-hover-border-color: var(--best-gold);
  --bs-btn-hover-color: var(--best-black);
}

.btn-outline-dark {
  --bs-btn-color: var(--best-gold-light);
  --bs-btn-border-color: rgba(212, 175, 55, 0.55);
  --bs-btn-hover-bg: var(--best-gold);
  --bs-btn-hover-border-color: var(--best-gold);
  --bs-btn-hover-color: #1a1408;
}

.btn-gold {
  background: var(--best-gold);
  border-color: var(--best-gold);
  color: var(--best-black);
}

.btn-gold:hover {
  background: var(--best-gold-light);
  border-color: var(--best-gold-light);
  color: var(--best-black);
}

.btn-dark-outline {
  background: transparent;
  border: 1px solid rgba(212, 175, 55, 0.55);
  color: var(--best-gold-light);
}

.btn-dark-outline:hover {
  background-image: var(--best-gold-metal);
  border-color: var(--best-gold);
  color: #1a1408;
}

.btn-outline {
  background: transparent;
  color: var(--best-gold-light);
  border: 1px solid rgba(198, 161, 91, 0.55);
}

.btn-outline:hover {
  background: var(--best-gold);
  border-color: var(--best-gold);
  color: var(--best-black);
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 0;
  display: flex;
  align-items: center;
  background: #050505;
  color: #fff;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% 72%;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(5, 5, 5, 0.96) 0%, rgba(5, 5, 5, 0.86) 36%, rgba(5, 5, 5, 0.42) 70%, rgba(5, 5, 5, 0.22) 100%);
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--best-gold), var(--best-red), transparent);
  opacity: 0.75;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 3.25rem 0 3.25rem 1.75rem;
}

.hero-content::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(var(--best-gold-light), var(--best-gold) 55%, transparent);
  transform-origin: top center;
  animation: lineGrow 2.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-brand {
  font-size: 0.75rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--best-gold);
  margin-bottom: 0.45rem;
}

.hero-role {
  margin: 0 0 1.15rem;
  font-size: 0.92rem;
  letter-spacing: 0.16em;
  color: var(--best-gold-light);
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.2rem, 4.5vw, 3.85rem);
  line-height: 1.12;
  margin-bottom: 1.25rem;
  max-width: 11em;
}

.hero-lead {
  color: rgba(255, 255, 255, 0.62);
  max-width: 36rem;
  margin-bottom: 2rem;
}

.position-line {
  margin: 0 0 1.15rem;
  max-width: 22em;
  font-family: "Didot", "Bodoni MT", "Songti SC", "STSong", Georgia, serif;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  line-height: 1.5;
  color: var(--best-gold-light);
}

/* —— Promo video —— */
.promo-video {
  background: #070708;
  padding: 3.5rem 0 3rem;
  border-bottom: 1px solid rgba(198, 161, 91, 0.22);
  color: rgba(255, 255, 255, 0.72);
}

.promo-video h2 { color: #fff; }

.promo-video .section-head {
  margin-bottom: 1.5rem;
}

.promo-video .section-head p { color: rgba(255, 255, 255, 0.55); }

.video-frame {
  position: relative;
  width: min(100%, 960px);
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid rgba(198, 161, 91, 0.35);
}

.video-frame iframe,
.video-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-poster {
  display: block;
  padding: 0;
  background: #000;
  cursor: pointer;
}

.video-poster img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 68px;
  height: 68px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 2px solid rgba(246, 231, 193, 0.92);
  background: rgba(0, 0, 0, 0.42);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.video-play::before {
  content: "";
  position: absolute;
  left: 54%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 10px 0 10px 16px;
  border-color: transparent transparent transparent #f6e7c1;
  transition: border-left-color 0.2s ease;
}

.video-poster:hover .video-play,
.video-poster:focus-visible .video-play {
  background: var(--best-gold);
  border-color: #fff6d8;
}

.video-poster:hover .video-play::before,
.video-poster:focus-visible .video-play::before {
  border-left-color: #1a140c;
}

.video-note {
  width: min(100%, 960px);
  margin: 0.85rem auto 0;
  font-size: 0.85rem;
}

.video-note a { color: var(--best-gold-light); }

/* —— Metric band —— */
.metric-band {
  background: var(--best-black);
  border-bottom: 1px solid rgba(198, 161, 91, 0.22);
}

.metric-item {
  padding: 1.35rem 1rem;
  border-right: 1px solid rgba(198, 161, 91, 0.18);
}

.metric-item:last-child { border-right: none; }

.metric-item strong {
  font-family: "Didot", "Songti SC", Georgia, serif;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--best-gold-light);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-right: 0.65rem;
}

.metric-item span {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

/* —— Sections —— */
.section {
  padding: 5rem 0;
}

.section-dark {
  background:
    radial-gradient(ellipse 50% 40% at 100% 0%, rgba(198, 161, 91, 0.07), transparent 50%),
    var(--best-black);
  color: rgba(255, 255, 255, 0.75);
}

.section-dark h2,
.section-dark h3,
.section-dark .card-title { color: #fff; }

.section-muted {
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(212, 175, 55, 0.08), transparent 60%),
    #100e0b;
}

.section-gold-line {
  border-top: 1px solid rgba(198, 161, 91, 0.3);
}

.path-cta .section-head {
  max-width: 40rem;
}

.path-line {
  font-size: clamp(1.35rem, 2.1vw, 1.85rem);
  line-height: 1.45;
  margin: 0.85rem 0;
}

.path-cta .card-body > p {
  color: #cbbfa6;
  margin-bottom: 1.25rem;
}

.path-cta-slide {
  overflow: hidden;
}

.path-slide-row {
  padding-bottom: 0.5rem;
}

html.motion .path-slide-left,
html.motion .path-slide-right {
  transition: transform 0.95s cubic-bezier(0.22, 1, 0.36, 1);
}

html.motion .path-slide-left {
  transform: translateX(-110%);
}

html.motion .path-slide-right {
  transform: translateX(110%);
}

html.motion .path-slide-left.is-in,
html.motion .path-slide-right.is-in {
  transform: translateX(0);
}

.eyebrow {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #1a1916;
  margin-bottom: 0.85rem;
  padding: 0.18rem 0.6rem 0.12rem;
  font-weight: 700;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.28) 0 1px, transparent 1px 3px),
    linear-gradient(180deg, #f4f4f1 0%, #b9b9b4 42%, #6d6c68 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 1px 0 #000;
}

.section-head {
  max-width: 38rem;
  margin-bottom: 2.75rem;
}

.section-head h2::after,
.page-hero h1::after {
  content: "";
  display: block;
  width: 5.5rem;
  height: 7px;
  margin-top: 0.9rem;
  background:
    radial-gradient(circle at 7px 50%, #f7f7f4 0 2px, #5c5b58 2.5px 3.5px, transparent 4.5px),
    radial-gradient(circle at calc(100% - 7px) 50%, #f7f7f4 0 2px, #5c5b58 2.5px 3.5px, transparent 4.5px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.28) 0 1px, transparent 1px 3px),
    linear-gradient(180deg, #ecece8, #8a8984 48%, #3a3936);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 1px 0 #000;
}

.section-head p {
  color: #e6d9bd;
  margin-top: 0.65rem;
}

.section-dark .section-head p { color: rgba(255, 255, 255, 0.52); }

/* —— Page hero —— */
.page-hero {
  background:
    radial-gradient(ellipse 60% 80% at 90% 0%, rgba(198, 161, 91, 0.12), transparent 55%),
    linear-gradient(180deg, #070708, #121214);
  color: #fff;
  padding: 4.5rem 0 3.25rem;
  border-bottom: 1px solid rgba(198, 161, 91, 0.28);
  position: relative;
}

.page-hero::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(var(--best-gold), var(--best-red));
}

.page-hero {
  overflow: hidden;
  min-height: 320px;
  background: #070708;
}

.page-hero-copy {
  position: relative;
  z-index: 2;
}

.page-hero-visual {
  position: absolute;
  inset: 0;
  margin: 0;
  z-index: 0;
}

.page-hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% center;
  border: 0;
}

.page-hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 7, 8, 0.9) 0%, rgba(7, 7, 8, 0.55) 32%, rgba(7, 7, 8, 0.12) 58%, rgba(7, 7, 8, 0) 100%);
}

.page-hero::before {
  z-index: 3;
}

.page-hero h1 {
  color: #fff;
  margin-bottom: 0.85rem;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.6);
  max-width: 36rem;
  margin-bottom: 0;
}

/* Breadcrumb: in DOM for crawlers, hidden visually */
.breadcrumb-nav {
  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;
}

.sr-only,
.breadcrumb,
nav.breadcrumb {
  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;
}

/* —— Cards & services —— */
.card-bestgeo {
  --bs-card-color: #f3ecdf;
  --bs-card-cap-color: #f3ecdf;
  --bs-body-color: #f3ecdf;
  border-radius: 0;
  border: 1px solid rgba(212, 175, 55, 0.32);
  background: linear-gradient(180deg, #17140f 0%, #0c0b09 100%);
  color: #f3ecdf;
  height: 100%;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.card-bestgeo:hover {
  border-color: var(--best-gold);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

.card-bestgeo .card-body {
  padding: 1.65rem 1.5rem;
  color: #f3ecdf;
}

a.card-bestgeo,
a.card-bestgeo:hover,
a.card-bestgeo:visited,
a.card-bestgeo:focus {
  color: #f3ecdf;
}

.card-bestgeo p,
a.card-bestgeo p {
  color: #ead9b4;
}

.card-bestgeo-dark {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(198, 161, 91, 0.25);
  color: rgba(255, 255, 255, 0.7);
}

.card-bestgeo-dark:hover {
  border-color: var(--best-gold);
  background: rgba(255, 255, 255, 0.06);
}

.card-bestgeo-featured {
  background: var(--best-black);
  border: 1px solid var(--best-gold);
  color: rgba(255, 255, 255, 0.72);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.card-bestgeo-featured .price-range {
  background-image: var(--best-gold-metal);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.service-link {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 1.15rem 1.4rem;
  overflow: hidden;
  padding: 1.55rem 1.6rem;
  margin: 0 0 1rem;
  border: none;
  color: inherit;
  background: transparent;
}

.service-index {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  font-family: "Didot", "Bodoni MT", "Songti SC", "STSong", Georgia, serif;
  font-size: clamp(2.1rem, 3.6vw, 3rem);
  line-height: 1;
  color: #ffe44d;
  letter-spacing: 0.06em;
}

.service-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
  flex: 1;
}

.service-sheen {
  position: absolute;
  z-index: 3;
  inset: 1px;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 32%,
    rgba(243, 232, 255, 0.08) 42%,
    rgba(255, 255, 255, 0.28) 50%,
    rgba(168, 85, 247, 0.18) 58%,
    transparent 68%
  );
  transform: translateX(-130%);
  transition: transform 4.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-link:hover .service-sheen,
.service-link:focus-visible .service-sheen {
  transform: translateX(130%);
}

.service-link::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 50%;
  width: 220%;
  height: 220%;
  background: conic-gradient(
    from 0deg,
    transparent 0 38%,
    #a855f7 46%,
    #f3e8ff 50%,
    #7c3aed 54%,
    transparent 62% 100%
  );
  transform: translate(-50%, -50%);
  animation: service-flow 2.8s linear infinite;
  pointer-events: none;
}

.service-link::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 1px;
  background: linear-gradient(180deg, #17140f 0%, #0c0b09 100%);
  pointer-events: none;
}

.service-link:nth-of-type(2)::before { animation-delay: -0.9s; }
.service-link:nth-of-type(3)::before { animation-delay: -1.8s; }

@keyframes service-flow {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.service-link:hover { color: inherit; }
.service-link h3 {
  position: relative;
  z-index: 2;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  margin-bottom: 0.5rem;
  color: #ffe44d;
  transition: color 0.2s;
}

.service-link:hover h3 { color: #fff6a3; }

.service-link p {
  position: relative;
  z-index: 2;
  color: #ff3b30;
}

.service-link .more {
  position: relative;
  z-index: 2;
}

.service-link .more,
.more {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--best-gold);
}

.section-dark .service-link { border-bottom-color: rgba(255, 255, 255, 0.1); }

/* Legacy grids (still used on inner pages) */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.feature-block {
  padding: 1.5rem 1.35rem;
  border-top: 2px solid var(--best-gold);
  background: rgba(255, 255, 255, 0.02);
}

.feature-block p { color: #cbbfa6; font-size: 0.98rem; }
.section-dark .feature-block p { color: rgba(255, 255, 255, 0.62); }

/* —— Pricing —— */
.price-label {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--best-gold);
  margin-bottom: 0.65rem;
}

.price-range {
  font-family: "Didot", "Songti SC", Georgia, serif;
  font-size: clamp(1.55rem, 2.2vw, 2rem);
  letter-spacing: -0.03em;
  margin-bottom: 0.85rem;
  line-height: 1.1;
  background-image: var(--best-gold-metal);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.card-bestgeo-featured .price-range {
  background-image: var(--best-gold-metal);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.pricing-card {
  padding: 2rem 1.5rem;
  border: 1px solid rgba(212, 175, 55, 0.32);
  border-top: 2px solid var(--best-gold);
  background: linear-gradient(180deg, #17140f 0%, #0c0b09 100%);
  color: #f3ecdf;
}

.pricing-card.featured {
  background: var(--best-black);
  border-color: var(--best-gold);
  color: rgba(255, 255, 255, 0.72);
}

.pricing-table {
  --bs-table-bg: #100e0b;
  --bs-table-color: #f3ecdf;
  --bs-table-border-color: rgba(212, 175, 55, 0.28);
}

.pricing-table th {
  background: var(--best-black);
  color: var(--best-gold-light);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
}

.pricing-table .price {
  font-family: "Didot", "Songti SC", Georgia, serif;
  font-size: 1.45rem;
  background-image: var(--best-gold-metal);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* —— Steps —— */
.step {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 1.25rem;
  padding: 2rem 0;
  border-bottom: 1px solid rgba(212, 175, 55, 0.22);
  counter-increment: step;
}

.steps { counter-reset: step; }

.stance-layout {
  display: grid;
  gap: 1.5rem 2.25rem;
  align-items: stretch;
}

.stance-bars {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-width: 48rem;
  overflow: hidden;
  grid-row: 1;
}

.stance-visual {
  display: none;
  position: relative;
  margin: 0;
  width: 100%;
  min-height: 0;
  height: 100%;
  grid-row: 1;
  border-radius: 0.85rem;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.38);
  background: linear-gradient(165deg, rgba(36, 32, 24, 0.95), rgba(14, 13, 11, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 246, 216, 0.08);
}

.stance-chart {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.stance-chart-grid line {
  stroke: rgba(212, 175, 55, 0.16);
  stroke-width: 1;
}

.stance-chart-line {
  fill: none;
  stroke: #d4af37;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stance-chart-dots circle {
  fill: #f6e7c1;
  stroke: #070708;
  stroke-width: 1;
}

html.motion .stance-chart-line {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

html.motion .stance-chart-area {
  clip-path: inset(0 100% 0 0);
}

html.motion .stance-chart-dots circle {
  opacity: 0;
}

html.motion .stance-section.is-in .stance-chart-line {
  animation: stance-chart-draw 1.45s cubic-bezier(0.22, 1, 0.36, 1) 0.35s forwards;
}

html.motion .stance-section.is-in .stance-chart-area {
  animation: stance-chart-fill 1.45s cubic-bezier(0.22, 1, 0.36, 1) 0.35s forwards;
}

html.motion .stance-section.is-in .stance-chart-dots circle {
  animation: stance-chart-dot 0.28s ease forwards;
}

html.motion .stance-section.is-in .stance-chart-dots circle:nth-child(1) { animation-delay: 0.38s; }
html.motion .stance-section.is-in .stance-chart-dots circle:nth-child(2) { animation-delay: 0.52s; }
html.motion .stance-section.is-in .stance-chart-dots circle:nth-child(3) { animation-delay: 0.66s; }
html.motion .stance-section.is-in .stance-chart-dots circle:nth-child(4) { animation-delay: 0.8s; }
html.motion .stance-section.is-in .stance-chart-dots circle:nth-child(5) { animation-delay: 0.94s; }
html.motion .stance-section.is-in .stance-chart-dots circle:nth-child(6) { animation-delay: 1.08s; }
html.motion .stance-section.is-in .stance-chart-dots circle:nth-child(7) { animation-delay: 1.22s; }
html.motion .stance-section.is-in .stance-chart-dots circle:nth-child(8) { animation-delay: 1.36s; }

@keyframes stance-chart-draw {
  to { stroke-dashoffset: 0; }
}

@keyframes stance-chart-fill {
  to { clip-path: inset(0 0 0 0); }
}

@keyframes stance-chart-dot {
  to { opacity: 1; }
}

@media (min-width: 992px) {
  .stance-layout {
    grid-template-columns: minmax(0, 1.2fr) minmax(17rem, 0.8fr);
  }

  .stance-bars {
    max-width: none;
  }

  .stance-visual {
    display: block;
    align-self: stretch;
    height: auto;
  }
}

.stance-bar {
  margin: 0;
  padding: 1.05rem 1.4rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(212, 175, 55, 0.38);
  background: linear-gradient(165deg, rgba(36, 32, 24, 0.95), rgba(14, 13, 11, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 246, 216, 0.08);
  font-family: "Didot", "Bodoni MT", "Songti SC", "STSong", Georgia, serif;
  font-size: clamp(1.05rem, 2.1vw, 1.38rem);
  line-height: 1.5;
  color: #f7f1e4;
  will-change: transform, opacity;
}

@keyframes stance-fly-in {
  from {
    opacity: 0;
    transform: translateX(-110%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

html.motion .stance-bar {
  opacity: 0;
  transform: translateX(-110%);
}

html.motion .stance-section.is-in .stance-bar {
  animation: stance-fly-in 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

html.motion .stance-section.is-in .stance-bar:nth-child(1) { animation-delay: 0.06s; }
html.motion .stance-section.is-in .stance-bar:nth-child(2) { animation-delay: 0.32s; }
html.motion .stance-section.is-in .stance-bar:nth-child(3) { animation-delay: 0.58s; }

.step-num::before {
  content: counter(step, decimal-leading-zero);
  font-family: "Didot", "Songti SC", Georgia, serif;
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  color: var(--best-gold);
  line-height: 0.95;
}

/* —— FAQ —— */
.faq-list { border-top: 1px solid rgba(212, 175, 55, 0.22); }

.faq-item { border-bottom: 1px solid rgba(212, 175, 55, 0.22); }

.faq-item button {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 1.35rem 2.5rem 1.35rem 0;
  font-family: "Didot", "Songti SC", Georgia, serif;
  font-size: 1.15rem;
  color: #f7f1e4;
  cursor: pointer;
  position: relative;
}

.faq-item button::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--best-gold);
  font-size: 1.25rem;
}

.faq-item button[aria-expanded="true"]::after { content: "−"; }

.faq-panel {
  display: none;
  padding: 0 0 1.25rem;
  color: #cbbfa6;
  max-width: 42rem;
}

.faq-item.is-open .faq-panel { display: block; }

/* —— Cases —— */
.case-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.case-block + .case-block {
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 7px solid #2c2b28;
  box-shadow: inset 0 1px 0 #d7d6d2, inset 0 2px 0 #6e6c68;
}

.case-visual {
  border: 1px solid rgba(198, 161, 91, 0.35);
  overflow: hidden;
  background: #101216;
}

.case-visual img,
.case-shot {
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #101216;
}

.photo-frame {
  margin: 0;
  border: 1px solid rgba(212, 175, 55, 0.35);
  overflow: hidden;
  background: #070708;
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.img-zoom {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.img-zoom-overlay {
  position: fixed;
  inset: 0;
  z-index: 4200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(5, 5, 6, 0.92);
  cursor: zoom-out;
}

.img-zoom-overlay[hidden] {
  display: none;
}

.img-zoom-overlay img {
  max-width: min(96vw, 1400px);
  max-height: 92vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border: 1px solid rgba(212, 175, 55, 0.4);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
}

.img-zoom-close {
  position: absolute;
  top: 1rem;
  right: 1.1rem;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid rgba(212, 175, 55, 0.45);
  background: #12110e;
  color: #f6e7c1;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

body.is-zoom-open {
  overflow: hidden;
}

.photo-frame figcaption {
  padding: 0.85rem 1rem 1rem;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: #cbbfa6;
}

/* —— Media / Blog —— */
.media-item {
  display: block;
  padding: 1.65rem 0;
  border-bottom: 1px solid rgba(212, 175, 55, 0.22);
  color: inherit;
}

.media-item:hover h3 { color: var(--best-gold-light); }

.media-item .meta {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--best-gold);
}

.blog-item {
  display: block;
  padding: 1.85rem 0;
  border-bottom: 1px solid rgba(212, 175, 55, 0.22);
  color: inherit;
}

.blog-item:hover h2 { color: var(--best-gold-light); }

.blog-item time {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--best-gold);
}

.article-body {
  max-width: 42rem;
  padding: 3.5rem 0 4.5rem;
}

.article-body.article-wide {
  max-width: 52rem;
}

.article-body figure {
  margin: 1.35rem 0 1.85rem;
  border: 1px solid rgba(212, 175, 55, 0.22);
  background: #111;
}

.article-body figure img {
  display: block;
  width: 100%;
  height: auto;
}

.article-body figcaption {
  padding: 0.7rem 0.95rem 0.9rem;
  font-size: 0.88rem;
  color: #cbbfa6;
}

.article-meta {
  font-size: 0.85rem;
  color: #cbbfa6;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.22);
  margin-bottom: 2rem;
}

/* —— Contact —— */
.contact-block dt {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #b7aa92;
}

.contact-block dd {
  font-family: "Didot", "Songti SC", Georgia, serif;
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.contact-hot dt,
.contact-hot dd,
.contact-hot dd a {
  color: #ffe14a;
}

.contact-hot dd a:hover {
  color: #fff6a3;
}

.contact-note {
  margin-top: 1.5rem;
  font-size: 0.95rem;
  color: #ff2d2d;
}

.placeholder-grid,
.cert-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.cert-filings {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 0;
}

.cert-filings .placeholder-item {
  margin: 0;
}

.cert-license {
  height: 100%;
  min-height: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.cert-license .tag,
.cert-license figcaption {
  flex-shrink: 0;
}

@media (min-width: 992px) and (max-width: 1599.98px) {
  .certs-clear {
    padding-right: 11.5rem;
  }
}

.placeholder-item {
  border: 1px solid rgba(212, 175, 55, 0.32);
  border-top: 2px solid var(--best-gold);
  padding: 1.65rem 1.35rem;
  background: linear-gradient(180deg, #17140f 0%, #0c0b09 100%);
  color: #f3ecdf;
  min-height: 160px;
}

.placeholder-item img {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 0.85rem;
  background: #fff;
}

.placeholder-item figcaption {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: #cbbfa6;
}

.cert-board .cert-license img {
  flex: 1 1 auto;
  width: 100%;
  height: 0;
  min-height: 0;
  object-fit: contain;
  object-position: center;
}

.placeholder-item .tag {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--best-gold);
}

.pros li {
  padding: 1.15rem 0 1.15rem 1.25rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.22);
  position: relative;
}

.pros li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.45rem;
  width: 8px;
  height: 2px;
  background: var(--best-gold);
}

[aria-labelledby="adv-h"] .pros {
  list-style: disc;
}

[aria-labelledby="adv-h"] .pros li {
  padding-left: 0.35rem;
}

[aria-labelledby="adv-h"] .pros li::before {
  content: none;
}

/* —— Footer —— */
.site-footer {
  background: #050505;
  color: rgba(255, 255, 255, 0.58);
  padding: 4rem 0 1.5rem;
  border-top: 1px solid rgba(198, 161, 91, 0.28);
  font-size: 0.9rem;
}

.site-footer h3 {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--best-gold-light);
  margin-bottom: 1rem;
  font-family: var(--bs-body-font-family);
  font-weight: 500;
}

.site-footer a { color: rgba(255, 255, 255, 0.58); }
.site-footer a:hover { color: var(--best-gold-light); }

.footer-brand .logo-mark {
  font-size: 1.35rem;
  display: block;
  margin-bottom: 0.85rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.25rem;
  margin-top: 2.5rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.38);
}

/* —— 404 —— */
.error-page .code {
  font-family: "Didot", "Songti SC", Georgia, serif;
  font-size: clamp(4.5rem, 12vw, 8rem);
  color: var(--best-gold);
  line-height: 0.85;
}

/* —— Responsive —— */
@media (max-width: 991px) {
  .case-block,
  .grid-2,
  .grid-3,
  .pricing-cards,
  .placeholder-grid,
  .cert-board { grid-template-columns: 1fr; }
  .cert-license { height: auto; }
  .cert-board .cert-license img { height: auto; flex: none; object-fit: contain; }
  .hero { min-height: auto; align-items: center; }
  .page-hero { min-height: 280px; }
  .page-hero-visual img { object-position: center; }
  .hero-content { padding: 2.75rem 0 2.75rem 1.25rem; }
  .metric-item { border-right: none; border-bottom: 1px solid rgba(198, 161, 91, 0.18); }
  .metric-item:last-child { border-bottom: none; }
}

@media (max-width: 767px) {
  .section { padding: 3.5rem 0; }
  .step { grid-template-columns: 3.5rem 1fr; }
}

/* —— Motion (content stays in HTML; motion is visual only) —— */
.hero::before {
  content: "";
  position: absolute;
  width: min(46vw, 560px);
  height: min(46vw, 560px);
  left: var(--gx, 72%);
  top: var(--gy, 18%);
  right: auto;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 236, 180, 0.55), transparent 62%);
  pointer-events: none;
  translate: -50% -50%;
  transition: left 0.9s cubic-bezier(0.22, 1, 0.36, 1), top 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  animation: orbPulse 7s ease-in-out infinite, orbDrift 12s ease-in-out infinite alternate;
}

.hero-content > * {
  animation: riseIn 1.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-content > *:nth-child(2) { animation-delay: 0.12s; }
.hero-content > *:nth-child(3) { animation-delay: 0.22s; }
.hero-content > *:nth-child(4) { animation-delay: 0.32s; }
.hero-content > *:nth-child(5) { animation-delay: 0.42s; }
.hero-content > *:nth-child(6) { animation-delay: 0.52s; }

@keyframes riseIn {
  from { opacity: 0; transform: translateY(56px); }
  to { opacity: 1; transform: none; }
}

@keyframes lineGrow {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

@keyframes orbPulse {
  0%, 100% { opacity: 0.45; scale: 0.92; }
  50% { opacity: 1; scale: 1.22; }
}

@keyframes orbDrift {
  from { translate: -58% -42%; }
  to { translate: -28% -68%; }
}

@keyframes barSweep {
  from { background-position: -35% 0; }
  to { background-position: 135% 0; }
}

@keyframes goldShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes btnShine {
  0% { transform: translateX(-130%); }
  28% { transform: translateX(130%); }
  100% { transform: translateX(130%); }
}

.site-header {
  transition: background 0.35s ease, box-shadow 0.35s ease;
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  height: 2px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, #fff6d8 45%, #d4af37 55%, transparent);
  background-size: 32% 100%;
  background-repeat: no-repeat;
  animation: barSweep 3.6s linear infinite;
}

.site-header.is-scrolled {
  background: rgba(7, 7, 8, 0.96) !important;
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.35);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  z-index: 200;
  background: linear-gradient(90deg, var(--best-gold), var(--best-red));
  pointer-events: none;
}

.site-nav .nav-link::before {
  content: "";
  position: absolute;
  left: 0.65rem;
  right: 0.65rem;
  bottom: 0.2rem;
  height: 1px;
  background: var(--best-gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.site-nav .nav-link:hover::before,
.site-nav .nav-link[aria-current="page"]::before {
  transform: scaleX(1);
}

.site-nav .nav-link[aria-current="page"]::after { display: none; }

.card-bestgeo,
.card-bestgeo-dark,
.card-bestgeo-featured,
.pricing-card,
.service-link,
.media-item,
.blog-item,
.btn {
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease,
    border-color 0.35s ease,
    background 0.3s ease,
    color 0.3s ease;
}

.card-bestgeo:hover,
.pricing-card:hover,
a.card:hover,
.card-bestgeo-dark:hover {
  transform: translateY(-8px);
  border-color: rgba(243, 224, 164, 0.7);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4), 0 0 28px rgba(212, 175, 55, 0.16);
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.22) 48%, transparent 62%);
  transform: translateX(-120%);
  transition: transform 0.6s ease;
}

.btn-primary:hover::after { transform: translateX(120%); }

.hero .btn-primary::after {
  animation: btnShine 4.8s ease infinite;
}

html.motion .reveal {
  opacity: 0;
  transform: translateY(48px);
  transition: opacity 1.15s cubic-bezier(0.22, 1, 0.36, 1), transform 1.15s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

html.motion .reveal.is-in,
html.motion .card.reveal.is-in:hover,
html.motion a.card.reveal.is-in:hover {
  opacity: 1;
  transform: none;
}

html.motion .card.reveal.is-in:hover,
html.motion a.card.reveal.is-in:hover {
  transform: translateY(-6px);
}

.logo-mark,
.metric-item strong,
.hero-brand,
.error-page .code,
.price-range,
.pricing-table .price {
  background-image: var(--best-gold-metal);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: goldShift 3.2s ease-in-out infinite;
}

.page-hero h1,
.page-hero .eyebrow,
.page-hero p {
  animation: riseIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.page-hero .eyebrow { animation-delay: 0.05s; }
.page-hero h1 { animation-delay: 0.12s; }
.page-hero p { animation-delay: 0.22s; }

.text-secondary,
.card-text {
  color: #cbbfa6 !important;
}

.card-bestgeo .card-title,
.pricing-card .card-title {
  color: #f7f1e4;
}

.card-bestgeo-featured {
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(246, 231, 193, 0.25);
}

/* Motion stays on even if the OS asks to reduce animation.
   That setting was hiding every effect on this site. */

.case-card {
  border: 1px solid #6e6a64;
  background:
    linear-gradient(180deg, #1a1916 0%, #0c0b09 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 0 0 1px #2a2824;
}

.case-plate {
  position: relative;
  overflow: hidden;
  background: #101216;
  box-shadow: inset 0 0 0 2px #3c3a36;
}

.case-plate::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background:
    radial-gradient(circle at 14px 14px, #f7f7f4 0 2.5px, #8d8c88 3px 5px, #2e2d2a 5.5px 7.5px, transparent 8.5px),
    radial-gradient(circle at calc(100% - 14px) 14px, #f7f7f4 0 2.5px, #8d8c88 3px 5px, #2e2d2a 5.5px 7.5px, transparent 8.5px),
    radial-gradient(circle at 14px calc(100% - 14px), #f7f7f4 0 2.5px, #8d8c88 3px 5px, #2e2d2a 5.5px 7.5px, transparent 8.5px),
    radial-gradient(circle at calc(100% - 14px) calc(100% - 14px), #f7f7f4 0 2.5px, #8d8c88 3px 5px, #2e2d2a 5.5px 7.5px, transparent 8.5px);
  box-shadow:
    inset 0 0 0 3px #c8c6c1,
    inset 0 0 0 5px #3a3936,
    inset 0 0 0 7px #8a8883;
}

.metal-plate {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  transform: translateY(-105%);
  color: #1c1b18;
  font-family: "Arial Black", "Microsoft YaHei", sans-serif;
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 800;
  letter-spacing: 0.16em;
  text-align: center;
  text-decoration: none;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55), 0 -1px 0 rgba(0, 0, 0, 0.35);
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.18) 0 1px, transparent 1px 3px),
    linear-gradient(165deg, #f3f3f0 0%, #b7b7b2 22%, #8a8a85 48%, #d8d8d4 62%, #5e5e5b 100%);
  border-bottom: 6px solid #2b2a27;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.75),
    inset 0 -18px 24px rgba(0, 0, 0, 0.32),
    0 16px 24px rgba(0, 0, 0, 0.35);
  transition: transform 0.62s cubic-bezier(0.16, 1, 0.3, 1);
}

.metal-plate::before {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  top: 18%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.45), transparent);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

.metal-plate:hover,
.metal-plate:focus {
  color: #111;
}

.case-card:hover .metal-plate,
.case-block:hover .metal-plate,
.case-plate:hover .metal-plate,
.case-plate:focus-within .metal-plate {
  transform: translateY(0);
}

@media (hover: none) {
  .metal-plate {
    inset: auto 0 0 0;
    height: 3.1rem;
    transform: none;
    font-size: 0.92rem;
  }
}

.wp-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.wp-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.25rem 2rem;
  align-items: center;
  padding: 1.45rem 1.4rem 1.35rem;
  border: 1px solid #6e6a64;
  background: linear-gradient(180deg, #17140f 0%, #0c0b09 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 0 0 1px #2a2824;
}

.wp-card h3 {
  margin: 0 0 0.4rem;
}

.wp-card p {
  margin-bottom: 0.7rem;
}

.wp-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--best-gold);
}

.wp-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.wp-actions .btn {
  white-space: nowrap;
}

.pdf-note {
  max-width: 42rem;
  margin-bottom: 1rem;
}

.pdf-stage {
  border: 1px solid #6e6a64;
  background: #0c0b09;
  box-shadow: inset 0 0 0 3px #2a2824, inset 0 0 0 4px #8a8883;
}

.pdf-frame {
  display: block;
  width: 100%;
  height: min(82vh, 980px);
  min-height: 680px;
  border: 0;
  background: #f7f4ee;
}

@media (max-width: 767px) {
  .wp-card { grid-template-columns: 1fr; }
  .wp-actions { flex-direction: row; flex-wrap: wrap; }
  .pdf-frame { min-height: 70vh; height: 78vh; }
}

.spark-layer {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 450;
}

@media (max-width: 991.98px) {
  .spark-layer {
    display: none;
  }
}

.float-ad {
  height: 0;
}

.float-ad-pc,
.float-ad-m {
  position: fixed;
  z-index: 520;
  background: #fff;
  color: #1a140c;
  text-align: center;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.float-ad-pc {
  top: 50%;
  right: 16px;
  width: 168px;
  transform: translateY(-50%);
  padding: 14px 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, 0.55);
}

.float-ad-m {
  display: none;
}

.float-ad-badge {
  display: inline-block;
  margin: 0 0 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: linear-gradient(165deg, #fff6d8 0%, #d4af37 55%, #8d6918 100%);
  color: #1a140c;
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.04em;
}

.float-ad-kicker,
.float-ad-ids,
.float-ad-line,
.float-ad-m-title,
.float-ad-m-note {
  margin: 0;
  color: #3a342c;
}

.float-ad-kicker {
  font-size: 12px;
  letter-spacing: 0.08em;
}

.float-ad-qr {
  display: block;
  width: 128px;
  height: 128px;
  margin: 8px auto;
  object-fit: contain;
}

.float-ad-ids {
  font-size: 12px;
  line-height: 1.45;
}

.float-ad-line {
  margin-top: 8px;
  font-size: 12px;
  color: #6d6458;
}

.float-ad-tel {
  display: block;
  margin-top: 2px;
  color: #1a140c;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.float-ad-tel:hover {
  color: #8a6416;
}

.float-ad-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.float-ad-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(165deg, #fff6d8 0%, #d4af37 48%, #8d6918 100%);
  color: #1a140c;
}

.float-ad-icon:hover {
  color: #1a140c;
  filter: brightness(1.08);
}

.float-ad-icon svg {
  display: block;
}

.float-ad.is-closed {
  display: none;
}

@media (max-height: 760px) and (min-width: 992px) {
  .float-ad-pc {
    width: 148px;
    padding: 10px 10px 8px;
  }

  .float-ad-pc .float-ad-qr {
    width: 96px;
    height: 96px;
  }

  .float-ad-actions {
    margin-top: 6px;
  }
}

@media (max-width: 991.98px) {
  .float-ad-pc {
    display: none;
  }

  .float-ad-m {
    display: block;
    right: 12px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    width: 112px;
    padding: 18px 8px 8px;
    border-radius: 10px;
    border: 1px solid rgba(212, 175, 55, 0.45);
  }

  .float-ad-m .float-ad-qr {
    width: 84px;
    height: 84px;
    margin: 4px auto;
  }

  .float-ad-m-title,
  .float-ad-m-note {
    font-size: 12px;
    line-height: 1.35;
  }

  .float-ad-close {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #8a8175;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
  }
}

@media print {
  .float-ad {
    display: none;
  }
}
