/* ---- Reset & base ---- */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --ink: #172559;
  --ink-deep: #0B1230;
  --gold: #B9821A;
  --gold-bright: #E3A927;
  --gold-ink: #8C6614;
  --paper: #FAF6EC;
  --paper-alt: #F1EAD6;
  --slate: #4E5578;
  --line: #E1D8BC;
  --line-on-dark: rgba(227, 169, 39, 0.28);

  --max-width: 1180px;
  --space-s: 12px;
  --space-m: 24px;
  --space-l: 48px;
  --space-xl: 96px;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

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

h1, h2, h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-optical-sizing: auto;
  font-weight: 600;
  line-height: 1.15;
  text-wrap: balance;
  color: var(--ink);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink-deep);
  color: var(--paper);
  padding: 12px 20px;
  z-index: 200;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
}

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 236, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 43px;
  width: auto;
  display: block;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav a {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

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

.nav-cta {
  background: var(--ink);
  color: var(--paper) !important;
  padding: 9px 20px;
  border-radius: 2px;
  font-weight: 600;
}

.nav-cta:hover { background: var(--gold); color: var(--ink-deep) !important; }

.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
}

.lang-btn {
  background: none;
  border: none;
  padding: 0;
  font-family: 'Public Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--slate);
  cursor: pointer;
  transition: color 0.2s ease;
}

.lang-btn:hover { color: var(--gold-ink); }

.lang-btn[aria-pressed="true"] {
  color: var(--ink);
  font-weight: 700;
}

.lang-sep {
  color: var(--line);
  font-size: 0.85rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
}

/* ---- Hero ---- */
.hero {
  padding: 132px 0 0;
  text-align: center;
}

.hero-inner {
  max-width: 760px;
  animation: rise 0.8s ease both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.eyebrow {
  color: var(--gold-ink);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 600;
  margin-bottom: 22px;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--slate);
  max-width: 620px;
  margin: 0 auto 38px;
}

/* Chinese: avoid breaking mid-word, but never let an unbreakable run overflow
   the column (text-wrap: balance was tried here but overflowed on real
   mobile Chrome, so this sticks to long-supported properties). */
html[lang^="zh"] .hero-sub {
  max-width: 520px;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.btn {
  display: inline-block;
  padding: 15px 34px;
  border-radius: 2px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
}

.btn-primary:hover {
  background: var(--ink-deep);
  transform: translateY(-1px);
}

.btn-gold {
  background: var(--gold-bright);
  color: var(--ink-deep);
}
.btn-gold:hover {
  background: var(--gold);
  transform: translateY(-1px);
}

.hero-graphic {
  margin-top: 56px;
  width: 100%;
  overflow: hidden;
}
.hero-graphic svg {
  display: block;
  width: 100%;
  height: 130px;
}
.signal {
  fill: none;
  stroke: var(--line);
  stroke-width: 1.5;
}
.converge {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.5;
  opacity: 0.55;
}
.channel {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.5;
  stroke-dasharray: 500;
  stroke-dashoffset: 500;
  animation: draw 1.4s 0.4s ease forwards;
}
.channel-b { stroke: var(--gold-bright); animation-delay: 0.6s; }
@keyframes draw {
  to { stroke-dashoffset: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .channel { stroke-dashoffset: 0; animation: none; }
}

/* ---- Philosophy ---- */
.philosophy {
  padding: var(--space-xl) 0;
}
.philosophy-inner {
  max-width: 740px;
  text-align: center;
}
.pull-quote {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  line-height: 1.5;
  color: var(--ink);
}
.philosophy .lead {
  margin-top: 26px;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--gold-ink);
}

/* ---- Sections ---- */
.section {
  padding: var(--space-xl) 0;
}

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

.section-title {
  font-size: 2rem;
  margin-bottom: 16px;
  text-align: center;
}

.section-title-left {
  text-align: left;
}

.section-intro {
  text-align: center;
  color: var(--slate);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto 56px;
}

/* ---- About ---- */
.about-grid {
  display: grid;
  grid-template-columns: 220px 1.3fr 1fr;
  gap: 48px;
  align-items: start;
}

.about-portrait img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid var(--line);
}

.about-text p {
  margin-bottom: 16px;
  color: var(--slate);
}

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

