:root {
  --container: min(calc(100vw - 1.5rem), 100%);
}

html {
  scroll-padding-top: calc(4.8rem + env(safe-area-inset-top, 0px));
}

body {
  overflow-x: hidden;
}

body.has-mobile-nav-open {
  overflow: hidden;
}

.site-header,
.site-footer {
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}

.site-header {
  padding: 0;
  background: rgba(3, 0, 21, 0.9);
  backdrop-filter: none;
  overflow: visible;
  z-index: 1000;
}

.page-about .site-header,
.page-cases .site-header,
.page-case-detail .site-header,
.page-services .site-header,
.page-contact .site-header {
  background: rgba(3, 0, 21, 0.9);
  backdrop-filter: none;
}

.site-header__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.72rem;
  overflow: visible;
}

.site-brand {
  position: relative;
  z-index: 1010;
  grid-column: 1;
  width: 9rem;
}

.nav-toggle {
  grid-column: 2;
  position: relative;
  z-index: 1010;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.35rem;
  height: 3.35rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
  overflow: visible;
}

.nav-toggle__line {
  position: absolute;
  left: 50%;
  top: 50%;
  display: block;
  width: 1.32rem;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform-origin: center;
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle__line:nth-child(1) {
  transform: translate(-50%, calc(-50% - 0.34rem));
}

.nav-toggle__line:nth-child(2) {
  transform: translate(-50%, -50%);
}

.nav-toggle__line:nth-child(3) {
  transform: translate(-50%, calc(-50% + 0.34rem));
}

.nav-toggle.is-open .nav-toggle__line:nth-child(1) {
  transform: translate(-50%, -50%) rotate(45deg);
}

.nav-toggle.is-open .nav-toggle__line:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open .nav-toggle__line:nth-child(3) {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.main-nav {
  position: fixed;
  inset: 0;
  z-index: 1005;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0.8rem;
  padding:
    calc(6.2rem + env(safe-area-inset-top, 0px))
    0.9rem
    calc(1.4rem + env(safe-area-inset-bottom, 0px));
  border: 0;
  background:
    radial-gradient(circle at 14% 12%, rgba(214, 8, 8, 0.18) 0%, rgba(214, 8, 8, 0) 28%),
    linear-gradient(180deg, rgba(5, 2, 16, 0.99) 0%, rgba(5, 5, 5, 0.995) 100%);
  box-shadow: none;
  box-sizing: border-box;
  width: 100vw;
  min-height: 100vh;
  min-height: 100svh;
  height: 100vh;
  height: 100svh;
  max-height: none;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(0.985);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  color: #fff;
  font-size: 1.08rem;
  letter-spacing: normal;
  word-spacing: normal;
}

.main-nav.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: scale(1);
}

.main-nav a,
.main-nav__lang {
  position: static;
}

.main-nav a {
  display: flex;
  align-items: center;
  min-height: 4rem;
  padding: 0.3rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  font-size: 1.28rem;
  letter-spacing: normal;
  word-spacing: normal;
}

.main-nav__lang {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 4rem;
  gap: 0.3rem;
  margin-top: auto;
  padding: 0.3rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  letter-spacing: normal;
  word-spacing: normal;
}

.main-nav__lang-button {
  min-width: 2.6rem;
  min-height: 2.6rem;
  letter-spacing: normal;
  word-spacing: normal;
}

.main-nav a::after {
  display: none;
}

.hero {
  height: clamp(13.5rem, 62vw, 24rem);
  min-height: 0;
}

.hero__slide {
  background-size: cover;
}

.hero__dots {
  bottom: 1rem;
  gap: 0.46rem;
}

.hero__dot {
  width: 1.05rem;
}

.hero__dot.is-active {
  width: 3.6rem;
}

.services {
  padding: 0;
}

.services__layout,
.service-grid {
  gap: 0.5rem;
}

.service-tile {
  aspect-ratio: 1 / 1;
}

.services__layout {
  width: 100%;
  grid-template-columns: 1fr;
  padding-top: 0;
}

.service-grid {
  grid-template-rows: none;
  height: auto;
}

.service-feature {
  display: grid;
  min-height: auto;
  aspect-ratio: 1 / 1.08;
  height: auto;
}

.service-feature__content {
  inset: 10% 0.85rem 0.8rem;
}

.service-feature h2 {
  font-size: clamp(2.95rem, 15vw, 4.8rem);
}

html[lang="zh-CN"] .service-feature h2 {
  width: auto;
  max-width: 100%;
  font-size: clamp(2.65rem, 12vw, 3.55rem);
  line-height: 1.08;
  word-break: keep-all;
}

.service-feature p {
  width: min(16rem, 72%);
  max-width: none;
  font-size: 1.04rem;
  line-height: 1.38;
  text-wrap: normal;
}

.service-feature__action {
  display: none;
}

.service-feature__footer {
  min-height: 0;
  padding: 1rem 0.95rem 1.05rem;
  border-top: 1px solid rgba(214, 8, 8, 0.92);
}

.service-tile {
  aspect-ratio: 1 / 1;
  height: auto;
}

.service-tile span {
  top: auto;
  left: 0;
  right: 0;
  bottom: 0;
  max-width: none;
  min-height: 2.55rem;
  padding: 0.5rem 0.55rem 0.55rem;
  border-top: 1px solid rgba(214, 8, 8, 0.92);
  font-size: 0.76rem;
  line-height: 1;
  letter-spacing: normal;
  justify-content: center;
}

html[lang="zh-CN"] .service-feature p {
  width: 100%;
  font-size: 1.16rem;
  line-height: 1.42;
}

html[lang="zh-CN"] .service-tile span {
  font-size: 1rem;
}

.cases {
  padding: 1.8rem 0 0;
}

.section-heading h2,
.partners h2 {
  font-size: clamp(2.15rem, 12vw, 3.3rem);
}

.case-filters {
  flex-wrap: wrap;
  overflow: visible;
  gap: 0.42rem;
  margin-top: 0.8rem;
  padding-bottom: 0;
  white-space: normal;
  -webkit-overflow-scrolling: auto;
  scrollbar-width: auto;
  scroll-snap-type: none;
}

.case-filter {
  min-width: 0;
  padding: 0.34rem 0.72rem;
  font-size: 0.72rem;
  flex: 0 0 auto;
}

.case-card {
  width: 100%;
  margin-left: 0;
}

.case-card img {
  height: min(58vw, 20rem);
}

.case-card p {
  right: 0.9rem;
  bottom: 0.72rem;
  max-width: 72%;
  font-size: 1rem;
}

.partners {
  padding: 2.25rem 0 2rem;
}

.partners__wall {
  width: 100%;
  margin-top: 1.2rem;
}

.journey img {
  min-height: 10rem;
}

.journey__title {
  top: 50%;
  left: 50%;
  width: var(--container);
  gap: 0.12rem;
  transform: translate(-50%, -50%);
}

.journey__title-line {
  font-size: clamp(22px, 7vw, 34px);
}

html[lang="zh-CN"] .journey__title {
  gap: 0.18rem;
  line-height: 1.12;
}

html[lang="zh-CN"] .journey__title-line {
  font-size: clamp(18px, 6vw, 28px);
}

.page-about {
  --about-container: var(--container);
}

.about-hero {
  height: clamp(14rem, 52.16vw, 22rem);
  min-height: 0;
}

.page-about main {
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}

.about-section__inner,
.about-journey__inner {
  width: var(--about-container);
  grid-template-columns: 1fr;
  column-gap: 0;
}

.about-outro__inner {
  width: 100%;
  padding-left: 0;
  padding-right: 0;
}

.about-section {
  padding-top: 3.4rem;
}

.about-section--intro {
  padding-top: 3.6rem;
}

.about-section__eyebrow {
  justify-self: start;
  font-size: clamp(1.65rem, 7.6vw, 2.2rem);
  text-align: left;
}

html[lang="zh-CN"] .about-section__eyebrow {
  font-size: clamp(1.52rem, 7.2vw, 2.05rem);
}

.about-section__content,
.about-journey__content {
  grid-column: 1;
  grid-row: 2;
  padding-top: 2.45rem;
}

.about-section__title {
  width: auto;
  max-width: none;
  font-size: clamp(2.35rem, 11vw, 3.35rem);
  line-height: 1.08;
}

html[lang="zh-CN"] .about-section--intro .about-section__title {
  white-space: normal;
}

.about-section__copy,
.about-journey__columns p,
.journey-accordion__intro,
.journey-accordion__event {
  font-size: 0.95rem;
  line-height: 1.55;
}

.about-section__rule {
  grid-row: 3;
  margin-top: 3.4rem;
}

.about-vision__quote {
  padding-left: 0;
}

.about-vision__quote p {
  font-size: clamp(2.1rem, 9.5vw, 3rem);
  line-height: 1.14;
}

html[lang="zh-CN"] .about-vision__quote p {
  font-size: clamp(1.95rem, 8.8vw, 2.72rem);
}

.about-journey {
  padding: 3.6rem 0 4rem;
}

.about-journey__columns {
  gap: 0.68rem;
  margin-top: 0;
}

.about-journey__accordion {
  grid-column: 1;
  margin-top: 3.2rem;
}

.journey-accordion__trigger {
  min-height: 6.3rem;
  gap: 0.7rem;
  padding: 1.3rem 0 1.15rem;
}

.journey-accordion__title {
  font-size: clamp(1.45rem, 6.7vw, 2.1rem);
  letter-spacing: -0.022em;
  word-spacing: 0.08em;
}

.journey-accordion__trigger::after {
  margin-right: 0.45rem;
  font-size: 0.68rem;
}

.journey-accordion__icon {
  width: 2.35rem;
  height: 2rem;
  margin-right: 0;
}

.journey-accordion__panel {
  margin-bottom: 1rem;
  padding: 1rem;
}

.about-outro__inner {
  grid-template-columns: 1fr;
  min-height: 0;
  gap: 0;
}

.about-outro__media {
  min-height: auto;
  aspect-ratio: 679 / 306;
}

.about-outro__quote {
  padding: 1.4rem 1.1rem 1.35rem;
  font-size: 1rem;
  line-height: 1.38;
}

.cases-hero,
.case-detail-hero,
.services-page-hero,
.contact-page-banner {
  padding-top: calc(1.35rem + env(safe-area-inset-top, 0px));
}

.cases-hero {
  padding-top: calc(2.1rem + env(safe-area-inset-top, 0px));
  padding-bottom: 1.8rem;
}

.contact-page-banner {
  padding-top: 0;
}

.case-filters--cases-page,
.case-filters--detail-page {
  margin-bottom: 0;
}

.cases-gallery-section {
  padding-bottom: 1.8rem;
}

.cases-gallery {
  grid-template-columns: 1fr;
  gap: 1.35rem;
}

.case-showcase,
.case-showcase--primary,
.case-showcase--portrait,
.case-showcase--wide,
.cases-gallery > .case-showcase:nth-child(5),
.cases-gallery > .case-showcase:nth-child(6) {
  height: auto;
  aspect-ratio: auto;
}

.case-showcase__image {
  height: auto;
  aspect-ratio: 1.55 / 1;
}

.case-showcase__overlay {
  padding: 0.65rem 0 0;
}

.case-showcase__tag {
  top: 0.65rem;
  left: 0.65rem;
  min-height: 1.15rem;
  padding: 0.08rem 0.35rem;
  font-size: 0.58rem;
}

.case-showcase h2 {
  width: auto;
  max-width: none;
  font-size: 0.9rem;
  line-height: 1.22;
}

.case-showcase__arrow {
  display: none;
}

.cases-pagination {
  width: 100%;
  justify-content: center;
  gap: 0;
  padding-top: 1.5rem;
}

.cases-pagination__control {
  gap: 0.18rem;
  font-size: 0.92rem;
}

.cases-pagination__status {
  font-size: 0.92rem;
}

.cases-pagination__control--prev {
  margin-left: 0;
}

.cases-pagination__control--next {
  margin-left: 0;
}

.case-detail-hero {
  padding-bottom: 1.5rem;
}

.case-detail-stage__title h1 {
  font-size: clamp(1.6rem, 7.7vw, 2.4rem);
}

.case-detail-stage__panel {
  margin-top: 0.75rem;
  padding: 1rem 0.9rem;
}

.case-detail-stage__grid {
  gap: 1.15rem;
}

.case-detail-stage__copy,
.case-detail-timeline-panel {
  width: 100%;
}

.case-detail-stage__metric {
  font-size: clamp(3.8rem, 18vw, 5rem);
}

.case-detail-note h2,
.case-detail-timeline-panel__title {
  font-size: clamp(1.25rem, 6.6vw, 1.7rem);
}

.case-detail-note p,
.case-detail-timeline-panel__summary {
  font-size: 0.92rem;
  line-height: 1.55;
}

.case-detail-stage__visual--hero {
  aspect-ratio: 16 / 9;
}

.case-detail-stage__gallery {
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

.case-detail-stage__visual--gallery {
  aspect-ratio: 16 / 9;
}

.case-detail-arrow {
  min-height: 2rem;
  font-size: 0.8rem;
}

.services-page-hero__image img {
  aspect-ratio: 1.45 / 1;
  object-fit: cover;
}

.services-page-intro {
  padding: 1.25rem 0 1.4rem;
}

.services-page-intro p {
  max-width: none;
  font-size: clamp(1.32rem, 5.6vw, 1.7rem);
  line-height: 1.2;
}

.services-page-sections {
  padding-bottom: 1.55rem;
}

.service-panel {
  padding: 0;
}

.service-panel + .service-panel {
  margin-top: 0.85rem;
}

.service-panel__header {
  gap: 0.5rem;
}

.service-panel__body {
  gap: 1rem;
  padding-top: 0.82rem;
}

.service-panel__copy h2 {
  width: auto;
  max-width: none;
  font-size: clamp(1.42rem, 6.2vw, 1.8rem);
}

.service-panel__copy p,
.service-panel__link {
  width: auto;
  max-width: none;
  margin-top: 0.72rem;
  font-size: 0.88rem;
  line-height: 1.58;
}

.service-panel__slots {
  margin-top: 0.95rem;
  padding-top: 0.9rem;
  gap: 0.5rem;
  font-size: 0.84rem;
}

.service-panel#design .service-panel__slots {
  margin-top: 1rem;
  padding-top: 0;
}

.service-panel#design .service-panel__link {
  margin-top: 0.85rem;
}

