/* Local footer composition. Official logos retain their original geometry. */
.site-footer.footer-connect {
  --footer-surface: #08131f;
  --footer-text: #eef1f2;
  --footer-muted: #aebac8;
  --footer-gold: #dfcba8;
  --footer-line: #a9bbc529;
  position: relative;
  isolation: isolate;
  padding: 40px 0 clamp(20px, 2.5vw, 40px);
  color: var(--footer-text);
  background: linear-gradient(180deg, #06101ada 0%, #07111bed 20%, #060e18fa 100%);
}
.footer-connect::before {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  inset: 0;
  background: radial-gradient(ellipse at 8% 50%, #b32c3610, transparent 42%), radial-gradient(ellipse at 88% 48%, #7bb9d610, transparent 42%);
}
.footer-connect .section-top {padding-top: 24px; padding-bottom: 0; border-color: var(--footer-line)}
.footer-connect .section-top .eyebrow {font-size: 11px; color: var(--footer-gold)}
.footer-connect .footer-heading {display: block; margin: 42px 0 44px}
.footer-connect .footer-heading h2 {
  max-width: none;
  font-size: clamp(42px, 5.6vw, 86px);
  line-height: 1.12;
  font-weight: 500;
  letter-spacing: -.055em;
  text-wrap: balance;
}
html[lang="zh-CN"] .footer-connect .footer-heading h2 {line-height: 1.25; letter-spacing: -.03em}
.footer-connect .footer-heading p {max-width: 620px; margin: 20px 0 0; padding: 0; color: var(--footer-muted); font-size: 16px; line-height: 1.7}
.footer-card {
  --footer-spot-x: 50%;
  --footer-spot-y: 50%;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-width: 0;
  border: 1px solid var(--footer-line);
  border-radius: 8px;
  background: var(--footer-surface);
  transition: border-color .24s ease, background-color .24s ease;
}
.footer-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  inset: 0;
  opacity: 0;
  background: radial-gradient(380px circle at var(--footer-spot-x) var(--footer-spot-y), #e4ceaa19, transparent 72%);
  transition: opacity .3s ease;
}
.footer-card[data-spotlight="true"]::before {opacity: 1}
.footer-card:focus-visible {outline: 2px solid var(--footer-gold); outline-offset: 5px; border-color: var(--footer-gold)}
.footer-card:active {background-color: #122334; border-color: var(--footer-gold)}
.footer-card-arrow {display: grid; place-items: center; flex: none; width: 30px; height: 30px; color: var(--footer-gold)}
.footer-card-arrow .action-icon {width: 20px; height: 20px; transition: transform .24s ease}
.footer-platform-groups {display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 0}
.footer-platform-group {min-width: 0}
.footer-platform-group h3 {margin: 0 0 14px; font-size: 12px; font-weight: 500; letter-spacing: .05em; color: var(--footer-gold)}
.footer-platform-grid {display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px}
.footer-platform {display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 100px; padding: 20px 18px}
.footer-platform-copy {display: flex; flex-direction: column; min-width: 0; gap: 8px}
.footer-platform-copy strong {font-family: var(--font-display); font-weight: 450; font-size: 17px; letter-spacing: -.025em}
.footer-platform-copy>span {font-size: 12px; line-height: 1.5; color: var(--footer-muted); overflow-wrap: anywhere}
.footer-wordmark-stage {
  position: relative;
  width: min(62%, 880px);
  margin: clamp(48px, 5vw, 72px) auto clamp(36px, 4vw, 60px);
  pointer-events: none;
}
.footer-wordmark {opacity: 1}
.footer-wordmark-logo {position: relative; width: 100%}
/* The original transparent-margin crop is shared with the official header.
   A dim base remains visible; light is masked to the same original pixels. */
.footer-wordmark-logo .logo-crop {filter: invert(1); opacity: .3}
.footer-wordmark-logo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(110deg, transparent 35%, #a5bdcc55 43%, #e1d0b9cc 50%, #b7cbd977 57%, transparent 65%);
  background-size: 300% 100%;
  background-position: 120% 0;
  /* Match the header crop: source width 103.232%, x -2.139%,
     y -118.483% of the 2104/211 wordmark box. Only alpha is used. */
  -webkit-mask-image: url('/assets/sankyiota-logo-transparent.png');
  mask-image: url('/assets/sankyiota-logo-transparent.png');
  -webkit-mask-size: 103.232% auto;
  mask-size: 103.232% auto;
  -webkit-mask-position: 66.1819% 48.7327%;
  mask-position: 66.1819% 48.7327%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}
.footer-connect .footer-bottom {display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; margin-top: 0; padding-top: 18px; border-color: var(--footer-line)}
.footer-connect .footer-bottom small {margin: 0; font-size: 11px; color: var(--footer-muted)}
.footer-connect .footer-bottom>a:last-child {width: auto; min-height: 44px; margin-left: auto; font-size: 12px; color: var(--footer-muted)}
@media (hover: hover) and (pointer: fine) {
  .footer-card:hover {border-color: #d8c3a06b}
  .footer-card:hover .footer-card-arrow .action-icon {transform: translate(2px, -2px)}
  .footer-connect .footer-bottom>a:hover {color: var(--footer-gold)}
}
@media (prefers-reduced-motion: no-preference) {
  .footer-wordmark-logo .logo-crop {animation: footer-logo-breathe 6s ease-in-out infinite; animation-play-state: paused}
  .footer-wordmark-logo::after {animation: footer-logo-light 6s ease-in-out infinite; animation-play-state: paused}
  .footer-wordmark[data-motion="running"] .logo-crop,
  .footer-wordmark[data-motion="running"] .footer-wordmark-logo::after {animation-play-state: running}
}
@keyframes footer-logo-breathe {
  0%, 100% {opacity: .26}
  42% {opacity: .4}
  74% {opacity: .3}
}
@keyframes footer-logo-light {
  0%, 12% {background-position: 120% 0; opacity: 0}
  30% {opacity: .46}
  48% {opacity: .64}
  68% {opacity: .34}
  82%, 100% {background-position: -20% 0; opacity: 0}
}
@media (max-width: 1000px) {
  .footer-platform-grid {grid-template-columns: 1fr}
  .footer-platform {min-height: 84px; padding: 16px 22px}
  .footer-platform-copy {gap: 5px}
}
@media (max-width: 700px) {
  .site-footer.footer-connect {
    padding-top: 24px;
    padding-bottom: 20px;
  }
  .footer-connect .footer-heading {margin: 30px 0 32px}
  .footer-connect .footer-heading h2 {font-size: clamp(34px, 7.9vw, 48px); line-height: 1.2; letter-spacing: -.05em}
  .footer-connect .footer-heading p {font-size: 15px; margin-top: 18px; max-width: 460px}
  .footer-platform-groups {grid-template-columns: 1fr; margin-top: 0; gap: 26px}
  .footer-platform-grid {gap: 10px}
  .footer-platform-group h3 {margin-bottom: 12px}
  .footer-platform {min-height: 88px; padding: 18px 22px}
  .footer-platform-copy strong {font-size: 18px}
  .footer-platform-copy>span {font-size: 13px}
  .footer-wordmark-stage {width: 76%; margin-top: 44px; margin-bottom: 34px}
  .footer-connect .footer-bottom {margin-top: 0; padding-top: 14px; gap: 8px}
}
@media (prefers-reduced-motion: reduce) {
  .footer-card,.footer-card::before,.footer-card-arrow .action-icon,.footer-wordmark {transition: none; transform: none}
  .footer-card:hover .footer-card-arrow .action-icon {transform: none}
  .footer-card::before {display: none}
  .footer-wordmark {opacity: 1}
  .footer-wordmark-logo .logo-crop {animation: none; opacity: .4}
  .footer-wordmark-logo::after {animation: none; display: none}
}
