/* Homepage-only styles */

/* Hide vertical guide rails on the home page */
.design-guides {
  display: none !important;
}

/* Full-bleed horizontal rules on each content block */
.site-main > .section::before,
.site-main > .cta-band::before,
.site-footer::before {
  content: "" !important;
  display: block !important;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: rgb(255 255 255 / 0.06);
  pointer-events: none;
  z-index: 3;
}

.hero {
  position: relative;
  z-index: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  /* 扣除 site-main 顶部为固定头预留的空间，整段首屏刚好一屏 */
  box-sizing: border-box;
  min-height: calc(100svh - var(--header-h));
  height: calc(100svh - var(--header-h));
  padding: clamp(24px, 4vh, 48px) 0 clamp(72px, 10vh, 96px);
  background: transparent;
}

.hero__tagline,
.hero__title,
.hero__lead,
.hero__actions,
.hero__meta {
  opacity: 0;
  transform: translateY(22px);
}

.hero.is-ready .hero__tagline,
.hero.is-ready .hero__title,
.hero.is-ready .hero__lead,
.hero.is-ready .hero__actions,
.hero.is-ready .hero__meta {
  animation: hero-enter 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero.is-ready .hero__tagline {
  animation-delay: 0.08s;
}

.hero.is-ready .hero__title {
  animation-delay: 0.2s;
}

.hero.is-ready .hero__lead {
  animation-delay: 0.34s;
}

.hero.is-ready .hero__actions {
  animation-delay: 0.48s;
}

.hero.is-ready .hero__meta {
  animation-delay: 0.62s;
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: clamp(20px, 3.5vh, 36px);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 1px solid rgb(255 255 255 / 0.18);
  border-radius: 999px;
  background: rgb(18 18 20 / 0.35);
  color: rgb(245 245 245 / 0.88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transform: translateX(-50%);
  text-decoration: none;
  opacity: 0;
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    opacity 220ms ease;
}

.hero.is-ready .hero__scroll {
  animation:
    hero-scroll-enter 0.55s ease 0.9s forwards,
    hero-scroll-nudge 1.8s ease-in-out 1.45s infinite;
}

.hero__scroll [data-lucide] {
  width: 20px;
  height: 20px;
  stroke-width: 1.75;
}

.hero__scroll:hover {
  color: var(--text-primary);
  border-color: rgb(255 255 255 / 0.34);
  background: rgb(18 18 20 / 0.55);
}

.hero__scroll:focus-visible {
  outline: 2px solid var(--accent-warm);
  outline-offset: 3px;
}

.hero__scroll.is-hidden {
  opacity: 0 !important;
  pointer-events: none;
  animation: none !important;
}

@keyframes hero-enter {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-scroll-enter {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@keyframes hero-scroll-nudge {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-8px);
  }
}

@keyframes hero-media-enter {
  from {
    opacity: 0;
    transform: scale(1.06);
  }
  to {
    opacity: var(--hero-media-opacity, 0.72);
    transform: scale(1);
  }
}

@keyframes hero-fx-enter {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__tagline,
  .hero__title,
  .hero__lead,
  .hero__actions,
  .hero__meta,
  .hero__scroll {
    opacity: 1;
    transform: none;
    animation: none !important;
  }

  .hero__scroll {
    transform: translateX(-50%);
  }

  .hero__media-img {
    opacity: var(--hero-media-opacity, 0.72);
    transform: none;
    animation: none !important;
  }

  .hero__fx.shader-frame {
    opacity: 1;
    animation: none !important;
  }
}

.hero__fx.shader-frame {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(ellipse 48% 52% at 50% 48%, rgb(255 255 255 / 0.05), transparent 70%),
    radial-gradient(ellipse 70% 55% at 50% 42%, rgb(255 255 255 / 0.03), transparent 65%);
  animation: hero-fx-enter 1.1s ease 0.02s forwards;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero__media-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  --hero-media-opacity: 0.72;
  opacity: 0;
  filter: contrast(1.08) brightness(0.72) saturate(0.2);
  transform: scale(1.06);
  animation: hero-media-enter 1.35s cubic-bezier(0.22, 1, 0.36, 1) 0.05s forwards;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 78% 72% at 50% 48%, rgb(5 6 7 / 0.72) 0%, rgb(5 6 7 / 0.5) 42%, rgb(5 6 7 / 0.28) 68%, rgb(5 6 7 / 0.18) 86%),
    linear-gradient(90deg, rgb(5 6 7 / 0.42) 0%, rgb(5 6 7 / 0.22) 40%, rgb(5 6 7 / 0.28) 70%, rgb(5 6 7 / 0.48) 100%),
    linear-gradient(180deg, rgb(5 6 7 / 0.36) 0%, rgb(5 6 7 / 0.12) 36%, rgb(5 6 7 / 0.16) 68%, rgb(5 6 7 / 0.52) 100%);
  pointer-events: none;
}

.hero__fx.shader-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg, rgb(5 6 7 / 0.1) 0%, transparent 42%, transparent 70%, rgb(5 6 7 / 0.12) 100%),
    linear-gradient(180deg, rgb(5 6 7 / 0.08) 0%, transparent 30%, transparent 72%, rgb(5 6 7 / 0.16) 100%);
  pointer-events: none;
}

