:root {
  --bg-deep: #0b0d10;
  --bg-panel: #12151a;
  --bg-elevated: #1a1f27;
  --bg-hover: #222933;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f3f5f7;
  --text-muted: #9aa3ad;
  --text-dim: #6d7681;
  --accent: #e73f91;
  --accent-rgb: 231, 63, 145;
  --accent-ink: #ffffff;
  --accent-deep: #b01f6a;
  --accent-bright: #ff7eb8;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Sora", sans-serif;
  --font-body: "DM Sans", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(var(--accent-rgb), 0.1), transparent 55%),
    radial-gradient(900px 500px at 10% 0%, rgba(80, 120, 160, 0.12), transparent 50%),
    linear-gradient(180deg, #10131a 0%, var(--bg-deep) 45%, #080a0d 100%);
  -webkit-font-smoothing: antialiased;
}

/* Bottom-edge overscroll feedback — short-range white glow, linear 100% → 0% */
.irongoo-edge-glow {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 14px;
  z-index: 10050;
  pointer-events: none;
  opacity: 0;
  /* Distance from bottom: 100→70% light 100→50; 70→40% light 50→20; 40→0% light 20→0 */
  background: linear-gradient(
    to top,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0.5) 30%,
    rgba(255, 255, 255, 0.2) 60%,
    rgba(255, 255, 255, 0) 100%
  );
  mix-blend-mode: screen;
  transition: opacity 0.15s ease;
}

.irongoo-edge-glow.is-on {
  animation: irongooEdgePulse 0.55s var(--ease) forwards;
}

@keyframes irongooEdgePulse {
  0% {
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .irongoo-edge-glow.is-on {
    animation: none;
    opacity: 0.9;
  }
}

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

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

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

[hidden] {
  display: none !important;
}

/* ——— Header / DJI–Huawei style ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(11, 13, 16, 0.72);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(11, 13, 16, 0.92);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
}

.site-header.is-open {
  background: rgba(11, 13, 16, 0.98);
  border-bottom-color: var(--line);
  /* backdrop-filter creates a containing block; fixed mobile nav would be
     trapped inside the 72px header and clipped — disable while open */
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.header-inner {
  max-width: 1440px;
  height: 100%;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  z-index: 2;
  transition: opacity 0.25s var(--ease);
}

.logo:hover {
  opacity: 0.88;
}

.logo-img {
  display: block;
  height: 32px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
}

.primary-nav {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  box-sizing: border-box;
}

/* Desktop: flatten nav so search sits between main links and tools */
@media (min-width: 1281px) {
  .primary-nav {
    display: contents;
  }

  .nav-list--main {
    order: 1;
  }

  .header-end {
    order: 2;
  }

  .nav-list--tools {
    order: 3;
  }
}

.header-end {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  z-index: 2;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  width: auto;
  min-width: 0;
}

.nav-list--main {
  flex: 1 1 auto;
  justify-content: flex-start;
  flex-wrap: nowrap;
  max-width: 100%;
  /* Must stay visible — absolute dropdowns are clipped by overflow:hidden */
  overflow: visible;
}

.nav-list--tools {
  position: static;
  transform: none;
  gap: 0;
  align-items: center;
  flex: 0 0 auto;
  z-index: 2;
}

.header-end .nav-search {
  position: relative;
  flex: 0 0 auto;
}

.nav-item--lang,
.nav-item--cta,
.nav-item--account {
  flex: 0 0 auto;
}

.nav-item--cta {
  margin-left: 12px;
}

.nav-item--account {
  position: relative;
  margin-left: 10px;
}

.nav-account-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  cursor: pointer;
  box-sizing: border-box;
  transition:
    background 0.25s var(--ease),
    border-color 0.25s var(--ease),
    color 0.25s var(--ease);
}

.nav-account-btn:hover,
.nav-account-btn:focus-visible,
.nav-item--account.is-open .nav-account-btn {
  background: rgba(var(--accent-rgb), 0.12);
  border-color: rgba(var(--accent-rgb), 0.45);
  color: var(--accent);
}

.nav-account-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 80;
  width: min(280px, calc(100vw - 32px));
  padding: 16px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(18, 20, 24, 0.96);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  display: grid;
  gap: 10px;
}

.nav-account-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
}

.nav-account-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.nav-account-panel input {
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
}

.nav-account-panel input:focus {
  outline: none;
  border-color: rgba(var(--accent-rgb), 0.55);
}

.nav-account-save {
  width: 100%;
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.25s var(--ease);
}

.nav-account-save:hover,
.nav-account-save:focus-visible {
  background: var(--accent-bright);
}

.nav-search {
  position: relative;
  width: 180px;
  min-width: 180px;
  flex: 0 0 180px;
}

.nav-search-field {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 40px;
  padding: 0 10px 0 12px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}

.nav-search.is-open .nav-search-field,
.nav-search-field:focus-within {
  border-color: rgba(var(--accent-rgb), 0.45);
  background: rgba(255, 255, 255, 0.05);
  box-shadow:
    0 0 0 1px rgba(var(--accent-rgb), 0.1),
    0 0 14px 2px rgba(var(--accent-rgb), 0.18);
}

.nav-search-icon {
  display: inline-flex;
  color: var(--text-dim);
  flex-shrink: 0;
}

.nav-search-svg {
  display: block;
  overflow: visible;
}

.nav-search-current {
  opacity: 0;
  pointer-events: none;
}

.nav-search-field:focus-within .nav-search-icon,
.nav-search.is-open .nav-search-icon {
  color: var(--accent);
}

.nav-search-field:focus-within .nav-search-current,
.nav-search.is-open .nav-search-current {
  opacity: 1;
  stroke: var(--accent-bright);
  /* 路径总长约 39：圆环≈28.3 + 手柄往返≈10.8 */
  stroke-dasharray: 5 34;
  animation: searchCurrentLoop 1.45s linear infinite;
  filter: drop-shadow(0 0 2px rgba(var(--accent-rgb), 1))
    drop-shadow(0 0 5px rgba(var(--accent-rgb), 0.9));
}

@keyframes searchCurrentLoop {
  to {
    stroke-dashoffset: -39;
  }
}

.nav-search-input {
  width: 100%;
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.2;
}

.nav-search-input::placeholder {
  color: var(--text-dim);
}

.nav-search-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.nav-search-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text-dim);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

.nav-search-clear[hidden] {
  display: none !important;
}

.nav-search-clear:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.nav-search-results {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(360px, calc(100vw - 40px));
  max-height: min(420px, 60vh);
  overflow: auto;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: rgba(18, 21, 26, 0.97);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45);
  z-index: 50;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.45) rgba(255, 255, 255, 0.06);
}

.nav-search-results::-webkit-scrollbar {
  width: 8px;
}

.nav-search-results::-webkit-scrollbar-track {
  margin: 8px 0;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
}

.nav-search-results::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
  min-height: 40px;
}

.nav-search-results::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.65);
  background-clip: padding-box;
  border: 2px solid transparent;
}

.nav-search-results::-webkit-scrollbar-corner {
  background: transparent;
}

.nav-search-results[hidden] {
  display: none !important;
}

.nav-search-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}

.nav-search-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.nav-search-item:hover,
.nav-search-item:focus-visible {
  background: var(--bg-hover);
  border-color: rgba(var(--accent-rgb), 0.28);
}

.nav-search-item-thumb {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.nav-search-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.nav-search-item-body {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.nav-search-item-sku {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

.nav-search-item-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.nav-search-item-cat {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.nav-search-empty {
  margin: 0;
  padding: 16px 12px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.nav-search-more {
  display: block;
  margin-top: 6px;
  padding: 10px 12px;
  text-align: center;
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 650;
  color: var(--accent);
  transition: background 0.2s var(--ease);
}

.nav-search-more:hover,
.nav-search-more:focus-visible {
  background: rgba(var(--accent-rgb), 0.08);
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-height: 44px;
  padding: 8px 10px;
  border-radius: 8px;
  position: relative;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

.nav-en {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  white-space: nowrap;
}

.nav-zh {
  font-size: 0.78rem;
  color: var(--text-dim);
  line-height: 1.2;
  white-space: nowrap;
  transition: color 0.25s var(--ease);
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-item.is-open > .nav-trigger {
  background: rgba(255, 255, 255, 0.05);
}

.nav-link:hover .nav-zh,
.nav-link:focus-visible .nav-zh,
.nav-item.is-open > .nav-trigger .nav-zh,
.nav-link.is-active .nav-zh {
  color: var(--text-muted);
}

.nav-link.is-active::before,
.nav-link:hover::before {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 6px;
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.55);
  filter: blur(8px);
  transform-origin: left;
  animation: underlineIn 0.35s var(--ease);
  pointer-events: none;
  z-index: 0;
}

.nav-link.is-active::after,
.nav-link:hover::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform-origin: left;
  animation: underlineIn 0.35s var(--ease);
  z-index: 1;
}

.nav-link--cta::before,
.nav-link--cta::after {
  display: none !important;
}

.nav-link--cta {
  margin-left: 0;
  width: 7.5rem;
  min-width: 7.5rem;
  padding-inline: 16px;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: var(--accent);
  color: var(--accent-ink);
  box-sizing: border-box;
  box-shadow: none;
  transition:
    background 0.25s var(--ease),
    color 0.25s var(--ease),
    box-shadow 0.25s var(--ease),
    filter 0.25s var(--ease);
}

.nav-link--cta .nav-en,
.nav-link--cta .nav-zh {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.nav-link--cta .nav-zh {
  color: var(--accent-ink);
}

.nav-link--cta:hover,
.nav-link--cta:focus-visible {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow:
    0 0 0 1px rgba(var(--accent-rgb), 0.5),
    0 0 18px rgba(var(--accent-rgb), 0.55),
    0 0 40px rgba(var(--accent-rgb), 0.35);
  filter: brightness(1.05);
}

.nav-item--lang {
  margin-left: 12px;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  min-width: 64px;
  min-height: 44px;
  padding: 8px 0;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  box-sizing: border-box;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.lang-toggle:hover,
.lang-toggle:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(var(--accent-rgb), 0.35);
  color: var(--accent);
}

.nav-trigger {
  width: 100%;
  text-align: left;
  text-decoration: none;
  box-sizing: border-box;
}

.nav-item.has-dropdown .nav-trigger {
  position: relative;
  padding-right: 28px;
}

.nav-chevron {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 22px;
  height: 28px;
  cursor: pointer;
}

.nav-chevron .chevron {
  position: static;
  flex-shrink: 0;
  opacity: 0.55;
  transform: none;
  transition: transform 0.3s var(--ease), opacity 0.25s var(--ease);
}

.nav-item.is-open .nav-chevron .chevron,
.nav-item:hover .nav-chevron .chevron {
  transform: rotate(180deg);
  opacity: 0.9;
}

/* Dropdown — Huawei / DJI flyout */
.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 640px;
  min-width: 640px;
  max-width: calc(100vw - 48px);
  padding-top: 12px; /* 与菜单项无缝衔接，避免下移时断开 */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 1200;
  transition: opacity 0.28s var(--ease), visibility 0.28s;
}

.nav-item.is-open > .dropdown,
.nav-item.has-dropdown:hover > .dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.dropdown-panel {
  background: rgba(18, 21, 26, 0.96);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  padding: 18px;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transform: translateY(6px);
  transition: transform 0.28s var(--ease);
}

.nav-item.is-open > .dropdown .dropdown-panel,
.nav-item.has-dropdown:hover > .dropdown .dropdown-panel {
  transform: translateY(0);
}

.dropdown-label {
  margin: 0 0 12px;
  padding: 0 6px;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.dropdown-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  align-items: stretch;
}

/* 地材 2×2：单栏宽度与商用三栏中的一栏一致 */
#dropdown-flooring {
  width: calc(36px + ((640px - 36px - 16px) / 3) * 2 + 8px);
  min-width: calc(36px + ((640px - 36px - 16px) / 3) * 2 + 8px);
}

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

.dropdown-grid > li {
  display: flex;
  min-height: 0;
  min-width: 0;
}

.dropdown-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 12px;
  width: 100%;
  min-width: 0;
  min-height: 78px;
  height: 100%;
  padding: 14px 14px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: var(--bg-elevated);
  transition:
    background 0.25s var(--ease),
    border-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease),
    transform 0.25s var(--ease);
}

.dropdown-card:hover,
.dropdown-card:focus-visible {
  background: var(--bg-hover);
  border-color: rgba(var(--accent-rgb), 0.55);
  box-shadow:
    0 0 0 1px rgba(var(--accent-rgb), 0.12),
    0 0 12px 2px rgba(var(--accent-rgb), 0.35),
    0 0 28px 6px rgba(var(--accent-rgb), 0.18);
  transform: translateY(-1px);
}

.dropdown-card-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(var(--accent-rgb), 0.08);
  color: var(--accent);
}

.dropdown-card-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.dropdown-en {
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  line-height: 1.2;
}

.dropdown-zh {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  line-height: 1.2;
}

/* Mobile toggle */
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  z-index: 2;
  border-radius: 10px;
  flex-shrink: 0;
}

