:root {
  color-scheme: light;
  --ink: #16130f;
  --muted: #5f5f5f;
  --soft: #f3f3f1;
  --paper: #ffffff;
  --ivory: #ffffff;
  --line: rgba(22, 19, 15, 0.12);
  --gold: #b79252;
  --deep: #2d2924;
  --plum: #4f3846;
  --shadow: 0 30px 90px rgba(22, 19, 15, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #ffffff;
  color: var(--ink);
  font-family: "Songti SC", "Noto Serif SC", "STSong", "Times New Roman", serif;
  letter-spacing: 0;
}

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: clamp(14px, 2.5vw, 28px);
  align-items: center;
  padding: 24px clamp(20px, 5vw, 64px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(22, 19, 15, 0.08);
  box-shadow: 0 12px 38px rgba(22, 19, 15, 0.035);
  backdrop-filter: blur(22px);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: clamp(150px, 15vw, 230px);
  line-height: 0;
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.nav {
  display: flex;
  gap: clamp(18px, 3vw, 34px);
  justify-content: flex-end;
  min-width: 0;
  color: var(--muted);
  font-size: 0.9rem;
  white-space: nowrap;
}

.nav a {
  transition: color 220ms ease;
}

.nav a:hover {
  color: var(--ink);
}

.language-toggle {
  width: 44px;
  height: 34px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  font-family: inherit;
  cursor: pointer;
}

.hero,
.section {
  min-height: 100svh;
  padding: clamp(110px, 15vw, 160px) clamp(22px, 6vw, 86px);
  scroll-margin-top: 150px;
}

.hero {
  padding-top: clamp(180px, 16vw, 230px);
}

.philosophy-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.68fr);
  gap: clamp(36px, 5.6vw, 82px);
  align-items: center;
}

.eyebrow {
  margin: 0 0 26px;
  color: var(--gold);
  font-size: 0.86rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

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

h1,
h2 {
  font-weight: 400;
  line-height: 1.18;
}

h1 {
  max-width: 860px;
  margin-bottom: 42px;
  font-size: clamp(2.6rem, 6.4vw, 6.8rem);
}

h2 {
  max-width: 760px;
  margin-bottom: 28px;
  font-size: clamp(2rem, 4vw, 4.35rem);
}

h3 {
  margin-bottom: 16px;
  font-weight: 400;
  font-size: clamp(1.14rem, 1.55vw, 1.45rem);
}

p,
li,
address {
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.16rem);
  font-style: normal;
  line-height: 1.9;
}

strong {
  color: var(--ink);
  font-weight: 700;
}

.hero-text {
  max-width: 780px;
  text-wrap: pretty;
}

.hero-visual {
  min-height: 68svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
}

.section-image {
  display: block;
  width: 100%;
  min-height: 520px;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.98) saturate(0.96) contrast(1.03);
  box-shadow: var(--shadow);
}

.hero-image {
  min-height: 62svh;
  object-position: center 46%;
}

.portrait-frame {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(247, 244, 239, 0.95), rgba(255, 253, 249, 0.45)),
    radial-gradient(circle at 30% 20%, rgba(183, 150, 88, 0.12), transparent 34%),
    linear-gradient(180deg, #eee7dd, #ffffff);
  box-shadow: var(--shadow);
}

.fabric-plane,
.measure-line {
  position: absolute;
}

.fabric-plane {
  inset: 12% 22% 14% 18%;
  border: 1px solid rgba(183, 150, 88, 0.28);
  background:
    linear-gradient(135deg, transparent 0 48%, rgba(25, 24, 23, 0.06) 48% 52%, transparent 52%),
    rgba(255, 253, 249, 0.42);
}

.plane-two {
  inset: 24% 13% 8% 42%;
  background:
    linear-gradient(90deg, rgba(154, 167, 154, 0.16), transparent),
    rgba(255, 253, 249, 0.32);
}

.measure-line {
  top: 18%;
  bottom: 16%;
  left: 56%;
  width: 1px;
  background: rgba(25, 24, 23, 0.18);
  transform: rotate(8deg);
}

.visual-note {
  align-self: flex-end;
  width: max-content;
  max-width: none;
  color: var(--ink);
  font-size: 1.05rem;
  white-space: nowrap;
}

.split-section,
.founder-section,
.closing-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.76fr) minmax(0, 1fr);
  gap: clamp(42px, 7vw, 96px);
  align-items: center;
  background: var(--soft);
}

.split-section {
  grid-template-columns: minmax(360px, 0.88fr) minmax(0, 0.92fr);
}

.founder-section {
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.74fr);
  background: #ffffff;
}

