:root {
  --ink: #1d1b18;
  --ink-soft: #2b2925;
  --paper: #f5f3ee;
  --stone: #ded9cf;
  --line: #aaa398;
  --copper: #ad6b39;
  --copper-light: #cf9a72;
  --blueprint: #7890a8;
  --steel: #26333f;
  --white: #fffdf8;
  --display: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  --body: "PingFang SC", "Microsoft YaHei", sans-serif;
  --utility: "Arial Narrow", "Helvetica Neue", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}

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

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

.skip-link {
  position: fixed;
  top: 0;
  left: 1rem;
  z-index: 20;
  padding: 0.75rem 1rem;
  background: var(--white);
  transform: translateY(-110%);
}

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

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

.site-header {
  position: relative;
  z-index: 10;
  min-height: 88px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 3rem;
  padding: 0 4vw;
  color: var(--white);
  background: var(--ink);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.brand {
  width: 190px;
}

.brand img {
  height: 44px;
  object-fit: contain;
  object-position: left center;
}

nav {
  display: flex;
  gap: 1.7rem;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
}

nav a,
.header-phone {
  transition: color 180ms ease;
}

nav a:hover,
.header-phone:hover {
  color: var(--copper-light);
}

.header-phone {
  justify-self: end;
  font-family: var(--utility);
  font-size: 0.9rem;
  letter-spacing: 0.12em;
}

.hero {
  min-height: calc(100vh - 88px);
  display: grid;
  grid-template-columns: minmax(420px, 5fr) 7fr;
  color: var(--white);
  background: var(--ink);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 7vw 5vw 5vw;
  animation: rise 800ms cubic-bezier(.2, .7, .2, 1) both;
}

.eyebrow {
  margin: 0 0 2rem;
  font-family: var(--utility);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
}

.hero h1 {
  max-width: 8em;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3.6rem, 6.2vw, 7.8rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.07em;
}

.hero h1 em {
  color: var(--copper-light);
  font-style: normal;
}

.hero-intro {
  max-width: 30rem;
  margin: 2.2rem 0 0;
  color: #c9c5bd;
  font-size: 1rem;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2.6rem;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0 1.5rem;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
}

.button-primary {
  color: var(--white);
  background: var(--copper);
  transition: background 180ms ease, transform 180ms ease;
}

.button-primary:hover {
  background: #935529;
  transform: translateY(-2px);
}

.button-text {
  padding-inline: 0;
  border-bottom: 1px solid #706b63;
}

.button-text span {
  margin-left: 1rem;
  color: var(--copper-light);
}

.scope-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: auto 0 0;
  padding: 3rem 0 0;
  list-style: none;
  border-top: 1px solid #46423d;
}

.scope-list li {
  font-size: 0.8rem;
}

.scope-list span {
  display: block;
  margin-bottom: 0.5rem;
  color: #817b72;
  font-family: var(--utility);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
}

.hero-visual {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: #c8c2b8;
}

.hero-visual::before,
.hero-visual::after {
  content: "";
  position: absolute;
  z-index: 2;
  pointer-events: none;
}

.hero-visual::before {
  inset: 2.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.55);
  border-right: 1px solid rgba(255, 255, 255, 0.55);
}

.hero-visual::after {
  inset: 0;
  background: linear-gradient(90deg, rgba(29, 27, 24, 0.18), transparent 38%);
}

.hero-visual > img {
  height: 100%;
  object-fit: cover;
  animation: settle 1.2s cubic-bezier(.2, .7, .2, 1) both;
}

.hero-visual figcaption {
  position: absolute;
  right: 2.4rem;
  bottom: 2.4rem;
  z-index: 3;
  min-width: 230px;
  padding: 1.1rem 1.25rem;
  color: var(--ink);
  background: rgba(255, 253, 248, 0.9);
  backdrop-filter: blur(8px);
}

.hero-visual figcaption span {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--copper);
  font-family: var(--utility);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
}

.hero-visual figcaption strong {
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 600;
}

.measure {
  position: absolute;
  z-index: 3;
  color: rgba(255, 255, 255, 0.8);
  font-family: var(--utility);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
}

.measure-x {
  top: 1.25rem;
  left: 2.4rem;
}

.measure-y {
  top: 3rem;
  right: 1rem;
  writing-mode: vertical-rl;
}

.projects {
  padding: 9rem 5vw;
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr 1.8fr 1fr;
  gap: 4vw;
  align-items: end;
  margin-bottom: 5rem;
}

.section-heading .eyebrow {
  align-self: start;
  color: var(--copper);
}

.section-heading h2,
.service-intro h2,
.smart-copy h2,
.process-heading h2,
.about-copy h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.2rem, 4.2vw, 5.2rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.05em;
}