.menu-toggle:hover {
  background: rgba(255, 255, 255, 0.05);
}

.menu-toggle-bar {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.site-header.is-open .menu-toggle-bar:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.site-header.is-open .menu-toggle-bar:nth-child(2) {
  opacity: 0;
}

.site-header.is-open .menu-toggle-bar:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ——— Home hero ——— */
.home-hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}

body.is-home .home-hero {
  min-height: 100%;
  height: 100%;
}

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

.home-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.1s var(--ease), transform 7.5s var(--ease);
}

.home-hero-img.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

.home-hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(8, 10, 13, 0.82) 0%, rgba(8, 10, 13, 0.45) 42%, rgba(8, 10, 13, 0.18) 72%, rgba(8, 10, 13, 0.35) 100%),
    linear-gradient(180deg, rgba(8, 10, 13, 0.25) 0%, transparent 35%, rgba(8, 10, 13, 0.78) 100%);
}

.home-hero-hit {
  position: absolute;
  inset: 0;
  z-index: 1;
  cursor: pointer;
}

.home-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 48px 28px 72px;
  pointer-events: none;
}

.home-hero-content a,
.home-hero-content button {
  pointer-events: auto;
}

.home-hero-brand {
  margin: 0 0 22px;
  line-height: 0;
}

/* Hero logo: LTR wipe on first enter / layer change — not on slide change */
.home-hero-logo-glow,
.home-intro-logo-glow {
  position: relative;
  display: inline-block;
  line-height: 0;
}

.home-hero-logo-wipe {
  position: relative;
  z-index: 1;
  display: inline-block;
  line-height: 0;
  clip-path: inset(0 100% 0 0);
  opacity: 0;
  transform: translate3d(-10px, 0, 0);
  transition:
    clip-path 0.95s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: clip-path, opacity, transform;
}

.home-hero-logo-wipe.is-in {
  clip-path: inset(0 0 0 0);
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.home-hero-logo-wipe.is-out {
  clip-path: inset(0 100% 0 0);
  opacity: 0;
  transform: translate3d(-10px, 0, 0);
  transition-duration: 0.85s, 0.65s, 0.75s;
}

.home-hero-logo {
  display: block;
  width: min(280px, 36vw);
  height: auto;
  max-height: clamp(36px, 5.5vw, 58px);
  object-fit: contain;
  object-position: left center;
}

.brand-go {
  color: var(--accent);
}

.brand-name {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  letter-spacing: 0.02em;
  font-size: 1.22em;
}

.home-hero-panels {
  position: relative;
  min-height: 210px;
  --hero-copy-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

.home-hero-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 0;
}

.home-hero-panel.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 2;
}

.home-hero-panel:not(.is-active) .home-hero-line {
  opacity: 0 !important;
  animation: none !important;
  visibility: hidden !important;
}

.home-hero-line {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
}

.home-hero-line.is-in {
  animation: heroLineIn 0.8s var(--hero-copy-ease) forwards;
  visibility: visible;
}

.home-hero-line.is-out {
  /* Hold visible until out-keyframe runs (avoids snap to default opacity:0) */
  opacity: 1;
  transform: translate3d(0, 0, 0);
  visibility: visible;
  animation: heroLineOut 0.95s var(--hero-copy-ease) both;
}