.hero__fx-stage {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.85;
  mix-blend-mode: screen;
  pointer-events: none;
}

.hero__fx-stage .threeui-background,
.hero__fx-stage iframe.threeui-background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: max-content;
  max-width: min(640px, 100%);
  text-align: center;
  min-width: 0;
}

/* Later blocks sit above the fixed hero FX with a frosted translucent panel */
.site-main > .section,
.site-main > .cta-band {
  position: relative;
  z-index: 2;
  background: rgb(14 14 16 / 0.42);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.site-footer {
  position: relative;
  z-index: 2;
  background: rgb(14 14 16 / 0.55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.hero__heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  min-width: 0;
}

.hero__tagline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  max-width: 100%;
  font-family: Graphik, var(--font-display), sans-serif;
  font-size: clamp(13px, 1.2vw, 15px);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgb(245 245 245 / 0.62);
}

.hero__tagline [data-lucide] {
  width: 16px;
  height: 16px;
  color: var(--accent-warm);
  flex-shrink: 0;
}

.hero__title {
  margin: 0;
  max-width: 100%;
  font-family: var(--font-ui);
  font-size: clamp(30px, 4.5vw, 50px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.035em;
  white-space: nowrap;
  color: var(--text-primary);
  text-wrap: balance;
}

.hero__title em {
  font-style: normal;
  color: inherit;
}

.hero__lead {
  margin: clamp(16px, 2vh, 24px) 0 0;
  /* 以主标题（含「声音体验」）宽度为准，避免正文撑开父级 */
  width: 0;
  min-width: 100%;
  box-sizing: border-box;
  color: rgb(163 163 163 / 0.95);
  font-size: 18px;
  line-height: 1.75;
  letter-spacing: 0.01em;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
  margin-top: clamp(24px, 3vh, 36px);
}

.hero__meta {
  position: relative;
  z-index: 2;
  margin-top: clamp(28px, 4vh, 40px);
}

.hero__meta-list {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  border: 0;
  border-radius: 0;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.hero__meta-list li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  border-radius: 0;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.hero__meta-list li [data-lucide] {
  width: 15px;
  height: 15px;
  color: var(--accent-warm);
  flex-shrink: 0;
}

@media (max-width: 720px) {
  .hero__title {
    white-space: normal;
    font-size: clamp(28px, 8vw, 36px);
  }

  .hero__media-img {
    --hero-media-opacity: 0.65;
    object-position: center center;
  }

  .hero__media::after {
    background:
      radial-gradient(ellipse 82% 68% at 50% 42%, rgb(5 6 7 / 0.7) 0%, rgb(5 6 7 / 0.45) 46%, rgb(5 6 7 / 0.22) 80%),
      linear-gradient(180deg, rgb(5 6 7 / 0.35) 0%, rgb(5 6 7 / 0.22) 48%, rgb(5 6 7 / 0.55) 100%),
      linear-gradient(90deg, rgb(5 6 7 / 0.38) 0%, rgb(5 6 7 / 0.2) 50%, rgb(5 6 7 / 0.42) 100%);
  }
}

@media (max-height: 640px) {
  .hero {
    height: auto;
    min-height: calc(100svh - var(--header-h));
    overflow: visible;
    padding-bottom: clamp(64px, 12vh, 88px);
  }
}

/* Services */
.service-grid {
  display: grid;
  gap: 16px;
}

@property --card-trace-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

@keyframes card-trace-spin {
  to {
    --card-trace-angle: 360deg;
  }
}

.service-card,
.flow-strip__item {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  isolation: isolate;
  border: 0;
  border-radius: 20px;
  background: rgb(68 68 74 / 0.13);
  background-blend-mode: luminosity;
  -webkit-backdrop-filter: blur(20px) saturate(106%);
  backdrop-filter: blur(20px) saturate(106%);
  box-shadow:
    0 24px 70px rgb(0 0 0 / 0.14),
    inset 0 1px 1px rgb(255 255 255 / 0.1);
  transition:
    box-shadow 0.42s ease,
    background-color 0.42s ease,
    transform 0.42s ease;
}

.service-card {
  padding: 0;
}

.service-card::before,
.flow-strip__item::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 0.5px;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    135deg,
    rgb(255 255 255 / 0.48),
    rgb(255 255 255 / 0.18),
    transparent 48%,
    rgb(255 255 255 / 0.12) 76%,
    rgb(255 255 255 / 0.38)
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.34;
  transition: opacity 0.42s ease;
}

.service-card::after,
.flow-strip__item::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  padding: 1px;
  pointer-events: none;
  background: conic-gradient(
    from var(--card-trace-angle),
    transparent 0deg,
    transparent 300deg,
    rgb(229 57 53 / 0.08) 316deg,
    rgb(229 57 53 / 0.45) 330deg,
    #e53935 338deg,
    #ff8a80 344deg,
    rgb(229 57 53 / 0.35) 352deg,
    transparent 360deg
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.25s ease;
  box-shadow: 0 0 10px rgb(229 57 53 / 0.18);
}

.service-card:hover,
.flow-strip__item:hover {
  background:
    radial-gradient(ellipse 120% 80% at 50% -10%, rgb(229 57 53 / 0.14), transparent 58%),
    linear-gradient(180deg, rgb(84 84 92 / 0.28) 0%, rgb(52 52 58 / 0.2) 100%);
  background-blend-mode: normal, luminosity;
  box-shadow:
    0 28px 80px rgb(0 0 0 / 0.22),
    0 0 0 1px rgb(229 57 53 / 0.08),
    inset 0 1px 1px rgb(255 255 255 / 0.16);
  transform: translateY(-2px);
}

.service-card:hover::before,
.flow-strip__item:hover::before {
  opacity: 0.2;
}

.service-card:hover::after,
.flow-strip__item:hover::after {
  opacity: 1;
  animation: card-trace-spin 2.2s linear infinite;
}

.service-card__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1;
  order: 1;
  gap: 0;
  min-height: 260px;
  padding: clamp(22px, 2.4vw, 28px) clamp(20px, 2.2vw, 26px) 18px;
  background: transparent;
}

.service-card__media {
  position: relative;
  order: 2;
  height: 160px;
  margin: 0 10px 10px;
  overflow: hidden;
  border-radius: 14px;
  background: rgb(12 12 14 / 0.35);
}

.service-card__media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgb(26 26 28 / 0.55) 0%,
    rgb(26 26 28 / 0.18) 42%,
    rgb(26 26 28 / 0.08) 100%
  );
  pointer-events: none;
}

