:root {
  --ink: #11120f;
  --paper: #f4f5f0;
  --white: #ffffff;
  --yellow: #f5e642;
  --blue: #2f6df6;
  --green: #48e38a;
  --coral: #ff6247;
  --line: #c9cbc3;
  --muted: #686b63;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 8px 12px;
  color: var(--ink);
  background: var(--yellow);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 64px, 1280px);
  height: 84px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  transform: translateX(-50%);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  font-weight: 800;
}

.brand-name {
  font-size: 22px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 14px;
}

.nav-links a {
  position: relative;
  padding: 10px 0;
  color: var(--ink);
}

.nav-links a::after {
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

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

.hero {
  position: relative;
  height: calc(100svh - 48px);
  min-height: 680px;
  overflow: hidden;
  color: var(--ink);
  background: #eef0eb;
  border-bottom: 1px solid var(--ink);
}

.hero::before {
  position: absolute;
  top: 0;
  bottom: 150px;
  left: 0;
  width: 10px;
  content: "";
  background: var(--coral);
}

.hero-main {
  position: relative;
  width: min(100% - 64px, 1280px);
  height: calc(100% - 150px);
  margin: 0 auto;
}

.hero-visual {
  position: absolute;
  top: 50%;
  right: 8%;
  z-index: 2;
  width: 250px;
  margin: 0;
  transform: translateY(-44%);
}

.portrait-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  background: var(--yellow);
}

.portrait-frame::before {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 64px;
  height: 64px;
  content: "";
  background: var(--blue);
}

.portrait-frame::after {
  position: absolute;
  right: -16px;
  bottom: 18px;
  width: 34px;
  height: 98px;
  content: "";
  background: var(--coral);
}

.portrait-frame img {
  position: absolute;
  top: 14px;
  left: -14px;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid var(--ink);
}

.hero-visual figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  font-size: 11px;
  font-weight: 800;
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 0;
  z-index: 5;
  width: min(68%, 820px);
  transform: translateY(-43%);
}

.eyebrow,
.section-number {
  margin: 0 0 20px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
  text-transform: uppercase;
}

.eyebrow {
  color: var(--blue);
}

.hero h1 {
  margin: 0;
  font-size: 104px;
  font-weight: 800;
  line-height: 0.95;
}

.hero-statement {
  max-width: 700px;
  margin: 26px 0 0;
  font-size: 44px;
  font-weight: 700;
  line-height: 1.22;
  overflow-wrap: anywhere;
}

