:root {
  --bg: #090807;
  --bg-raise: #12100e;
  --text: #f4efe6;
  --muted: #b7aea3;
  --faint: #8f877c;
  --gold: #e4cfa6;
  --gold-dim: #a68456;
  --cinnabar: #c4554a;
  --seal: #8e2e2a;
  --line: rgba(228, 207, 166, 0.2);
  --sans: "Outfit", "Segoe UI", sans-serif;
  --display: "Cormorant Garamond", "Noto Serif SC", "Noto Serif TC", serif;
  --cjk: "Noto Serif SC", "Noto Serif TC", "Songti SC", serif;
  --header: 76px;
  --max: 1120px;
  color-scheme: dark;
}

html[lang="zh-Hant"] {
  --cjk: "Noto Serif TC", "Noto Serif SC", "PMingLiU", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1000px 560px at 88% -8%, rgba(156, 59, 50, 0.2), transparent 58%),
    radial-gradient(820px 520px at -12% 18%, rgba(228, 207, 166, 0.08), transparent 52%),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

html[lang^="zh"] body {
  font-family: var(--cjk);
  font-weight: 400;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}

::selection {
  background: var(--gold);
  color: #1a1208;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 16px;
  top: -40px;
  z-index: 80;
  padding: 8px 12px;
  background: var(--gold);
  color: #1a1208;
}

.skip:focus {
  top: 12px;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 5;
  opacity: 0.18;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  background: rgba(9, 8, 7, 0.78);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.header-accent {
  height: 3px;
  background: linear-gradient(90deg, #6e1d1a, #c4554a 42%, #e4cfa6);
}

.header-inner {
  height: var(--header);
  display: flex;
  align-items: center;
  gap: 24px;
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
}

.brand-mark {
  width: 72px;
  height: auto;
  flex: none;
  color: var(--gold);
  overflow: visible;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-text strong {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.brand-text em {
  font-family: var(--sans);
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

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

.nav-links a {
  position: relative;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

html[lang^="zh"] .nav-links a {
  letter-spacing: 0.12em;
  text-transform: none;
  font-size: 15px;
  font-family: var(--cjk);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--text);
}

.nav-links a:hover::after,
.nav-links a.is-active::after {
  transform: scaleX(1);
}

.lang {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
}

.lang button {
  min-width: 36px;
  height: 28px;
  padding: 0 8px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.lang button.is-active {
  background: var(--gold);
  color: #1a1208;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
}

.menu-toggle-lines,
.menu-toggle-lines::before,
.menu-toggle-lines::after {
  display: block;
  width: 18px;
  height: 1px;
  background: var(--text);
  position: relative;
}

.menu-toggle-lines::before,
.menu-toggle-lines::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-toggle-lines::before { top: -6px; }
.menu-toggle-lines::after { top: 6px; }

.menu-toggle[aria-expanded="true"] .menu-toggle-lines {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-lines::before {
  top: 0;
  transform: rotate(40deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-lines::after {
  top: 0;
  transform: rotate(-40deg);
}

.progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
}

.progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--gold);
}

main,
.site-footer {
  position: relative;
  z-index: 1;
}

.hero {
  padding-top: calc(var(--header) + 3px);
}

.hero-grid {
  min-height: calc(100vh - var(--header) - 3px);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: 28px;
  align-items: center;
  padding: 36px 0 64px;
}

.kicker,
.section-index p,
.card-no,
.principle-no,
.line2 {
  font-family: var(--sans);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.kicker {
  margin: 0 0 18px;
  color: var(--gold);
  font-size: 12px;
}

html[lang^="zh"] .kicker,
html[lang^="zh"] .section-index p {
  letter-spacing: 0.18em;
}

.line1 {
  display: block;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(4.4rem, 9vw, 7.5rem);
  line-height: 0.84;
  letter-spacing: -0.03em;
}

.line1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--gold);
}

.line2 {
  display: block;
  margin-top: 18px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.34em;
}

.legal {
  margin: 22px 0 0;
  color: var(--text);
  font-family: var(--cjk);
  font-size: 18px;
}

.lead,
.section-body p,
.card p,
.principle p,
.contact-lead {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.85;
}

.lead {
  max-width: 36rem;
  margin: 18px 0 0;
  color: #ddd6cb;
}

.hero-actions {
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--gold-dim);
  color: var(--gold);
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

html[lang^="zh"] .btn {
  letter-spacing: 0.12em;
  text-transform: none;
  font-family: var(--cjk);
  font-size: 15px;
}

.btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #1a1208;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 42px 0 0;
  padding: 0;
  max-width: 460px;
}

.facts div {
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.facts dt {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
}

.facts dd {
  margin: 6px 0 0;
  font-size: 15px;
}

.emblem-wrap {
  position: relative;
  display: grid;
  justify-items: center;
}

.emblem {
  width: min(460px, 100%);
  height: auto;
  overflow: visible;
  color: var(--text);
}

.emblem-caption {
  font-family: "Outfit", sans-serif;
  font-size: 13px;
  letter-spacing: 0.42em;
  fill: var(--gold);
}

.orbit {
  transform-origin: 240px 240px;
  animation: spin 56s linear infinite;
}

.studio,
.approach,
.principles,
.contact {
  padding: clamp(72px, 11vh, 128px) 0;
  scroll-margin-top: 96px;
}

.studio {
  position: relative;
  border-top: 1px solid var(--line);
}

.watermark {
  position: absolute;
  right: 0;
  top: 46%;
  width: min(42vw, 420px);
  transform: translateY(-50%);
  margin: 0;
  color: rgba(228, 207, 166, 0.1);
  pointer-events: none;
  user-select: none;
}

.watermark svg {
  width: 100%;
  height: auto;
}

.studio-grid,
.section-head {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 24px 40px;
  align-items: start;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 36px 72px;
  align-items: start;
}

.section-index span {
  display: block;
  font-family: var(--display);
  font-size: 42px;
  line-height: 1;
  color: var(--gold);
}

.section-index p {
  margin: 8px 0 0;
  color: var(--faint);
  font-size: 12px;
}

h2,
h3 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.02em;
}

html[lang^="zh"] h2,
html[lang^="zh"] h3,
html[lang^="zh"] .legal,
html[lang^="zh"] .section-body p,
html[lang^="zh"] .card p,
html[lang^="zh"] .principle p,
html[lang^="zh"] .contact-lead {
  font-family: var(--cjk);
  letter-spacing: 0;
}

h2 {
  margin: 0 0 18px;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.08;
}

.section-body p,
.card p,
.principle p {
  margin: 0;
  max-width: 42rem;
}

.section-body p + p {
  margin-top: 16px;
}

.approach {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent 80px);
  border-top: 1px solid var(--line);
}

.section-head {
  margin-bottom: 42px;
}

.approach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.card {
  min-height: 230px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  transition: border-color 0.3s ease;
}

.card:hover {
  border-top-color: var(--gold);
}

.card-no,
.principle-no {
  display: block;
  margin-bottom: 28px;
  color: var(--gold-dim);
  font-size: 12px;
}

.card h3,
.principle h3 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.15;
}

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

.principle-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

.principle {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
}

.principle:last-child {
  border-bottom: 1px solid var(--line);
}

.principle-no {
  margin: 10px 0 0;
  font-size: 13px;
}

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

.contact-lead {
  max-width: 36rem;
}

.mail-link {
  display: inline-block;
  margin-top: 22px;
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--gold);
  border-bottom: 1px solid rgba(228, 207, 166, 0.35);
}

.mail-link:hover {
  border-bottom-color: var(--gold);
}

.form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 0 0;
}