.service-card__media::after {
  content: none;
}

.service-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.92) contrast(1.06) brightness(0.58) saturate(0.35);
  transform: scale(1.03);
  transition:
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.55s ease;
}

.service-card:hover .service-card__media img {
  transform: scale(1.07);
  filter: grayscale(0.72) contrast(1.08) brightness(0.66) saturate(0.55);
}

.service-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  border-radius: 12px;
  border: 1px solid rgb(255 255 255 / 0.08);
  background: rgb(255 255 255 / 0.04);
  color: rgb(255 255 255 / 0.78);
  transition:
    background-color 0.35s ease,
    border-color 0.35s ease,
    color 0.35s ease;
}

.service-card__icon [data-lucide] {
  width: 18px;
  height: 18px;
}

.service-card:hover .service-card__icon {
  border-color: rgb(229 57 53 / 0.28);
  background: rgb(229 57 53 / 0.12);
  color: var(--accent-warm);
}

.service-card__en {
  margin: 0;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgb(245 245 245 / 0.42);
}

.service-card__title {
  margin: 8px 0 0;
  font-family: var(--font-ui);
  font-size: clamp(17px, 1.5vw, 20px);
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-primary);
}

.service-card__desc {
  margin: 12px 0 0;
  flex: 1;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-secondary);
}