@keyframes heroLineIn {
  from {
    opacity: 0;
    transform: translate3d(0, 28px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

/* Reverse of heroLineIn */
@keyframes heroLineOut {
  from {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
  to {
    opacity: 0;
    transform: translate3d(0, 28px, 0);
  }
}

.home-hero-title {
  margin: 0 0 14px;
  max-width: 18em;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.35;
  color: rgba(243, 245, 247, 0.96);
}

.home-hero-lead {
  margin: 0 0 28px;
  max-width: 34em;
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(243, 245, 247, 0.72);
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.home-hero-dots {
  display: flex;
  gap: 10px;
  margin-top: 28px;
  animation: heroBrandIn 0.9s var(--ease) 0.35s both;
}

.home-hero-brand.is-out,
.home-hero-dots.is-out {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  animation: heroBrandOut 0.85s var(--ease) both;
}

@keyframes heroBrandIn {
  from {
    opacity: 0;
    transform: translate3d(0, 14px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

/* Reverse of heroBrandIn */
@keyframes heroBrandOut {
  from {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
  to {
    opacity: 0;
    transform: translate3d(0, 14px, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero-brand,
  .home-hero-dots,
  .home-hero-panel,
  .home-hero-panel.is-exit,
  .home-hero-line,
  .home-hero-img {
    animation: none !important;
    transition: none !important;
  }

  .home-hero-line,
  .home-hero-line.is-in {
    opacity: 1;
    transform: none;
  }
}

.home-hero-dot {
  width: 28px;
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.28);
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}

.home-hero-dot.is-active {
  background: var(--accent);
  transform: scaleX(1.15);
}

.home-hero-dot:hover {
  background: rgba(255, 255, 255, 0.55);
}

.home-hero-nav {
  position: absolute;
  top: 44%;
  z-index: 3;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  padding: 12px 8px;
  border-radius: 0;
  color: rgba(255, 255, 255, 0.88);
  background: transparent;
  border: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: color 0.25s var(--ease), opacity 0.25s var(--ease), transform 0.25s var(--ease), filter 0.25s var(--ease);
  /* Larger tap/click target without growing the visible arrow */
  cursor: pointer;
}

.home-hero-nav::before {
  content: "";
  position: absolute;
  /* ~56×64 visual icon box → ~88×96 hit area */
  inset: -22px -28px;
}

.home-hero-nav svg {
  position: relative;
  z-index: 1;
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 1px 6px rgba(0, 0, 0, 0.45));
  transition: filter 0.25s var(--ease);
  pointer-events: none;
}

.home-hero-nav:hover {
  color: var(--accent-bright);
  background: transparent;
  border-color: transparent;
  filter: drop-shadow(0 0 8px rgba(var(--accent-rgb), 0.85))
    drop-shadow(0 0 18px rgba(var(--accent-rgb), 0.55));
}

.home-hero-nav:hover svg {
  filter: drop-shadow(0 0 6px rgba(var(--accent-rgb), 0.95))
    drop-shadow(0 0 16px rgba(var(--accent-rgb), 0.7));
}

.home-hero-nav:active {
  transform: translateY(-50%) scale(0.94);
  opacity: 0.85;
}

.home-hero-nav--prev {
  left: 8px;
}

.home-hero-nav--next {
  right: 8px;
}

.home-hero .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  transition:
    background 0.25s var(--ease),
    border-color 0.25s var(--ease),
    color 0.25s var(--ease),
    box-shadow 0.25s var(--ease),
    filter 0.25s var(--ease);
}

.home-hero .btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: none;
}

.home-hero .btn-primary:hover,
.home-hero .btn-primary:focus-visible {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow:
    0 0 0 1px rgba(var(--accent-rgb), 0.5),
    0 0 18px rgba(var(--accent-rgb), 0.55),
    0 0 40px rgba(var(--accent-rgb), 0.35);
  filter: brightness(1.05);
}

.home-hero .btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(8px);
}

.home-hero .btn-ghost:hover,
.home-hero .btn-ghost:focus-visible {
  border-color: rgba(var(--accent-rgb), 0.7);
  background: rgba(var(--accent-rgb), 0.16);
  color: #fff;
  box-shadow:
    0 0 0 1px rgba(var(--accent-rgb), 0.45),
    0 0 18px rgba(var(--accent-rgb), 0.5),
    0 0 40px rgba(var(--accent-rgb), 0.28);
  filter: brightness(1.05);
}

@media (max-width: 720px) {
  .home-hero-content {
    padding: 36px 20px 56px;
  }

  .home-hero-logo {
    width: min(200px, 56vw);
    max-height: 40px;
  }

  .home-hero-actions {
    width: 100%;
  }

  .home-hero .btn {
    flex: 1 1 auto;
  }

  .home-hero-nav {
    padding: 10px 4px;
  }

  .home-hero-nav::before {
    /* Prefer ~44px+ touch target on small screens */
    inset: -18px -22px;
  }

  .home-hero-nav svg {
    width: 24px;
    height: 24px;
  }

  .home-hero-nav--prev {
    left: 2px;
  }

  .home-hero-nav--next {
    right: 2px;
  }
}

@keyframes underlineIn {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ——— Responsive ——— */
/* Windowed / mid desktops: compress before items collide with tools */
@media (max-width: 1480px) {
  .header-inner {
    padding-inline: 20px;
    gap: 12px;
  }

  .nav-link {
    padding-inline: 8px;
  }

  .nav-en {
    font-size: 0.9rem;
  }

  html[data-lang="zh"] .nav-zh {
    font-size: 0.95rem;
  }

  .primary-nav {
    gap: 14px;
  }

  /* Icon search by default; expand left on focus so labels stay readable */
  .header-end .nav-search {
    width: 44px;
    min-width: 44px;
    flex: 0 0 44px;
    transition: width 0.28s var(--ease), box-shadow 0.28s var(--ease);
  }

  .header-end .nav-search-input {
    width: 0;
    min-width: 0;
    opacity: 0;
    pointer-events: none;
    padding: 0;
  }

  .header-end .nav-search-clear {
    display: none;
  }

  .header-end .nav-search:focus-within,
  .header-end .nav-search.is-open {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 220px;
    min-width: 220px;
    z-index: 5;
  }

  .header-end .nav-search:focus-within .nav-search-input,
  .header-end .nav-search.is-open .nav-search-input {
    width: 100%;
    opacity: 1;
    pointer-events: auto;
  }

  .header-end .nav-search:focus-within .nav-search-clear,
  .header-end .nav-search.is-open .nav-search-clear {
    display: inline-flex;
  }
}

@media (max-width: 1360px) {
  .header-inner {
    padding-inline: 16px;
    gap: 10px;
  }

  .logo-img {
    height: 28px;
    max-width: 104px;
  }

  .nav-link {
    padding-inline: 6px;
  }

  .nav-en {
    font-size: 0.84rem;
  }

  html[data-lang="zh"] .nav-zh {
    font-size: 0.9rem;
  }

  .nav-item.has-dropdown .nav-trigger {
    padding-right: 22px;
  }

  .nav-chevron {
    right: 2px;
  }

  .primary-nav {
    gap: 10px;
  }

  .nav-item--lang {
    margin-left: 8px;
  }

  .nav-item--cta {
    margin-left: 8px;
  }

  .nav-item--account {
    margin-left: 8px;
  }

  .nav-link--cta {
    width: 6.75rem;
    min-width: 6.75rem;
    padding-inline: 12px;
  }

  .lang-toggle {
    width: 56px;
    min-width: 56px;
  }
}

/* Compact header: search left of menu; right drawer + left secondary */
@media (max-width: 1280px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .logo-img {
    height: 32px;
    max-width: 120px;
  }

  .header-inner {
    gap: 12px;
    align-items: center;
  }

  .header-end {
    margin-left: auto;
    gap: 8px;
    position: relative;
    z-index: 1002;
    align-items: center;
    align-self: center;
  }

  /* Keep search in the top bar, left of the menu button */
  .header-end .nav-search {
    width: 44px;
    min-width: 44px;
    flex: 0 0 44px;
  }

  .header-end .nav-search:focus-within,
  .header-end .nav-search.is-open {
    position: absolute;
    right: calc(44px + 8px);
    left: auto;
    top: 50%;
    transform: translateY(-50%);
    width: min(240px, calc(100vw - 120px));
    min-width: 0;
    z-index: 1003;
  }

  .header-end .nav-search-results {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: auto;
    width: min(320px, calc(100vw - 32px));
    max-height: 320px;
  }

  /* Right-side vertical primary menu
     Note: no transform / overflow on this node — otherwise fixed
     secondary panels get trapped or clipped inside the drawer. */
  .primary-nav {
    --nav-drawer-w: min(300px, 78vw);
    --nav-sub-w: min(260px, calc(100vw - var(--nav-drawer-w)));
    position: fixed;
    top: var(--header-h);
    right: 0;
    bottom: 0;
    left: auto;
    width: var(--nav-drawer-w);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 10px 12px 28px;
    background: #0b0d10;
    border-left: 1px solid var(--line);
    overflow: visible;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 1001;
    transition: opacity 0.28s var(--ease), visibility 0.28s;
  }

  .site-header.is-open .primary-nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  /* Dim page content behind the drawers */
  .site-header.is-open::before {
    content: "";
    position: fixed;
    inset: var(--header-h) 0 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 999;
    pointer-events: none;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    width: 100%;
    margin-left: 0;
  }

  .nav-list--main {
    flex: 1 1 auto;
    max-width: none;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .nav-list--tools {
    position: static;
    transform: none;
    margin-top: 0;
    padding-top: 12px;
    width: 100%;
    flex: 0 0 auto;
    border-top: 1px solid var(--line);
  }

  .nav-item {
    position: static;
  }

  .nav-item--cta {
    margin-left: 0;
    margin-top: 8px;
  }

  .nav-item--account {
    margin-left: 0;
    margin-top: 10px;
    display: flex;
    justify-content: center;
  }

  .nav-account-panel {
    position: static;
    width: 100%;
    margin-top: 10px;
    box-shadow: none;
  }

  .nav-item--lang {
    margin-left: 0;
    margin-top: 8px;
  }

  .lang-toggle {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    border-radius: 10px;
    font-size: 0.9rem;
  }

  .nav-link {
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 14px 12px;
    border-radius: 10px;
    text-align: left;
  }

  html[data-lang="en"] .nav-link,
  html[data-lang="zh"] .nav-link {
    justify-content: flex-start;
  }

  .nav-en {
    font-size: 1rem;
  }

  .nav-zh {
    font-size: 0.9rem;
  }

  html[data-lang="zh"] .nav-zh {
    font-size: 1.05rem;
  }

  .nav-link.is-active::before,
  .nav-link:hover::before,
  .nav-link.is-active::after,
  .nav-link:hover::after {
    display: none;
  }

  .nav-link--cta {
    width: 100%;
    min-width: 0;
    margin: 0;
    justify-content: center;
  }

  .nav-item.has-dropdown .nav-trigger {
    padding-right: 36px;
  }

  /* Chevron points left — submenu opens on the left */
  .nav-chevron {
    right: 10px;
  }

  .nav-chevron .chevron {
    transform: rotate(90deg);
  }

  .nav-item.is-open .nav-chevron .chevron,
  .nav-item:hover .nav-chevron .chevron {
    transform: rotate(90deg);
    opacity: 0.9;
  }

  .nav-item.is-open > .nav-trigger {
    background: rgba(255, 255, 255, 0.06);
    color: var(--accent);
  }

  /* Secondary nav — left of drawer, only as tall as its buttons */
  .dropdown {
    position: fixed;
    top: var(--header-h);
    bottom: auto;
    right: var(--nav-drawer-w);
    left: auto;
    width: var(--nav-sub-w);
    min-width: 0;
    max-width: none;
    height: auto;
    max-height: min(70vh, calc(100vh - var(--header-h) - 24px));
    padding: 0 8px 0 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    overflow: visible;
    transform: none;
    background: transparent;
    transition: opacity 0.28s var(--ease), visibility 0.28s;
    z-index: 1000;
  }

  .nav-item.has-dropdown:hover > .dropdown {
    /* mobile: tap only, ignore hover open from desktop rules */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .nav-item.is-open > .dropdown,
  .nav-item.is-open.has-dropdown:hover > .dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    margin: 0;
    transform: none;
  }

  .dropdown-panel {
    height: auto;
    max-height: inherit;
    border-radius: 12px;
    border: 1px solid var(--line-strong);
    padding: 10px;
    background: #12151a;
    box-shadow: -8px 8px 28px rgba(0, 0, 0, 0.4);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transform: none;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .nav-item.is-open > .dropdown .dropdown-panel,
  .nav-item.has-dropdown:hover > .dropdown .dropdown-panel {
    transform: none;
  }

  #dropdown-flooring,
  #dropdown-commercial {
    width: var(--nav-sub-w);
    min-width: 0;
  }

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

  #dropdown-flooring .dropdown-grid {
    grid-template-columns: 1fr;
  }

  .dropdown-grid > li {
    min-width: 0;
  }

  .dropdown-card {
    width: 100%;
    min-width: 0;
    min-height: 56px;
    grid-template-columns: auto 1fr;
    padding: 12px;
  }

  .dropdown-card-text {
    min-width: 0;
  }

  .dropdown-en,
  .dropdown-zh {
    white-space: normal;
  }

  html[data-lang="zh"] .dropdown-zh {
    font-size: 0.95rem;
  }
}

/* ——— Buttons (shared; hero keeps its own overrides) ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.92rem;
  transition:
    background 0.25s var(--ease),
    border-color 0.25s var(--ease),
    color 0.25s var(--ease),
    box-shadow 0.25s var(--ease),
    filter 0.25s var(--ease);
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: none;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow:
    0 0 0 1px rgba(var(--accent-rgb), 0.5),
    0 0 18px rgba(var(--accent-rgb), 0.55),
    0 0 40px rgba(var(--accent-rgb), 0.35);
  filter: brightness(1.05);
}

.btn-ghost {
  border: 1px solid var(--line-strong);
  color: var(--text);
  box-shadow: none;
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: rgba(var(--accent-rgb), 0.7);
  background: rgba(var(--accent-rgb), 0.16);
  color: var(--text);
  box-shadow:
    0 0 0 1px rgba(var(--accent-rgb), 0.45),
    0 0 18px rgba(var(--accent-rgb), 0.5),
    0 0 40px rgba(var(--accent-rgb), 0.28);
  filter: brightness(1.05);
}

/* ——— Home full-page layers (one window per section) ——— */
body.is-home {
  height: 100dvh;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

body.is-home .site-header {
  position: relative;
  flex: 0 0 auto;
  top: auto;
  /* Keep nav items aligned with pages that have a scrollbar — pad inside the bar only
     (full-bleed header, no empty page gutter / black strip). */
  padding-right: var(--scrollbar-width, 0px);
}

.home-snap {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  overscroll-behavior: none;
}

.home-snap-track {
  height: 100%;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  transition: transform 1.05s cubic-bezier(0.65, 0.05, 0.36, 1);
}

/* Hard-lock first paint on hero before JS runs */
body.is-home .home-snap-track {
  transform: translate3d(0, 0, 0);
}

@media (prefers-reduced-motion: reduce) {
  .home-snap-track {
    transition: none !important;
  }
}

/* Hide scrollbars inside each home layer */
.home-snap *,
.home-snap *::-webkit-scrollbar {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.home-snap *::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.home-snap-track > .home-hero,
.home-snap-track > .home-section {
  height: 100%;
  min-height: 100%;
  max-height: 100%;
  box-sizing: border-box;
}

/* ——— Home page sections ——— */
.home-section {
  position: relative;
  padding: clamp(28px, 4vh, 56px) 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

body.is-home .home-section {
  scroll-margin-top: 0;
}

.home-section-inner {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.home-snap .home-section > .home-section-inner {
  width: min(1120px, calc(100% - 48px));
  max-height: 100%;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.home-snap .home-section > .home-section-inner::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.home-snap .home-showcase-rail {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.home-snap .home-showcase-rail::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.home-featured.home-section {
  justify-content: center;
  padding: 0;
}

.home-section-head {
  max-width: 36em;
  margin-bottom: clamp(28px, 4vw, 40px);
}

.home-snap .home-section-head {
  margin-bottom: clamp(16px, 2.5vh, 28px);
}

.home-section-title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.6vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--text);
}

.home-section-title-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

.home-section-title-link:hover,
.home-section-title-link:focus-visible {
  color: var(--accent-bright);
  outline: none;
}

.home-intro .home-section-title .brand-name {
  font-size: 1.35em;
  margin-left: 0.42em;
}

.home-intro-title-row.home-intro-line {
  /* Logo + CJK caps taller than text metrics — don't clip tops */
  overflow: visible;
}

.home-intro-title-row .home-intro-line-inner {
  display: inline-flex;
  align-items: center;
  gap: 0.72em;
  flex-wrap: wrap;
}

.home-intro-brand-logo {
  position: relative;
  z-index: 1;
  display: block;
  height: clamp(1.9rem, 4vw, 2.75rem);
  width: auto;
  object-fit: contain;
}

/* Logo emerges left → right as the title settles in */
.home-intro-logo-wipe {
  position: relative;
  display: inline-block;
  line-height: 0;
  vertical-align: middle;
  clip-path: inset(0 100% 0 0);
  opacity: 0;
  transform: translate3d(-10px, 0, 0);
  transition:
    clip-path 0.95s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--reveal-delay, 0ms) + 80ms);
}

.home-intro-title-row.is-in .home-intro-logo-wipe {
  clip-path: inset(0 0 0 0);
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.home-intro.is-intro-leave-up .home-intro-title-row:not(.is-in) .home-intro-logo-wipe,
.home-intro.is-intro-leave-down .home-intro-title-row:not(.is-in) .home-intro-logo-wipe {
  clip-path: inset(0 100% 0 0);
  opacity: 0;
  transform: translate3d(-8px, 0, 0);
  transition-delay: 0ms;
}

.home-section-lead {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.home-section-actions {
  margin: 28px 0 0;
}

.home-reveal {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

.home-reveal.is-in {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* Apple-like fan: unfold from top-left → bottom-right with the snap */
.home-showcase.home-section,
.home-news.home-section,
.home-cases.home-section {
  overflow: hidden;
}

.home-cases.home-section {
  justify-content: flex-start;
  padding-top: clamp(10px, 1.6vh, 18px);
  padding-bottom: clamp(20px, 3vh, 40px);
}

.home-fan {
  opacity: 0;
  transform: translate3d(-72px, -80px, 0) scale(0.78);
  transform-origin: 0% 0%;
  filter: blur(14px);
  clip-path: inset(0 55% 55% 0);
  transition:
    opacity 1.15s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.25s cubic-bezier(0.16, 1, 0.3, 1),
    filter 1.1s cubic-bezier(0.16, 1, 0.3, 1),
    clip-path 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--fan-delay, 0ms);
  will-change: transform, opacity, filter, clip-path;
}

.home-fan.is-in {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
  clip-path: inset(0 0 0 0);
}

.home-fan.is-out {
  opacity: 0;
  transform: translate3d(36px, 40px, 0) scale(0.92);
  filter: blur(8px);
  clip-path: inset(20% 0 0 35%);
  transition-duration: 0.5s, 0.55s, 0.45s, 0.5s;
  transition-delay: 0ms;
}

/* News: fan whole columns (same language as cases big stage), not each card */
.home-news .home-news-col.home-fan {
  transform-origin: 0% 0%;
}

.home-news .home-news-head.home-fan {
  transform-origin: 0% 0%;
}

.home-news .home-fan:not(.is-in) {
  transform: translate3d(-64px, -72px, 0) scale(0.82);
  filter: blur(12px);
  clip-path: inset(0 50% 45% 0);
}

.home-news .home-fan.is-in {
  transition-duration: 1.2s, 1.35s, 1.15s, 1.3s;
}

/* About Us page — same Apple fan language as home layers */
html.is-about-page {
  background: #0b0d10;
}

html.is-about-page .page-hero {
  animation: none;
}

.about-fan {
  opacity: 0;
  transform: translate3d(-72px, -80px, 0) scale(0.78);
  transform-origin: 0% 0%;
  filter: blur(14px);
  clip-path: inset(0 55% 55% 0);
  transition:
    opacity 1.15s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.25s cubic-bezier(0.16, 1, 0.3, 1),
    filter 1.1s cubic-bezier(0.16, 1, 0.3, 1),
    clip-path 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--fan-delay, 0ms);
  will-change: transform, opacity, filter, clip-path;
}

.about-fan.is-in {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
  clip-path: inset(0 0 0 0);
}

/* Row pairs: open from their own side as you scroll into them */
.about-row:not(.about-row--flip) .about-row-copy.about-fan:not(.is-in) {
  transform-origin: 0% 40%;
  transform: translate3d(-48px, 28px, 0) scale(0.92);
  clip-path: inset(0 45% 35% 0);
}

.about-row:not(.about-row--flip) .about-row-media.about-fan:not(.is-in) {
  transform-origin: 100% 40%;
  transform: translate3d(48px, 28px, 0) scale(0.92);
  clip-path: inset(0 0 35% 45%);
}

.about-row--flip .about-row-media.about-fan:not(.is-in) {
  transform-origin: 0% 40%;
  transform: translate3d(-48px, 28px, 0) scale(0.92);
  clip-path: inset(0 45% 35% 0);
}

.about-row--flip .about-row-copy.about-fan:not(.is-in) {
  transform-origin: 100% 40%;
  transform: translate3d(48px, 28px, 0) scale(0.92);
  clip-path: inset(0 0 35% 45%);
}

.about-fan.is-out {
  /* Floor opacity so leave can finish reading before navigate (no black hold) */
  opacity: 0.22;
  transform: translate3d(36px, 40px, 0) scale(0.9);
  filter: blur(10px);
  clip-path: inset(22% 0 0 38%);
  transition-duration: 0.58s, 0.65s, 0.55s, 0.62s;
  transition-delay: var(--fan-delay, 0ms);
}

html.is-about-leaving {
  pointer-events: none;
}

html.is-about-leaving body {
  background: #0b0d10;
}

/* Home restore: hide first paint (hero) until the saved layer is settled */
html.is-home-restore-pending,
html.is-home-restore-pending body {
  background: #0b0d10;
}

html.is-home-restore-pending body.is-home > .site-header,
html.is-home-restore-pending body.is-home > .home-snap {
  opacity: 0;
  pointer-events: none;
}

html.is-home-restore-pending .home-snap-track {
  transform: translate3d(0, calc(var(--home-restore-layer, 0) * -100vh), 0) !important;
  transition: none !important;
}

html.is-home-restored body.is-home > .site-header,
html.is-home-restored body.is-home > .home-snap {
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Home wake: like opening eyes — dark + soft blur → slowly clear */
html.is-home-waking,
html.is-home-waking body {
  background: #050608;
}

html.is-home-waking body.is-home > .site-header,
html.is-home-waking body.is-home > .home-snap {
  opacity: 0;
  filter: blur(16px) brightness(0.45) saturate(0.7);
  transform: scale(1.028);
  pointer-events: none;
  transition: none;
  will-change: opacity, filter, transform;
}

html.is-home-waking.is-home-awake body.is-home > .site-header,
html.is-home-waking.is-home-awake body.is-home > .home-snap {
  opacity: 1;
  filter: blur(0) brightness(1) saturate(1);
  transform: scale(1);
  pointer-events: auto;
  transition:
    opacity 1.1s cubic-bezier(0.22, 1, 0.36, 1),
    filter 1.35s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

html.is-home-waking.is-home-awake body.is-home > .site-header {
  transition-delay: 0.08s, 0.08s, 0.08s;
}

@media (prefers-reduced-motion: reduce) {
  html.is-home-waking body.is-home > .site-header,
  html.is-home-waking body.is-home > .home-snap,
  html.is-home-waking.is-home-awake body.is-home > .site-header,
  html.is-home-waking.is-home-awake body.is-home > .home-snap {
    opacity: 1;
    filter: none;
    transform: none;
    pointer-events: auto;
    transition: none;
  }

  .about-fan,
  .about-fan.is-in,
  .about-fan.is-out,
  .about-row .about-row-copy.about-fan:not(.is-in),
  .about-row .about-row-media.about-fan:not(.is-in),
  .about-story-actions.about-fan:not(.is-in) {
    opacity: 1;
    transform: none;
    filter: none;
    clip-path: none;
    transition: none;
  }
}

/* Intro — safe center: when content is taller than the layer, align from top
   so "About irongoo" is not clipped by overflow */
.home-intro.home-section {
  justify-content: safe center;
  justify-content: center;
}

@supports (justify-content: safe center) {
  .home-intro.home-section {
    justify-content: safe center;
  }
}

.home-snap .home-intro > .home-section-inner.home-intro-grid {
  width: min(1200px, calc(100% - 48px));
  max-height: 100%;
  height: auto;
  overflow-x: hidden;
  /* Must not become a nested scroller — that traps wheel and blocks snap */
  overflow-y: hidden;
  overscroll-behavior: none;
  align-content: safe center;
  align-content: center;
}

@supports (align-content: safe center) {
  .home-snap .home-intro > .home-section-inner.home-intro-grid {
    align-content: safe center;
  }
}

.home-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

.home-intro-copy {
  min-width: 0;
  padding-top: 0;
}

.home-intro-copy .lang-en,
.home-intro-copy .lang-zh {
  display: block;
}

.home-intro-copy .home-section-title {
  color: #fff;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.home-intro-copy .home-section-lead {
  font-size: clamp(1.05rem, 1.5vw, 1.15rem);
  font-weight: 500;
  line-height: 1.7;
  color: rgba(243, 245, 247, 0.92);
}

.home-intro-body {
  margin: 14px 0 0;
  max-width: 36em;
  font-size: clamp(0.98rem, 1.25vw, 1.06rem);
  line-height: 1.7;
  color: rgba(230, 234, 238, 0.88);
  font-weight: 400;
}

.home-intro-body + .home-intro-body {
  margin-top: 10px;
}

/* Animatable trap tip length (0 → full) so tips ease out instead of popping */
@property --intro-trap-now {
  syntax: "<length>";
  inherits: true;
  initial-value: 0px;
}

/* 2×2 collage — equal gutters; left column up / right column down */
.home-intro-gallery {
  --intro-gap: 12px;
  --intro-stagger: 32px;
  /* Reach across the stagger so TR top-left meets TL top-right, etc. */
  --intro-trap-reach: calc(var(--intro-stagger) * 2);
  --intro-trap-now: 0px;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: var(--intro-gap);
  width: 100%;
  /* Leave room for stagger padding so the layer does not overflow the snap viewport */
  height: min(calc(52vh - var(--intro-stagger)), 460px);
  min-height: 240px;
  align-self: center;
  padding: var(--intro-stagger) 0;
  box-sizing: border-box;
  overflow: visible;
}

.home-intro-gallery-col {
  flex: 1 1 0;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: var(--intro-gap);
  overflow: visible;
}

.home-intro-gallery-col--left {
  transform: translateY(calc(var(--intro-stagger) * -1));
}

.home-intro-gallery-col--right {
  transform: translateY(var(--intro-stagger));
}

/* Enter/leave lives here — must not share clip-path with trapezoid cells */
.home-intro-gallery-motion {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  min-height: 0;
  width: 100%;
  overflow: visible;
}

.home-intro-gallery-cell {
  position: absolute;
  inset: 0;
  overflow: hidden;
  isolation: isolate;
}

/*
  Right trapezoids grow with --intro-trap-now (0→reach) as soon as the tile
  writes in — no late pop after load / outer-clip unlock.
*/
.home-intro-gallery-cell--trap-tr,
.home-intro-gallery-cell--trap-bl {
  z-index: 2;
  overflow: visible;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transition: --intro-trap-now 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.home-intro-gallery-cell--trap-tr {
  clip-path: polygon(
    0% calc(0px - var(--intro-trap-now)),
    100% 0%,
    100% 100%,
    0% 100%
  );
}

.home-intro-gallery-cell--trap-tr .home-intro-gallery-shot {
  top: calc(0px - var(--intro-trap-reach));
  height: calc(100% + var(--intro-trap-reach));
}

.home-intro-gallery-cell--trap-bl {
  clip-path: polygon(
    0% 0%,
    100% 0%,
    100% calc(100% + var(--intro-trap-now)),
    0% 100%
  );
}

.home-intro-gallery-cell--trap-bl .home-intro-gallery-shot {
  height: calc(100% + var(--intro-trap-reach));
}

.home-intro-gallery-motion.is-in .home-intro-gallery-cell--trap-tr,
.home-intro-gallery-motion.is-in .home-intro-gallery-cell--trap-bl {
  --intro-trap-now: var(--intro-trap-reach);
}

/* Leave: tip length eases closed with the wipe (not an instant cut) */
.home-intro.is-intro-leave-up .home-intro-gallery-cell--trap-tr,
.home-intro.is-intro-leave-down .home-intro-gallery-cell--trap-tr,
.home-intro.is-intro-leave-up .home-intro-gallery-cell--trap-bl,
.home-intro.is-intro-leave-down .home-intro-gallery-cell--trap-bl,
.home-intro-gallery-motion:not(.is-in) .home-intro-gallery-cell--trap-tr,
.home-intro-gallery-motion:not(.is-in) .home-intro-gallery-cell--trap-bl {
  --intro-trap-now: 0px;
  transition: --intro-trap-now 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.home-intro-gallery-shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: saturate(0.94) contrast(1.03);
  /* No idle scale — scale + clip-path leaves 1px hairlines on trap edges */
  transform: none;
  opacity: 0;
  z-index: 0;
  pointer-events: none;
  transition:
    opacity 0.45s var(--ease),
    transform 0.55s var(--ease),
    filter 0.45s var(--ease);
}

.home-intro-gallery-shot.is-active {
  opacity: 1;
  z-index: 1;
}

.home-intro-gallery-cell:hover .home-intro-gallery-shot.is-active {
  transform: scale(1.06);
  filter: saturate(1.05) contrast(1.06);
}

.home-intro-measure {
  display: inline;
}

.home-intro-line {
  display: block;
  overflow: hidden;
}

.home-intro-line-inner {
  display: block;
}

/* Text + images: enter/leave with layer direction */
.home-intro-write {
  opacity: 0;
  transition:
    opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    clip-path 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, clip-path, transform;
}

/* Hidden start — only while not settled */
.home-intro-line.home-intro-write:not(.is-in),
.home-section-actions.home-intro-write:not(.is-in) {
  clip-path: inset(0 100% 0 0);
  transform: translate3d(-8px, 12px, 0);
}

.home-intro.is-intro-enter-up .home-intro-line.home-intro-write:not(.is-in),
.home-intro.is-intro-enter-up .home-section-actions.home-intro-write:not(.is-in) {
  clip-path: inset(0 100% 0 0);
  transform: translate3d(-8px, -12px, 0);
}

.home-intro-line.home-intro-write:not(.is-in) .home-intro-line-inner {
  transform: translate3d(0, 0.55em, 0);
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.home-intro.is-intro-enter-up .home-intro-line.home-intro-write:not(.is-in) .home-intro-line-inner {
  transform: translate3d(0, -0.55em, 0);
}

.home-intro-write.is-in {
  opacity: 1;
  clip-path: inset(0 0 0 0);
  transform: translate3d(0, 0, 0);
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    clip-path 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.home-intro-line.home-intro-write.is-in .home-intro-line-inner {
  transform: translate3d(0, 0, 0);
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

/* Leave upward (back to hero) */
.home-intro.is-intro-leave-up .home-intro-write:not(.is-in) {
  opacity: 0;
  clip-path: inset(0 0 100% 0);
  transform: translate3d(0, -18px, 0);
}

.home-intro.is-intro-leave-up .home-intro-line.home-intro-write:not(.is-in) .home-intro-line-inner {
  transform: translate3d(0, -0.55em, 0);
}

/* Leave downward (to featured) */
.home-intro.is-intro-leave-down .home-intro-write:not(.is-in) {
  opacity: 0;
  clip-path: inset(100% 0 0 0);
  transform: translate3d(0, 18px, 0);
}

.home-intro.is-intro-leave-down .home-intro-line.home-intro-write:not(.is-in) .home-intro-line-inner {
  transform: translate3d(0, 0.55em, 0);
}

.home-intro-write--img:not(.is-in) {
  transform: translate3d(0, 14px, 0) scale(1.04);
}

.home-intro.is-intro-enter-up .home-intro-write--img:not(.is-in) {
  transform: translate3d(0, -14px, 0) scale(1.04);
}

.home-intro-write--img:not(.is-in).is-slot-1 {
  clip-path: inset(0 100% 0 0);
}

.home-intro-write--img:not(.is-in).is-slot-2 {
  clip-path: inset(0 0 100% 0);
}

.home-intro-write--img:not(.is-in).is-slot-3 {
  clip-path: inset(100% 0 0 0);
}

.home-intro-write--img:not(.is-in).is-slot-4 {
  clip-path: inset(0 0 0 100%);
}

.home-intro-write--img.is-in {
  opacity: 1;
  clip-path: inset(0 0 0 0);
  transform: translate3d(0, 0, 0) scale(1);
}

.home-intro.is-intro-leave-up .home-intro-write--img:not(.is-in) {
  opacity: 0;
  clip-path: inset(0 0 100% 0);
  transform: translate3d(0, -20px, 0) scale(0.98);
}

.home-intro.is-intro-leave-down .home-intro-write--img:not(.is-in) {
  opacity: 0;
  clip-path: inset(100% 0 0 0);
  transform: translate3d(0, 20px, 0) scale(0.98);
}

/*
  During wipe: oversized rectangular clip (animatable).
  After wipe (is-clip-open): clip-path none — parent box edge was painting
  horizontal hairlines across TR top / BL bottom trap cuts.
*/
.home-intro-gallery-motion.home-intro-write.is-in,
.home-intro-gallery-motion.home-intro-write--img.is-in {
  opacity: 1;
  clip-path: inset(calc((var(--intro-trap-reach, 64px) + 12px) * -1));
  transform: translate3d(0, 0, 0);
}

.home-intro-gallery-motion.home-intro-write.is-in.is-clip-open,
.home-intro-gallery-motion.home-intro-write--img.is-in.is-clip-open {
  clip-path: none;
}

.home-intro.is-intro-leave-up
  .home-intro-gallery-motion.home-intro-write--img:not(.is-in) {
  opacity: 0;
  clip-path: inset(0 0 100% 0);
  transform: translate3d(0, -16px, 0);
  transition:
    opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1),
    clip-path 0.7s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.home-intro.is-intro-leave-down
  .home-intro-gallery-motion.home-intro-write--img:not(.is-in) {
  opacity: 0;
  clip-path: inset(100% 0 0 0);
  transform: translate3d(0, 16px, 0);
  transition:
    opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1),
    clip-path 0.7s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

@media (prefers-reduced-motion: reduce) {
  .home-intro-gallery-shot {
    transform: none;
    transition: none;
  }

  .home-intro-gallery-cell:hover .home-intro-gallery-shot.is-active {
    transform: none;
    filter: saturate(0.94) contrast(1.03);
  }
}

/* Featured peek carousel (center focus + side peek) */
.home-featured {
  overflow: hidden;
}

.home-featured-stage {
  position: relative;
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.home-snap .home-featured-track {
  height: min(calc(var(--feat-card-w) * 9 / 16), 88vh);
}

.home-featured-window {
  --feat-card-w: min(1360px, 92vw);
  position: relative;
  overflow: hidden;
  padding: 0 0 8px;
}

.home-featured-track {
  position: relative;
  width: 100%;
  height: calc(var(--feat-card-w) * 9 / 16);
  min-height: 260px;
}

.home-featured-card {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--feat-card-w);
  height: 100%;
  overflow: hidden;
  isolation: isolate;
  cursor: pointer;
  opacity: 0.45;
  transform: translate3d(0, 0, 0);
  transition:
    opacity 0.45s var(--ease) 0.15s,
    transform 0.7s cubic-bezier(0.65, 0.05, 0.36, 1);
  background: #0a0c10;
  will-change: transform, opacity;
}

.home-featured-card.is-active {
  opacity: 1;
  cursor: pointer;
  z-index: 3;
  transition:
    opacity 0.35s var(--ease),
    transform 0.7s cubic-bezier(0.65, 0.05, 0.36, 1);
}

/* Keep outgoing slide bright until the next one has fully arrived */
.home-featured-card.is-leaving {
  opacity: 1;
  z-index: 2;
  transition:
    opacity 0s,
    transform 0.7s cubic-bezier(0.65, 0.05, 0.36, 1);
}

.home-featured-card.is-side {
  opacity: 0.45;
}

.home-featured-card.is-far {
  opacity: 0;
  pointer-events: none;
  z-index: 0;
}

.home-featured-card.is-active .home-featured-media,
.home-featured-card.is-active .home-featured-media video,
.home-featured-card.is-active .home-featured-media img {
  cursor: pointer;
}

.home-featured-media,
.home-featured-media img,
.home-featured-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.home-featured-media.is-cover img,
.home-featured-media.is-cover video {
  object-fit: cover;
}

.home-featured-media.is-contain img,
.home-featured-media.is-contain video {
  object-fit: cover;
  object-position: center;
  background: transparent;
}

/* Fixed copy layer — stays centered, does not slide with videos */
.home-featured-copy-layer {
  position: absolute;
  left: 50%;
  top: 0;
  z-index: 4;
  width: var(--feat-card-w, min(1360px, 92vw));
  height: 100%;
  transform: translateX(-50%);
  pointer-events: none;
  background: none;
}

.home-featured-copy-layer .home-featured-copy {
  position: absolute;
  left: 0;
  right: 0;
  top: clamp(22px, 4vw, 48px);
  text-align: center;
  padding: 0 72px;
  pointer-events: none;
}

.home-featured-copy-layer .home-featured-copy-text {
  opacity: 0;
  transform: translate3d(0, 40px, 0);
  transition:
    opacity 0.7s cubic-bezier(0.65, 0.05, 0.36, 1),
    transform 0.7s cubic-bezier(0.65, 0.05, 0.36, 1);
}

.home-featured-copy-layer .home-featured-ctas,
.home-featured-copy-layer .home-featured-pending {
  opacity: 0;
  filter: blur(2px);
  will-change: opacity, transform, filter;
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Default / next: CTAs wait below */
.home-featured-copy-layer.is-dir-next .home-featured-ctas,
.home-featured-copy-layer.is-dir-next .home-featured-pending,
.home-featured-copy-layer:not(.is-dir-prev) .home-featured-ctas,
.home-featured-copy-layer:not(.is-dir-prev) .home-featured-pending {
  transform: translate3d(0, 14px, 0);
}

/* Prev: CTAs wait above */
.home-featured-copy-layer.is-dir-prev .home-featured-ctas,
.home-featured-copy-layer.is-dir-prev .home-featured-pending {
  transform: translate3d(0, -14px, 0);
}

.home-featured-copy-layer .home-featured-copy.is-show {
  pointer-events: auto;
}

.home-featured-copy-layer .home-featured-copy.is-show .home-featured-copy-text {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* CTAs: soft move after title — same direction as title (both links together) */
.home-featured-copy-layer .home-featured-copy.is-cta-in .home-featured-ctas,
.home-featured-copy-layer .home-featured-copy.is-cta-in .home-featured-pending {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  filter: blur(0);
}

.home-featured-copy-layer .home-featured-copy.is-enter-from .home-featured-copy-text,
.home-featured-copy-layer .home-featured-copy.is-enter-from .home-featured-ctas,
.home-featured-copy-layer .home-featured-copy.is-enter-from .home-featured-pending {
  opacity: 0;
  transition: none;
  filter: none;
}

/* Next (→): enter from below, leave upward */
.home-featured-copy-layer.is-dir-next .home-featured-copy.is-enter-from .home-featured-copy-text {
  transform: translate3d(0, 40px, 0);
}
.home-featured-copy-layer.is-dir-next .home-featured-copy.is-enter-from .home-featured-ctas,
.home-featured-copy-layer.is-dir-next .home-featured-copy.is-enter-from .home-featured-pending {
  transform: translate3d(0, 14px, 0);
  filter: blur(2px);
}
.home-featured-copy-layer.is-dir-next .home-featured-copy.is-leave .home-featured-copy-text {
  opacity: 0;
  transform: translate3d(0, -48px, 0);
}

/* Prev (←): enter from above, leave downward */
.home-featured-copy-layer.is-dir-prev .home-featured-copy.is-enter-from .home-featured-copy-text {
  transform: translate3d(0, -40px, 0);
}
.home-featured-copy-layer.is-dir-prev .home-featured-copy.is-enter-from .home-featured-ctas,
.home-featured-copy-layer.is-dir-prev .home-featured-copy.is-enter-from .home-featured-pending {
  transform: translate3d(0, -14px, 0);
  filter: blur(2px);
}
.home-featured-copy-layer.is-dir-prev .home-featured-copy.is-leave .home-featured-copy-text {
  opacity: 0;
  transform: translate3d(0, 48px, 0);
}

/* CTAs: vanish instantly on leave */
.home-featured-copy-layer .home-featured-copy.is-leave .home-featured-ctas,
.home-featured-copy-layer .home-featured-copy.is-leave .home-featured-pending,
.home-featured-copy-layer .home-featured-copy.is-leave.is-cta-in .home-featured-ctas,
.home-featured-copy-layer .home-featured-copy.is-leave.is-cta-in .home-featured-pending {
  opacity: 0;
  transform: none;
  filter: none;
  transition: none;
}

.home-featured-category {
  margin: 0 0 8px;
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(243, 245, 247, 0.9);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}

.home-featured-title {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.2vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.4);
}

.home-featured-ctas {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.home-featured-cta {
  font-size: clamp(1rem, 1.25vw, 1.08rem);
  font-weight: 600;
  color: rgba(243, 245, 247, 0.92);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
  transition: color 0.2s var(--ease);
}

.home-featured-cta:hover,
.home-featured-cta:focus-visible {
  color: var(--accent-bright);
}

.home-featured-pending {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: rgba(var(--accent-rgb), 0.95);
}

.home-featured-nav {
  position: absolute;
  top: 50%;
  z-index: 5;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.95);
  background: transparent;
  border: 1px solid transparent;
  transition:
    background 0.25s var(--ease),
    border-color 0.25s var(--ease),
    color 0.25s var(--ease);
}

.home-featured-nav svg {
  width: 34px;
  height: 34px;
  transition: filter 0.25s var(--ease);
}

.home-featured-nav:hover,
.home-featured-nav:focus-visible {
  color: #fff;
  background: rgba(0, 0, 0, 0.28);
  border-color: transparent;
}

.home-featured-nav:hover svg,
.home-featured-nav:focus-visible svg {
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.95))
    drop-shadow(0 0 12px rgba(255, 255, 255, 0.65));
}

/* Sit further inside the center video frame */
.home-featured-nav--prev {
  left: max(28px, calc(50% - min(680px, 46vw) + 28px));
}

.home-featured-nav--next {
  right: max(28px, calc(50% - min(680px, 46vw) + 28px));
}

.home-featured-dots {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 5;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  pointer-events: auto;
}

.home-featured-dot {
  width: 28px;
  height: 2px;
  background: rgba(255, 255, 255, 0.35);
  transition: background 0.25s var(--ease), width 0.25s var(--ease);
}

.home-featured-dot.is-active {
  width: 40px;
  background: rgba(255, 255, 255, 0.95);
}

@media (max-width: 900px) {
  .home-featured-window {
    --feat-card-w: min(1080px, 94vw);
  }

  .home-featured-copy-layer .home-featured-copy {
    padding: 0 56px;
  }

  .home-featured-nav--prev {
    left: max(20px, calc(50% - min(480px, 44vw) + 20px));
  }

  .home-featured-nav--next {
    right: max(20px, calc(50% - min(480px, 44vw) + 20px));
  }
}

@media (max-width: 640px) {
  .home-featured-window {
    --feat-card-w: 96vw;
  }

  .home-featured-track {
    height: calc(var(--feat-card-w) * 3 / 4);
  }

  .home-featured-copy-layer .home-featured-copy {
    top: 16px;
    padding: 0 20px;
  }

  .home-featured-title {
    font-size: 1.35rem;
  }

  .home-featured-nav {
    width: 48px;
    height: 48px;
  }

  .home-featured-nav svg {
    width: 30px;
    height: 30px;
  }

  .home-featured-nav--prev {
    left: calc(50% - 46vw + 18px);
  }

  .home-featured-nav--next {
    right: calc(50% - 46vw + 18px);
  }

  .home-featured-dots {
    bottom: 14px;
  }
}

/* Cases — DJI-style: media above, text tabs below */
.home-cases-switch {
  width: 100%;
  display: grid;
  gap: clamp(16px, 2.4vh, 22px);
}

.home-snap .home-cases-head.home-section-head,
.home-cases-head {
  margin-bottom: 0;
}

.home-cases-head .home-section-title {
  margin-bottom: 0;
}

.home-cases-inner {
  gap: clamp(8px, 1.2vh, 12px);
}

.home-cases-inner > .home-cases-switch {
  margin-top: 0;
}

.home-cases-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: min(52vh, 560px);
  border-radius: 18px;
  overflow: hidden;
  background: #0a0c10;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.home-cases-pane {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.7s;
  pointer-events: none;
}

.home-cases-pane.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
}

.home-cases-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.home-cases-media img,
.home-cases-media video {
  display: block;
  width: 100%;
  /* Taller than the frame so there is always room to pan top → bottom */
  height: 140%;
  object-fit: cover;
  object-position: center top;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.home-cases-pane.is-active .home-cases-media img,
.home-cases-pane.is-active .home-cases-media video {
  animation: home-cases-drift 8s linear forwards;
}

/* 140% tall → move up by 40/140 of own height so the bottom edge meets the frame */
@keyframes home-cases-drift {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(0, calc(-100% * 40 / 140), 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-cases-pane.is-active .home-cases-media img,
  .home-cases-pane.is-active .home-cases-media video {
    animation: none;
  }

  .home-cases-media img,
  .home-cases-media video {
    height: 100%;
    object-position: center;
    transform: none;
  }
}

.home-cases-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: clamp(32px, 5.5vh, 44px) clamp(18px, 3vw, 28px) clamp(16px, 2.5vh, 22px);
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(6, 8, 12, 0.5) 40%,
    rgba(6, 8, 12, 0.92) 100%
  );
  display: grid;
  gap: 6px;
  pointer-events: none;
}

.home-cases-caption h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.4vw, 1.65rem);
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.65);
}

.home-cases-caption p {
  margin: 0;
  max-width: 40em;
  font-size: clamp(0.9rem, 1.2vw, 1.02rem);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.94);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.55);
}

.home-cases-go {
  margin-top: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

.home-cases-pane.is-active:hover .home-cases-go {
  color: var(--accent-bright);
}

.home-cases-hit {
  position: absolute;
  inset: 0;
  z-index: 3;
}

.home-cases-tabs {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: stretch;
  gap: 0;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-sizing: border-box;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.home-cases-tabs::-webkit-scrollbar {
  display: none;
}

.home-cases-tab {
  margin: 0;
  flex: 0 0 auto;
  padding: 10px clamp(14px, 1.6vw, 22px);
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(243, 245, 247, 0.52);
  font-family: var(--font-body);
  font-size: clamp(0.82rem, 1.05vw, 0.95rem);
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
  cursor: pointer;
  transition:
    color 0.3s var(--ease),
    background 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s var(--ease);
}

.home-cases-tab:hover {
  color: rgba(243, 245, 247, 0.9);
}

.home-cases-tab.is-active {
  color: #0b0d10;
  background: #fff;
  box-shadow: none;
  font-weight: 600;
}

.home-cases-tab:focus-visible {
  outline: 2px solid rgba(var(--accent-rgb), 0.65);
  outline-offset: 2px;
}

@media (max-width: 720px) {
  .home-cases-frame {
    max-height: min(44vh, 380px);
    border-radius: 14px;
  }

  .home-cases-tabs {
    justify-content: flex-start;
    width: 100%;
    padding: 3px;
  }

  .home-cases-tab {
    padding: 8px 14px;
    font-size: 0.8rem;
  }

  .home-cases-caption p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

/* Video stage (legacy / shared) */
.home-stage {
  position: relative;
  isolation: isolate;
}

.home-stage-viewport {
  position: relative;
  min-height: clamp(280px, 42vh, 460px);
  overflow: hidden;
  background: transparent;
  border: none;
}

.home-cases .home-stage-viewport {
  min-height: clamp(220px, 30vh, 340px);
}

.home-stage-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(240px, 0.9fr);
  gap: clamp(16px, 2.4vw, 28px);
  align-items: stretch;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.75s var(--ease), visibility 0.75s;
  pointer-events: none;
}

.home-stage-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
}

.home-stage-slide.is-flip {
  grid-template-columns: minmax(240px, 0.9fr) minmax(0, 1.35fr);
}

.home-stage-slide.is-flip .home-stage-media {
  order: 2;
}

.home-stage-slide.is-flip .home-stage-copy {
  order: 1;
}

.home-stage-media {
  position: relative;
  min-height: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-panel);
  border: 1px solid var(--line);
}

.home-stage-media img,
.home-stage-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  background: transparent;
}

/* Case slide: cycle stills when there is no video */
.home-stage-slideshow {
  position: absolute;
  inset: 0;
}

.home-stage-slideshow img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 0.85s var(--ease);
  background: transparent;
}

.home-stage-slideshow img.is-on {
  opacity: 1;
  z-index: 1;
}

.home-stage-scrim {
  display: none;
}

.home-stage-copy {
  position: relative;
  z-index: 2;
  left: auto;
  right: auto;
  bottom: auto;
  max-width: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(8px, 1.5vh, 18px) 2px;
  gap: 8px;
}

.home-stage-kicker {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(var(--accent-rgb), 0.9);
}

.home-stage-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
}

.home-stage-blurb {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.home-stage-go {
  margin-top: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(243, 245, 247, 0.78);
  transition: color 0.25s var(--ease), transform 0.25s var(--ease);
}

.home-stage-slide.is-active:hover .home-stage-go {
  color: var(--accent-bright);
  transform: translateX(3px);
}

.home-stage-pending {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.8rem;
  color: rgba(var(--accent-rgb), 0.95);
}

.home-stage-hit {
  position: absolute;
  inset: 0;
  z-index: 3;
}

@media (max-width: 860px) {
  .home-stage-slide,
  .home-stage-slide.is-flip {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .home-stage-slide.is-flip .home-stage-media,
  .home-stage-slide.is-flip .home-stage-copy {
    order: initial;
  }

  .home-stage-media {
    min-height: clamp(180px, 28vh, 260px);
  }

  .home-stage-copy {
    padding: 4px 2px 8px;
  }
}

.home-stage-nav {
  position: absolute;
  top: 50%;
  z-index: 4;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: rgba(243, 245, 247, 0.78);
  background: rgba(8, 10, 14, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: color 0.25s var(--ease), background 0.25s var(--ease), opacity 0.25s var(--ease);
}

.home-stage-nav:hover {
  color: #fff;
  background: rgba(8, 10, 14, 0.55);
}

.home-stage-nav--prev { left: 12px; }
.home-stage-nav--next { right: 12px; }

.home-stage-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.home-stage-dot {
  width: 28px;
  height: 3px;
  background: rgba(255, 255, 255, 0.22);
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}

.home-stage-dot.is-active {
  background: rgba(var(--accent-rgb), 0.95);
  transform: scaleX(1.15);
}

/* Pillars */
.home-pillars.home-section {
  padding: clamp(18px, 3vh, 36px) 0;
}

.home-pillars .home-section-inner,
.home-snap .home-pillars > .home-section-inner {
  width: min(1560px, calc(100% - 40px));
  /* Full-bleed layer: never trap wheel in a nested scroll box */
  max-height: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
}

.home-pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  max-height: 100%;
}

.home-pillar {
  position: relative;
  display: block;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  isolation: isolate;
}

/* Gather on enter (full tiles slide in); dissolve on leave — not shrink to chips */
.home-pillar.home-reveal {
  opacity: 1;
  filter: none;
  transition:
    opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.75s cubic-bezier(0.4, 0, 0.2, 1),
    filter 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform, filter;
}

/* Enter-from: full-size offset (not scaled-down “small blocks”) */
.home-pillar.home-reveal.is-from-nw {
  transform: translate3d(-22%, -24%, 0);
}

.home-pillar.home-reveal.is-from-ne {
  transform: translate3d(22%, -24%, 0);
}

.home-pillar.home-reveal.is-from-sw {
  transform: translate3d(-22%, 24%, 0);
}

.home-pillar.home-reveal.is-from-se {
  transform: translate3d(22%, 24%, 0);
}

.home-pillar.home-reveal.is-in {
  opacity: 1;
  filter: none;
  transform: translate3d(0, 0, 0);
  transition:
    opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.25s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.85s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

/* Leave: dissolve outward */
.home-pillar.home-reveal.is-out {
  opacity: 0;
  filter: blur(14px);
}

.home-pillar.home-reveal.is-out.is-from-nw {
  transform: translate3d(-32%, -34%, 0) scale(1.06);
}

.home-pillar.home-reveal.is-out.is-from-ne {
  transform: translate3d(32%, -34%, 0) scale(1.06);
}

.home-pillar.home-reveal.is-out.is-from-sw {
  transform: translate3d(-32%, 34%, 0) scale(1.06);
}

.home-pillar.home-reveal.is-out.is-from-se {
  transform: translate3d(32%, 34%, 0) scale(1.06);
}

.home-pillar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.03);
  transition: transform 0.9s var(--ease);
}

.home-pillar:hover img {
  transform: scale(1.08);
}

.home-pillar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(5, 7, 10, 0.82));
}

.home-pillar-label {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  z-index: 1;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 700;
  color: rgba(243, 245, 247, 0.96);
}

/* Showcase videos */
.home-showcase-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(200px, 22vw);
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.home-showcase-item {
  scroll-snap-align: start;
  display: block;
  color: inherit;
}

.home-showcase-frame {
  position: relative;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  background: var(--bg-panel);
  border: 1px solid var(--line);
}

.home-showcase-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-showcase-caption {
  margin: 12px 0 0;
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--text-muted);
}

/* Why choose — sits under cases stage in the same snap layer */
.home-cases-inner {
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 1.2vh, 12px);
}

.home-why {
  width: 100%;
  margin-top: clamp(6px, 1.2vh, 12px);
  padding-top: clamp(18px, 2.8vh, 28px);
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(10px, 1.6vh, 16px);
}

.home-why-head {
  text-align: center;
  margin: 0;
}

.home-why-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.home-why-title .lang-en,
.home-why-title .lang-zh {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.35em 0.5em;
}

.home-why-brand-logo {
  display: inline-block;
  height: 1.25em;
  width: auto;
  vertical-align: -0.2em;
  object-fit: contain;
}

.home-why-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 32px);
  align-items: start;
}

html[data-lang="en"] .home-why-grid {
  gap: clamp(18px, 2.2vw, 32px);
}

/* English: widen the cases layer so the four why points fit one line (no transform breakout — parent clips) */
html[data-lang="en"] .home-snap .home-cases > .home-cases-inner,
html[data-lang="en"] .home-cases > .home-cases-inner {
  width: min(1580px, calc(100% - 40px));
}

html[data-lang="en"] .home-cases-switch {
  width: min(1120px, 100%);
  margin-inline: auto;
}

html[data-lang="en"] .home-why {
  width: 100%;
}

.home-why-item {
  display: grid;
  justify-items: center;
  gap: 14px;
  text-align: center;
}

.home-why-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  color: var(--accent);
}

