.contact-link strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: clamp(21px, 3vw, 34px);
  line-height: 1;
}

html[lang='zh'] .contact-link strong {
  line-height: 1.18;
}

.contact-link .arrow {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--lime);
  font-family: var(--mono);
  font-weight: 700;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 24px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
}

@keyframes pulse {
  0%,
  100% {
    background: var(--lime);
  }

  50% {
    background: var(--tomato);
  }
}

@keyframes fillMeter {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

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

@media (max-width: 940px) {
  .hero-copy,
  .split-heading,
  .system-board,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .role-plate {
    justify-self: start;
  }

  .project-lab {
    grid-template-columns: 1fr;
  }

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

  .product-tile {
    min-height: 136px;
    grid-template-columns: 56px minmax(0, 1fr);
    padding: 14px 42px 14px 14px;
  }

  .product-tile-logo {
    width: 56px;
    height: 56px;
  }

  .product-tile-logo img {
    max-height: 42px;
  }

  .product-tile strong {
    font-size: clamp(26px, 6vw, 38px);
  }

  .project-detail {
    grid-template-columns: 1fr;
  }

  .orbital-strip {
    grid-template-columns: repeat(3, minmax(150px, 1fr));
    top: 16vh;
    opacity: 0.7;
  }

  .project-card {
    min-height: 560px;
  }
}

@media (max-width: 660px) {
  .topbar {
    align-items: center;
    gap: 8px;
    padding: 13px 16px;
  }

  .brand-lockup {
    max-width: 30px;
  }

  .brand-lockup span:last-child {
    display: none;
  }

  .nav-cluster {
    display: none;
  }

  .mobile-top-links {
    position: fixed;
    top: 13px;
    right: 16px;
    z-index: 70;
    display: flex;
    align-items: center;
    margin-left: auto;
    gap: 8px;
  }

  .mobile-top-links a:not(.icon-link) {
    padding: 7px 0;
    color: var(--ink);
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 700;
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
  }

  .mobile-top-links .icon-link {
    width: 34px;
    height: 34px;
    box-shadow: 2px 2px 0 var(--ink);
  }

  .mobile-language-switch {
    position: static;
    display: inline-grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    padding: 3px;
    border: 1px solid var(--ink);
    border-radius: 8px;
    background: rgba(255, 249, 238, 0.88);
    box-shadow: 2px 2px 0 var(--ink);
    font-family: var(--mono);
  }

  .mobile-language-switch .lang-option {
    min-width: 32px;
    height: 26px;
    padding: 0 6px;
  }

  .nav-links {
    gap: 10px;
    font-size: 10px;
  }

  .nav-links a {
    padding: 7px 0;
  }

  .nav-links a:nth-child(-n + 3) {
    display: none;
  }

  .language-switch {
    display: none;
  }

  .hero {
    min-height: 91vh;
    padding: 102px 16px 38px;
  }

  #signalCanvas {
    opacity: 0.36;
  }

  .orbital-strip {
    display: none;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(68px, 23vw, 98px);
    line-height: 0.85;
  }

  .hero-copy p {
    max-width: min(100%, 342px);
    font-size: clamp(24px, 7vw, 30px);
    line-height: 1.08;
    text-wrap: wrap;
  }

  .section {
    padding-right: 16px;
    padding-left: 16px;
  }

  .project-card {
    min-height: auto;
    padding: 20px;
  }

  .product-overview {
    scroll-margin-top: 82px;
    gap: 10px;
    margin-bottom: 34px;
  }

  .product-tile {
    min-height: 118px;
    grid-template-columns: 44px minmax(0, 1fr);
    grid-template-rows: 44px auto minmax(0, 1fr);
    gap: 4px 10px;
    padding: 12px 34px 12px 12px;
  }

  .product-tile.midscene,
  .product-tile.lifeos,
  .product-tile.calendarpro,
  .product-tile.deepask,
  .product-tile.remosidian,
  .product-tile.doubao {
    grid-column: 1 / -1;
  }

  .product-tile-logo {
    grid-row: 1;
    width: 44px;
    height: 44px;
    padding: 5px;
    box-shadow: 3px 3px 0 var(--ink);
  }

  .product-tile-logo img {
    max-height: 32px;
    border-radius: 8px;
  }

  .product-tile.midscene .product-tile-logo img {
    max-height: 22px;
  }

  .product-tile-meta {
    align-self: center;
    font-size: 8.5px;
    line-height: 1.2;
  }

  .product-tile strong {
    grid-column: 1 / -1;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    font-size: clamp(23px, 6.5vw, 27px);
    line-height: 0.9;
    text-wrap: balance;
  }

  .product-tile.calendarpro strong {
    font-size: clamp(21px, 5.9vw, 24px);
  }

  .product-tile > span:not(.product-tile-logo, .product-tile-meta, .product-tile-arrow) {
    grid-column: 1 / -1;
    display: -webkit-box;
    overflow: hidden;
    padding-right: 24px;
    font-size: 11px;
    line-height: 1.25;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .product-tile-arrow {
    right: 10px;
    bottom: 10px;
    width: 24px;
    height: 24px;
    font-size: 11px;
  }

  .project-detail {
    min-height: auto;
    padding: 18px;
  }

  .project-detail-main {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 14px;
  }

  .project-detail-logo {
    width: 58px;
    height: 58px;
    padding: 6px;
    box-shadow: 4px 4px 0 var(--ink);
  }

  .project-detail-logo img {
    max-height: 42px;
    border-radius: 10px;
  }

  .project-detail.midscene .project-detail-logo img {
    max-height: 28px;
  }

  .project-detail h3 {
    font-size: clamp(36px, 11vw, 54px);
  }

  .project-detail.calendarpro h3 {
    font-size: clamp(26px, 8vw, 36px);
  }

  .project-detail.remosidian h3 {
    font-size: clamp(29px, 8.2vw, 40px);
  }

  .project-detail.doubao h3 {
    font-size: clamp(29px, 8.2vw, 40px);
  }

  .project-detail .tagline {
    max-width: 100%;
    font-size: 24px;
  }

  .project-top {
    align-items: center;
  }

  .project-logo {
    min-width: 66px;
    height: 66px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .meter-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .blog-post {
    grid-template-columns: 1fr;
  }

  .blog-post strong {
    font-size: clamp(21px, 7vw, 30px);
  }

  .blog-post .arrow {
    justify-self: start;
  }

  .contact-link {
    grid-template-columns: 1fr auto;
    gap: 8px;
  }

  .contact-link span:first-child {
    grid-column: 1 / -1;
  }
}