/* Process flow */
.flow-strip {
  display: grid;
  gap: 16px;
}

.flow-strip__item {
  min-height: 0;
  min-width: 0;
  padding: clamp(24px, 2.6vw, 30px);
}

.flow-strip__top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.flow-strip__num {
  margin: 0;
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-warm);
  background: none;
  border: 0;
  padding: 0;
  min-width: 0;
  height: auto;
}

.flow-strip__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgb(255 255 255 / 0.08);
  background: rgb(255 255 255 / 0.04);
  color: rgb(255 255 255 / 0.72);
  transition:
    background-color 0.35s ease,
    border-color 0.35s ease,
    color 0.35s ease;
}

.flow-strip__icon [data-lucide] {
  width: 18px;
  height: 18px;
}

.flow-strip__item:hover .flow-strip__icon {
  border-color: rgb(229 57 53 / 0.28);
  background: rgb(229 57 53 / 0.12);
  color: var(--accent-warm);
}

.flow-strip__phase {
  position: relative;
  z-index: 1;
  margin: 20px 0 0;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 0.38);
}

.flow-strip__title {
  position: relative;
  z-index: 1;
  margin: 8px 0 0;
  font-family: var(--font-ui);
  font-size: clamp(17px, 1.5vw, 20px);
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-primary);
}

.flow-strip__text {
  position: relative;
  z-index: 1;
  margin: 14px 0 0;
  padding-top: 14px;
  border-top: 1px solid rgb(255 255 255 / 0.08);
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.75;
}

/* Cases — ThreeUI CharacterCarousel filmstrip host */
.case-filmstrip {
  position: relative;
  width: 100%;
  height: clamp(580px, 74vh, 760px);
  margin-top: clamp(8px, 1.5vh, 16px);
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid rgb(255 255 255 / 0.08);
}

.case-filmstrip .character-carousel {
  position: relative;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  isolation: isolate;
  background: #121214;
  pointer-events: auto;
}

.case-filmstrip .character-carousel iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #121214;
}

@media (max-width: 650px) {
  .case-filmstrip {
    height: clamp(640px, 86vh, 820px);
  }
}

.case-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid rgb(255 255 255 / 0.06);
  background: var(--content-card-bg);
  box-shadow: none;
  transition:
    background-color var(--duration-slow) var(--ease),
    border-color var(--duration-slow) var(--ease),
    transform var(--duration-slow) var(--ease);
}

.case-card:hover {
  background: var(--project-card-hover-bg);
  border-color: rgb(255 255 255 / 0.1);
  transform: translateY(-3px);
}

.case-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #101012;
  border-bottom: 1px solid rgb(255 255 255 / 0.05);
}

.case-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform var(--duration-slow) var(--ease);
}

.case-card:hover .case-card__media img {
  transform: scale(1.04);
}

.case-card__media::before {
  content: none;
}

.case-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgb(5 6 7 / 0.28) 0%, transparent 36%, rgb(5 6 7 / 0.5) 100%);
  pointer-events: none;
}

