:root {
  color-scheme: light;
  --ink: #101113;
  --ink-soft: #3c3f45;
  --muted: #737985;
  --paper: #f7f4ee;
  --paper-strong: #fffdf7;
  --line: rgba(16, 17, 19, 0.14);
  --blue: #416fd6;
  --blue-dark: #243c82;
  --coral: #ef6048;
  --gold: #c8a44b;
  --green: #3f8f72;
  --shadow: 0 24px 70px rgba(16, 17, 19, 0.15);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    "Inter", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", Arial,
    sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

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

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(18px, 4vw, 54px);
  color: #fff;
  background: linear-gradient(180deg, rgba(16, 17, 19, 0.46), rgba(16, 17, 19, 0.08));
  transition:
    background 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
}

.site-header.is-scrolled {
  color: var(--ink);
  background: rgba(255, 253, 247, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  background: #050505;
  border-radius: 6px;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 0.94rem;
  line-height: 1.05;
}

.brand small {
  margin-top: 2px;
  color: currentColor;
  font-size: 0.74rem;
  opacity: 0.72;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 0.92rem;
}

.site-nav a {
  position: relative;
  opacity: 0.84;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 2px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 6px;
  color: inherit;
  background: transparent;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
}

.nav-toggle span + span {
  margin-top: 5px;
}

.hero {
  position: relative;
  display: grid;
  min-height: 88vh;
  overflow: hidden;
  color: #fff;
  background: #111;
  isolation: isolate;
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media {
  background:
    linear-gradient(90deg, rgba(16, 17, 19, 0.94), rgba(16, 17, 19, 0.52) 46%, rgba(16, 17, 19, 0.08)),
    url("assets/images/hero-main.jpg") center / cover;
  transform: scale(1.02);
}

.hero-shade {
  background:
    linear-gradient(180deg, rgba(16, 17, 19, 0.36), rgba(16, 17, 19, 0.16) 58%, rgba(247, 244, 238, 0.08)),
    linear-gradient(110deg, rgba(65, 111, 214, 0.18), transparent 54%, rgba(239, 96, 72, 0.18));
  mix-blend-mode: normal;
}

.hero-content {
  position: relative;
  z-index: 1;
  align-self: end;
  width: min(760px, calc(100% - 36px));
  margin: 0 auto;
  padding: 150px 0 13vh;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffd36d;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
}

h1 {
  font-size: 7.5rem;
  font-weight: 900;
}

.hero-subtitle {
  max-width: 660px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.28rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 12px 20px;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button.primary {
  color: #fff;
  background: var(--blue);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: var(--blue-dark);
}

.button.ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.52);
  background: rgba(255, 255, 255, 0.08);
}

.proof-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  width: min(var(--max), calc(100% - 36px));
  margin: -42px auto 0;
  background: rgba(16, 17, 19, 0.12);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.proof-bar div {
  min-height: 122px;
  padding: 24px;
  background: var(--paper-strong);
}

.proof-bar strong {
  display: block;
  font-size: 1.55rem;
  line-height: 1.18;
}

.proof-bar span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

.section {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(72px, 10vw, 116px) 0;
  scroll-margin-top: 88px;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 34px;
}

.section-heading.split {
  display: grid;
  max-width: none;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
  gap: 34px;
  align-items: end;
}

.section-heading h2,
.contact-intro h2 {
  font-size: 3.8rem;
  font-weight: 900;
}

.section-heading p:not(.eyebrow),
.contact-intro p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.02rem;
}

.about-layout {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(28px, 5vw, 72px);
}

.lead-copy {
  font-size: 1.22rem;
}

.lead-copy p {
  margin: 0 0 22px;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.capability-grid article,
.team-grid article,
.process-list li,
.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-strong);
}

.capability-grid article {
  padding: 24px;
}

.capability-grid span {
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 900;
}

.capability-grid h3,
.team-grid h3,
.process-list h3,
.contact-card h3 {
  margin-top: 12px;
  font-size: 1.2rem;
}

.capability-grid p,
.team-grid p,
.process-list p,
.contact-card p {
  margin: 10px 0 0;
  color: var(--muted);
}

.ribbon {
  width: 100%;
  max-width: none;
  padding: 0;
  color: #fff;
  background: var(--ink);
}

.ribbon-content {
  display: grid;
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 30px 0;
}

.ribbon-content p {
  margin: 0;
  color: #f3d16e;
  font-weight: 900;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-row span,
.case-links a {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.88rem;
}

.featured-work {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.work-feature {
  display: grid;
  min-height: 560px;
  align-items: end;
  overflow: hidden;
  position: relative;
  border-radius: var(--radius);
  color: #fff;
  background: #151515;
}

.work-feature img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.88;
}

.work-feature::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 17, 19, 0.08), rgba(16, 17, 19, 0.86));
  content: "";
}

.work-feature div {
  position: relative;
  z-index: 1;
  padding: clamp(24px, 5vw, 42px);
}

.work-feature span {
  color: #ffd36d;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
}

.work-feature h3 {
  margin-top: 10px;
  font-size: 2.7rem;
}

.work-feature p {
  max-width: 520px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.86);
}

.case-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.case-links a {
  border-color: var(--line);
  color: var(--ink);
  background: #fffdf7;
}

.case-links a:hover,
.case-links a:focus-visible {
  border-color: var(--blue);
  color: var(--blue-dark);
}