.home-why-icon svg {
  width: 56px;
  height: 56px;
}

.home-why-label {
  margin: 0;
  max-width: 14em;
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
}

html[data-lang="en"] .home-why-label {
  max-width: none;
  white-space: nowrap;
  font-size: clamp(0.92rem, 1.15vw, 1.12rem);
}

@media (max-width: 860px) {
  .home-why-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 14px;
  }

  html[data-lang="en"] .home-snap .home-cases > .home-cases-inner,
  html[data-lang="en"] .home-cases > .home-cases-inner {
    width: min(1120px, calc(100% - 32px));
  }

  html[data-lang="en"] .home-why-label {
    white-space: normal;
    max-width: 20em;
  }
}

@media (max-width: 480px) {
  .home-why-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .home-why-label {
    max-width: 18em;
  }

  html[data-lang="en"] .home-why-label {
    max-width: 18em;
  }
}

/* News — left/right groups; fill the snap viewport without empty gutters */
.home-news.home-section {
  justify-content: flex-start;
  padding-top: clamp(8px, 1.4vh, 14px);
  padding-bottom: clamp(8px, 1.4vh, 14px);
}

.home-snap .home-news > .home-news-inner {
  width: min(1480px, calc(100% - 28px));
  max-height: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-sizing: border-box;
  gap: 6px;
}