.case-card__tag {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  display: inline-flex;
  width: fit-content;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid rgb(255 255 255 / 0.12);
  background: rgb(5 6 7 / 0.52);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: rgb(245 245 245 / 0.9);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.case-card__media [data-lucide] {
  display: none;
}

.case-card__body {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0;
  padding: clamp(22px, 2.6vw, 28px);
  background:
    linear-gradient(180deg, rgb(255 255 255 / 0.035) 0%, transparent 28%),
    linear-gradient(165deg, rgb(229 57 53 / 0.07) 0%, transparent 42%),
    linear-gradient(180deg, rgb(22 22 24 / 0.92) 0%, rgb(14 14 16 / 0.88) 100%);
  border-top: 1px solid rgb(255 255 255 / 0.06);
}

.case-card__body::before {
  content: "";
  position: absolute;
  top: 0;
  left: clamp(22px, 2.6vw, 28px);
  width: 28px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-warm), transparent);
  opacity: 0.9;
}

.case-card:hover .case-card__body {
  background:
    linear-gradient(180deg, rgb(255 255 255 / 0.05) 0%, transparent 30%),
    linear-gradient(165deg, rgb(229 57 53 / 0.1) 0%, transparent 46%),
    linear-gradient(180deg, rgb(26 26 28 / 0.96) 0%, rgb(16 16 18 / 0.92) 100%);
}

.case-card__title {
  margin: 0;
  font-family: var(--font-ui);
  font-size: clamp(22px, 2vw, 26px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--text-primary);
  text-shadow: 0 1px 0 rgb(0 0 0 / 0.35);
}

.case-card__hook {
  margin: 10px 0 0;
  color: var(--accent-warm);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.45;
}

.case-card__desc {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid rgb(255 255 255 / 0.06);
  color: rgb(168 168 168 / 0.95);
  font-size: 13.5px;
  line-height: 1.8;
  letter-spacing: 0.01em;
}

.case-card__action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-top: auto;
  padding: 10px 0 0;
  border: 0;
  background: transparent;
  color: rgb(245 245 245 / 0.88);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}

.case-card__action [data-lucide] {
  width: 15px;
  height: 15px;
  color: var(--accent-warm);
  transition: transform var(--duration) var(--ease);
}

.case-card__action:hover {
  color: var(--text-primary);
}

.case-card__action:hover [data-lucide] {
  transform: translateX(3px);
}

.case-card__action:focus-visible {
  outline: 2px solid var(--accent-warm);
  outline-offset: 4px;
}

/* Partners */
.partner-wall {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.partner-chip {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  isolation: isolate;
  border: 0;
  border-radius: 20px;
  background: rgb(68 68 74 / 0.13);
  background-blend-mode: luminosity;
  -webkit-backdrop-filter: blur(20px) saturate(106%);
  backdrop-filter: blur(20px) saturate(106%);
  color: var(--text-secondary);
  text-align: center;
  box-shadow:
    0 24px 70px rgb(0 0 0 / 0.14),
    inset 0 1px 1px rgb(255 255 255 / 0.1);
  transition:
    box-shadow 0.42s ease,
    background-color 0.42s ease,
    transform 0.42s ease;
}

.partner-chip::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 0.5px;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    135deg,
    rgb(255 255 255 / 0.48),
    rgb(255 255 255 / 0.18),
    transparent 48%,
    rgb(255 255 255 / 0.12) 76%,
    rgb(255 255 255 / 0.38)
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.34;
  transition: opacity 0.42s ease;
}

.partner-chip::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  padding: 1px;
  pointer-events: none;
  background: conic-gradient(
    from var(--card-trace-angle),
    transparent 0deg,
    transparent 300deg,
    rgb(229 57 53 / 0.08) 316deg,
    rgb(229 57 53 / 0.45) 330deg,
    #e53935 338deg,
    #ff8a80 344deg,
    rgb(229 57 53 / 0.35) 352deg,
    transparent 360deg
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.25s ease;
  box-shadow: 0 0 10px rgb(229 57 53 / 0.18);
}

