:root {
  color-scheme: light;
  --ink: #0a0a0a;
  --paper: #fafafa;
  --accent: #ff4d00;
  --muted: #66666e;
  --line: #e3e3e8;
  --content-width: 1240px;
  --gutter: max(24px, calc((100% - var(--content-width)) / 2));
  --ease: cubic-bezier(.4, 0, .2, 1);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100dvh;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.6 "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
p {
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.skip {
  position: fixed;
  z-index: 10;
  top: 10px;
  left: 16px;
  padding: 10px 16px;
  background: var(--ink);
  color: white;
  transform: translateY(-160%);
}

.skip:focus {
  transform: none;
}

.header {
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
  padding: 0 var(--gutter);
  border-bottom: 1px solid var(--line);
  background: rgba(250, 250, 250, .95);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: none;
  white-space: nowrap;
}

.brand img {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 9px;
}

.brand b {
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .08em;
}

.brand span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.6vw, 44px);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

nav a,
footer a {
  transition: color .2s var(--ease);
}

nav a:hover,
footer a:hover {
  color: var(--accent);
}

.nav-action {
  padding: 10px 20px;
  border-radius: 100px;
  background: var(--ink);
  color: white;
}

.nav-action:hover {
  background: var(--accent);
  color: white;
}

#viewport {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #b6b6bf var(--paper);
}

section {
  scroll-margin-top: 24px;
}

.b-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: center;
  gap: clamp(30px, 4vw, 70px);
  min-height: min(690px, calc(100dvh - 140px));
  padding: clamp(48px, 6vw, 88px) var(--gutter) 72px;
}

.hero-content {
  min-width: 0;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2em;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  flex: none;
  background: var(--ink);
}

.b-hero h1 {
  font-size: clamp(42px, 5.8vw, 78px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.04em;
}

.b-hero h1 .line {
  display: block;
  overflow: hidden;
  padding-bottom: .07em;
}

.b-hero h1 .line > i {
  display: block;
  font-style: normal;
}

.motion-ready .b-hero h1 .line > i {
  animation: line-up .9s var(--ease) both;
}

.motion-ready .b-hero h1 .line:nth-child(2) > i {
  animation-delay: .1s;
}

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

.lead {
  max-width: 520px;
  margin-top: 24px;
  color: #5a5a62;
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.75;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 50px;
  padding: 12px 28px;
  border: 1px solid transparent;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.btn-primary {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--ink);
  color: white;
}

.btn-primary::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: var(--accent);
  transform: translateY(101%);
  transition: transform .35s var(--ease);
}

.btn-primary:hover::before {
  transform: translateY(0);
}

.btn-ghost {
  border-color: #d4d4da;
  transition: color .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease);
}

.btn-ghost:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: white;
}

.shot {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e8e8ec;
  border-radius: 16px;
  background: white;
  box-shadow: 0 40px 80px -32px rgb(10 10 20 / 22%), 0 2px 8px rgb(10 10 20 / 5%);
  transform: perspective(1400px) rotateY(-7deg) rotateX(3deg);
  transition: transform .6s var(--ease);
}

.shot:hover {
  transform: perspective(1400px) rotateY(-2deg) rotateX(1deg);
}

.shot-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 14px;
  border-bottom: 1px solid #f0f0f3;
  background: #fcfcfd;
}

.shot-bar i {
  display: block;
  width: 9px;
  height: 9px;
  flex: none;
  border-radius: 50%;
  background: #ff5f57;
}

.shot-bar i:nth-child(2) {
  background: #febc2e;
}

.shot-bar i:nth-child(3) {
  background: #28c840;
}

.shot-bar span {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
}

.shot-body {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  min-height: 300px;
}

.shot-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px 12px;
  border-right: 1px solid #f0f0f3;
}

.shot-side s {
  display: block;
  height: 8px;
  border-radius: 4px;
  background: #efeff3;
}

.shot-side s:first-child {
  width: 70%;
  background: var(--ink);
}

.shot-main {
  min-width: 0;
  padding: 24px 20px;
}