.home-snap .home-news-head,
.home-news-head {
  max-width: none;
  margin: 0;
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
}

.home-news-head .home-section-title {
  font-size: clamp(1.25rem, 2.1vw, 1.55rem);
  margin: 0;
  flex: 0 0 auto;
}

.home-news-head .home-section-lead {
  max-width: none;
  margin: 0;
  flex: 1 1 16em;
  font-size: 0.82rem;
  line-height: 1.35;
  color: var(--text-muted);
}

.home-news-columns {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 20px);
  align-content: stretch;
  align-items: stretch;
}

.home-news-col {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
}

.home-news-col-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex: 0 0 auto;
  margin: 0;
}

.home-news-col-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(0.98rem, 1.35vw, 1.12rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--accent-bright);
  transform-origin: left center;
  transition: transform 0.22s var(--ease);
}

.home-news-col-title:hover {
  transform: scale(1.05);
}

.home-news-more {
  flex: 0 0 auto;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #fff;
  white-space: nowrap;
  transform-origin: right center;
  transition: transform 0.22s var(--ease);
}

.home-news-more:hover {
  color: #fff;
  transform: scale(1.06);
}

.home-news-grid {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

/* Image-first cards — thin caption bar, photo fills most of the tile */
.home-news-card {
  position: relative;
  display: block;
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  color: inherit;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #12151a;
  isolation: isolate;
  transition: border-color 0.3s var(--ease);
}

.home-news-card:hover {
  border-color: rgba(var(--accent-rgb), 0.45);
}

.home-news-card-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #12151a;
}