.service-panel__media {
  aspect-ratio: 1.45 / 1;
}

.services-page-outro {
  padding: 0;
}

.services-page-outro__inner {
  min-height: 0;
  align-items: flex-end;
}

.services-page-outro__copy {
  width: 100%;
  padding: 8.8rem 0 1.35rem;
}

.services-page-outro__text {
  width: 100%;
  font-size: clamp(1.02rem, 4.2vw, 1.18rem);
  line-height: 1.3;
}

.contact-page-banner__image img {
  aspect-ratio: 1.5 / 1;
  object-fit: cover;
  object-position: center 36%;
}

.contact-page-content {
  padding: 1.5rem 0 2.6rem;
}

.contact-page-content,
.contact-line[id] {
  scroll-margin-top: 1.5rem;
}

.contact-page-title {
  font-size: clamp(3.45rem, 16vw, 5rem);
}

.contact-page-heading {
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.contact-page-intro {
  max-width: none;
  font-size: 0.9rem;
  line-height: 1.55;
}

.contact-page-grid {
  grid-template-columns: 1fr;
  gap: 1.2rem;
  margin-top: 1.6rem;
}

.contact-line {
  min-height: 0;
  padding-top: 0.8rem;
}

.contact-line:last-child {
  grid-column: auto;
  max-width: none;
}

.contact-line h2,
.contact-office h2 {
  font-size: clamp(0.96rem, 4.4vw, 1.15rem);
}

.contact-office h2 {
  font-size: clamp(1.05rem, 5vw, 1.4rem);
}

.contact-line a,
.contact-office p {
  font-size: 0.9rem;
  line-height: 1.55;
  word-break: break-word;
}

.contact-page-divider {
  margin-top: 1.6rem;
}

.contact-office-list {
  gap: 1.45rem;
  padding-top: 1.3rem;
}

.site-footer__top {
  min-height: auto;
  padding: 0.72rem 0 0.68rem;
}

.footer-nav {
  width: 100%;
  justify-content: flex-start;
  gap: 0.5rem 0.85rem;
  font-size: 0.86rem;
  line-height: 1.12;
}

.site-footer__bottom {
  gap: 0.4rem 0.9rem;
  padding-top: 0.72rem;
  font-size: 0.74rem;
}

.footer-links {
  gap: 0.3rem 0.8rem;
  font-size: 0.74rem;
}

.site-footer__bottom {
  padding-bottom: calc(1.2rem + env(safe-area-inset-bottom, 0px));
}