.section-heading > p:last-child {
  margin: 0;
  color: #69645d;
  line-height: 1.8;
}

.project-controls {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 2rem;
  margin-bottom: 1.25rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}

.filter-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.filter-list button {
  min-height: 38px;
  padding: 0 1rem;
  color: #625d56;
  background: transparent;
  border: 1px solid #c9c3b9;
  border-radius: 0;
  font: inherit;
  font-size: 0.78rem;
  cursor: pointer;
}

.filter-list button[aria-pressed="true"] {
  color: var(--white);
  background: var(--ink);
  border-color: var(--ink);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 260px;
  gap: 1.25rem;
}

.project-card {
  position: relative;
  grid-column: span 4;
  overflow: hidden;
  background: var(--ink-soft);
}

.project-card:first-child {
  grid-column: span 8;
  grid-row: span 2;
}

.project-card img {
  height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(.2, .7, .2, 1);
}

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

.project-card::after {
  content: "";
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(transparent, rgba(20, 18, 15, 0.78));
}

.project-meta {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.8rem;
  color: var(--white);
}

.project-meta div {
  max-width: 70%;
}

.project-meta p,
.project-meta h3 {
  margin: 0;
}

.project-meta p {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.project-meta small {
  display: block;
  margin-top: 0.45rem;
  color: #d5d0c8;
  font-size: 0.68rem;
  line-height: 1.45;
}

.project-meta h3 {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 500;
}

.noscript {
  padding: 2rem;
  background: var(--stone);
}

.smart-story {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  min-height: 700px;
  color: var(--white);
  background: var(--steel);
}

.smart-visual {
  position: relative;
  min-width: 0;
  overflow: hidden;
}

.smart-visual::after {
  content: "";
  position: absolute;
  inset: 2rem;
  border: 1px solid rgba(151, 178, 201, 0.45);
  pointer-events: none;
}

.smart-visual img {
  height: 100%;
  object-fit: cover;
}

.smart-coordinate {
  position: absolute;
  bottom: 3rem;
  left: 3rem;
  z-index: 2;
  color: #b8c9d8;
  font-family: var(--utility);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
}

.smart-copy {
  align-self: center;
  padding: 7vw 5vw;
}

.smart-copy .eyebrow {
  color: #9eb6cb;
}

.smart-copy > p:not(.eyebrow) {
  margin: 2rem 0 0;
  color: #c3cdd4;
  line-height: 1.9;
}

.scene-list {
  margin: 3rem 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(184, 201, 216, 0.28);
}

.scene-list li {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 1rem;
  padding: 1.2rem 0;
  color: #c3cdd4;
  border-bottom: 1px solid rgba(184, 201, 216, 0.28);
  font-size: 0.84rem;
  line-height: 1.6;
}

.scene-list span {
  color: var(--white);
  font-family: var(--display);
  font-size: 1rem;
}

.services {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 7vw;
  padding: 9rem 5vw;
  background: var(--stone);
}

.service-intro {
  position: sticky;
  top: 3rem;
  align-self: start;
}

.service-intro .eyebrow,
.about-copy .eyebrow {
  color: var(--copper);
}

.service-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.service-list li {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 1.4rem;
  align-items: start;
  padding: 2.2rem 0;
  border-bottom: 1px solid var(--line);
}

.service-code {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--white);
  background: var(--copper);
  font-family: var(--display);
  font-size: 1.4rem;
}

.service-list h3,
.service-list p {
  margin: 0;
}

.service-list h3 {
  margin-bottom: 0.8rem;
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 600;
}

.service-list p {
  max-width: 32rem;
  color: #615c55;
  line-height: 1.8;
}

.service-en {
  padding-top: 0.4rem;
  color: #7c756c;
  font-family: var(--utility);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
}

.process {
  padding: 9rem 5vw;
  background: var(--paper);
}

.process-heading {
  display: grid;
  grid-template-columns: 0.8fr 1.7fr;
  gap: 5vw;
  align-items: start;
  margin-bottom: 5rem;
}

.process-heading .eyebrow {
  color: var(--blueprint);
}