.form .btn {
  align-self: flex-start;
  margin-top: 18px;
}

.field label {
  display: block;
  margin-bottom: 4px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
}

html[lang^="zh"] .field label {
  letter-spacing: 0.12em;
  text-transform: none;
  font-size: 13px;
}

.field input,
.field textarea {
  width: 100%;
  padding: 12px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  outline: none;
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

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

.field-error,
.form-status {
  min-height: 1.2em;
  margin: 6px 0 0;
  font-family: var(--sans);
  font-size: 13px;
}

.field-error {
  color: #f0a8a2;
}

.form-status {
  color: var(--gold);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 36px 0 48px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
}

.footer-brand {
  display: flex;
  gap: 14px;
  align-items: center;
}

.footer-brand strong,
.footer-brand span {
  display: block;
}

.footer-brand strong {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 500;
}

.footer-brand span {
  margin-top: 4px;
  color: var(--muted);
  font-family: var(--cjk);
  font-size: 14px;
}

.footer-domain {
  color: var(--gold);
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.footer-domain:hover {
  color: var(--text);
}

.copyright {
  margin: 0;
  color: var(--faint);
  font-family: var(--sans);
  font-size: 13px;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  animation: rise 0.8s ease forwards;
}

.reveal:nth-child(2) { animation-delay: 0.08s; }
.reveal:nth-child(3) { animation-delay: 0.16s; }

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

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 900px) {
  .hero-grid,
  .studio-grid,
  .section-head,
  .contact-grid,
  .approach-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    min-height: auto;
    padding-top: 48px;
  }

  .watermark {
    display: none;
  }

  .emblem {
    width: min(380px, 88vw);
    margin-inline: auto;
  }

  .form {
    padding-left: 0;
  }

  .line2 {
    letter-spacing: 0.18em;
  }
}

@media (max-width: 760px) {
  .site-header {
    backdrop-filter: none;
  }

  .brand-mark {
    width: 48px;
  }

  .brand-text em {
    display: none;
  }

  .brand-text strong {
    font-size: 18px;
    white-space: nowrap;
  }

  .menu-toggle {
    display: grid;
  }

  .nav-links {
    position: fixed;
    inset: calc(var(--header) + 3px) 0 0 0;
    z-index: 25;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 28px 24px;
    background: #090807;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  .nav-links.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  .nav-links a {
    font-size: 28px;
    letter-spacing: 0;
    text-transform: none;
    padding: 8px 0;
  }

  html[lang^="zh"] .nav-links a {
    font-family: var(--cjk);
    font-size: 32px;
  }

  .facts {
    grid-template-columns: 1fr;
    max-width: none;
  }

  .principle {
    grid-template-columns: 1fr;
    gap: 0;
  }

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

  .line1 {
    font-size: clamp(3.6rem, 18vw, 5.2rem);
  }
}

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

  .orbit,
  .reveal {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .nav-links,
  .nav-links a::after,
  .btn,
  .card {
    transition: none;
  }
}
