:root {
  --paper: #f7f3eb;
  --paper-deep: #ebe4d8;
  --ink: #181817;
  --muted: #716b61;
  --line: #d5ccbd;
  --clay: #9b6f52;
  --olive: #3f4a3d;
  --night: #20201d;
  --white: #fffaf1;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

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

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 22px 4vw;
  color: var(--ink);
  mix-blend-mode: multiply;
}

.detail-header {
  background: rgba(247, 243, 235, 0.82);
  backdrop-filter: blur(14px);
  mix-blend-mode: normal;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: Georgia, "Times New Roman", "SimSun", serif;
  font-size: 18px;
  line-height: 1;
}

.brand img {
  width: 36px;
  height: 30px;
  object-fit: contain;
}

.brand span {
  transform: translateY(1px);
}

.desktop-nav {
  display: flex;
  gap: 28px;
  font-size: 13px;
}

.desktop-nav a,
.mobile-nav a,
.site-footer a,
.text-link {
  position: relative;
}

.desktop-nav a::after,
.mobile-nav a::after,
.site-footer a::after,
.text-link::after {
  position: absolute;
  right: 0;
  bottom: -4px;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 240ms ease;
}

.desktop-nav a:hover::after,
.mobile-nav a:hover::after,
.site-footer a:hover::after,
.text-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--ink);
  background: transparent;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 1px;
  margin: 6px auto;
  background: var(--ink);
}

.mobile-nav {
  position: fixed;
  top: 74px;
  right: 4vw;
  z-index: 21;
  display: none;
  flex-direction: column;
  gap: 18px;
  min-width: 180px;
  border: 1px solid var(--line);
  background: rgba(247, 243, 235, 0.96);
  padding: 20px;
  font-size: 15px;
}

.mobile-nav.is-open {
  display: flex;
}

.hero {
  position: relative;
  min-height: 78vh;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-media {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(247, 243, 235, 0.1), rgba(247, 243, 235, 0.25)), url("assets/hero-atelier.png");
  background-position: center;
  background-size: cover;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 78vh;
  width: min(1120px, 92vw);
  flex-direction: column;
  justify-content: flex-end;
  padding: 140px 0 58px;
  margin: 0 auto;
}

.eyebrow,
.section-kicker,
.project-meta,
.project-card p,
.project-action,
.archive-list span,
.archive-list em,
.service-item span,
.contact-details,
.site-footer {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.6;
  letter-spacing: 0;
}

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

h1,
h2 {
  font-family: Georgia, "Times New Roman", "SimSun", serif;
  font-weight: 400;
}

h1 {
  max-width: 760px;
  margin-top: 16px;
  font-size: 72px;
  line-height: 0.98;
}

h2 {
  font-size: 48px;
  line-height: 1.08;
}

h3 {
  font-family: Georgia, "Times New Roman", "SimSun", serif;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.18;
}

.hero-copy {
  max-width: 620px;
  margin-top: 24px;
  color: #2c2a27;
  font-size: 18px;
  line-height: 1.85;
}

.hero-logo {
  width: 172px;
  height: auto;
  margin-bottom: 26px;
}

.company-en {
  margin-top: 16px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.4;
}

.text-link {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  color: var(--ink);
  font-size: 14px;
}

.intro-section,
.work-section,
.services-section,
.studio-section,
.contact-section {
  width: min(1180px, 92vw);
  margin: 0 auto;
}

.intro-section {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  padding: 72px 0;
  border-bottom: 1px solid var(--line);
}

.intro-section p {
  max-width: 820px;
  font-family: Georgia, "Times New Roman", "SimSun", serif;
  font-size: 30px;
  line-height: 1.45;
}

.work-section,
.services-section,
.studio-section,
.contact-section {
  padding: 92px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 42px;
  align-items: end;
  margin-bottom: 42px;
}

.section-heading p:last-child,
.studio-copy p,
.contact-panel p {
  color: #3f3b36;
  font-size: 16px;
  line-height: 1.85;
}

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

.portfolio-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: -12px 0 28px;
}

.portfolio-controls button {
  min-width: 76px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  padding: 10px 18px;
  transition: background 220ms ease, border-color 220ms ease, color 220ms ease;
}

.portfolio-controls button:hover,
.portfolio-controls button[aria-pressed="true"] {
  border-color: var(--night);
  background: var(--night);
  color: var(--white);
}

.portfolio-spotlight {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  gap: 1px;
  overflow: hidden;
  margin-bottom: 34px;
  background: var(--line);
}

.spotlight-media,
.spotlight-copy {
  min-height: 420px;
  background: var(--night);
}

.spotlight-media {
  display: block;
  overflow: hidden;
}

.spotlight-media img {
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
  transform: scale(1.01);
  transition: opacity 260ms ease, transform 520ms ease;
}