.partner-chip:hover {
  background:
    radial-gradient(ellipse 120% 80% at 50% -10%, rgb(229 57 53 / 0.14), transparent 58%),
    linear-gradient(180deg, rgb(84 84 92 / 0.28) 0%, rgb(52 52 58 / 0.2) 100%);
  background-blend-mode: normal, luminosity;
  box-shadow:
    0 28px 80px rgb(0 0 0 / 0.22),
    0 0 0 1px rgb(229 57 53 / 0.08),
    inset 0 1px 1px rgb(255 255 255 / 0.16);
  transform: translateY(-2px);
}

.partner-chip:hover::before {
  opacity: 0.2;
}

.partner-chip:hover::after {
  opacity: 1;
  animation: card-trace-spin 2.2s linear infinite;
}

.partner-chip__logo {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: auto;
  aspect-ratio: 1.9 / 1;
  min-height: 148px;
  margin: 10px;
  margin-bottom: 0;
  padding: clamp(24px, 3.2vw, 36px) clamp(14px, 2.2vw, 24px);
  overflow: hidden;
  border-radius: 14px;
  background:
    radial-gradient(ellipse 65% 70% at 50% 45%, rgb(48 48 52 / 0.4), transparent 72%),
    linear-gradient(180deg, rgb(22 22 26 / 0.55) 0%, rgb(12 12 14 / 0.45) 100%);
  transition: background 0.42s ease;
}

.partner-chip__logo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(255 255 255 / 0.05), transparent 42%);
  pointer-events: none;
}

.partner-chip:hover .partner-chip__logo {
  background:
    radial-gradient(ellipse 70% 75% at 50% 42%, rgb(229 57 53 / 0.1), transparent 68%),
    radial-gradient(ellipse 55% 60% at 50% 50%, rgb(58 58 64 / 0.45), transparent 72%),
    linear-gradient(180deg, rgb(28 28 32 / 0.6) 0%, rgb(16 16 18 / 0.5) 100%);
}

.partner-chip__logo img {
  position: relative;
  z-index: 1;
  width: auto;
  max-width: 94%;
  max-height: 112px;
  object-fit: contain;
  opacity: 0.9;
  filter: brightness(0.98);
  transition:
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.35s ease,
    filter 0.35s ease;
}

.partner-chip:hover .partner-chip__logo img {
  transform: scale(1.06);
  opacity: 1;
  filter: brightness(1.08);
}

.partner-chip__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 18px 20px 22px;
  background: transparent;
}

.partner-chip__name {
  margin: 0;
  padding: 0;
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.3;
  color: var(--text-primary);
  transition: color 0.35s ease;
}

.partner-chip__desc {
  margin: 0;
  max-width: 22em;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--text-secondary);
  transition: color 0.35s ease;
}

.partner-chip:hover .partner-chip__name {
  color: #fff;
}

.partner-chip:hover .partner-chip__desc {
  color: rgb(245 245 245 / 0.62);
}

@media (max-width: 639px) {
  .partner-wall {
    gap: var(--space-5);
  }

  .partner-chip__logo {
    min-height: 112px;
    padding: 22px 14px;
  }

  .partner-chip__logo img {
    max-height: 76px;
  }

  .partner-chip__body {
    gap: 6px;
    padding: 14px 12px 16px;
  }

  .partner-chip__name {
    font-size: 14px;
  }

  .partner-chip__desc {
    font-size: 12px;
  }
}

/* CTA band */
.cta-band {
  padding: clamp(112px, 14vh, 168px) 0;
}

.cta-band--after-partners {
  padding: clamp(40px, 6vh, 64px) 0 0;
}

.cta-band--after-partners::before {
  content: none !important;
  display: none !important;
}

.cta-band__panel {
  position: relative;
  overflow: hidden;
  padding: clamp(32px, 5vw, 48px);
  border-radius: var(--radius-xl);
  border: 0;
  background: var(--content-card-bg);
  box-shadow: none;
}

.cta-band__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 40% 80% at 90% 80%, rgb(229 57 53 / 0.12), transparent 70%),
    radial-gradient(ellipse 30% 60% at 10% 20%, rgb(90 100 255 / 0.08), transparent 70%);
  pointer-events: none;
}

.cta-band__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.cta-band__title {
  font-family: var(--font-ui);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 600;
  max-width: 520px;
}

