:root {
  --cream: #f5f3ee;
  --paper: #fffefa;
  --green: #1f3b2c;
  --green-deep: #152a1f;
  --gold: #a9814c;
  --ink: #292a27;
  --muted: #73746e;
  --rule: #dcd8cf;
  --display: "Newsreader", Georgia, "Songti SC", serif;
  --body: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", sans-serif;
  --label: "IBM Plex Mono", ui-monospace, "Courier New", monospace;
  --page: min(1240px, calc(100vw - 3rem));
  --section-space: clamp(5rem, 10vw, 9rem);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: clamp(0.96rem, 0.9vw, 1.04rem);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

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

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

h1,
h2,
h3 {
  color: var(--green);
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.03;
}

h2 {
  font-size: clamp(2.25rem, 5.2vw, 5.25rem);
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  background: var(--paper);
  color: var(--green);
  padding: 0.75rem 1rem;
}

.skip-link:focus {
  top: 1rem;
}

.eyebrow {
  color: var(--muted);
  font-family: var(--label);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  line-height: 1.6;
  text-transform: uppercase;
}

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

.topbar {
  align-items: center;
  backdrop-filter: blur(12px);
  background: rgba(245, 243, 238, 0.93);
  border-bottom: 1px solid rgba(220, 216, 207, 0.88);
  display: flex;
  gap: 2rem;
  justify-content: space-between;
  padding: 1.05rem max(1.5rem, calc((100vw - 1240px) / 2));
  position: sticky;
  top: 0;
  transition: box-shadow 180ms ease;
  z-index: 40;
}

.topbar.is-scrolled {
  box-shadow: 0 8px 30px rgba(21, 42, 31, 0.07);
}

.mark {
  color: var(--green);
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-decoration: none;
  white-space: nowrap;
}

.mark span {
  color: var(--gold);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
}

.topbar nav {
  align-items: center;
  display: flex;
  gap: clamp(1rem, 2vw, 1.8rem);
}

.topbar nav a,
.menu-button {
  background: none;
  border: 0;
  color: var(--muted);
  font-family: var(--label);
  font-size: 0.64rem;
  letter-spacing: 0.13em;
  text-decoration: none;
  text-transform: uppercase;
}

.topbar nav a {
  position: relative;
}

.topbar nav a::after {
  background: var(--gold);
  bottom: -0.45rem;
  content: "";
  height: 1px;
  left: 0;
  position: absolute;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
  width: 100%;
}

.topbar nav a:hover,
.topbar nav a[aria-current="true"] {
  color: var(--green);
}

.topbar nav a:hover::after,
.topbar nav a[aria-current="true"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-button {
  cursor: pointer;
  display: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: calc(100svh - 4rem);
}

.hero__image {
  background: var(--green-deep);
  min-height: 42rem;
  overflow: hidden;
}

.hero__image img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.hero__copy {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(4rem, 8vw, 8rem);
}

.hero h1 {
  font-size: clamp(3.7rem, 8.4vw, 8.5rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-top: 2.5rem;
}

.hero__zh {
  color: var(--gold);
  font-family: var(--display);
  font-size: clamp(1.45rem, 2.6vw, 2.35rem);
  letter-spacing: 0.34em;
  margin-top: 0.55rem;
}

.hero__tagline {
  font-family: var(--display);
  font-size: clamp(1.45rem, 2.8vw, 2.55rem);
  font-style: italic;
  line-height: 1.28;
  margin: clamp(2.5rem, 6vw, 5.5rem) 0 2.2rem;
  max-width: 24ch;
}

.hero__signature {
  border-top: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  min-width: min(100%, 22rem);
  padding-top: 1.25rem;
}

.hero__signature strong {
  color: var(--green);
  font-weight: 600;
}

.hero__signature span {
  color: var(--muted);
  font-family: var(--label);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  margin-top: 0.2rem;
  text-transform: uppercase;
}

.mission {
  background: var(--green);
  color: #f1eee6;
  overflow: hidden;
  padding: clamp(5.5rem, 12vw, 11rem) max(1.5rem, calc((100vw - 1240px) / 2));
  position: relative;
}

.mission__glyph {
  color: rgba(169, 129, 76, 0.13);
  font-family: var(--display);
  font-size: clamp(17rem, 38vw, 34rem);
  line-height: 0.75;
  pointer-events: none;
  position: absolute;
  right: -0.05em;
  top: 50%;
  transform: translateY(-47%);
  user-select: none;
}

.mission__content {
  max-width: 53rem;
  position: relative;
  z-index: 1;
}

.mission__content > p:last-child {
  color: #f1eee6;
  font-family: var(--display);
  font-size: clamp(1.75rem, 4vw, 3.65rem);
  line-height: 1.35;
  margin-top: 2.25rem;
}

.section {
  border-top: 1px solid var(--rule);
  padding: var(--section-space) max(1.5rem, calc((100vw - 1240px) / 2));
}

.section--paper {
  background: var(--paper);
}

.section-heading {
  align-items: flex-end;
  display: flex;
  gap: 3rem;
  justify-content: space-between;
  margin-bottom: clamp(4rem, 9vw, 8rem);
}

.section-heading h2 {
  margin-top: 1.35rem;
}

.section-heading--statement > div {
  max-width: 56rem;
}

.section-heading--statement > div > p:last-child {
  color: var(--muted);
  font-family: var(--display);
  font-size: clamp(1.05rem, 1.6vw, 1.32rem);
  font-style: italic;
  line-height: 1.55;
  margin-top: 1.5rem;
  max-width: 54ch;
}

.section-number {
  color: rgba(169, 129, 76, 0.24);
  font-family: var(--display);
  font-size: clamp(5rem, 10vw, 9rem);
  line-height: 0.7;
}

.about-grid {
  align-items: start;
  display: grid;
  gap: clamp(3rem, 8vw, 8rem);
  grid-template-columns: minmax(0, 1.05fr) minmax(18rem, 0.72fr);
}

.prose {
  max-width: 47rem;
}

.prose p {
  margin-bottom: 1.35rem;
}

.prose .lead {
  color: var(--green);
  font-family: var(--display);
  font-size: clamp(1.8rem, 3.6vw, 3rem);
  line-height: 1.25;
  margin-bottom: 2rem;
}

.image-frame {
  background: var(--rule);
  overflow: hidden;
}

.image-frame--portrait {
  aspect-ratio: 4 / 5;
}

.image-frame img {
  height: 100%;
  object-fit: cover;
  transition: transform 700ms cubic-bezier(0.2, 0.75, 0.25, 1);
  width: 100%;
}

.image-frame:hover img {
  transform: scale(1.025);
}

.focus-panel {
  border-bottom: 1px solid var(--rule);
  border-top: 1px solid var(--rule);
  display: grid;
  gap: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: clamp(5rem, 10vw, 9rem);
}

.focus-panel > div {
  padding: clamp(2rem, 4vw, 3.8rem);
}

.focus-panel > div + div {
  border-left: 1px solid var(--rule);
}

.focus-panel h3,
.subheading h3 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  margin: 0.75rem 0 1.2rem;
}

.focus-panel p:last-child {
  color: var(--muted);
}

.subheading {
  margin: clamp(5rem, 10vw, 9rem) 0 2.5rem;
}

.expertise-grid {
  background: var(--rule);
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.expertise-grid article {
  background: var(--cream);
  min-height: 23rem;
  padding: clamp(1.7rem, 3vw, 2.7rem);
}

.card-number {
  color: var(--gold);
  font-family: var(--label);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
}

.expertise-grid h3 {
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  margin: 3.5rem 0 1.2rem;
}

.expertise-grid article > p:last-child {
  color: var(--muted);
  font-size: 0.9rem;
}

.case {
  border-top: 1px solid var(--rule);
  display: grid;
  gap: clamp(3rem, 7vw, 7rem);
  grid-template-columns: minmax(16rem, 0.72fr) minmax(0, 1.3fr);
  padding: clamp(4.5rem, 9vw, 8rem) 0;
}

.case:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.case__visual {
  align-items: center;
  aspect-ratio: 4 / 5;
  background: var(--green);
  color: var(--gold);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.case__visual::after {
  border: 1px solid rgba(169, 129, 76, 0.45);
  content: "";
  inset: 1.5rem;
  position: absolute;
}

.case__visual span,
.case__visual strong {
  font-family: var(--display);
  font-size: clamp(4.2rem, 10vw, 8.5rem);
  font-weight: 500;
  letter-spacing: -0.07em;
  line-height: 0.7;
}

.case__visual strong {
  color: #f1eee6;
}

.case__visual small {
  font-family: var(--label);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  margin-top: 2rem;
  text-transform: uppercase;
}

.case__content h3 {
  font-size: clamp(2.25rem, 5vw, 4.8rem);
  margin: 1rem 0 1.8rem;
}

.case__content--wide {
  grid-column: 1 / -1;
  max-width: 66rem;
}

.case__intro {
  font-family: var(--display);
  font-size: clamp(1.18rem, 1.9vw, 1.55rem);
  line-height: 1.5;
  max-width: 54ch;
}

.case__steps {
  border-top: 1px solid var(--rule);
  display: grid;
  gap: 2.2rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 3rem;
  padding-top: 2.2rem;
}

.case__steps--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.case__steps h4 {
  color: var(--green);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.case__steps p {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.museum-gallery {
  display: grid;
  gap: 0.75rem;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.museum-gallery figure {
  aspect-ratio: 2 / 1;
  overflow: hidden;
}

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

.museum-gallery figure:hover img {
  transform: scale(1.03);
}

.case--media {
  background: var(--cream);
  margin: 0 calc(-1 * max(1.5rem, (100vw - 1240px) / 2)) calc(-1 * var(--section-space));
  padding-left: max(1.5rem, calc((100vw - 1240px) / 2));
  padding-right: max(1.5rem, calc((100vw - 1240px) / 2));
}

.feature {
  align-items: center;
  border-top: 1px solid var(--rule);
  display: grid;
  gap: clamp(3rem, 8vw, 8rem);
  grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 0.72fr);
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.feature:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.feature--reverse .feature__copy {
  order: 2;
}

.feature--reverse .feature__image {
  order: 1;
}

.feature__copy h3 {
  font-size: clamp(2.35rem, 5vw, 4.9rem);
  margin: 1rem 0 0.9rem;
}

.feature__copy > p:not(.eyebrow, .feature__meta, .feature__note) {
  margin-top: 1.1rem;
  max-width: 57ch;
}

.feature__meta {
  color: var(--gold);
  font-family: var(--label);
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  margin-bottom: 2rem;
  text-transform: uppercase;
}

.feature__note {
  border-left: 2px solid var(--gold);
  color: var(--muted);
  font-family: var(--display);
  font-style: italic;
  margin-top: 2rem;
  padding-left: 1.2rem;
}

.feature__image {
  aspect-ratio: 4 / 5;
  background: #ece9e2;
  overflow: hidden;
}

.feature__image img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.feature__image--contain {
  aspect-ratio: 4 / 5.7;
}

.feature__image--contain img {
  object-fit: contain;
}

.feature__image--natural {
  aspect-ratio: auto;
}

.feature__image--natural img {
  height: auto;
  object-fit: contain;
  width: 100%;
}

.service-groups {
  display: grid;
  gap: clamp(4rem, 9vw, 8rem);
}

.service-group {
  border-top: 1px solid var(--rule);
  display: grid;
  gap: clamp(2.5rem, 6vw, 6rem);
  grid-template-columns: minmax(15rem, 0.72fr) minmax(0, 1.4fr);
  padding-top: clamp(2.5rem, 5vw, 4.5rem);
}

.service-group:first-child {
  border-top: 0;
  padding-top: 0;
}

.service-group header h3 {
  font-size: clamp(2rem, 4vw, 3.7rem);
  margin: 1rem 0;
}

.service-group header > p:last-child {
  color: var(--muted);
  font-family: var(--display);
  font-style: italic;
}

.service-list {
  background: var(--rule);
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-list--six,
.service-list--four {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.service-list > div {
  background: var(--paper);
  min-height: 13rem;
  padding: 1.7rem;
}

.service-list span {
  color: var(--gold);
  font-family: var(--label);
  font-size: 0.62rem;
}

.service-list h4 {
  color: var(--green);
  font-size: 0.92rem;
  margin: 1.5rem 0 0.55rem;
}

.service-list p {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.52;
}

.contact {
  background: var(--green);
  color: #f1eee6;
  display: grid;
  gap: clamp(4rem, 10vw, 10rem);
  grid-template-columns: minmax(0, 1.25fr) minmax(19rem, 0.75fr);
  padding: clamp(5rem, 11vw, 10rem) max(1.5rem, calc((100vw - 1240px) / 2));
}

.contact h2 {
  color: #f1eee6;
  font-size: clamp(3.1rem, 7vw, 7.2rem);
  margin: 1.4rem 0 1.3rem;
  max-width: 10ch;
}

.contact__main > p:not(.eyebrow, .contact__location) {
  color: rgba(241, 238, 230, 0.72);
  font-family: var(--display);
  font-style: italic;
}

.contact__email,
.contact__whatsapp {
  border-bottom: 1px solid rgba(169, 129, 76, 0.8);
  color: var(--gold);
  display: table;
  font-size: clamp(1rem, 1.7vw, 1.25rem);
  font-weight: 500;
  margin-top: 2.5rem;
  padding-bottom: 0.25rem;
  text-decoration: none;
}

.contact__whatsapp {
  font-size: 0.92rem;
  margin-top: 1rem;
}

.contact__email:hover,
.contact__whatsapp:hover {
  border-color: #f1eee6;
  color: #f1eee6;
}

.contact__location {
  color: rgba(241, 238, 230, 0.56);
  font-family: var(--label);
  font-size: 0.66rem;
  letter-spacing: 0.11em;
  margin-top: 2.5rem;
  text-transform: uppercase;
}

.contact__brand {
  align-items: end;
  border-left: 1px solid rgba(241, 238, 230, 0.16);
  display: flex;
  flex-direction: column;
  gap: 3rem;
  justify-content: space-between;
  padding-left: clamp(2rem, 5vw, 5rem);
  text-align: right;
}

.contact__mark {
  font-family: var(--display);
  font-size: clamp(2.2rem, 4vw, 3.7rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1;
}

.contact__zh {
  color: var(--gold);
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: 0.3em;
  margin-top: 0.45rem;
}

.contact__equation {
  color: rgba(241, 238, 230, 0.62);
  font-family: var(--display);
  font-size: 1rem;
  font-style: italic;
  line-height: 1.45;
  margin-top: 1.5rem;
}

.instagram {
  color: #f1eee6;
  text-decoration: none;
  width: 10rem;
}

.instagram img {
  background: #fff;
  height: auto;
  padding: 0.3rem;
  width: 100%;
}

.instagram span {
  display: block;
  font-family: var(--label);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  margin-top: 0.6rem;
  text-align: center;
}

footer {
  align-items: center;
  background: var(--green-deep);
  color: rgba(241, 238, 230, 0.55);
  display: flex;
  font-family: var(--label);
  font-size: 0.62rem;
  justify-content: space-between;
  letter-spacing: 0.1em;
  padding: 1.8rem max(1.5rem, calc((100vw - 1240px) / 2));
  text-transform: uppercase;
}

footer div {
  display: flex;
  gap: 0.75rem;
}

footer a {
  text-decoration: none;
}

footer a:hover {
  color: #f1eee6;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@media (max-width: 1040px) {
  .expertise-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .expertise-grid article {
    min-height: 18rem;
  }

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

  .service-group {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  :root {
    --page: calc(100vw - 2rem);
  }

  .topbar {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .menu-button {
    display: block;
  }

  .topbar nav {
    align-items: flex-start;
    background: var(--cream);
    border-bottom: 1px solid var(--rule);
    display: none;
    flex-direction: column;
    gap: 1.4rem;
    inset: 100% 0 auto;
    padding: 2rem 1.5rem 2.5rem;
    position: absolute;
  }

  .topbar nav.open {
    display: flex;
  }

  .topbar nav a {
    font-size: 0.74rem;
  }

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

  .hero__image {
    aspect-ratio: 4 / 3;
    min-height: 0;
  }

  .hero__image img {
    object-position: center 46%;
  }

  .hero__copy {
    min-height: 75svh;
    padding: 4rem 1.5rem;
  }

  .hero h1 {
    font-size: clamp(3.6rem, 19vw, 6rem);
  }

  .mission,
  .section,
  .contact {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .section-heading {
    align-items: flex-start;
  }

  .section-number {
    font-size: 4rem;
  }

  .about-grid,
  .focus-panel,
  .case,
  .feature,
  .contact {
    grid-template-columns: 1fr;
  }

  .about-grid {
    gap: 3rem;
  }

  .image-frame--portrait {
    aspect-ratio: 4 / 3;
  }

  .focus-panel > div + div {
    border-left: 0;
    border-top: 1px solid var(--rule);
  }

  .case {
    gap: 3rem;
  }

  .case__visual {
    aspect-ratio: 16 / 9;
  }

  .feature--reverse .feature__copy,
  .feature--reverse .feature__image {
    order: initial;
  }

  .feature__image,
  .feature__image--contain {
    aspect-ratio: 4 / 4.8;
  }

  .feature__image--natural {
    aspect-ratio: auto;
  }

  .contact__brand {
    align-items: flex-start;
    border-left: 0;
    border-top: 1px solid rgba(241, 238, 230, 0.16);
    flex-direction: row;
    padding-left: 0;
    padding-top: 2.5rem;
    text-align: left;
  }
}

@media (max-width: 600px) {
  .section-heading {
    gap: 1rem;
  }

  .section-number {
    display: none;
  }

  .expertise-grid,
  .case__steps,
  .case__steps--four,
  .museum-gallery,
  .service-list,
  .service-list--six,
  .service-list--four {
    grid-template-columns: 1fr;
  }

  .expertise-grid article {
    min-height: 0;
  }

  .museum-gallery figure {
    aspect-ratio: 16 / 9;
  }

  .service-list > div {
    min-height: 0;
  }

  .contact__brand {
    align-items: flex-start;
    flex-direction: column;
    text-align: left;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.7rem;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .image-frame img,
  .museum-gallery img {
    transition: none;
  }
}