.spotlight-media:hover img {
  opacity: 1;
  transform: scale(1.04);
}

.spotlight-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 34px;
  color: var(--white);
}

.spotlight-copy .section-kicker,
.spotlight-copy p {
  color: rgba(255, 250, 241, 0.68);
}

.spotlight-copy h3 {
  color: var(--white);
  font-size: 34px;
}

.spotlight-copy p:not(.section-kicker) {
  margin-top: 18px;
  font-size: 15px;
  line-height: 1.8;
}

.spotlight-copy .text-link {
  color: var(--white);
}

.portfolio-status {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 13px;
}

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

.project-card {
  border-bottom: 1px solid var(--line);
  padding-bottom: 22px;
  transition: opacity 220ms ease, transform 220ms ease;
}

.project-card a {
  display: block;
}

.project-card img {
  aspect-ratio: 4 / 5;
  height: auto;
  object-fit: cover;
  transition: filter 280ms ease, transform 280ms ease;
}

.project-card:hover img {
  filter: contrast(1.04) saturate(0.94);
  transform: translateY(-4px);
}

.project-card.is-active img {
  outline: 1px solid var(--night);
  outline-offset: 5px;
}

.project-card.is-hidden,
.archive-list a.is-hidden {
  display: none;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}

.project-card h3 {
  margin-top: 10px;
}

.project-card p {
  margin-top: 8px;
}

.project-action {
  display: inline-block;
  margin-top: 18px;
  color: var(--ink);
}

.archive-list {
  margin-top: 64px;
  border-top: 1px solid var(--line);
}

.archive-list a {
  display: grid;
  grid-template-columns: 220px 1fr 130px;
  gap: 28px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  transition: background 180ms ease, padding 180ms ease;
}

.archive-list a:hover,
.archive-list a.is-active {
  background: rgba(32, 32, 29, 0.045);
  padding-right: 16px;
  padding-left: 16px;
}

.archive-list strong {
  font-family: Georgia, "Times New Roman", "SimSun", serif;
  font-size: 26px;
  font-weight: 400;
}

.archive-list em {
  text-align: right;
}

.project-detail {
  background: var(--paper);
}

.project-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  min-height: 100vh;
  border-bottom: 1px solid var(--line);
}

.project-detail-media {
  min-height: 100vh;
  background: var(--night);
  overflow: hidden;
}

.project-detail-media img {
  height: 100%;
  object-fit: cover;
  opacity: 0.94;
}

.project-detail-intro {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 130px 5vw 72px;
}

.project-detail-intro h1 {
  max-width: 640px;
}

.project-detail-lead {
  max-width: 620px;
  margin-top: 28px;
  color: #34312c;
  font-size: 18px;
  line-height: 1.85;
}

.project-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 34px;
}

.project-detail-body {
  display: grid;
  width: min(1180px, 92vw);
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 92px;
  padding: 86px 0;
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
}

.project-facts {
  display: grid;
  align-content: start;
  border-top: 1px solid var(--line);
}

.project-facts div {
  display: grid;
  gap: 6px;
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}

.project-facts span,
.project-gallery-detail figcaption,
.related-list span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.project-facts strong {
  font-family: Georgia, "Times New Roman", "SimSun", serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.35;
}

.project-narrative {
  display: grid;
  gap: 28px;
}

.project-narrative p {
  max-width: 820px;
  color: #312e2a;
  font-family: Georgia, "Times New Roman", "SimSun", serif;
  font-size: 28px;
  line-height: 1.58;
}

.project-gallery-detail {
  display: grid;
  width: min(1280px, 94vw);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  padding: 96px 0;
  margin: 0 auto;
}

.project-gallery-detail figure {
  margin: 0;
}

.project-gallery-detail figure.is-wide {
  grid-column: 1 / -1;
}

.project-gallery-detail img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  background: var(--paper-deep);
}

.project-gallery-detail figure.is-wide img {
  aspect-ratio: auto;
}

.project-gallery-detail figure:not(.is-wide) img {
  aspect-ratio: auto;
}

.project-gallery-detail figcaption {
  margin-top: 12px;
}

.project-story-sections {
  display: grid;
  width: min(1180px, 92vw);
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 72px;
  padding: 20px 0 96px;
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
}

.project-section-copy {
  display: grid;
  gap: 42px;
}