.cta-band__desc {
  margin-top: var(--space-3);
  color: var(--text-secondary);
  max-width: 480px;
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

@media (min-width: 640px) {
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .case-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .partner-wall {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-8);
  }

  .partner-chip__logo {
    min-height: 168px;
  }

  .partner-chip__logo img {
    max-height: 128px;
  }

  .partner-chip__body {
    padding: 20px 22px 24px;
  }

  .flow-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .hero__inner {
    max-width: none;
    margin-inline: auto;
  }

  .hero__copy {
    width: max-content;
    max-width: min(640px, 100%);
  }

  .service-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .service-grid .service-card:nth-child(4),
  .service-grid .service-card:nth-child(5) {
    grid-column: span 1;
  }

  .case-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .flow-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-4);
  }

  .cta-band__content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 1100px) {
  .service-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
  }

  .service-card__body {
    min-height: 280px;
  }

  .service-card__media {
    height: 176px;
  }
}

/* —— Scroll reveal for below-fold sections —— */
.reveal-section:not(.is-in) .section__head,
.reveal-section:not(.is-in) .service-card,
.reveal-section:not(.is-in) .flow-strip__item,
.reveal-section:not(.is-in) .case-filmstrip,
.reveal-section:not(.is-in) .partner-chip,
.reveal-section:not(.is-in) .cta-band__panel {
  opacity: 0;
  transform: translateY(28px);
}

.reveal-section .section__head,
.reveal-section .service-card,
.reveal-section .flow-strip__item,
.reveal-section .case-filmstrip,
.reveal-section .partner-chip,
.reveal-section .cta-band__panel {
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    background-color var(--duration-slow) var(--ease),
    border-color var(--duration-slow) var(--ease),
    box-shadow var(--duration) var(--ease),
    color var(--duration) var(--ease);
}

.reveal-section.is-in:not(.is-settled) .section__head {
  transition-delay: 0.04s;
}

.reveal-section.is-in:not(.is-settled) .case-filmstrip {
  transition-delay: 0.12s;
}

.reveal-section.is-in:not(.is-settled) .service-card:nth-child(1),
.reveal-section.is-in:not(.is-settled) .flow-strip__item:nth-child(1),
.reveal-section.is-in:not(.is-settled) .partner-chip:nth-child(1) {
  transition-delay: 0.1s;
}

.reveal-section.is-in:not(.is-settled) .service-card:nth-child(2),
.reveal-section.is-in:not(.is-settled) .flow-strip__item:nth-child(2),
.reveal-section.is-in:not(.is-settled) .partner-chip:nth-child(2) {
  transition-delay: 0.18s;
}

.reveal-section.is-in:not(.is-settled) .service-card:nth-child(3),
.reveal-section.is-in:not(.is-settled) .flow-strip__item:nth-child(3),
.reveal-section.is-in:not(.is-settled) .partner-chip:nth-child(3) {
  transition-delay: 0.26s;
}

.reveal-section.is-in:not(.is-settled) .service-card:nth-child(4),
.reveal-section.is-in:not(.is-settled) .flow-strip__item:nth-child(4),
.reveal-section.is-in:not(.is-settled) .partner-chip:nth-child(4) {
  transition-delay: 0.34s;
}

.reveal-section.is-in:not(.is-settled) .service-card:nth-child(5),
.reveal-section.is-in:not(.is-settled) .partner-chip:nth-child(5) {
  transition-delay: 0.42s;
}

.reveal-section.is-in:not(.is-settled) .partner-chip:nth-child(6) {
  transition-delay: 0.5s;
}

.reveal-section.is-in:not(.is-settled) .cta-band__panel {
  transition-delay: 0.16s;
}