.hero-intro {
  max-width: 560px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.hero-actions {
  display: flex;
  gap: 26px;
  margin-top: 28px;
}

.hero-actions a {
  padding-bottom: 3px;
  font-size: 14px;
  font-weight: 700;
  border-bottom: 1px solid var(--muted);
  transition: color 160ms ease, border-color 160ms ease;
}

.hero-actions a:hover {
  color: var(--blue);
  border-color: var(--blue);
}

.hero-products {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  height: 150px;
  color: var(--white);
  background: var(--ink);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hero-products a {
  display: grid;
  min-width: 0;
  padding: 26px 32px;
  border-right: 1px solid #3e413a;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  grid-template-rows: 1fr auto;
  transition: background 180ms ease, color 180ms ease;
}

.hero-products a:last-child {
  border-right: 0;
}

.hero-products a:hover,
.hero-products a:focus-visible {
  color: var(--ink);
  background: var(--yellow);
}

.hero-product-number {
  color: #8f9389;
  font-size: 12px;
  font-weight: 800;
}

.hero-products strong {
  min-width: 0;
  font-size: 22px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.hero-products a > span:last-child {
  align-self: end;
  color: #aeb2a7;
  font-size: 10px;
  font-weight: 800;
  grid-column: 2 / -1;
}

.hero-products a:hover .hero-product-number,
.hero-products a:hover > span:last-child,
.hero-products a:focus-visible .hero-product-number,
.hero-products a:focus-visible > span:last-child {
  color: var(--ink);
}

.section {
  padding: 120px max(32px, calc((100vw - 1280px) / 2));
}

.section-heading {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) minmax(260px, 380px);
  gap: 32px;
  align-items: end;
  margin-bottom: 56px;
}

.section-number {
  color: var(--muted);
}

.section-heading h2,
.about h2,
.contact h2 {
  margin: 0;
  font-size: 50px;
  line-height: 1.12;
}

.section-heading > p:last-child {
  margin: 0;
  color: var(--muted);
}

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

.project-card {
  display: flex;
  min-width: 0;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--ink);
  border-radius: 6px;
  flex-direction: column;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.project-card:hover {
  box-shadow: 7px 7px 0 var(--ink);
  transform: translate(-3px, -3px);
}

.project-card:focus-visible {
  outline-color: var(--blue);
}

.project-media {
  position: relative;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-bottom: 1px solid var(--ink);
}

.project-media::after {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 12px;
  height: 12px;
  content: "";
  background: currentColor;
  border: 1px solid var(--ink);
  border-radius: 50%;
}

.project-blue .project-media {
  color: var(--blue);
  background: #dbe8ff;
}

.project-green .project-media {
  color: var(--green);
  background: #d8fae6;
}

.project-coral .project-media {
  color: var(--coral);
  background: #ffe0da;
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 300ms ease;
}

.project-card:hover .project-media img {
  transform: scale(1.025);
}

.project-body {
  display: flex;
  min-height: 300px;
  padding: 24px;
  flex: 1;
  flex-direction: column;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.project-meta span:last-child {
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
}

.project-body h3 {
  margin: 34px 0 12px;
  font-size: 30px;
  line-height: 1.2;
}

.project-body p {
  margin: 0;
  color: #52564e;
  font-size: 15px;
}

.project-url {
  margin-top: auto;
  padding-top: 28px;
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 12px;
  font-weight: 700;
}

.about {
  color: var(--ink);
  background: var(--yellow);
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  gap: 10%;
}

.about .section-number {
  color: #595526;
}

.about h2 {
  max-width: 650px;
  font-size: 68px;
}

.about-copy {
  align-self: end;
  padding-top: 70px;
}

.about-copy p {
  margin: 0 0 20px;
}

.about-copy .about-lead {
  padding-bottom: 26px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.5;
  border-bottom: 1px solid rgba(17, 18, 15, 0.35);
}

.contact {
  color: var(--white);
  background: #171915;
}

.contact-top {
  display: grid;
  grid-template-columns: 180px minmax(0, 850px);
  gap: 32px;
  padding-bottom: 80px;
  border-bottom: 1px solid #4e5249;
}

.contact .section-number {
  color: #9ca096;
}

.contact h2 {
  font-size: 60px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 9%;
  padding-top: 70px;
}

.contact-label {
  display: block;
  margin-bottom: 16px;
  color: #aeb2a7;
  font-size: 13px;
}

.wechat-value {
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.copy-button {
  display: inline-grid;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--ink);
  cursor: pointer;
  background: var(--green);
  border: 1px solid var(--green);
  border-radius: 4px;
  place-items: center;
  transition: background 160ms ease, color 160ms ease;
}

.copy-button:hover,
.copy-button.is-copied {
  color: var(--white);
  background: var(--blue);
  border-color: var(--blue);
}

.copy-feedback {
  min-height: 26px;
  margin: 12px 0 0;
  color: var(--green);
  font-size: 13px;
}

.social-list {
  display: flex;
  border-top: 1px solid #4e5249;
  flex-direction: column;
}

.social-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  font-size: 20px;
  font-weight: 700;
  border-bottom: 1px solid #4e5249;
  transition: color 160ms ease, padding 160ms ease;
}

.social-list a:hover {
  padding-left: 10px;
  color: var(--yellow);
}

.site-footer {
  padding: 28px max(32px, calc((100vw - 1280px) / 2));
  color: #aeb2a7;
  background: #171915;
  border-top: 1px solid #4e5249;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.footer-brand {
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
}

.filing {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  font-size: 12px;
}

.filing a:hover {
  color: var(--white);
  text-decoration: underline;
}

.filing img {
  width: 20px;
  height: 20px;
}

.js [data-reveal] {
  opacity: 1;
  transform: none;
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1040px) {
  .hero h1 {
    font-size: 82px;
  }

  .hero-visual {
    right: 4%;
    width: 220px;
  }

  .hero-content {
    width: 70%;
  }

  .hero-statement {
    font-size: 34px;
  }

  .hero-products a {
    padding: 24px;
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .hero-products a > span:last-child {
    grid-column: 2;
  }

  .section-heading {
    grid-template-columns: 130px minmax(0, 1fr);
  }

  .section-heading > p:last-child {
    grid-column: 2;
  }

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

  .project-card:last-child {
    grid-column: 1 / -1;
    width: calc(50% - 9px);
  }
}

@media (max-width: 760px) {
  .site-header {
    width: calc(100% - 40px);
    height: 68px;
  }

  .brand-domain {
    display: none;
  }

  .nav-links {
    gap: 20px;
  }

  .nav-links a:nth-child(2) {
    display: none;
  }

  .hero {
    height: calc(100svh - 48px);
    min-height: 720px;
  }

  .hero::before {
    bottom: 210px;
    width: 6px;
  }

  .hero-main {
    width: calc(100% - 40px);
    height: calc(100% - 210px);
  }

  .hero-visual {
    top: 90px;
    right: 10px;
    width: 112px;
    transform: none;
  }

  .portrait-frame::before {
    top: -12px;
    right: -12px;
    width: 48px;
    height: 48px;
  }

  .portrait-frame::after {
    right: -14px;
    bottom: 16px;
    width: 28px;
    height: 76px;
  }

  .portrait-frame img {
    top: 10px;
    left: -10px;
  }

  .hero-visual figcaption {
    display: none;
  }

  .hero-content {
    top: 104px;
    left: 0;
    width: 100%;
    transform: none;
  }

  .eyebrow {
    margin-bottom: 12px;
  }

  .hero h1 {
    max-width: calc(100% - 130px);
    font-size: 62px;
    line-height: 1;
  }

  .hero-statement {
    max-width: 100%;
    margin-top: 48px;
    font-size: 30px;
    line-height: 1.25;
  }

  .hero-intro {
    max-width: 340px;
    margin-top: 14px;
    font-size: 15px;
  }

  .hero-actions {
    margin-top: 18px;
  }

  .hero-products {
    height: 210px;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, 70px);
  }

  .hero-products a {
    align-items: center;
    padding: 0 20px;
    border-right: 0;
    border-bottom: 1px solid #3e413a;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    grid-template-rows: 1fr;
  }

  .hero-products a:last-child {
    border-bottom: 0;
  }

  .hero-products strong {
    font-size: 18px;
  }

  .hero-products a > span:last-child {
    align-self: center;
    grid-column: auto;
  }

  .section {
    padding: 82px 20px;
  }

  .section-heading {
    display: block;
    margin-bottom: 36px;
  }

  .section-number {
    margin-bottom: 14px;
  }

  .section-heading h2,
  .about h2,
  .contact h2 {
    font-size: 38px;
  }

  .section-heading > p:last-child {
    max-width: 520px;
    margin-top: 16px;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-card:last-child {
    grid-column: auto;
    width: 100%;
  }

  .project-body {
    min-height: 270px;
  }

  .about-layout,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .about-copy {
    padding-top: 0;
  }

  .about-copy .about-lead {
    font-size: 20px;
  }

  .contact-top {
    display: block;
    padding-bottom: 52px;
  }

  .contact-grid {
    padding-top: 52px;
  }

  .wechat-value {
    font-size: 36px;
  }

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

  .filing {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

@media (max-width: 380px) {
  .hero h1 {
    font-size: 56px;
  }

  .hero-visual {
    right: 6px;
    width: 104px;
  }

  .hero-statement {
    font-size: 27px;
  }

  .wechat-value {
    gap: 12px;
    font-size: 30px;
  }
}

@media (max-width: 760px) and (max-height: 700px) {
  .hero {
    height: calc(100svh - 28px);
    min-height: 0;
  }

  .hero-main {
    height: calc(100% - 156px);
  }

  .hero-content {
    top: 78px;
  }

  .hero-visual {
    top: 78px;
    width: 102px;
  }

  .hero h1 {
    font-size: 50px;
  }

  .hero-statement {
    margin-top: 26px;
    font-size: 25px;
  }

  .hero-intro {
    display: none;
  }

  .hero-actions {
    margin-top: 12px;
  }

  .hero-products {
    height: 156px;
    grid-template-rows: repeat(3, 52px);
  }

  .hero-products a {
    padding: 0 20px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