.project-section-copy article {
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.project-section-copy p:last-child {
  max-width: 760px;
  color: #3f3b36;
  font-size: 17px;
  line-height: 1.9;
}

.project-highlights {
  align-self: start;
  background: var(--night);
  color: var(--white);
  padding: 28px;
}

.project-highlights .section-kicker {
  color: rgba(255, 250, 241, 0.66);
}

.project-highlights span {
  display: block;
  border-top: 1px solid rgba(255, 250, 241, 0.18);
  padding: 16px 0;
  color: var(--white);
  font-size: 15px;
  line-height: 1.5;
}

.project-related {
  display: grid;
  width: min(1180px, 92vw);
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 72px;
  padding: 86px 0;
  margin: 0 auto;
}

.project-related h2 {
  font-size: 38px;
}

.related-list {
  border-top: 1px solid var(--line);
}

.related-list a {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 26px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}

.related-list strong {
  font-family: Georgia, "Times New Roman", "SimSun", serif;
  font-size: 25px;
  font-weight: 400;
}

.project-empty {
  min-height: 80vh;
  width: min(900px, 92vw);
  padding: 150px 0 80px;
  margin: 0 auto;
}

.services-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.service-item {
  min-height: 290px;
  background: var(--paper);
  padding: 26px;
}

.service-item h3 {
  margin-top: 42px;
  font-size: 24px;
}

.service-item p {
  margin-top: 18px;
  color: #48443e;
  font-size: 15px;
  line-height: 1.8;
}

.studio-section {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 72px;
  align-items: end;
}

.studio-copy h2 {
  max-width: 700px;
}

.studio-copy p {
  max-width: 680px;
  margin-top: 24px;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
}

.proof-grid div {
  min-height: 140px;
  padding: 22px;
  border-right: 1px solid var(--line);
}

.proof-grid div:last-child {
  border-right: 0;
}

.proof-grid strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 42px;
  font-weight: 400;
}

.proof-grid span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.contact-section {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 72px;
  align-items: end;
  border-top: 1px solid var(--line);
}

.contact-panel h2 {
  max-width: 760px;
}

.contact-panel p {
  max-width: 620px;
  margin-top: 24px;
}

.contact-details {
  display: grid;
  gap: 12px;
  padding-bottom: 6px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--night);
  color: var(--white);
  padding: 28px 4vw;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
}

.icp-link {
  color: rgba(255, 255, 255, 0.72);
}

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

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

@media (max-width: 980px) {
  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  h1 {
    font-size: 50px;
  }

  h2 {
    font-size: 38px;
  }

  .intro-section,
  .section-heading,
  .studio-section,
  .contact-section,
  .project-detail-hero,
  .project-detail-body,
  .project-story-sections,
  .project-related {
    grid-template-columns: 1fr;
  }

  .project-detail-hero {
    min-height: 0;
  }

  .project-detail-media {
    min-height: 58vh;
  }

  .project-detail-intro {
    padding: 44px 5vw 62px;
  }

  .project-detail-body,
  .project-story-sections,
  .project-related {
    gap: 42px;
  }

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

  .portfolio-spotlight {
    grid-template-columns: 1fr;
  }

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

  .project-gallery-detail figure.is-wide {
    grid-column: auto;
  }

  .spotlight-media,
  .spotlight-copy {
    min-height: auto;
  }

  .spotlight-media img {
    aspect-ratio: 16 / 10;
    height: auto;
  }

  .studio-section,
  .contact-section {
    gap: 36px;
  }
}

@media (max-width: 680px) {
  .site-header {
    padding: 16px 5vw;
  }

  .mobile-nav {
    right: 5vw;
  }

  .hero,
  .hero-content {
    min-height: 74vh;
  }

  .hero-content {
    width: 90vw;
    padding-bottom: 44px;
  }

  h1 {
    font-size: 36px;
  }

  .brand span {
    display: none;
  }

  .hero-logo {
    width: 138px;
    margin-bottom: 20px;
  }

  h2 {
    font-size: 32px;
  }

  h3 {
    font-size: 23px;
  }

  .hero-copy {
    font-size: 16px;
    line-height: 1.75;
  }

  .project-detail-lead {
    font-size: 16px;
  }

  .intro-section,
  .work-section,
  .services-section,
  .studio-section,
  .contact-section {
    width: 90vw;
    padding: 58px 0;
  }

  .intro-section p {
    font-size: 23px;
  }

  .project-narrative p {
    font-size: 22px;
    line-height: 1.62;
  }

  .project-detail-body,
  .project-gallery-detail,
  .project-story-sections,
  .project-related {
    width: 90vw;
    padding: 58px 0;
  }

  .project-grid,
  .service-list,
  .proof-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-controls {
    margin-top: -4px;
  }

  .portfolio-controls button {
    flex: 1 1 90px;
  }

  .spotlight-copy {
    padding: 24px;
  }

  .archive-list a {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .related-list a {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .archive-list em {
    text-align: left;
  }

  .service-item {
    min-height: 230px;
  }

  .proof-grid div,
  .proof-grid div:last-child {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .proof-grid div:last-child {
    border-bottom: 0;
  }

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