.website-hero {
  position: relative;
  min-height: calc(100svh - var(--header-height));
  overflow: hidden;
  background: #f4f9fc;
}
.hero-blue {
  position: absolute;
  inset: 0 0 0 69%;
  background: #0635b5 url('/assets/optimized/background-fcf4371dc0b1.webp') center/cover;
  clip-path: ellipse(77% 99% at 92% 20%);
}
.hero-blue video, .feature-background, .service-ribbon video,
.website-enter video, .website-exit video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.website-hero-content {
  position: relative;
  max-width: 1536px;
  min-height: calc(100svh - var(--header-height));
  margin: auto;
  padding: 35px clamp(24px, 4.55vw, 70px) 56px;
}
.breadcrumb { font-size: 13px; color: #52647a; }
.breadcrumb a:hover { color: #0850d6; }
.website-intro { position: relative; z-index: 1; margin: 0 12% 24px 40%; }
.website-intro h1 {
  font-size: clamp(36px, 4vw, 63px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -.035em;
}
.website-intro p { margin-top: 12px; color: #5c6b7b; font-size: 15px; line-height: 1.8; }
.website-intro > a {
  display: table;
  margin: 19px 0 0 auto;
  padding: 0 0 8px;
  border-bottom: 1px solid #1563d6;
  color: #1258ca;
  font-size: 13px;
}
.hero-projects { position: relative; display: flex; align-items: flex-end; }
.hero-project { display: block; }
.hero-project img { width: 100%; height: auto; box-shadow: 0 7px 30px #17335b1c; }
.hero-project span {
  display: block;
  margin-top: 12px;
  padding-left: 7px;
  border-left: 2px solid #0864e7;
  color: #61738b;
  font-size: 12px;
}
.hero-project-first { width: 56%; }
.hero-project-second { width: 44.5%; margin-left: -1%; transform: translateY(12px); }

.transition-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.website-feature { position: relative; min-height: 100svh; overflow: hidden; background: #e7e9e9; }
.feature-images { position: absolute; inset: 0; overflow: hidden; }
.feature-image {
  position: absolute;
  inset: 0;
  opacity: 0;
  background-repeat: no-repeat;
  transition: opacity .8s ease;
}
.feature-image.is-visible { opacity: 1; }
.feature-timybear { background-image: url('/assets/optimized/timybear-showcase-4729a5537e49.webp'); background-size: 175% auto; background-position: 100% 33%; }
.feature-miyotrip { background-image: url('/assets/optimized/miyotrip-showcase-1274754003b3.webp'); background-size: 170% auto; background-position: 100% 46%; }
.feature-panel {
  position: absolute;
  inset: 0;
  color: #fff;
  background: #0642b5 url('/assets/optimized/background-fcf4371dc0b1.webp') center/cover;
  clip-path: url(#feature-panel-curve);
}
.feature-background { position: absolute; inset: 0; }
.feature-wave-outline { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.feature-wave-outline path { fill: none; stroke: #40d1fa; stroke-width: 2.5px; }
.feature-wave-outline-mobile { display: none; }
.feature-content {
  position: absolute;
  left: 50%;
  bottom: 6%;
  width: min(100%, 1536px);
  height: 29%;
  padding: 0 clamp(24px, 4.55vw, 70px);
  display: grid;
  grid-template-columns: 40% 60%;
  gap: 0;
  transform: translateX(-50%);
}
.feature-content > div { display: flex; flex-direction: column; }
.feature-content > div:first-child { justify-content: space-between; }
.feature-content > div:last-child { justify-content: flex-end; align-items: flex-start; }
.feature-index, .feature-copy, .feature-tags { font-size: 13px; line-height: 1.8; }
.feature-content h2 { font-size: clamp(32px, 4.2vw, 64px); font-weight: 400; line-height: 1.3; white-space: nowrap; }
.project-switcher { display: flex; gap: 20px; align-self: flex-end; flex-wrap: wrap; margin-top: clamp(28px, 6vh, 55px); }
.project-switcher button {
  border: 0;
  border-bottom: 1px solid transparent;
  padding: 0 0 7px;
  background: transparent;
  color: #c8dcff;
  font-size: 12px;
  cursor: pointer;
}
.project-switcher button.is-active { color: #fff; border-color: #fff; }
.service-next { padding: 110px var(--edge); background: #f4f9fc; }
.service-next > p { color: #58708a; font-size: 13px; }
.service-next h2 { margin: 24px 0 45px; font-size: clamp(32px, 3.5vw, 55px); font-weight: 400; }
.service-next a { display: inline-block; margin: 0 32px 12px 0; padding-bottom: 8px; border-bottom: 1px solid #165cce; color: #1258ca; }
.service-ribbon { display: none; }
.website-exit, .website-enter {
  position: fixed;
  z-index: 50;
  inset: var(--header-height) 0 0;
  pointer-events: none;
  background: #0750cb url('/assets/optimized/background-fcf4371dc0b1.webp') center/cover;
}
.website-exit svg, .website-enter svg { position: absolute; width: 0; height: 0; }

@media (min-width: 801px) and (min-height: 600px) {
  html.service-motion .service-stage { position: relative; height: 260svh; }
  html.service-motion .service-scene { position: sticky; top: var(--header-height); height: calc(100svh - var(--header-height)); overflow: hidden; }
  html.service-motion .website-hero, html.service-motion .website-feature { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; }
  html.service-motion .website-hero-content { height: 100%; min-height: 0; transform: translateY(var(--hero-offset, 0px)); }
  html.service-motion .hero-project-first { width: min(56%, calc(195svh - 775px)); }
  html.service-motion .hero-project-second { width: min(44.5%, calc(208svh - 865px)); }
  html.service-motion .website-feature { clip-path: url(#feature-reveal); }
  html.service-motion .service-ribbon { display: block; position: absolute; inset: 0; clip-path: url(#transition-ribbon); pointer-events: none; }
}
@media (max-width: 800px) {
  .website-hero, .website-hero-content { min-height: 0; }
  .website-hero-content { padding: 28px 24px 68px; }
  .hero-blue { inset: 0 0 0 73%; clip-path: ellipse(100% 70% at 100% 5%); }
  .website-intro { margin: 58px 0 30px; }
  .website-intro h1 { font-size: clamp(33px, 8vw, 48px); }
  .website-intro p { max-width: 310px; }
  .website-intro > a { margin-left: 0; }
  .hero-projects { display: block; }
  .hero-project-first { width: 85%; }
  .hero-project-second { width: 72%; margin: 20px 0 0 auto; transform: none; }
  .website-feature { min-height: 760px; clip-path: url(#mobile-feature-curve); margin-top: -35px; }
  .feature-timybear { background-size: auto 130%; background-position: 80% center; }
  .feature-miyotrip { background-size: auto 120%; background-position: 80% center; }
  .feature-panel { clip-path: url(#mobile-panel-curve); }
  .feature-wave-outline { display: none; }
  .feature-wave-outline-mobile { display: block; }
  .feature-content { inset: auto 0 0; width: 100%; height: auto; padding: 24px 24px 36px; display: flex; flex-direction: column-reverse; gap: 28px; transform: none; }
  .feature-content > div:first-child { gap: 15px; }
  .feature-content h2 { font-size: clamp(28px, 7.5vw, 36px); white-space: normal; }
  .project-switcher { align-self: flex-start; margin-top: 20px; }
  .service-next { padding: 70px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-blue video, .feature-background { visibility: hidden; }
  .feature-image { transition: none; }
  .website-exit, .website-enter { display: none; }
}

/* Approved service and project screens. Text remains real page content. */
.website-delivery {
  position: relative;
  height: max(calc(100svh - var(--header-height)), 720px);
  overflow: hidden;
  background: #fff;
}
.delivery-hero {
  position: relative;
  height: 56%;
  overflow: hidden;
  color: #fff;
  background: #073ab3 url('/assets/optimized/background-fcf4371dc0b1.webp') center/cover;
}
.delivery-background, .case-background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.delivery-visual {
  position: absolute;
  inset: 0;
  overflow: hidden;
  clip-path: polygon(64.8% 0, 100% 0, 100% 100%, 35.7% 100%);
}
.delivery-visual-image {
  position: absolute;
  inset: 0;
  background-image: url('../assets/service-design-reference.png');
  background-position: right 17.17%;
  background-size: auto 195.64%;
  background-repeat: no-repeat;
  transform: scale(var(--delivery-photo-scale, 1));
  transform-origin: 75% 42%;
}
.delivery-intro {
  position: absolute;
  z-index: 1;
  top: 17.5%;
  left: clamp(38px, 5.6vw, 96px);
  width: 43%;
}
.delivery-intro h2 {
  font-size: clamp(46px, 4.65vw, 80px);
  line-height: 1.13;
  font-weight: 700;
  letter-spacing: -.035em;
  white-space: nowrap;
}
.delivery-intro p {
  margin-top: clamp(22px, 3.3vh, 38px);
  font-size: clamp(17px, 1.55vw, 26px);
  line-height: 1.52;
}
.delivery-rule { display: block; width: 50px; height: 4px; margin-top: clamp(24px, 4vh, 42px); background: #fff; }
.delivery-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(24px, 3.1vw, 52px);
  height: 44%;
  padding: clamp(34px, 7.5vh, 80px) clamp(38px, 5.6vw, 96px) 34px;
}
.delivery-item h3 {
  margin: 0;
  font-size: clamp(20px, 2.55vw, 42px);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -.025em;
}
.delivery-item h3::after { content: ''; display: block; width: 48px; height: 4px; margin: clamp(18px, 2.6vh, 28px) 0; background: #1057e8; }
.delivery-item p { margin: 0; color: #343e4e; font-size: clamp(14px, 1.25vw, 21px); line-height: 1.55; }
.delivery-bottom-wave {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 14%;
  clip-path: url(#delivery-bottom-curve);
  background: #0750cb url('/assets/optimized/background-fcf4371dc0b1.webp') center/cover;
}
.website-case {
  position: relative;
  height: max(calc(100svh - var(--header-height)), 650px);
  overflow: hidden;
  background: #f8f6f5;
}
.case-copy { position: absolute; z-index: 2; top: 25.2%; left: clamp(38px, 4.7vw, 80px); width: 24%; }
.case-copy h2 {
  font-family: Arial, 'CXY Sans', 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
  font-size: clamp(38px, 5vw, 84px);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.08;
}
.case-copy h2 span { display: block; white-space: nowrap; }
.case-rule { display: block; width: 65px; height: 5px; margin: clamp(34px, 5.5vh, 60px) 0; background: #1253e9; }
.case-copy p { font-size: clamp(15px, 1.45vw, 25px); line-height: 1.5; }
.case-media {
  position: absolute;
  z-index: 1;
  top: 10.4%;
  right: 3.2%;
  width: min(68.05%, calc(135svh - var(--header-height) - 30px));
  aspect-ratio: 1138 / 650;
  overflow: hidden;
  transform: scale(var(--case-scale, 1));
  transform-origin: 50% 50%;
}
.case-media img { width: 100%; height: 100%; object-fit: cover; object-position: 100% 50%; }
.case-bottom-wave {
  position: absolute;
  z-index: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 22%;
  clip-path: url(#case-bottom-curve);
  background: #0750cb url('/assets/optimized/background-fcf4371dc0b1.webp') center/cover;
}
.mobile-transition { display: none; }

@media (min-width: 801px) and (min-height: 600px) {
  html.service-motion .service-stage { height: 390svh; }
  html.service-motion .website-delivery, html.service-motion .website-case {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
  }
  html.service-motion .website-delivery { clip-path: url(#delivery-reveal); }
  html.service-motion .website-case { clip-path: url(#case-reveal); }
  html.service-motion .delivery-item { opacity: var(--item-opacity, 1); transform: translateY(var(--item-shift, 0px)); }
}
@media (min-width: 801px) and (min-height: 600px) and (max-height: 699px) {
  .delivery-hero { height: 53%; }
  .delivery-intro h2 { font-size: clamp(40px, 4.3vw, 70px); }
  .delivery-intro p { margin-top: 20px; font-size: clamp(15px, 1.4vw, 22px); line-height: 1.4; }
  .delivery-rule { margin-top: 20px; }
  .delivery-grid { height: 47%; padding-top: clamp(18px, 4vh, 28px); padding-bottom: 20px; }
  .delivery-item h3 { font-size: clamp(19px, 2.3vw, 34px); }
  .delivery-item h3::after { margin: clamp(10px, 1.7vh, 14px) 0; }
  .delivery-item p { font-size: clamp(13px, 1.15vw, 18px); line-height: 1.4; }
}
@media (min-width: 801px) and (min-aspect-ratio: 2/1) {
  .delivery-visual-image { background-size: 100% auto; background-position: right calc(-4.725vw); }
}
@media (max-width: 800px) {
  .website-delivery { height: auto; min-height: 0; }
  .delivery-hero { height: auto; min-height: 590px; }
  .delivery-intro { top: 42px; right: 24px; left: 24px; width: auto; }
  .delivery-intro h2 { font-size: clamp(31px, 8vw, 48px); white-space: normal; }
  .delivery-intro p { max-width: 30em; margin-top: 22px; font-size: 16px; line-height: 1.7; }
  .delivery-intro p br { display: none; }
  .delivery-rule { margin-top: 25px; }
  .delivery-visual { inset: auto 0 0; height: 43%; clip-path: polygon(0 18%, 100% 0, 100% 100%, 0 100%); }
  .delivery-visual-image { background-size: auto 300%; background-position: right 16%; transform: none; }
  .delivery-grid { height: auto; padding: 42px 24px 112px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 24px; }
  .delivery-item h3 { font-size: 25px; }
  .delivery-item h3::after { margin: 15px 0; }
  .delivery-item p { font-size: 15px; line-height: 1.65; }
  .delivery-bottom-wave { height: 100px; }
  .website-case { display: flex; height: auto; min-height: calc(100svh - var(--header-height)); padding: 54px 24px 155px; flex-direction: column; gap: 36px; }
  .case-copy { position: relative; top: auto; left: auto; width: auto; }
  .case-copy h2 { font-size: clamp(43px, 10vw, 65px); }
  .case-rule { margin: 26px 0; }
  .case-copy p { font-size: 16px; }
  .case-media { position: relative; top: auto; right: auto; width: 100%; max-width: 100%; transform: none; flex: none; }
  .case-bottom-wave { height: 130px; }
  .mobile-transition {
    position: relative;
    z-index: 4;
    display: block;
    height: 76px;
    margin: -1px 0 -75px;
    pointer-events: none;
    clip-path: url(#mobile-ribbon-curve);
    background: #0750cb url('/assets/optimized/background-fcf4371dc0b1.webp') center/cover;
    transform: translateY(var(--mobile-wave-shift, 0px)) scaleY(var(--mobile-wave-scale, 1));
    transform-origin: center bottom;
  }
}
@media (max-width: 480px) {
  .delivery-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .delivery-background, .case-background { visibility: hidden; }
  .delivery-visual-image, .case-media, .mobile-transition { transform: none; }
}

/* Related cases share one image frame and remain manually selectable. */
.case-copy-text { transition: opacity .18s ease, transform .18s ease; }
.case-copy-text.is-changing { opacity: 0; transform: translateY(9px); }
.case-copy.is-wide-title h2 span:last-child { font-size: clamp(26px, 2.8vw, 46px); letter-spacing: -.035em; }
.case-rule { margin: clamp(26px, 4vh, 42px) 0; }
.case-detail-link { display: inline-block; margin-top: 18px; padding-bottom: 5px; border-bottom: 1px solid #1555d8; color: #1555d8; font-size: 14px; }
.case-switch { display: flex; flex-wrap: wrap; gap: 18px; margin-top: clamp(28px, 5vh, 48px); }
.case-switch button { border: 0; border-bottom: 1px solid transparent; padding: 3px 0 7px; background: transparent; color: #52647a; font-size: clamp(13px, .95vw, 17px); cursor: pointer; }
.case-switch button.is-active { border-color: #1253e9; color: #1253e9; }
.case-switch button:focus-visible, .case-detail-link:focus-visible, .faq-row summary:focus-visible { outline: 2px solid #1555e6; outline-offset: 4px; }
.case-media-item { position: absolute; inset: 0; overflow: hidden; visibility: hidden; opacity: 0; transform: translateX(7%); transition: opacity .45s ease, transform .65s cubic-bezier(.22,1,.36,1), visibility 0s linear .65s; }
.case-media-item.is-active { visibility: visible; opacity: 1; transform: translateX(0); transition-delay: 0s; }
.case-media-item.is-exiting { visibility: visible; opacity: 0; transform: translateX(-7%); pointer-events: none; }
.case-media-item--miyo { background: #f5f4ed; }
.case-media-item--miyo img { object-fit: contain; object-position: center; }

/* A short FAQ follows the case screen in normal document flow. */
.service-faq { padding: clamp(70px, 10vh, 110px) var(--edge) clamp(72px, 10vh, 110px); background: #f7fafc; }
.website-delivery, .website-case, .service-faq, .service-contact { scroll-margin-top: var(--header-height); }
.service-faq-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin: 0 auto clamp(40px, 6vh, 65px); max-width: 1536px; }
.service-eyebrow { margin-bottom: 24px; color: #1253e9; font-size: 15px; }
.service-faq h2 { font-size: clamp(36px, 4vw, 64px); font-weight: 400; line-height: 1.2; letter-spacing: -.025em; }
.service-faq-heading > p { padding-bottom: 5px; color: #62758a; font-size: clamp(15px, 1.2vw, 20px); }
.faq-list { max-width: 1536px; margin: auto; border-top: 1px solid #aabacb; }
.faq-row { border-bottom: 1px solid #d3dfea; }
.faq-row summary { display: grid; grid-template-columns: 82px minmax(0, 1fr) 30px; align-items: center; gap: 0; padding: 27px 0; list-style: none; cursor: pointer; font-size: clamp(20px, 1.8vw, 30px); line-height: 1.35; }
.faq-row summary::-webkit-details-marker { display: none; }
.faq-row summary::after { content: '+'; justify-self: end; color: #62809d; font-size: 30px; font-weight: 300; }
.faq-row[open] summary::after { content: '−'; color: #1253e9; }
.faq-number { color: #8da0b3; font-family: Arial, sans-serif; font-size: 17px; }
.faq-row[open] .faq-number { color: #1253e9; }
.faq-row > p { max-width: 70ch; margin: -10px 0 28px 82px; color: #53677c; font-size: clamp(16px, 1.25vw, 21px); line-height: 1.7; }
.faq-note { max-width: 1536px; margin: 28px auto 0; color: #52647a; font-size: 14px; line-height: 1.7; }
.service-contact .contact-hero-content { padding-top: clamp(16px, 3vh, 35px); }
.service-contact .contact-hero h2 { font-size: clamp(48px, 8vh, 104px); }
.service-contact .contact-subtitle { font-size: clamp(16px, 2.15vh, 23px); line-height: 1.6; }
.service-contact .wechat-contact { margin-top: clamp(18px, 3vh, 36px); }

@media (max-width: 800px) {
  .website-feature { min-height: clamp(520px, 75svh, 680px); }
  .feature-content { gap: 16px; }
  .feature-content > div:first-child { gap: 8px; }
  .case-copy.is-wide-title h2 span:last-child { font-size: clamp(26px, 6.5vw, 38px); }
  .case-copy-text { min-height: 0; }
  .case-switch { gap: 24px; margin-top: 24px; }
  .case-media { aspect-ratio: 1138 / 650; }
  .service-faq-heading { display: block; }
  .service-faq-heading > p { margin-top: 14px; }
  .faq-row summary { grid-template-columns: 48px minmax(0, 1fr) 24px; padding: 23px 0; font-size: clamp(18px, 4.6vw, 24px); }
  .faq-row > p { margin-left: 48px; font-size: 15px; }
  .service-contact .contact-hero h2 { font-size: clamp(36px, 8.5vw, 54px); }
  .service-contact .contact-subtitle { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .case-copy-text, .case-media-item { transition: none; }
  .case-copy-text.is-changing, .case-media-item { transform: none; }
}