.home-news-card-media img,
.home-news-card-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/*
  Photo pan like cases: overflow room only.
  Transform is set inline by JS so mouseleave cannot cancel mid-pan.
*/
.home-news-card-media--photo img {
  max-width: none;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.home-news-card-media--video video {
  object-position: center;
}

@media (prefers-reduced-motion: reduce) {
  .home-news-card-media--photo img {
    transform: none !important;
    transition: none !important;
  }
}

.home-news-card-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  min-width: 0;
  padding: 36px 14px 12px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(6, 8, 12, 0.45) 38%,
    rgba(6, 8, 12, 0.92) 100%
  );
  pointer-events: none;
}

.home-news-card-date {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.65);
}

.home-news-card-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.02rem, 1.4vw, 1.22rem);
  font-weight: 700;
  line-height: 1.22;
  color: #ffffff;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.7);
  transition: color 0.25s var(--ease);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-news-card:hover .home-news-card-title {
  color: var(--accent-bright);
}

/* Blurb stays off the photo — detail page has the full copy */
.home-news-card-blurb {
  display: none;
}

.home-news-card-go {
  margin-top: 1px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
  transition: color 0.25s var(--ease), transform 0.25s var(--ease);
}

.home-news-card:hover .home-news-card-go {
  color: var(--accent-bright);
  transform: translateX(3px);
}