.section-media {
  min-height: 62svh;
}

.understanding-image {
  min-height: clamp(420px, 42vw, 620px);
  aspect-ratio: 1200 / 820;
}

.process-image {
  min-height: 100%;
  background:
    linear-gradient(140deg, rgba(255, 253, 249, 0.15), rgba(25, 24, 23, 0.04)),
    linear-gradient(90deg, rgba(25, 24, 23, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(25, 24, 23, 0.06) 1px, transparent 1px),
    #e9e3d8;
  background-size: auto, 38px 38px, 38px 38px, auto;
  box-shadow: var(--shadow);
}

.image-consultation {
  min-height: 640px;
  clip-path: inset(0 0 0 0);
}

.image-fitting {
  min-height: 520px;
  background-color: #eee9e1;
}

.image-fabric {
  min-height: 360px;
  margin-top: 28px;
  background-color: #dfe3dc;
}

.founder-portrait {
  display: grid;
  place-items: start center;
  min-height: 620px;
  height: clamp(620px, 64vw, 820px);
  overflow: hidden;
  background: transparent;
  box-shadow: none;
}

.founder-image {
  display: block;
  width: 100%;
  height: 108%;
  max-width: none;
  object-fit: cover;
  object-position: center top;
  transform: none;
  filter: drop-shadow(0 30px 70px rgba(25, 24, 23, 0.12));
}

.portrait-placeholder {
  display: grid;
  place-items: end start;
  min-height: 620px;
  padding: 38px;
  background:
    linear-gradient(180deg, rgba(255, 253, 249, 0), rgba(255, 253, 249, 0.72)),
    radial-gradient(circle at 42% 18%, rgba(183, 150, 88, 0.13), transparent 34%),
    linear-gradient(135deg, #f0ebe3, #faf8f3);
  box-shadow: var(--shadow);
}

.portrait-placeholder span {
  color: rgba(25, 24, 23, 0.48);
  font-size: 0.92rem;
  letter-spacing: 0.12em;
}

.section-copy {
  max-width: 760px;
}

.question-list {
  margin-top: 38px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.question-list ul {
  display: grid;
  gap: 14px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.question-list li {
  position: relative;
  padding-left: 24px;
}

.question-list li::before {
  content: "";
  position: absolute;
  top: 0.95em;
  left: 0;
  width: 8px;
  height: 1px;
  background: var(--gold);
}

.works-section {
  background: #ffffff;
  padding-top: clamp(92px, 9vw, 118px);
  scroll-margin-top: 116px;
}

.style-section {
  background: #f3f3f1;
}

.style-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.62fr) minmax(0, 0.9fr);
  gap: clamp(42px, 7vw, 96px);
  align-items: start;
}

.style-copy {
  min-width: 0;
}

.style-visual {
  position: sticky;
  top: 132px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.style-visual .section-image {
  height: clamp(620px, 70vw, 920px);
  min-height: 0;
  object-fit: cover;
  object-position: center;
  box-shadow: none;
}

.section-heading {
  max-width: 850px;
  margin-bottom: clamp(46px, 7vw, 82px);
}

.style-grid {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--line);
}

.style-card {
  min-height: 240px;
  padding: clamp(28px, 4vw, 46px);
  border-bottom: 1px solid var(--line);
  background: transparent;
}

.style-card span {
  display: block;
  margin-bottom: 52px;
  color: var(--gold);
  font-family: Didot, "Bodoni 72", "Times New Roman", serif;
  font-size: 1.3rem;
}

.style-card p {
  font-size: 1rem;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 1.5vw, 22px);
  align-items: start;
}

.works-heading {
  display: block;
  align-items: end;
  margin-bottom: clamp(38px, 6vw, 72px);
  border-bottom: 1px solid var(--line);
  padding-bottom: clamp(22px, 3.2vw, 38px);
}

.works-heading .eyebrow {
  margin-bottom: 0;
}

.works-heading h2 {
  max-width: none;
  margin: 0;
  text-align: left;
  white-space: nowrap;
  font-size: clamp(2.25rem, 3.45vw, 4.15rem);
}

.work-card {
  display: block;
  line-height: 0;
  overflow: hidden;
  background: var(--deep);
  box-shadow: 0 20px 54px rgba(43, 34, 24, 0.12);
}

.work-image {
  display: block;
  width: 100%;
  height: clamp(360px, 44vw, 620px);
  object-fit: cover;
  object-position: center;
  background:
    linear-gradient(180deg, rgba(255, 253, 249, 0.05), rgba(25, 24, 23, 0.1)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.35), transparent 36%),
    #d8d4ca;
  filter: brightness(0.96) saturate(0.9) contrast(1.05);
  box-shadow: none;
  transition:
    filter 600ms ease,
    transform 900ms ease;
}

