:root {
  --bg: #f4f0e8;
  --bg-soft: #ece6dc;
  --green: #173a31;
  --text: #1d1d19;
  --muted: #6f6b63;
  --line: #d8d0c4;
  --accent: #a17a4f;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}
  #how-i-work {
  scroll-margin-top: 58px;
}
#what-i-do{
  scroll-margin-top: 20px;
}
#learning,
#about {
  scroll-margin-top: 0;
}

#contact {
  scroll-margin-top: 70px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display",
    "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
}

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

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

h1,
h2,
h3 {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display",
    "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  margin: 0;
  letter-spacing: -0.035em;
}
p {
  margin-top: 0;
}

.nav {
  min-height: 96px;
  padding: 20px 3vw 20px 5vw;
  display: grid;
  grid-template-columns: 1.15fr 2fr 1.25fr;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(244, 240, 232, 0.95);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
}

.logo {
  font-family: Baskerville, "Times New Roman", serif;
  font-size: 32px;
  font-weight: 400;
  letter-spacing: 0.13em;
}

.tagline {
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav nav {
  display: flex;
  justify-content: center;
  gap: 28px;
}

.nav nav a {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav-button,
.primary-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background: var(--green);
  color: var(--white);
  padding: 14px 20px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.nav-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  white-space: nowrap;
}

.language-switcher {
  display: flex;
  align-items: center;
  gap: 7px;
}

.language-switcher a,
.language-switcher span {
  font-size: 11px;
  letter-spacing: 0.05em;
}

.language-switcher a {
  color: var(--muted);
  transition: opacity 0.2s ease;
}

.language-switcher span {
  color: var(--line);
}

.language-switcher a:hover {
  opacity: 0.55;
}

.language-switcher .active {
  color: var(--text);
}
.hero {
  min-height: calc(100vh - 120px);
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
}

.hero-copy {
  padding: 100px 7vw 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transform: translateY(8px);
}

.eyebrow,
.section-label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1 {
  margin-top: 10px;
  font-size: clamp(48px, 4.7vw, 70px);
  line-height: 0.96;
  letter-spacing: -0.05em;
  font-weight: 400;
  max-width: none;
}
.hero h1 span {
  display: block;
}
.hero h1 .second-line {
  white-space: nowrap;
}
.hero-text {
  max-width: 440px;
  margin-top: 26px;
  font-size: 17px;
 line-height: 1.5;
 letter-spacing: -0.01em;
  color: var(--muted);
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.text-link {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-image {
  min-height: calc(100vh - 120px);
}

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

.principles {
  min-height: 520px;

  padding: 58px 6vw 70px;

  display: flex;
  flex-direction: column;
  justify-content: center;

  background: var(--bg-soft);
  text-align: center;
}

.principle-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.principle-grid div {
  padding: 26px 20px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: -0.015em;
}

.principle-grid div + div {
  border-left: 1px solid var(--line);
}
.principles-note {
  max-width: 680px;
  margin: 32px auto 0;
  font-size: 15px;
  line-height: 1.65;
  letter-spacing: -0.01em;
  color: var(--muted);
  text-align: center;
}
.what-i-do {
  padding: 80px 6vw 110px;

  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 70px;

  align-items: start;
}

.section-copy {
  padding-top: 60px;
}

.section-image {
  padding-top: 35px;
}
.section-copy h2,
.contact h2 {
  margin-top: 14px;
  font-size: clamp(46px, 4.6vw, 68px);
  line-height: 1.03;
}

.learning-intro h2 {
  margin-top: 12px;
  max-width: 760px;
  font-size: clamp(38px, 3.4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

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

.service {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 18px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.service span {
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.service h3 {
  font-size: 25px;
  line-height: 1.15;
  font-weight: 400;
  letter-spacing: -0.03em;
  text-align: left;
  justify-self: start;
}
.section-image {
  padding-top: 35px;
}
.section-image img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.learning {
  padding: 110px 8vw 130px;
}

.learning-intro {
  max-width: 820px;
  margin: 0 auto;
  text-align: left;
}

.learning-intro p:last-child {
  max-width: 560px;
  margin-top: 22px;
  margin-left: 0;
  margin-right: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.learning-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  margin-top: 52px;
}

.learning-grid article {
  border-top: none;
  padding-top: 0;
  text-align: left;
}

.learning-grid img {
  aspect-ratio: 5 /4;
  object-fit: cover;
  margin-bottom: 18px;
}

.learning-grid h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.03em;
  text-align: left;
}

.learning-grid p {
  max-width: 300px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  text-align: left;
}
.about {
  padding: 110px 8vw 145px;
  display: grid;
  grid-template-columns: minmax(120px, 0.42fr) minmax(0, 1.58fr);
  column-gap: 58px;
  align-items: start;
  background: transparent;
  border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.about-label {
  padding-top: 7px;
}

.about-copy {
  width: 100%;
  max-width: 760px;
  text-align: left;
}

.about-copy h2 {
  max-width: 720px;
  margin: 0 0 26px;
  font-size: clamp(36px, 3vw, 46px);
  line-height: 1.07;
  letter-spacing: -0.045em;
}

.about-copy h2 span {
  display: block;
}

.about-copy p {
  max-width: 640px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: -0.01em;
  text-align: left;
}

.about-copy p + p {
  margin-top: 25px;
}

.about-link {
  display: inline-block;
  margin-top: 36px;
  padding-bottom: 4px;
  color: var(--green);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.07em;
  border-bottom: 1px solid rgba(23, 58, 49, 0.35);
  transition:
    opacity 0.2s ease,
    border-color 0.2s ease;
}

.about-link:hover {
  opacity: 0.65;
  border-color: var(--green);
}
.contact {
  padding: 90px 8vw;

  display: grid;
  grid-template-columns: 1fr 0.75fr;
  gap: 80px;

  align-items: start;

  background: var(--bg-soft);
}

.contact-copy {
  max-width: 700px;
}

.contact h2 {
  margin-top: 14px;

  font-size: clamp(48px, 4.8vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.contact-text {
  max-width: 570px;

  margin-top: 26px;
  margin-bottom: 0;

  color: var(--muted);

  font-size: 17px;
  line-height: 1.7;
}

.contact-form-wrap {
  width: 100%;
  max-width: 460px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 4px;

  color: var(--accent);

  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;

  padding: 8px 0 10px;

  border: none;
  border-bottom: 1px solid var(--line);
  border-radius: 0;

  background: transparent;
  color: var(--text);

  font: inherit;
  font-size: 15px;

  outline: none;

  appearance: none;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-bottom-color: var(--green);
}

.form-group textarea {
  min-height: 70px;
  resize: vertical;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 24px;

  margin-top: 26px;
}

.form-actions .text-link {
  color: var(--green);
}
footer {
  padding: 38px 5vw 22px;

  border-top: 1px solid var(--line);

  color: var(--muted);
  background: var(--bg);
}

footer .logo {
  font-size: 26px;
  letter-spacing: 0.13em;
  color: var(--muted);
}

.footer-main {
  display: flex;
  align-items: flex-start;
}

.footer-bottom {
  margin-top: 34px;
  padding-top: 18px;

  border-top: 1px solid var(--line);

  display: flex;
  align-items: center;
  justify-content: space-between;

  font-size: 11px;
  letter-spacing: 0.02em;
}

.footer-links {
  display: flex;
  gap: 22px;
}

.footer-links a {
  transition: opacity 0.2s ease;
}

.footer-links a:hover {
  opacity: 0.6;
}

@media (max-width: 1000px) {

  .principles {
    min-height: auto;
  }

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

  .nav nav {
    display: none;
  }

  .nav-right {
    justify-self: end;
  }

  .hero,
  .what-i-do,
  .contact {
    grid-template-columns: 1fr;
  }

  .contact {
    gap: 50px;
  }

  .contact-form-wrap {
    max-width: 680px;
    padding-top: 0;
  }

  .section-copy {
    padding-top: 0;
  }

  .section-image {
    padding-top: 0;
  }

  .hero-image {
    min-height: 500px;
  }

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

  .principle-grid div:nth-child(3) {
    border-left: none;
    border-top: 1px solid var(--line);
  }

  .principle-grid div:nth-child(4) {
    border-top: 1px solid var(--line);
  }

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

  .about {
    grid-template-columns: 1fr;
    gap: 22px;
    padding-left: 6vw;
    padding-right: 6vw;
  }

  .about-label {
    padding-top: 0;
  }

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

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

  .footer-bottom {
    margin-top: 28px;
  }

}

@media (max-width: 640px) {
  .nav-right {
  gap: 0;
}

.language-switcher {
  gap: 9px;
}

.language-switcher a {
  font-size: 10px;
}
  .nav {
    min-height: 78px;
  }

  .nav-button {
    display: none;
  }

  .logo {
    font-size: 26px;
  }

  .hero-copy {
    padding: 70px 6vw 60px;
  }

  .hero {
    min-height: auto;
  }

  .hero h1 {
    font-size: 52px;
  }

  .hero h1 .second-line {
    white-space: normal;
  }

  .hero-image {
    min-height: 380px;
  }

  .principle-grid,
  .learning-grid {
    grid-template-columns: 1fr;
  }

  .principle-grid div + div {
    border-left: none;
    border-top: 1px solid var(--line);
  }

  .what-i-do,
  .learning,
  .contact {
    padding-left: 6vw;
    padding-right: 6vw;
  }

  .section-copy h2,
  .learning-intro h2,
  .contact h2 {
    font-size: 44px;
  }

  .service h3 {
    font-size: 25px;
  }

  .hero-actions {
  flex-direction: column;
  align-items: flex-start;
}
.contact {
  padding-top: 90px;
  padding-bottom: 90px;
  gap: 42px;
}

.contact h2 span {
  display: inline;
}

.contact-text {
  max-width: 100%;
  font-size: 16px;
}

.form-actions {
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
.about {
  padding: 90px 6vw 100px;
  grid-template-columns: 1fr;
  gap: 20px;
}

.about-label {
  padding-top: 0;
}

.about-copy h2 {
  font-size: 38px;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.about-copy h2 span {
  display: inline;
}

.about-copy p {
  max-width: 100%;
  font-size: 16px;
  line-height: 1.7;
}

.about-copy p + p {
  margin-top: 23px;
}

.about-link {
  margin-top: 32px;
}
  .contact {
  padding-top: 90px;
  padding-bottom: 90px;
  gap: 42px;
}

.contact h2 span {
  display: inline;
}

.contact-text {
  max-width: 100%;
  font-size: 16px;
}

.form-actions {
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

  footer {
    padding: 34px 6vw 22px;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin-top: 28px;
  }

  .footer-links {
    gap: 18px;
  }

}
/* 中文页面专用样式 */
.zh-page .what-i-do .section-copy h2 {
  font-size: clamp(46px, 3.7vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.zh-page .what-i-do .section-intro {
  max-width: 610px;
  margin-top: 18px;
  margin-bottom: 0;
  font-size: 16px;
  line-height: 1.65;
}
.zh-page .what-i-do .services {
  margin-top: 32px;
}
.zh-page .learning {
  padding-top: 125px;
  padding-bottom: 90px;
}
.zh-page .learning-grid {
  gap: 32px;
}
.zh-page .learning-grid p {
  font-size: 13.5px;
  line-height: 1.6;
}
.zh-page .about {
  grid-template-columns: 180px minmax(0, 1fr);
  column-gap: 40px;
  padding-top: 90px;
}
.zh-page .about-copy {
  max-width: 820px;
}

.zh-page .about-copy p {
  max-width: 700px;
}
.zh-page .contact h2 {
  font-size: clamp(44px, 3.7vw, 58px);
  line-height: 1.05;
}

.zh-page .contact-text {
  max-width: 540px;
  margin-top: 24px;
  font-size: 16px;
  line-height: 1.7;
}

.zh-page .contact-form-wrap {
  max-width: 500px;
  padding-top: 6px;
}

.zh-page .form-group {
  margin-bottom: 18px;
}

.zh-page .form-group input,
.zh-page .form-group select,
.zh-page .form-group textarea {
  padding: 10px 0 12px;
}

.zh-page .form-actions {
  margin-top: 32px;
}

/* Netlify 防垃圾字段 */
.hidden-field {
  position: absolute;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  white-space: nowrap;
}

/* 表单提交成功页面 */
.success-page {
  min-height: 100vh;
  padding: 12vh 8vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.success-page h1 {
  margin-top: 14px;
  font-size: clamp(48px, 5vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.05em;
  color: var(--text);
}

.success-text {
  max-width: 540px;
  margin-top: 24px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.success-page .primary-button {
  margin-top: 34px;
}

@media (max-width: 640px) {
  .success-page {
    padding: 10vh 6vw;
  }

  .success-page h1 {
    font-size: 46px;
  }

  .success-text {
    font-size: 16px;
  }
}
/* 中文与西班牙语：首页手机端专用调整 */
@media (max-width: 640px) {

  /* 中文首页 */
  .zh-page .hero-copy {
    padding: 52px 6vw 46px;
    transform: none;
  }

  .zh-page .hero h1 {
    width: 100%;
    max-width: none;
    font-size: 44px;
    line-height: 1.08;
    letter-spacing: -0.045em;
  }

  .zh-page .hero h1 span {
    display: block;
  }

  .zh-page .hero h1 .second-line {
    white-space: nowrap;
  }

  .zh-page .hero-text {
    max-width: 100%;
    margin-top: 24px;
    font-size: 16px;
    line-height: 1.65;
  }

  .zh-page .hero-actions {
    margin-top: 30px;
    gap: 22px;
  }

  .zh-page .hero-image {
    min-height: 330px;
  }


  /* 西班牙语首页 */
  .es-page .hero-copy {
    padding: 52px 6vw 46px;
    transform: none;
  }

  .es-page .hero h1 {
    width: 100%;
    max-width: none;
    font-size: 42px;
    line-height: 1.08;
    letter-spacing: -0.04em;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
  }

  .es-page .hero h1 span {
    display: block;
  }

  .es-page .hero h1 .second-line {
    white-space: normal;
  }

  .es-page .hero-text {
    max-width: 100%;
    margin-top: 24px;
    font-size: 16px;
    line-height: 1.6;
  }

  .es-page .hero-actions {
    margin-top: 30px;
    gap: 22px;
  }

  .es-page .hero-image {
    min-height: 330px;
  }
}
/* 中文服务区：手机端 */
@media (max-width: 640px) {
  .zh-page .what-i-do {
    padding-top: 62px;
    padding-bottom: 78px;
  }

  .zh-page .what-i-do .section-label {
    margin-bottom: 14px;
  }

  .zh-page .what-i-do .section-copy h2 {
    margin-top: 0;
    font-size: 36px;
    line-height: 1.16;
    letter-spacing: -0.035em;
  }

  .zh-page .what-i-do .section-intro {
    max-width: 100%;
    margin-top: 22px;
    margin-bottom: 0;
    font-size: 15px;
    line-height: 1.75;
  }

  .zh-page .what-i-do .services {
    margin-top: 34px;
  }

  .zh-page .what-i-do .service {
    grid-template-columns: 40px 1fr;
    gap: 14px;
    padding: 22px 0;
  }

    .zh-page .what-i-do .service h3 {
    font-size: 21px;
    line-height: 1.28;
    letter-spacing: -0.025em;
  }
}
/* 中文“关于我”区：手机端 */
@media (max-width: 640px) {
  .zh-page .about {
    display: grid;
    grid-template-columns: 1fr;
    column-gap: 0;
    gap: 18px;

    padding-top: 64px;
    padding-right: 6vw;
    padding-bottom: 82px;
    padding-left: 6vw;
  }

  .zh-page .about-label {
    padding-top: 0;
  }

  .zh-page .about-copy {
    width: 100%;
    max-width: 100%;
  }

  .zh-page .about-copy h2 {
    width: 100%;
    max-width: 100%;
    margin: 0 0 24px;

    font-size: 36px;
    line-height: 1.14;
    letter-spacing: -0.035em;
  }

  .zh-page .about-copy h2 span {
    display: inline;
  }

  .zh-page .about-copy p {
    width: 100%;
    max-width: 100%;

    font-size: 15px;
    line-height: 1.75;
  }

  .zh-page .about-copy p + p {
    margin-top: 22px;
  }

  .zh-page .about-link {
    margin-top: 30px;
  }
}