@media (max-height: 760px) {
  .home-news-card-body {
    padding: 22px 12px 10px;
  }

  .home-news-card-title {
    -webkit-line-clamp: 1;
  }

  .home-news-head .home-section-lead {
    display: none;
  }
}

/* Case story — guided reading, not a photo switcher */
.case-main {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(28px, 5vw, 56px) 0 96px;
}

/* Optional landscape reel — always full-width above the story */
.case-story-reel {
  margin: 0 0 clamp(22px, 3.5vh, 36px);
  line-height: 0;
  overflow: hidden;
  background: #000;
}

.case-story-reel[hidden] {
  display: none !important;
}

.case-story-reel-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  max-height: min(56vh, 680px);
  margin: 0 auto;
  object-fit: cover;
  object-position: center;
  background: #000;
}

.case-story-open {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: clamp(36px, 6vh, 56px);
}

.case-story-open .case-story-hero-media {
  order: -1;
}

.case-story-hero-media {
  margin: 0;
  line-height: 0;
  overflow: hidden;
  text-align: center;
}

.case-story-hero-media img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(82vh, 960px);
  margin: 0 auto;
  object-fit: unset;
  background: transparent;
}

.case-story-lede {
  max-width: 36em;
}

/* Portrait hero: title top-left, story images fill the left column under it */
.case-story:has(.case-story-open.is-portrait) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  column-gap: clamp(20px, 3vw, 36px);
  row-gap: clamp(22px, 3.5vh, 36px);
  align-items: start;
}

.case-story:has(.case-story-open.is-portrait) .case-story-reel {
  grid-column: 1 / -1;
}

.case-story:has(.case-story-open.is-portrait) .case-story-open {
  display: contents;
  margin-bottom: 0;
}

.case-story:has(.case-story-open.is-portrait) .case-story-lede {
  grid-column: 1;
  grid-row: 1;
  align-self: start;
  max-width: none;
  margin: 0;
}

.case-story:has(.case-story-open.is-portrait) .case-story-hero-media {
  grid-column: 2;
  grid-row: 1 / 3;
  order: 0;
  align-self: start;
  text-align: right;
  position: sticky;
  top: calc(var(--header-h, 72px) + 16px);
}

.case-story:has(.case-story-open.is-portrait) .case-story-hero-media img {
  margin: 0 0 0 auto;
  max-height: min(88vh, 960px);
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: top right;
}

.case-story:has(.case-story-open.is-portrait) .case-story-flow {
  grid-column: 1;
  grid-row: 2;
  gap: clamp(28px, 5vh, 48px);
  min-width: 0;
}

.case-story:has(.case-story-open.is-portrait) .case-beat,
.case-story:has(.case-story-open.is-portrait) .case-beat.is-flip {
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.case-story:has(.case-story-open.is-portrait) .case-beat.is-flip .case-beat-media,
.case-story:has(.case-story-open.is-portrait) .case-beat.is-flip .case-beat-copy {
  order: initial;
}

.case-story:has(.case-story-open.is-portrait) .case-beat-media img {
  max-height: min(56vh, 520px);
  width: 100%;
  height: auto;
  object-fit: unset;
}

.case-story:has(.case-story-open.is-portrait) .case-story-close {
  grid-column: 1 / -1;
  margin-top: clamp(28px, 5vh, 48px);
}

@media (max-width: 820px) {
  .case-story:has(.case-story-open.is-portrait) {
    display: block;
  }

  .case-story:has(.case-story-open.is-portrait) .case-story-open {
    display: flex;
    flex-direction: column;
    margin-bottom: clamp(28px, 5vh, 44px);
  }

  .case-story:has(.case-story-open.is-portrait) .case-story-hero-media {
    order: -1;
    position: static;
    text-align: center;
    grid-column: auto;
    grid-row: auto;
  }

  .case-story:has(.case-story-open.is-portrait) .case-story-hero-media img {
    margin: 0 auto;
    width: auto;
    max-width: 100%;
    object-fit: unset;
  }

  .case-story:has(.case-story-open.is-portrait) .case-story-lede,
  .case-story:has(.case-story-open.is-portrait) .case-story-flow,
  .case-story:has(.case-story-open.is-portrait) .case-story-close {
    grid-column: auto;
    grid-row: auto;
  }
}

.case-story-kicker {
  margin: 0 0 8px;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(var(--accent-rgb), 0.95);
}

.case-title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.2vw, 2.35rem);
  font-weight: 700;
  line-height: 1.18;
}

.case-blurb {
  margin: 0 0 10px;
  font-size: 1.08rem;
  line-height: 1.65;
  color: rgba(220, 226, 232, 0.9);
}

.case-story-guide {
  margin: 0;
  font-size: 0.88rem;
  color: rgba(220, 226, 232, 0.72);
}

.case-story-flow {
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 7vh, 72px);
}

.case-beat {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.9fr);
  gap: clamp(20px, 3vw, 36px);
  align-items: center;
}

.case-beat.is-flip {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.45fr);
}

.case-beat--photo {
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
}

.case-beat.is-flip .case-beat-media {
  order: 2;
}

.case-beat.is-flip .case-beat-copy {
  order: 1;
}

.case-beat--text {
  grid-template-columns: minmax(0, 1fr);
  max-width: 38em;
  margin: 0 auto;
}

.case-beat-media {
  margin: 0;
  min-width: 0;
  width: 100%;
  max-width: none;
  line-height: 0;
  overflow: hidden;
  justify-self: stretch;
  text-align: center;
}

.case-beat--photo .case-beat-media {
  max-width: min(100%, 1080px);
}

.case-beat-media img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(72vh, 780px);
  margin: 0 auto;
  object-fit: unset;
  object-position: center;
}

.case-beat-copy {
  min-width: 0;
}

.case-beat-copy--wide {
  max-width: 36em;
}

.case-beat-step {
  margin: 0 0 8px;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(var(--accent-rgb), 0.9);
}

.case-beat-text {
  margin: 0;
  font-size: 1.06rem;
  line-height: 1.78;
  color: rgba(232, 236, 240, 0.92);
}

.case-story-stills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
}

.case-story-still {
  margin: 0;
  line-height: 0;
  overflow: hidden;
}

.case-story-still img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 140px;
  max-height: 220px;
  object-fit: cover;
}

.case-story-close {
  margin-top: clamp(48px, 8vh, 80px);
  padding-top: clamp(28px, 4vh, 40px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: grid;
  gap: 18px;
}

.case-story-close-copy h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  font-weight: 700;
}

.case-story-close-copy p {
  margin: 0;
  max-width: 34em;
  font-size: 0.98rem;
  line-height: 1.6;
  color: rgba(220, 226, 232, 0.88);
}