.work-card:hover .work-image {
  filter: brightness(0.99) saturate(0.95) contrast(1.06);
  transform: scale(1.025);
}

.work-card:nth-child(6n + 1) .work-image,
.work-card:nth-child(6n + 4) .work-image {
  height: clamp(460px, 52vw, 760px);
}

.work-card:nth-child(6n + 2) .work-image,
.work-card:nth-child(6n + 5) .work-image {
  height: clamp(340px, 38vw, 560px);
}

.tone-blue {
  background-color: #d7e2e4;
}

.tone-ivory {
  background-color: #ece7dd;
}

.tone-floral {
  background:
    radial-gradient(circle at 44% 28%, rgba(183, 150, 88, 0.28), transparent 18%),
    radial-gradient(circle at 60% 44%, rgba(154, 167, 154, 0.36), transparent 22%),
    linear-gradient(135deg, #2f2e2c, #eee9e0);
}

.tone-sage {
  background-color: #dbe0d7;
}

.closing-section {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 0.95fr);
}

.closing-visual {
  display: grid;
  align-content: center;
}

.site-footer {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 48px);
  padding: clamp(72px, 9vw, 120px) clamp(22px, 6vw, 86px);
  border-top: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(22, 19, 15, 0.76), rgba(22, 19, 15, 0.38) 48%, rgba(22, 19, 15, 0.62)),
    url("./assets/site/studio/contact-studio-background.jpg") center / cover no-repeat;
  color: var(--ivory);
  overflow: hidden;
  min-height: 86svh;
  align-items: center;
  scroll-margin-top: 116px;
}

.footer-logo-block img {
  display: block;
  width: min(260px, 100%);
  height: auto;
}

.footer-logo-block {
  align-self: start;
  width: min(240px, 100%);
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(150px, 0.28fr) minmax(0, 1fr) minmax(180px, 0.24fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
  padding: clamp(30px, 4.6vw, 54px);
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 1);
  color: var(--ink);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.2);
  scroll-margin-top: 132px;
}

.contact-copy h2 {
  max-width: none;
  color: var(--ink);
  font-size: clamp(2rem, 2.62vw, 3.28rem);
  line-height: 1.16;
  white-space: normal;
}

html[lang="zh-CN"] .contact-copy h2 {
  white-space: nowrap;
}

.contact-copy dl {
  display: grid;
  gap: 0;
  margin: 30px 0 0;
}

.contact-copy dl div {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 20px;
  align-items: baseline;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.contact-copy dt {
  color: var(--gold);
  font-size: 0.84rem;
  line-height: 1.4;
}

.contact-copy dd {
  margin: 0;
  color: var(--ink);
  font-size: clamp(0.98rem, 1.24vw, 1.22rem);
  line-height: 1.55;
}

.contact-copy dd span {
  margin: 0 10px;
  color: var(--line);
}

.qr-card {
  display: grid;
  justify-items: center;
  width: min(220px, 100%);
  max-width: 220px;
  padding: 18px;
  background: #ffffff;
  border: 1px solid var(--line);
}

.qr-card p {
  margin: 0;
  color: var(--ink);
  text-align: center;
  line-height: 1.45;
}

.qr-card img {
  width: min(184px, 100%);
  height: auto;
}

.contact-side {
  display: grid;
  gap: 22px;
  justify-items: end;
  align-self: stretch;
}

.social-footer {
  display: flex;
  justify-content: flex-end;
  align-self: end;
  gap: 24px;
  padding-top: 0;
}

.social-footer a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  opacity: 0.72;
  transition:
    opacity 200ms ease,
    transform 200ms ease;
}

.social-footer a:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.social-footer img {
  width: 28px;
  height: 28px;
  display: block;
  object-fit: contain;
}

.social-footer .xiaohongshu-logo {
  width: 34px;
  height: 34px;
}

.social-footer span {
  display: none;
}

.social-footer em {
  display: none;
}

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

.hero-ready {
  opacity: 1;
  transform: none;
}

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

.hero-ready .portrait-frame,
.hero-ready .section-image,
.section-media .process-image,
.section-media .section-image,
.style-visual .section-image,
.closing-visual .section-image,
.closing-visual .process-image {
  transform: scale(1.035);
  transition: transform 1200ms ease;
}