.gallery {
  display: grid;
  grid-auto-rows: 220px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.gallery-item {
  display: block;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #111;
  cursor: zoom-in;
}

.gallery-item.wide {
  grid-column: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.04);
}

.team {
  width: 100%;
  max-width: none;
  background: #fffdf7;
}

.team > * {
  width: min(var(--max), calc(100% - 36px));
  margin-right: auto;
  margin-left: auto;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.team-grid article {
  padding: 22px;
}

.team-grid strong {
  display: block;
  margin-top: 10px;
  color: var(--green);
  font-size: 0.92rem;
}

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

.process-list li {
  padding: 24px;
}

.process-list span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--ink);
  font-weight: 900;
}

.partner-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.partner-strip img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 18px;
}

.contact {
  width: 100%;
  max-width: none;
  margin-bottom: 0;
  padding: 0;
  color: #fff;
  background: var(--ink);
}

.contact > * {
  width: min(var(--max), calc(100% - 36px));
  margin-right: auto;
  margin-left: auto;
}

.contact-intro {
  padding-top: clamp(76px, 10vw, 118px);
}

.contact-intro p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.76);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 34px 0 clamp(76px, 10vw, 118px);
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-self: start;
}

.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 18px;
  align-items: start;
  padding: 24px;
  color: var(--ink);
}

.contact-card h3 {
  margin-top: 0;
}

.contact-card a {
  display: block;
  margin-top: 8px;
  color: var(--blue-dark);
  font-weight: 800;
}

.contact-card img {
  width: 190px;
  aspect-ratio: 1;
  grid-row: 1 / span 4;
  grid-column: 2;
  margin-top: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  object-fit: contain;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(18px, 4vw, 54px);
  color: rgba(255, 255, 255, 0.72);
  background: #070809;
}

.site-footer p {
  margin: 4px 0 0;
}

.site-footer a {
  color: #fff;
  font-weight: 800;
}

.lightbox {
  width: min(1120px, calc(100% - 28px));
  border: 0;
  border-radius: var(--radius);
  padding: 0;
  background: transparent;
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.84);
}

.lightbox img {
  width: 100%;
  max-height: 86vh;
  object-fit: contain;
  border-radius: var(--radius);
  background: #111;
}

.lightbox button {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.42);
  cursor: pointer;
}

.lightbox button::before,
.lightbox button::after {
  position: absolute;
  top: 21px;
  left: 12px;
  width: 20px;
  height: 2px;
  background: #fff;
  content: "";
}

.lightbox button::before {
  transform: rotate(45deg);
}

.lightbox button::after {
  transform: rotate(-45deg);
}

@media (max-width: 1050px) {
  h1 {
    font-size: 5.8rem;
  }

  .section-heading h2,
  .contact-intro h2 {
    font-size: 3rem;
  }

  .proof-bar,
  .featured-work,
  .about-layout,
  .contact-layout,
  .contact-cards {
    grid-template-columns: 1fr;
  }

  .team-grid,
  .process-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 760px) {
  .site-header {
    padding: 12px 18px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: 66px;
    right: 18px;
    left: 18px;
    display: none;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--ink);
    background: rgba(255, 253, 247, 0.96);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: grid;
    gap: 14px;
  }

  .hero {
    min-height: 86vh;
  }

  .hero-media {
    background:
      linear-gradient(180deg, rgba(16, 17, 19, 0.82), rgba(16, 17, 19, 0.44)),
      url("assets/images/hero-main.jpg") center / cover;
  }

  .hero-content {
    width: calc(100% - 36px);
    padding-bottom: 10vh;
  }

  h1 {
    font-size: 4.4rem;
  }

  .hero-subtitle {
    font-size: 1.08rem;
  }

  .section-heading h2,
  .contact-intro h2 {
    font-size: 2.35rem;
  }

  .lead-copy {
    font-size: 1.08rem;
  }

  .work-feature h3 {
    font-size: 2rem;
  }

  .proof-bar,
  .capability-grid,
  .section-heading.split,
  .ribbon-content,
  .partner-strip {
    grid-template-columns: 1fr;
  }

  .ribbon-content {
    gap: 14px;
  }

  .work-feature {
    display: block;
    min-height: 0;
    background: #151515;
  }

  .work-feature img {
    position: static;
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    opacity: 1;
    background: #151515;
  }

  .work-feature::after {
    display: none;
  }

  .work-feature div {
    padding: 22px;
    background: #151515;
  }

  .work-feature p {
    color: rgba(255, 255, 255, 0.82);
  }

  .gallery {
    grid-auto-rows: auto;
  }

  .gallery-item {
    aspect-ratio: 16 / 10;
  }

  .gallery-item img {
    object-fit: contain;
    background: #111;
  }

  .gallery-item.wide {
    grid-column: span 1;
  }

  .team-grid,
  .process-list {
    grid-template-columns: 1fr;
  }

  .contact-card {
    grid-template-columns: 1fr;
  }

  .contact-card img {
    grid-row: auto;
    grid-column: auto;
    width: min(260px, 100%);
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 460px) {
  .brand span {
    display: none;
  }

  h1 {
    font-size: 3.55rem;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .proof-bar div,
  .capability-grid article,
  .team-grid article,
  .process-list li {
    padding: 20px;
  }
}