.case-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.case-reveal {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.case-reveal.is-in {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@media (max-width: 860px) {
  .case-beat,
  .case-beat.is-flip {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .case-beat.is-flip .case-beat-media,
  .case-beat.is-flip .case-beat-copy {
    order: initial;
  }

  .case-story-hero-media img,
  .case-story-hero-media video {
    max-height: min(70vh, 720px);
  }

  .case-beat-media {
    max-width: 100%;
  }

  .case-beat-media img {
    max-height: min(62vh, 560px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .case-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* News index list */
.news-list-head {
  margin-bottom: 28px;
}

.news-list-actions {
  margin-top: 28px;
}

.news-index {
  display: grid;
  gap: 14px;
}

.news-index-card {
  display: grid;
  grid-template-columns: minmax(240px, 58%) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(18, 21, 26, 0.42);
  color: inherit;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.news-index-card:hover {
  border-color: rgba(var(--accent-rgb), 0.4);
  background: rgba(18, 21, 26, 0.62);
}

.news-index-media {
  overflow: hidden;
  min-width: 0;
  min-height: 200px;
  aspect-ratio: 16 / 10;
}

.news-index-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-index-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 16px 18px 16px 0;
}

.news-index-body h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
}

.news-index-card:hover .news-index-body h2 {
  color: var(--accent-bright);
}

.news-index-body p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(214, 220, 226, 0.92);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* News detail — landscape: image then copy; portrait: copy left / image right */
.news-article {
  display: block;
}

.news-top {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 28px;
}

.news-top .news-hero {
  order: -1;
}

.news-hero {
  margin: 0;
  line-height: 0;
  overflow: hidden;
  text-align: center;
}

.news-hero img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(72vh, 820px);
  margin: 0 auto;
  object-fit: unset;
  cursor: zoom-in;
}

.news-lede {
  max-width: none;
  margin: 0;
}

.news-lede .home-news-card-date {
  margin-bottom: 8px;
  color: rgba(var(--accent-rgb), 0.95);
  text-shadow: none;
}

.news-top.is-portrait {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(20px, 3vw, 36px);
  align-items: center;
}

.news-top.is-portrait .news-hero {
  order: 0;
  text-align: right;
}

.news-top.is-portrait .news-lede {
  max-width: none;
}

.news-top.is-portrait .news-hero img {
  margin: 0 0 0 auto;
  max-height: min(70vh, 720px);
}

@media (max-width: 820px) {
  .news-top.is-portrait {
    display: flex;
    flex-direction: column;
  }

  .news-top.is-portrait .news-hero {
    order: -1;
    text-align: center;
  }

  .news-top.is-portrait .news-hero img {
    margin: 0 auto;
  }
}

.news-stills {
  display: grid;
  gap: 10px;
  margin: 28px 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.news-stills[data-count="1"] {
  grid-template-columns: minmax(0, 1fr);
}

.news-stills[data-count="2"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.news-stills[data-count="3"] {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.news-stills[data-count="4"] {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.news-stills figure {
  margin: 0;
  line-height: 0;
  overflow: hidden;
  cursor: zoom-in;
}

.news-stills img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(32vh, 300px);
  object-fit: cover;
  cursor: zoom-in;
}

.news-body {
  margin: 0 0 28px;
  max-width: none;
  width: 100%;
  font-size: 1.08rem;
  line-height: 1.78;
  color: rgba(232, 236, 240, 0.92);
}

.news-lede .case-blurb {
  color: rgba(220, 226, 232, 0.88);
}

/* News article enter: write-in, not instant dump */
.news-write {
  opacity: 0;
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    clip-path 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--write-delay, 0ms);
  will-change: opacity, clip-path, transform;
}

.news-write--text:not(.is-in) {
  clip-path: inset(0 100% 0 0);
  transform: translate3d(-10px, 8px, 0);
}

/* Hero: expand from top-left → bottom-right */
.news-write--hero:not(.is-in) {
  clip-path: inset(0 100% 100% 0);
  transform: translate3d(-12px, -12px, 0);
  filter: none;
}

.news-write--media:not(.is-in) {
  clip-path: inset(0 0 0 0);
  transform: translate3d(0, 18px, 0);
  filter: blur(4px);
}

.news-write.is-in {
  opacity: 1;
  clip-path: inset(0 0 0 0);
  transform: translate3d(0, 0, 0);
  filter: none;
}

.news-write.news-write--hero.is-in {
  clip-path: inset(0 0 0 0);
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    clip-path 1s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--write-delay, 0ms);
}

.news-write--media.is-in {
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--write-delay, 0ms);
}

@media (prefers-reduced-motion: reduce) {
  .news-write,
  .news-write--text:not(.is-in),
  .news-write--hero:not(.is-in),
  .news-write--media:not(.is-in),
  .news-write.is-in {
    opacity: 1;
    clip-path: none;
    transform: none;
    filter: none;
    transition: none;
  }
}

/* Original-size photo viewer */
.news-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(5, 7, 10, 0.92);
  cursor: zoom-out;
}

.news-lightbox[hidden] {
  display: none !important;
}

.news-lightbox img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(96vw, 100%);
  max-height: 92vh;
  object-fit: contain;
  cursor: default;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.45);
}

.news-lightbox-close {
  position: absolute;
  top: 16px;
  right: 18px;
  appearance: none;
  border: 0;
  margin: 0;
  padding: 8px 12px;
  background: transparent;
  color: rgba(243, 245, 247, 0.88);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.news-lightbox-close:hover {
  color: #fff;
}

/* Scroll lock + gutter handled with other overlays in catalog.css */

@media (max-width: 720px) {
  .news-index-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .news-index-media {
    min-height: 180px;
  }

  .news-index-body {
    padding: 12px 14px 16px;
  }

  .news-stills[data-count="3"],
  .news-stills[data-count="4"] {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .news-stills[data-count="4"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* About page — interleaved story rows (text + image as one beat) */
.about-story {
  width: min(1080px, calc(100% - 48px));
  margin: 0 auto 88px;
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 6vw, 72px);
}

.about-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(22px, 3.5vw, 48px);
  align-items: center;
}

.about-row--flip .about-row-copy {
  order: 2;
}

.about-row--flip .about-row-media {
  order: 1;
}

.about-row-copy {
  min-width: 0;
  padding-block: 8px;
}

.about-row-copy h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.about-row-copy p {
  margin: 0 0 14px;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.about-row-copy p:last-child {
  margin-bottom: 0;
}

.about-block-lead {
  margin: 0 0 10px !important;
  font-size: 1.1rem !important;
  font-weight: 600;
  line-height: 1.55 !important;
  color: rgba(243, 245, 247, 0.92) !important;
}

.about-row-media {
  margin: 0;
  min-width: 0;
  position: relative;
}

.about-row-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--bg-panel);
}

.about-row:nth-child(odd) .about-row-media img {
  aspect-ratio: 5 / 4;
}

.about-row:nth-child(even) .about-row-media img {
  aspect-ratio: 3 / 2;
}

.about-story-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 8px 0 24px;
  min-height: 56px;
}

/* CTA is short — keep a gentler fan so it doesn't stay clipped off-screen */
.about-story-actions.about-fan:not(.is-in) {
  transform: translate3d(0, 24px, 0) scale(0.98);
  transform-origin: 50% 100%;
  filter: blur(6px);
  clip-path: inset(40% 0 0 0);
}

/* Short / windowed viewports: keep About title visible (don't clip top) */
@media (max-width: 1280px), (max-height: 820px) {
  .home-snap .home-intro.home-section {
    justify-content: flex-start;
    padding-top: clamp(28px, 5vh, 44px);
    padding-bottom: clamp(16px, 3vh, 28px);
  }

  .home-snap .home-intro > .home-section-inner.home-intro-grid {
    align-content: start;
    align-items: start;
    justify-content: start;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .home-intro-copy {
    padding-top: 4px;
  }

  .home-intro-gallery {
    height: min(32vh, 280px);
    min-height: 140px;
  }
}

@media (max-width: 900px) {
  .home-intro-grid,
  .home-news-columns {
    grid-template-columns: 1fr;
  }

  .about-row,
  .about-row--flip {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .about-row--flip .about-row-copy,
  .about-row--flip .about-row-media {
    order: unset;
  }

  .about-row-media {
    order: -1;
  }

  .about-row-media img,
  .about-row:nth-child(odd) .about-row-media img,
  .about-row:nth-child(even) .about-row-media img {
    aspect-ratio: 16 / 10;
  }

  .home-news-grid {
    grid-template-rows: none;
    gap: 8px;
  }

  .home-news-card {
    height: auto;
    min-height: 200px;
    aspect-ratio: 16 / 9;
  }

  .home-news-card-body {
    padding: 24px 12px 10px;
  }

  .home-news-head .home-section-lead {
    display: none;
  }

  .home-intro-gallery {
    height: min(36vh, 300px);
    min-height: 160px;
  }

  .home-showcase-rail {
    grid-auto-columns: minmax(180px, 58vw);
  }
}


@media (max-width: 640px) {
  .home-section-inner,
  .case-main {
    width: calc(100% - 32px);
  }

  .home-pillars-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    height: auto;
    min-height: 0;
  }

  .home-pillar {
    aspect-ratio: 16 / 10;
    height: auto;
  }

  .home-stage-nav {
    display: none;
  }

  .home-stage-copy {
    bottom: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-featured-track,
  .home-featured-card,
  .home-featured-copy,
  .home-featured-shade {
    transition: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-reveal,
  .home-fan,
  .home-intro-write,
  .home-intro-gallery img:nth-child(2),
  .home-pillar,
  .home-pillar img {
    animation: none !important;
    transition: none !important;
    opacity: 1;
    transform: none;
    filter: none;
    clip-path: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ——— Language: full EN or full ZH ——— */
html[data-lang="en"] .nav-zh,
html[data-lang="en"] .page-title-zh,
html[data-lang="en"] .product-tile-zh,
html[data-lang="en"] .dropdown-zh,
html[data-lang="en"] .sub-chip-zh,
html[data-lang="en"] .video-title-zh,
html[data-lang="en"] .lang-zh,
html[data-lang="en"] .lang-label-to-en {
  display: none !important;
}

html[data-lang="zh"] .nav-en,
html[data-lang="zh"] .page-title-en,
html[data-lang="zh"] .product-tile-en,
html[data-lang="zh"] .dropdown-en,
html[data-lang="zh"] .sub-chip-en,
html[data-lang="zh"] .video-title-en,
html[data-lang="zh"] .lang-en,
html[data-lang="zh"] .lang-label-to-zh {
  display: none !important;
}

html[data-lang="en"] .nav-link,
html[data-lang="zh"] .nav-link {
  justify-content: center;
}

/* 中文模式：导航用原来的主字号与主色 */
html[data-lang="zh"] .nav-zh {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.01em;
}

html[data-lang="zh"] .nav-link:hover .nav-zh,
html[data-lang="zh"] .nav-link:focus-visible .nav-zh,
html[data-lang="zh"] .nav-item.is-open > .nav-trigger .nav-zh,
html[data-lang="zh"] .nav-link.is-active .nav-zh {
  color: var(--text);
}

html[data-lang="zh"] .nav-link--cta .nav-zh {
  color: var(--accent-ink);
  font-size: 0.95rem;
  font-weight: 700;
}

html[data-lang="zh"] .dropdown-zh {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

html[data-lang="en"] .nav-link--cta .nav-en {
  color: inherit;
  font-size: 0.95rem;
  font-weight: 700;
}

/* ——— Soft page navigation (sitewide) ——— */
html.is-page-leaving main,
html.is-page-entering main,
html.is-page-entered main {
  transition: opacity 0.42s ease, transform 0.42s ease;
  will-change: opacity, transform;
}

html.is-page-leaving main {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}

html.is-page-entering main {
  opacity: 0;
  transform: translateY(10px);
}

html.is-page-entered main {
  opacity: 1;
  transform: none;
}

/* Soft product enter: hide shell until About-style cascade starts */
#productRoot[data-soft-enter-pending="1"] {
  opacity: 0 !important;
  pointer-events: none !important;
}

@media (prefers-reduced-motion: reduce) {
  html.is-page-leaving main,
  html.is-page-entering main,
  html.is-page-entered main {
    transition: none;
    transform: none;
  }
}