.hero-ready .portrait-frame,
.hero-ready .section-image,
.is-visible .portrait-frame,
.is-visible .section-image,
.is-visible .process-image {
  transform: scale(1);
}

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

  .nav {
    justify-content: flex-end;
    gap: clamp(14px, 2.4vw, 26px);
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 0;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .philosophy-hero,
  .split-section,
  .founder-section,
  .closing-section {
    grid-template-columns: 1fr;
  }

  .style-layout,
  .works-heading {
    grid-template-columns: 1fr;
  }

  .style-visual {
    position: relative;
    top: auto;
  }

  .style-visual .section-image {
    height: 720px;
  }

  .hero {
    padding-top: 220px;
  }

  .hero-visual,
  .section-media {
    min-height: auto;
  }

  .section-image,
  .hero-image {
    min-height: 460px;
  }

  .hero-image {
    height: clamp(540px, 86vw, 760px);
    object-fit: cover;
  }

  .understanding-image {
    min-height: 420px;
  }

  .portrait-frame,
  .image-consultation,
  .image-fitting {
    min-height: 520px;
  }

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

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

  .site-footer,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .contact-panel {
    align-items: start;
  }

  .qr-card {
    width: min(240px, 100%);
    max-width: 240px;
    justify-self: center;
  }

  .contact-side {
    grid-template-columns: 1fr;
    align-items: start;
    align-self: start;
    width: min(280px, 100%);
    justify-self: center;
    justify-content: center;
    justify-items: center;
    gap: 18px;
  }

  .social-footer {
    justify-content: center;
    flex-wrap: nowrap;
    width: min(240px, 100%);
  }

}

@media (max-width: 680px) {
  .site-header {
    grid-template-columns: 36px minmax(0, 1fr) 36px;
    gap: 12px 10px;
    padding: 12px 16px 14px;
  }

  .brand {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    width: clamp(132px, 41vw, 168px);
  }

  .nav {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    justify-content: center;
    gap: clamp(16px, 5vw, 24px);
    padding-top: 8px;
    border-top: 1px solid rgba(22, 19, 15, 0.07);
    font-size: 0.82rem;
  }

  .language-toggle {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    width: 36px;
    height: 30px;
    font-size: 0.72rem;
  }

  .hero,
  .section {
    min-height: auto;
    padding: 124px 20px 82px;
  }

  .hero {
    padding-top: 210px;
  }

  h1 {
    font-size: clamp(2.25rem, 11vw, 3.9rem);
  }

  h2 {
    font-size: clamp(1.9rem, 9vw, 3.2rem);
  }

  .portrait-frame,
  .image-consultation,
  .image-fitting,
  .image-fabric,
  .portrait-placeholder {
    min-height: 380px;
  }

  .section-image,
  .hero-image,
  .style-visual .section-image {
    min-height: 380px;
  }

  .hero-image {
    height: clamp(420px, 112vw, 560px);
  }

  .founder-portrait {
    min-height: 520px;
    height: 620px;
  }

  .style-grid,
  .works-grid {
    grid-template-columns: 1fr;
  }

  .style-visual .section-image {
    height: auto;
    min-height: 0;
    aspect-ratio: 3 / 4;
  }

  .works-heading {
    gap: 18px;
  }

  .works-heading h2 {
    white-space: normal;
    font-size: clamp(2rem, 9vw, 3.2rem);
  }

  .work-image {
    height: clamp(440px, 128vw, 520px);
  }

  .work-card:nth-child(n) .work-image {
    height: clamp(440px, 128vw, 520px);
  }

  .contact-copy dl div {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 15px 0;
  }

  .contact-copy h2 {
    font-size: clamp(1.42rem, 6vw, 2.1rem);
  }

  .contact-side {
    grid-template-columns: 1fr;
    width: min(280px, 100%);
    justify-items: center;
    gap: 18px;
  }

  .qr-card {
    width: min(280px, 100%);
    max-width: 280px;
    padding: 20px;
  }

  .qr-card img {
    width: min(232px, 100%);
  }

  .contact-copy dd span {
    display: none;
  }

  .contact-copy dd a {
    display: block;
  }

  .social-footer {
    justify-content: center;
    gap: 34px;
    width: min(280px, 100%);
    padding-top: 2px;
  }

  .social-footer a {
    min-width: 0;
    width: 44px;
    height: 44px;
    opacity: 0.78;
  }

  .social-footer img {
    width: 32px;
    height: 32px;
  }

  .social-footer .xiaohongshu-logo {
    width: 42px;
    height: 42px;
  }
}

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

  .reveal,
  .hero-visual .portrait-frame,
  .section-media .process-image,
  .closing-visual .process-image {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