.shot-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.shot-kpis b {
  display: block;
  font-size: clamp(19px, 1.8vw, 30px);
  line-height: 1.35;
  letter-spacing: -.03em;
}

.shot-kpis span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: clamp(100px, 10vw, 180px);
  margin-bottom: 20px;
}

.bars u {
  display: block;
  height: var(--bar-height, 50%);
  min-width: 0;
  flex: 1;
  border-radius: 5px 5px 2px 2px;
  background: linear-gradient(180deg, #ff4d00, #ffb199);
  transform-origin: bottom;
}

.motion-ready .bars u {
  animation: bar-up .8s var(--ease) var(--delay, 0s) both;
}

.shot-ai {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border-radius: 10px;
  background: #f7f7f9;
}

.shot-ai .dot {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 7px;
  background: linear-gradient(135deg, #0a0a0a, #4a4a55);
  color: white;
  font-size: 12px;
  font-weight: 800;
}

.shot-ai p {
  color: #5a5a62;
  font-size: 13px;
  line-height: 1.6;
}

.shot-ai b {
  color: var(--ink);
}

.capabilities-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 30px;
  margin: 0 var(--gutter);
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: #74747d;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: .06em;
}

.services-section,
.cases-section,
.process,
.project {
  padding: 80px var(--gutter);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
}

.section-head h2 {
  font-size: clamp(28px, 3.6vw, 48px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -.035em;
}

.section-head p {
  max-width: 390px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.service-grid,
.cases {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.svc {
  min-width: 0;
  padding: clamp(24px, 2.3vw, 40px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}

.svc:hover {
  border-color: var(--ink);
  box-shadow: 0 28px 48px -26px rgb(10 10 20 / 25%);
  transform: translateY(-6px);
}

.num {
  color: #c93d00;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
}

.svc h3 {
  margin: 18px 0 12px;
  font-size: clamp(20px, 1.8vw, 27px);
  line-height: 1.35;
}

.svc p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.svc ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.svc li {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #5a5a62;
  font-size: 13px;
}

.svc li::before {
  content: "";
  width: 5px;
  height: 5px;
  flex: none;
  border-radius: 50%;
  background: var(--accent);
}

.cases-section {
  padding-top: 8px;
}

.case {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
  transition: transform .3s var(--ease);
}

.case:hover {
  transform: translateY(-6px);
}

.thumb {
  position: relative;
  display: grid;
  place-items: center;
  height: clamp(170px, 15vw, 270px);
  overflow: hidden;
  background: linear-gradient(135deg, #1a1a2e, #ff4d00);
}

.case:nth-child(2) .thumb {
  background: linear-gradient(135deg, #0f2027, #2c5364);
}

.case:nth-child(3) .thumb {
  background: linear-gradient(135deg, #240b36, #c31432);
}

.thumb::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(140deg, rgb(255 255 255 / 22%), transparent 55%);
}

.case-symbol {
  color: rgb(255 255 255 / 88%);
  font-size: clamp(32px, 3vw, 40px);
  font-weight: 800;
  letter-spacing: .08em;
}

.meta {
  padding: 24px;
}

.meta em {
  color: #c93d00;
  font-size: 12px;
  font-weight: 800;
  font-style: normal;
  letter-spacing: .12em;
}

.meta h3 {
  margin: 10px 0 9px;
  font-size: 19px;
  line-height: 1.45;
}

.meta p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.process {
  border-block: 1px solid var(--line);
  background: #f2f2f4;
}

.process ol {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process li {
  padding-left: 18px;
  border-left: 2px solid var(--accent);
}

.process li > span {
  display: block;
  margin-bottom: 18px;
  font-size: clamp(28px, 3.3vw, 44px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.04em;
}

.process h3 {
  margin-bottom: 8px;
  font-size: 20px;
  line-height: 1.45;
}

.process li p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.project form {
  display: grid;
  gap: 20px;
  max-width: 760px;
}

.project label {
  display: grid;
  gap: 8px;
  font-size: 14px;
  font-weight: 650;
}

select,
textarea,
input[type="email"] {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #c5c5ce;
  border-radius: 10px;
  background: white;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.6;
}

textarea {
  resize: vertical;
}

textarea::placeholder {
  color: #73737c;
}

.form-end {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.form-end p {
  color: var(--muted);
  font-size: 13px;
}

.b-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px var(--gutter);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.loading-indicator {
  position: fixed;
  z-index: 10;
  top: 88px;
  left: 50%;
  padding: 9px 18px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: white;
  color: var(--ink);
  box-shadow: 0 8px 28px rgb(0 0 0 / 8%);
  font-size: 13px;
  pointer-events: none;
  transform: translateX(-50%);
}

[hidden] {
  display: none !important;
}

.motion-ready .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .65s var(--ease), transform .65s var(--ease);
}

.motion-ready .reveal.in {
  opacity: 1;
  transform: none;
}

@keyframes line-up {
  from { transform: translateY(112%); }
  to { transform: translateY(0); }
}

@keyframes bar-up {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

@media (max-width: 1000px) {
  .header {
    gap: 16px;
  }

  .brand span {
    display: none;
  }

  .b-hero {
    gap: 32px;
  }

  .shot-body {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .shot-side {
    padding-inline: 8px;
  }

  .shot-main {
    padding: 20px 14px;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .section-head p {
    max-width: 650px;
  }

  .service-grid,
  .cases {
    gap: 14px;
  }

  .svc,
  .meta {
    padding: 22px 18px;
  }
}

@media (max-width: 760px) {
  :root {
    --gutter: 16px;
  }

  .b-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 38px;
    padding-top: 42px;
    padding-bottom: 48px;
  }

  .b-hero h1 {
    font-size: clamp(40px, 7.6vw, 60px);
  }

  .shot,
  .shot:hover {
    transform: none;
  }

  .shot-body {
    min-height: 0;
  }

  .bars {
    height: 120px;
  }

  .service-grid,
  .cases {
    grid-template-columns: minmax(0, 1fr);
  }

  .services-section,
  .cases-section,
  .process,
  .project {
    padding-top: 54px;
    padding-bottom: 54px;
  }

  .cases-section {
    padding-top: 0;
  }

  .process ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 20px;
  }

  .capabilities-strip {
    justify-content: flex-start;
  }

  .thumb {
    height: 190px;
  }
}

@media (max-width: 600px) {
  .header {
    height: 64px;
    gap: 10px;
  }

  .brand {
    gap: 5px;
  }

  .brand img {
    width: 36px;
    height: 36px;
  }

  .brand b {
    font-size: 14px;
  }

  nav {
    gap: 14px;
    font-size: 13px;
  }

  nav a[href="#cases"],
  nav a[href="#process"] {
    display: none;
  }

  .nav-action {
    padding: 9px 14px;
  }

  .loading-indicator {
    top: 78px;
  }
}

@media (max-width: 360px) {
  .header {
    gap: 8px;
  }

  .brand img {
    width: 34px;
    height: 34px;
  }

  nav {
    gap: 10px;
  }

  .nav-action {
    padding-inline: 10px;
  }

  .b-hero h1 {
    font-size: 38px;
  }

  .eyebrow {
    letter-spacing: .1em;
  }

  .cta-row {
    gap: 10px;
  }

  .button,
  .btn-ghost {
    padding-inline: 20px;
  }

  .shot-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .shot-side {
    display: none;
  }
}

@media (min-width: 761px) and (max-height: 620px) {
  .b-hero {
    min-height: 0;
    padding-top: 28px;
    padding-bottom: 36px;
  }

  .b-hero h1 {
    font-size: clamp(40px, 5vw, 66px);
  }

  .eyebrow {
    margin-bottom: 18px;
  }

  .lead {
    margin-top: 16px;
  }

  .cta-row {
    margin-top: 22px;
  }

  .shot-main {
    padding-block: 18px;
  }

  .bars {
    height: 88px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #viewport {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .motion-ready .reveal {
    opacity: 1;
    transform: none;
  }

  .shot,
  .shot:hover,
  .svc:hover,
  .case:hover {
    transform: none;
  }
}