@media (prefers-reduced-motion: reduce) {
  .reveal-section:not(.is-in) .section__head,
  .reveal-section:not(.is-in) .service-card,
  .reveal-section:not(.is-in) .flow-strip__item,
  .reveal-section:not(.is-in) .case-filmstrip,
  .reveal-section:not(.is-in) .partner-chip,
  .reveal-section:not(.is-in) .cta-band__panel {
    opacity: 1;
    transform: none;
  }

  .reveal-section .section__head,
  .reveal-section .service-card,
  .reveal-section .flow-strip__item,
  .reveal-section .case-filmstrip,
  .reveal-section .partner-chip,
  .reveal-section .cta-band__panel {
    transition: none;
  }

  .service-card:hover::after,
  .flow-strip__item:hover::after,
  .partner-chip:hover::after {
    animation: none;
    opacity: 0.85;
  }
}

/* —— Cooperation consult modal —— */
html.is-consult-open,
html.is-consult-open body {
  overflow: hidden;
}

button.header-cta {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.consult-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.consult-modal[hidden] {
  display: none;
}

.consult-modal__backdrop {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgb(0 0 0 / 0.4);
  cursor: pointer;
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

.consult-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 440px);
  outline: none;
}

.consult-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  border: 1px solid rgb(255 255 255 / 0.18);
  border-radius: 999px;
  background: rgb(0 0 0 / 0.28);
  color: rgb(245 245 245 / 0.92);
  cursor: pointer;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.consult-modal__close:hover {
  background: rgb(0 0 0 / 0.45);
  border-color: rgb(255 255 255 / 0.36);
  color: #fff;
}

.consult-modal__close [data-lucide] {
  width: 15px;
  height: 15px;
}

.consult-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #111;
  color: #f2f2f2;
  box-shadow: 0 28px 80px rgb(0 0 0 / 0.55);
}

.consult-card__fx {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #111;
}

.consult-card__bends {
  position: absolute;
  inset: 0;
  opacity: 0.28;
  -webkit-mask-image: radial-gradient(
    ellipse 88% 72% at 50% 48%,
    #000 0%,
    rgb(0 0 0 / 0.82) 54%,
    transparent 100%
  );
  mask-image: radial-gradient(
    ellipse 88% 72% at 50% 48%,
    #000 0%,
    rgb(0 0 0 / 0.82) 54%,
    transparent 100%
  );
}

.consult-card__bends canvas {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0.9;
}

.consult-card__corner {
  display: none;
}

.consult-card__top {
  position: relative;
  z-index: 1;
  padding: 36px 48px 48px 28px;
  background: transparent;
}

.consult-card__title {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 34px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.02em;
  color: #f5f5f5;
}

.consult-card__en {
  margin: 8px 0 0;
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.01em;
  color: #f0f0f0;
}

.consult-card__desc {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 22px 0 0;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.75;
  color: rgb(245 245 245 / 0.82);
}

.consult-card__bullet {
  flex-shrink: 0;
  width: 0;
  height: 0;
  margin-top: 7px;
  border-style: solid;
  border-width: 5px 0 5px 8px;
  border-color: transparent transparent transparent #f5f5f5;
}

.consult-card__qr {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
}

.consult-card__qr::before,
.consult-card__qr::after {
  content: none;
  display: none;
}

.consult-card__qr img {
  position: relative;
  z-index: 1;
  display: block;
  width: min(240px, 62vw);
  height: auto;
  aspect-ratio: 1;
  background: #fff;
  box-shadow: 0 0 0 5px #fff;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}

.consult-card__bottom {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin: 0;
  padding: 28px 28px 36px;
  background: transparent;
  color: #fff;
  text-align: center;
}

.consult-card__chevron {
  display: block;
  width: 12px;
  height: 12px;
  margin-bottom: 14px;
  border-right: 1.5px solid #fff;
  border-bottom: 1.5px solid #fff;
  transform: rotate(-135deg);
  opacity: 0.9;
}

.consult-card__cta {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.04em;
  color: #fff;
}

.consult-card__hint {
  margin: 10px 0 0;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: rgb(255 255 255 / 0.55);
}

.consult-modal.is-open .consult-modal__backdrop {
  animation: consult-fade-in 220ms ease forwards;
}

.consult-modal.is-open .consult-modal__dialog {
  animation: consult-rise-in 280ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes consult-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes consult-rise-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .consult-modal.is-open .consult-modal__backdrop,
  .consult-modal.is-open .consult-modal__dialog {
    animation: none;
  }
}