.credential {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.credential dt {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
}

.credential dd {
  margin-top: 4px;
  color: var(--slate);
  font-size: 0.92rem;
}

/* ---- Strips (channel-strip service layout) ---- */
.strips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.strip {
  padding: 8px 32px;
  border-left: 1px solid var(--line);
}
.strip:first-child {
  border-left: none;
  padding-left: 0;
}
.strip:last-child {
  padding-right: 0;
}

.strip-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin-bottom: 14px;
}

.strip h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.strip p {
  color: var(--slate);
  font-size: 0.98rem;
  margin-bottom: 6px;
}
.strip p:last-child {
  margin-bottom: 0;
}

.services-engagement {
  margin: 48px auto 0;
  max-width: 620px;
  text-align: center;
  color: var(--slate);
  font-size: 1.05rem;
  text-wrap: balance;
}

.services-close {
  margin-top: 40px;
  padding-top: 44px;
  border-top: 1px solid var(--line);
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.2rem;
  font-style: italic;
  color: var(--ink);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ---- Contact ---- */
.contact {
  background: var(--ink-deep);
  color: var(--paper);
}

.contact-inner {
  max-width: 640px;
}

.section-title-on-dark {
  color: var(--paper);
}
.section-intro-on-dark {
  color: #B7BCD9;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px 28px;
  margin-top: 20px;
}

.field {
  display: flex;
  flex-direction: column;
}

.field-full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #9BA2C6;
  margin-bottom: 8px;
}

.field input,
.field textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-on-dark);
  color: var(--paper);
  font-family: 'Public Sans', sans-serif;
  font-size: 1rem;
  padding: 8px 2px;
  resize: vertical;
  transition: border-color 0.2s ease;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--gold-bright);
}

.field-submit {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 8px;
}

.form-status {
  font-size: 0.9rem;
  color: #9BA2C6;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--paper-alt);
  color: var(--slate);
  padding: 44px 0;
  border-top: 1px solid var(--line);
}

.footer-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.logo-mark-footer {
  width: 36px;
  height: 36px;
  margin-bottom: 4px;
}

.footer-tagline {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  color: var(--ink);
}

.footer-copy {
  font-size: 0.85rem;
}

/* ---- Privacy notice page ---- */
.legal {
  padding: 64px 0 var(--space-xl);
}

.legal-inner {
  max-width: 800px;
}

.legal h1 {
  font-size: 2.4rem;
  margin-bottom: 8px;
}

.legal-meta {
  color: var(--slate);
  font-size: 0.92rem;
  margin-bottom: 32px;
}

.legal h2 {
  font-size: 1.35rem;
  margin: 36px 0 10px;
}

.legal p,
.legal li {
  color: var(--slate);
}

.legal p,
.legal ul,
.legal address {
  margin-bottom: 14px;
}

.legal ul {
  padding-left: 1.2em;
}

.legal li {
  margin-bottom: 8px;
}

.legal li strong {
  color: var(--ink);
}

.legal address {
  font-style: normal;
  color: var(--ink);
  border-left: 2px solid var(--gold);
  padding-left: 16px;
}

.legal a {
  color: var(--gold-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---- Privacy links on the home page ---- */
.form-privacy {
  grid-column: 1 / -1;
  font-size: 0.85rem;
  color: #9BA2C6;
  margin-top: -8px;
}

.form-privacy a {
  color: var(--gold-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-privacy a {
  font-size: 0.85rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-privacy a:hover {
  color: var(--gold-ink);
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-portrait {
    max-width: 240px;
  }
  .strips {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .strip {
    border-left: none;
    padding: 24px 0 0;
    border-top: 1px solid var(--line);
  }
  .strip:first-child {
    padding-top: 0;
    border-top: none;
  }
  .contact-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 28px 24px;
    gap: 18px;
    display: none;
  }
  .nav.open { display: flex; }
  .header-inner {
    display: grid;
    grid-template-columns: auto 1fr auto 1fr auto;
    align-items: center;
  }
  .header-right {
    display: contents;
  }
  .logo {
    grid-column: 3;
    grid-row: 1;
  }
  .nav-toggle {
    display: flex;
    grid-column: 1;
    grid-row: 1;
  }
  .lang-switch {
    grid-column: 5;
    grid-row: 1;
    flex-direction: column;
    align-items: flex-end;
    gap: 1px;
  }
  .lang-sep { display: none; }
  .lang-btn { font-size: 0.72rem; line-height: 1.3; white-space: nowrap; }
  .hero { padding: 96px 0 0; }
  .section { padding: 64px 0; }
  .logo-word-light { display: block; }
}
