:root {
  color-scheme: light;
  font-family: Inter, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #15251f;
  background: #f4f6f1;
  --forest: #173d31;
  --moss: #5d806b;
  --mint: #dce8df;
  --paper: #fbfcf8;
  --copper: #b86f49;
  --gold: #f2dfa0;
  --gold-ink: #26382f;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; overflow-x: hidden; background: #f4f6f1; }
button, input, textarea { font: inherit; letter-spacing: 0; }
a { color: inherit; }

.studio-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 10px max(18px, calc((100vw - 1180px) / 2));
  background: rgba(244, 246, 241, .95);
  box-shadow: 0 1px 0 rgba(23, 61, 49, .12);
  backdrop-filter: blur(14px);
}

.studio-brand, .studio-tools, .language-toggle { display: flex; align-items: center; }
.studio-brand { gap: 10px; font-size: .78rem; font-weight: 900; text-decoration: none; }
.studio-brand img { width: 34px; height: 34px; }
.studio-tools { gap: 8px; }
.support { padding: 8px 10px; color: var(--forest); background: var(--mint); border-radius: 5px; font-size: .68rem; font-weight: 850; text-decoration: none; }
.language-toggle { gap: 3px; padding: 3px; background: #e3e8e1; border-radius: 5px; }
.language-toggle button { width: 36px; height: 30px; border: 0; border-radius: 4px; background: transparent; font-size: .65rem; font-weight: 900; cursor: pointer; }
.language-toggle .is-active { color: white; background: var(--forest); }

main { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.studio-intro { display: grid; align-content: end; min-height: 310px; padding: 70px 0 34px; max-width: 900px; }
.studio-intro > p:first-child, .language-panel > p, .section-copy > p, .brief-copy > p { margin: 0 0 10px; color: var(--moss); font-size: .68rem; font-weight: 900; }
.language-panel > p,
.section-copy > p,
.brief-copy > p:first-child {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: max-content;
  max-width: 100%;
  min-height: 34px;
  padding: 8px 12px;
  color: var(--gold-ink);
  background: var(--gold);
  border-radius: 4px;
  font-size: clamp(.76rem, 1vw, .88rem);
  line-height: 1.2;
}
.language-panel > p::before,
.section-copy > p::before,
.brief-copy > p:first-child::before {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  background: var(--forest);
  content: "";
  transform: rotate(45deg);
}
.studio-intro h1 { max-width: 850px; margin: 0; font-size: clamp(2.5rem, 7vw, 6.4rem); line-height: .94; }
.studio-intro > p:last-child { max-width: 670px; margin: 24px 0 0; color: #52645b; font-size: .94rem; line-height: 1.6; }

.language-panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.language-panel { position: relative; min-height: 270px; padding: 28px; overflow: hidden; color: white; background: var(--forest); border-radius: 6px; }
.language-panel.english-panel { color: var(--forest); background: #dfe8df; }
.language-panel > *:not(.name-wall) { position: relative; z-index: 1; }
.language-panel .name-wall { position: absolute; inset: 12px -20px auto; color: rgba(255, 255, 255, .07); font-size: clamp(2.2rem, 5vw, 4.8rem); font-weight: 900; line-height: .95; }
.english-panel .name-wall { color: rgba(23, 61, 49, .08); }
.language-panel h2 { max-width: 440px; margin: 72px 0 12px; font-size: clamp(1.7rem, 3vw, 2.8rem); line-height: 1.03; }
.language-panel > span { display: block; max-width: 500px; color: rgba(255,255,255,.72); font-size: .82rem; line-height: 1.55; }
.english-panel > span { color: #496154; }

.delivery-band { display: grid; grid-template-columns: repeat(4, 1fr); margin: 12px 0 84px; background: #e5eae3; border-radius: 6px; }
.delivery-band div { display: grid; gap: 5px; padding: 18px; box-shadow: 1px 0 0 rgba(23,61,49,.11); }
.delivery-band span { color: #6d7d73; font-size: .59rem; font-weight: 900; }
.delivery-band strong { font-size: .76rem; line-height: 1.35; }

.case-section { margin: 0 0 86px; }
.section-copy { display: grid; grid-template-columns: 1fr; align-items: start; gap: 20px; margin-bottom: 20px; }
.section-copy h2 { max-width: 800px; margin: 0; font-size: clamp(1.8rem, 4vw, 3.6rem); line-height: 1.02; }
.case-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.case-grid article { display: grid; align-content: start; min-height: 220px; padding: 20px; background: var(--paper); border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(23,61,49,.08); }
.case-grid article:nth-child(2n) { background: #e8ede7; }
.case-grid b { color: var(--copper); font-size: 2.15rem; line-height: 1.1; }
.case-grid .hand-name { font-family: "STKaiti", "KaiTi", "PingFang SC", sans-serif; }
.case-grid .latin-name { font-style: italic; }
.case-grid strong { margin-top: 8px; font-size: .72rem; }
.case-grid p { margin: 18px 0 0; color: #53645b; font-size: .75rem; line-height: 1.55; }
.case-direction { margin-bottom: 12px; color: #6e7d74; font-size: .58rem; font-weight: 900; line-height: 1.2; }

.brief-section { display: grid; grid-template-columns: .72fr 1.28fr; gap: 32px; margin-bottom: 70px; padding: 30px; background: var(--forest); border-radius: 6px; }
.brief-copy { color: white; }
.brief-copy h2 { margin: 0; font-size: clamp(1.9rem, 4vw, 3.5rem); line-height: 1.02; }
.brief-copy > p:last-child { margin: 20px 0 0; color: #bfd1c4; font-size: .8rem; line-height: 1.55; }
#namingForm { display: grid; gap: 14px; padding: 20px; background: #f7f8f4; border-radius: 5px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
label { display: grid; gap: 6px; }
label > span, fieldset legend { color: #4e6257; font-size: .67rem; font-weight: 850; }
input, textarea { width: 100%; border: 0; border-radius: 4px; outline: 0; background: white; box-shadow: inset 0 0 0 1px rgba(23,61,49,.13); }
input { min-height: 42px; padding: 9px 11px; }
textarea { padding: 11px; resize: vertical; }
input:focus, textarea:focus { box-shadow: inset 0 0 0 2px var(--moss); }
fieldset { margin: 0; padding: 0; border: 0; }
.choice-field, .personality-field { display: flex; flex-wrap: wrap; gap: 7px; }
.choice-field legend, .personality-field legend { width: 100%; margin-bottom: 2px; }
.choice-field label, .personality-field label { position: relative; display: inline-flex; align-items: center; }
.choice-field input, .personality-field input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  opacity: 0;
  clip-path: inset(50%);
}
.choice-field span, .personality-field span { padding: 8px 10px; color: #29483b; background: #e4ebe5; border-radius: 4px; cursor: pointer; }
.choice-field input:checked + span, .personality-field input:checked + span { color: white; background: var(--forest); }
.photo-field small { color: #6c7b73; font-size: .62rem; line-height: 1.4; }
.photo-field input { padding: 8px; }
.consent { grid-template-columns: 18px 1fr; align-items: start; }
.consent input { width: 16px; min-height: 16px; height: 16px; margin: 2px 0 0; box-shadow: none; }
.consent span { font-size: .61rem; font-weight: 600; line-height: 1.4; }
.submit-row { display: grid; grid-template-columns: 1fr; gap: 8px; }
.submit-row button { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 50px; padding: 10px 12px; border: 0; border-radius: 5px; font-size: .67rem; font-weight: 900; cursor: pointer; }
.payment-submit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.payment-submit { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 18px; color: white; border: 0; cursor: pointer; font: inherit; font-weight: 800; }
.payment-submit b { white-space: nowrap; }
.paypal-submit { background: #003087; }
.alipay-submit { background: #1677ff; }
@media (max-width: 560px) {
  .payment-submit-grid { grid-template-columns: 1fr; }
  .payment-submit { min-height: 58px; }
}
.form-status { min-height: 20px; margin: 0; color: #52645b; font-size: .7rem; }

footer { display: flex; justify-content: space-between; gap: 16px; padding: 24px max(18px, calc((100vw - 1180px) / 2)); color: #65736b; background: #e6eae4; font-size: .65rem; }

/* Chinese needs more vertical breathing room than the compact Latin display type. */
html[lang="zh-CN"] .studio-intro h1 {
  max-width: 920px;
  font-size: clamp(2.35rem, 6.4vw, 5.65rem);
  line-height: 1.16;
}

html[lang="zh-CN"] .language-panel h2,
html[lang="zh-CN"] .section-copy h2,
html[lang="zh-CN"] .brief-copy h2 {
  line-height: 1.18;
}

html[lang="zh-CN"] .studio-intro > p:last-child,
html[lang="zh-CN"] .language-panel > span,
html[lang="zh-CN"] .case-grid p,
html[lang="zh-CN"] .brief-copy > p:last-child {
  line-height: 1.75;
}

@media (max-width: 760px) {
  .studio-header { min-height: 54px; padding: 8px 10px; }
  .studio-brand span { display: none; }
  main { width: calc(100% - 20px); }
  .studio-intro { min-height: 260px; padding-top: 46px; }
  .language-panels, .brief-section { grid-template-columns: 1fr; }
  .language-panel { min-height: 230px; padding: 20px; }
  .language-panel h2 { margin-top: 58px; }
  .delivery-band { grid-template-columns: repeat(2, 1fr); margin-bottom: 58px; }
  .section-copy { grid-template-columns: 1fr; }
  .case-grid { grid-template-columns: 1fr 1fr; }
  .brief-section { gap: 18px; padding: 18px; }
  .form-grid, .submit-row { grid-template-columns: 1fr; }
  footer { flex-direction: column; padding: 20px; }
}

@media (max-width: 480px) {
  .studio-intro h1 { font-size: 2.65rem; }
  html[lang="zh-CN"] .studio-intro h1 { font-size: 2.35rem; line-height: 1.18; }
  .case-grid { grid-template-columns: 1fr; }
  .case-grid article { min-height: 180px; }
  .brief-section { padding: 12px; }
  #namingForm { padding: 14px; }
}