.process-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.process-list li {
  min-height: 285px;
  padding: 1.8rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.process-list span {
  color: var(--blueprint);
  font-family: var(--utility);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
}

.process-list h3 {
  margin: 5rem 0 1rem;
  font-family: var(--display);
  font-size: 1.55rem;
  font-weight: 600;
}

.process-list p {
  margin: 0;
  color: #69645d;
  line-height: 1.75;
}

.about {
  position: relative;
  display: grid;
  grid-template-columns: 0.7fr 1.5fr 0.8fr;
  gap: 5vw;
  align-items: center;
  min-height: 670px;
  padding: 8rem 5vw;
  overflow: hidden;
  color: var(--white);
  background: var(--ink);
}

.about-mark {
  color: transparent;
  font-family: var(--display);
  font-size: clamp(9rem, 19vw, 24rem);
  line-height: 0.75;
  -webkit-text-stroke: 1px #514c45;
}

.about-copy > p:last-child {
  max-width: 45rem;
  margin: 2rem 0 0;
  color: #bbb5ab;
  line-height: 2;
}

.contact-panel {
  align-self: end;
  padding: 1.6rem 0 0;
  border-top: 1px solid #5b554d;
}

.contact-panel p,
.contact-panel span {
  margin: 0;
  color: #938b80;
  font-size: 0.78rem;
}

.contact-panel a {
  display: block;
  margin: 1rem 0;
  color: var(--copper-light);
  font-family: var(--utility);
  font-size: clamp(1.4rem, 2vw, 2.2rem);
  letter-spacing: 0.04em;
}

footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  min-height: 88px;
  padding: 1.5rem 5vw;
  color: #8d877d;
  background: #141310;
  border-top: 1px solid #302d29;
  font-size: 0.72rem;
}

footer p {
  margin: 0;
}

footer a {
  color: var(--white);
  font-family: var(--utility);
  letter-spacing: 0.1em;
}

footer p:last-child {
  justify-self: end;
}

.mobile-call {
  display: none;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes settle {
  from { opacity: 0; transform: scale(1.04); }
  to { opacity: 1; transform: scale(1); }
}

@media (max-width: 960px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  nav {
    display: none;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .hero-copy {
    min-height: 680px;
    padding: 6rem 6vw 3rem;
  }

  .hero-visual {
    min-height: 72vw;
  }

  .section-heading {
    grid-template-columns: 1fr 2fr;
  }

  .smart-story {
    grid-template-columns: 1fr;
  }

  .smart-visual {
    min-height: 58vw;
  }

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

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

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

  .service-intro {
    position: static;
  }

  .about {
    grid-template-columns: 0.6fr 1.4fr;
  }

  .contact-panel {
    grid-column: 2;
  }
}

@media (max-width: 680px) {
  .site-header {
    min-height: 72px;
    padding-inline: 5vw;
  }

  .brand {
    width: 148px;
  }

  .brand img {
    height: 36px;
  }

  .header-phone {
    display: none;
  }

  .hero-copy {
    min-height: 600px;
    padding: 5rem 6vw 2.5rem;
  }

  .hero h1 {
    font-size: clamp(3rem, 14.5vw, 5rem);
  }

  .hero-intro {
    font-size: 0.94rem;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .scope-list {
    margin-top: 4rem;
  }

  .hero-visual {
    min-height: 115vw;
  }

  .hero-visual figcaption {
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
  }

  .hero-visual::before {
    inset: 1rem;
  }

  .measure-x {
    left: 1rem;
  }

  .projects,
  .services,
  .process,
  .about {
    padding: 6rem 5vw;
  }

  .section-heading {
    grid-template-columns: 1fr;
    margin-bottom: 3rem;
  }

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

  .section-heading h2,
  .service-intro h2,
  .smart-copy h2,
  .process-heading h2,
  .about-copy h2 {
    font-size: 2.3rem;
  }

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

  .project-card,
  .project-card:first-child {
    grid-column: auto;
    min-height: 118vw;
    grid-row: auto;
  }

  .project-controls {
    align-items: flex-start;
    flex-direction: column;
  }

  .project-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .service-list li {
    grid-template-columns: 44px 1fr;
  }

  .service-en {
    display: none;
  }

  .smart-story {
    min-height: 0;
  }

  .smart-visual {
    min-height: 72vw;
  }

  .smart-visual::after {
    inset: 1rem;
  }

  .smart-coordinate {
    bottom: 1.6rem;
    left: 1.6rem;
  }

  .smart-copy {
    padding: 5rem 5vw;
  }

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

  .process-list li {
    min-height: 230px;
  }

  .process-list h3 {
    margin-top: 3rem;
  }

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

  .about-mark {
    position: absolute;
    top: 5rem;
    right: -1rem;
    opacity: 0.55;
  }

  .about-copy,
  .contact-panel {
    position: relative;
    z-index: 1;
    grid-column: auto;
  }

  .contact-panel {
    margin-top: 2rem;
  }

  footer {
    grid-template-columns: 1fr;
    gap: 0.7rem;
    padding-bottom: 6rem;
  }

  footer p:last-child {
    justify-self: start;
  }

  .mobile-call {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    z-index: 12;
    display: grid;
    min-height: 52px;
    place-items: center;
    color: var(--white);
    background: var(--copper);
    box-shadow: 0 8px 30px rgba(20, 18, 15, 0.28);
    font-size: 0.9rem;
    letter-spacing: 0.08em;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
