:root {
  --ink: #1c242c;
  --ink-soft: rgba(28, 36, 44, 0.72);
  --ink-muted: rgba(28, 36, 44, 0.52);
  --paper: rgba(248, 250, 252, 0.88);
  --paper-strong: rgba(255, 255, 255, 0.94);
  --line: rgba(28, 36, 44, 0.12);
  --accent: #3d5363;
  --accent-hover: #2f4250;
  --accent-soft: rgba(61, 83, 99, 0.1);
  --gold: #9a8b6e;
  --gold-soft: rgba(154, 139, 110, 0.22);
  --ok: #2f6b4f;
  --err: #8b3a3a;
  --shadow: 0 18px 50px rgba(18, 28, 36, 0.18);
  --shadow-lg: 0 28px 80px rgba(18, 28, 36, 0.22);
  --radius: 18px;
  --radius-sm: 12px;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --font-zh: "Noto Sans SC", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 1120px;
  --nav-h: 4.25rem;
  --space-section: clamp(3.5rem, 8vw, 5rem);
  --space-hero-y: clamp(3rem, 10vh, 5.5rem);
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.55;
  background: #7a8a96;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

[hidden] {
  display: none !important;
}

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

.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.bg__mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(255, 255, 255, 0.35), transparent 55%),
    radial-gradient(ellipse 70% 50% at 85% 20%, rgba(154, 139, 110, 0.18), transparent 50%),
    linear-gradient(165deg, #8a9aa6 0%, #7a8a96 35%, #6a7a86 100%);
}

.bg__grain {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.bg__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(248, 250, 252, 0.15) 0%,
    rgba(248, 250, 252, 0.05) 40%,
    rgba(20, 28, 34, 0.12) 100%
  );
}

.shell {
  position: relative;
  z-index: 1;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: var(--nav-h);
  padding: 0.75rem clamp(1rem, 4vw, 2rem);
  background: rgba(248, 250, 252, 0.72);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
}

.nav__brand {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  text-decoration: none;
  color: var(--ink);
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.nav__tag {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 500;
}

.nav__links {
  display: none;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

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

.nav__actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .nav__links {
    display: flex;
  }
}

.btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.82rem 1.25rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  transition: transform 0.2s var(--ease), background 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn--primary {
  background: var(--accent);
  color: #f7fafc;
  box-shadow: 0 8px 24px rgba(47, 66, 80, 0.28);
}

.btn--primary:hover:not(:disabled) {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn--ghost:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.85);
}

.btn--gold {
  background: linear-gradient(135deg, #b5a48a 0%, #9a8b6e 100%);
  color: #fff;
  box-shadow: 0 8px 28px rgba(154, 139, 110, 0.35);
}

.btn--gold:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.btn--block {
  width: 100%;
}

.btn--sm {
  padding: 0.55rem 1rem;
  font-size: 0.84rem;
}

.panel {
  background: var(--paper);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.display {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: 0.01em;
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.76rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-muted);
}

.lede {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 300;
  color: var(--ink-soft);
  max-width: 38ch;
  line-height: 1.65;
}

.fields {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.field__label {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper-strong);
  color: var(--ink);
  padding: 0.78rem 0.9rem;
  font: inherit;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field textarea {
  min-height: 5rem;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(61, 83, 99, 0.45);
  box-shadow: 0 0 0 3px rgba(61, 83, 99, 0.12);
}

.field--row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

@media (max-width: 520px) {
  .field--row {
    grid-template-columns: 1fr;
  }
}

.status {
  margin: 0;
  min-height: 1.2em;
  font-size: 0.86rem;
  color: var(--ink-soft);
}

.status.is-error {
  color: var(--err);
}

.status.is-ok {
  color: var(--ok);
}

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

.reveal {
  opacity: 0;
  transform: translateY(14px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

.reveal--delay-1.is-visible {
  transition-delay: 0.08s;
}

.reveal--delay-2.is-visible {
  transition-delay: 0.15s;
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.site-footer {
  padding: 2.5rem clamp(1rem, 4vw, 2rem) 3rem;
  text-align: center;
  color: rgba(248, 250, 252, 0.85);
  font-size: 0.86rem;
}

.site-footer a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.site-footer__brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 0.35rem;
  color: #fff;
}

.site-footer__copy {
  margin: 0;
  opacity: 0.85;
}
