:root {
  color-scheme: dark;
  --custom-bg: #050505;
  --custom-panel: #0a0908;
  --custom-text: #f7eedb;
  --custom-muted: rgba(247, 238, 219, 0.64);
  --custom-line: rgba(212, 175, 55, 0.2);
  --custom-gold: #d4af37;
  --custom-red: #7f1714;
  font-family: Inter, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--custom-text); background: var(--custom-bg); }
a { color: inherit; }
button, input, select, textarea { font: inherit; }

.custom-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 10px max(22px, calc((100% - 1180px) / 2));
  border-bottom: 1px solid var(--custom-line);
  background: rgba(5, 5, 5, 0.94);
  backdrop-filter: blur(14px);
}

.custom-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.custom-brand span { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid var(--custom-gold); color: var(--custom-gold); background: #24100e; }
.custom-brand strong { font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.08rem; font-weight: 500; }
.custom-header nav { display: flex; gap: 24px; }
.custom-header nav a { color: var(--custom-muted); font-size: 0.74rem; font-weight: 700; text-decoration: none; }
.custom-header nav a:hover { color: var(--custom-gold); }

.custom-intro { position: relative; min-height: 420px; display: flex; align-items: end; overflow: hidden; }
.custom-intro__image { position: absolute; inset: 0; background: url('/assets/fengyun-photo-motion/fengyun-full.webp') center 47% / cover no-repeat; filter: brightness(.42) contrast(1.12); }
.custom-intro::after { content: ''; position: absolute; inset: 0; background: rgba(5, 5, 5, .24); box-shadow: inset 0 -110px 90px #050505; }
.custom-intro__content { position: relative; z-index: 1; width: min(1180px, calc(100% - 44px)); margin: 0 auto; padding: 72px 0 58px; }
.custom-intro__content p, .custom-brief > p, .custom-track > div > p, .custom-faq > p { margin: 0 0 12px; color: var(--custom-gold); font-size: 0.7rem; font-weight: 800; text-transform: uppercase; }
.custom-intro h1 { max-width: 820px; margin: 0; font-family: "Cormorant Garamond", Georgia, serif; font-size: 4.7rem; font-weight: 500; line-height: 0.98; }
.custom-intro__content > span { display: block; max-width: 720px; margin-top: 20px; color: var(--custom-muted); line-height: 1.7; }
.custom-intro__content > a { display: inline-flex; align-items: center; min-height: 46px; margin-top: 24px; padding: 0 18px; color: #090806; background: var(--custom-gold); font-size: 0.76rem; font-weight: 800; text-decoration: none; }

.custom-workspace { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 54px; width: min(1180px, calc(100% - 44px)); margin: 0 auto; padding: 84px 0 108px; }
.custom-brief { align-self: start; position: sticky; top: 104px; }
.custom-brief h2, .custom-track h2, .custom-faq h2 { margin: 0; font-family: "Cormorant Garamond", Georgia, serif; font-size: 2.75rem; font-weight: 500; line-height: 1.02; }
.custom-brief ol { display: grid; gap: 0; margin: 28px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--custom-line); }
.custom-brief li { display: grid; grid-template-columns: 34px 1fr; gap: 3px 10px; padding: 16px 0; border-bottom: 1px solid var(--custom-line); }
.custom-brief li span { grid-row: 1 / 3; color: var(--custom-gold); font-size: 0.7rem; font-weight: 800; }
.custom-brief li strong { font-size: 0.86rem; }
.custom-brief li small { color: var(--custom-muted); line-height: 1.55; }
.custom-live-summary { display: grid; gap: 6px; margin-top: 22px; padding: 16px; border-left: 3px solid var(--custom-gold); background: rgba(212,175,55,.06); }
.custom-live-summary span { color: var(--custom-gold); font-size: 0.68rem; font-weight: 800; text-transform: uppercase; }
.custom-live-summary strong { font-size: 0.85rem; line-height: 1.5; }

.custom-form { min-width: 0; }
.custom-form fieldset { display: grid; gap: 20px; margin: 0; padding: 0 0 38px; border: 0; border-bottom: 1px solid var(--custom-line); }
.custom-form fieldset + fieldset { padding-top: 38px; }
.custom-form legend { width: 100%; margin-bottom: 20px; padding: 0; font-family: "Cormorant Garamond", Georgia, serif; font-size: 2rem; font-weight: 500; }
.custom-form legend span { margin-right: 10px; color: var(--custom-gold); font: 800 0.72rem Inter, Arial, sans-serif; }
.custom-form-grid, .custom-dimensions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.custom-dimensions { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.custom-form label, .custom-track form label { display: grid; gap: 8px; color: var(--custom-muted); font-size: 0.76rem; font-weight: 700; }
.custom-form input, .custom-form select, .custom-form textarea, .custom-track input { width: 100%; min-height: 48px; padding: 12px 13px; border: 1px solid var(--custom-line); border-radius: 4px; color: var(--custom-text); background: rgba(255,255,255,.035); outline: none; }
.custom-form input:focus, .custom-form select:focus, .custom-form textarea:focus, .custom-track input:focus { border-color: rgba(212,175,55,.7); box-shadow: 0 0 0 3px rgba(212,175,55,.08); }
.custom-form textarea { min-height: 136px; resize: vertical; line-height: 1.6; }
.custom-wide { grid-column: 1 / -1; }
.custom-choice-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.custom-choice-grid label { position: relative; display: grid; align-content: start; min-height: 116px; padding: 16px; border: 1px solid var(--custom-line); cursor: pointer; }
.custom-choice-grid input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.custom-choice-grid label:has(input:checked) { border-color: var(--custom-gold); background: rgba(212,175,55,.08); }
.custom-choice-grid span { color: var(--custom-text); font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.45rem; }
.custom-choice-grid small { margin-top: 8px; color: var(--custom-muted); line-height: 1.45; }
.custom-check { display: flex !important; grid-template-columns: auto 1fr; align-items: start; }
.custom-check input { flex: 0 0 auto; width: 18px; min-height: 18px; margin: 0; }
.custom-honeypot { position: absolute !important; left: -9999px; }
.custom-form-error, #custom-track-error { min-height: 1.2em; margin: 18px 0 0; color: #ff9e92; font-size: 0.8rem; }
.custom-submit, .custom-track button { width: 100%; min-height: 52px; border: 0; border-radius: 4px; color: #090806; background: var(--custom-gold); font-weight: 800; cursor: pointer; }
.custom-submit:disabled, .custom-track button:disabled { opacity: .55; cursor: wait; }

.custom-result { grid-column: 2; padding: 28px; border: 1px solid var(--custom-line); border-left: 3px solid #62c59a; background: rgba(98,197,154,.06); }
.custom-result h2, .custom-track-result h3 { margin: 0; font-family: "Cormorant Garamond", Georgia, serif; font-size: 2rem; font-weight: 500; }
.custom-result code { display: block; margin: 18px 0; padding: 14px; color: #8fe2bd; background: rgba(0,0,0,.35); overflow-wrap: anywhere; }
.custom-result p, .custom-track-result p { color: var(--custom-muted); line-height: 1.65; }
.custom-result div { display: flex; flex-wrap: wrap; gap: 10px; }
.custom-result a { min-height: 42px; padding: 12px 14px; border: 1px solid var(--custom-line); color: var(--custom-gold); text-decoration: none; }

.custom-track { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; width: min(1180px, calc(100% - 44px)); margin: 0 auto; padding: 84px 0; border-top: 1px solid var(--custom-line); }
.custom-track > div > span { display: block; max-width: 500px; margin-top: 18px; color: var(--custom-muted); line-height: 1.6; }
.custom-track form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.custom-track form button, .custom-track form p { grid-column: 1 / -1; }
.custom-track-result { grid-column: 1 / -1; padding: 24px; border-left: 3px solid var(--custom-gold); background: rgba(212,175,55,.06); }
.custom-status-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.custom-status-grid div { display: grid; gap: 5px; padding: 14px; border-top: 1px solid var(--custom-line); }
.custom-status-grid span { color: var(--custom-muted); font-size: .7rem; text-transform: uppercase; }

.custom-faq { width: min(1180px, calc(100% - 44px)); margin: 0 auto; padding: 84px 0 108px; border-top: 1px solid var(--custom-line); }
.custom-faq > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; margin-top: 32px; }
.custom-faq details { padding: 18px 0; border-bottom: 1px solid var(--custom-line); }
.custom-faq summary { color: var(--custom-text); font-weight: 700; cursor: pointer; }
.custom-faq details p { color: var(--custom-muted); line-height: 1.7; }
.custom-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; padding: 28px max(22px, calc((100% - 1180px) / 2)); border-top: 1px solid var(--custom-line); color: var(--custom-muted); font-size: .78rem; }
.custom-footer a { color: var(--custom-gold); text-decoration: none; }

@media (max-width: 900px) {
  .custom-header nav a:not(:last-child) { display: none; }
  .custom-intro h1 { font-size: 3.7rem; }
  .custom-workspace { grid-template-columns: 1fr; }
  .custom-brief { position: static; }
  .custom-result { grid-column: 1; }
  .custom-choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .custom-dimensions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .custom-track { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .custom-header { min-height: 66px; padding: 8px 14px; }
  .custom-brand strong { max-width: 180px; font-size: .9rem; }
  .custom-header nav { display: none; }
  .custom-intro { min-height: 430px; }
  .custom-intro__content { width: calc(100% - 28px); padding-bottom: 42px; }
  .custom-intro h1 { font-size: 3.15rem; }
  .custom-workspace, .custom-track, .custom-faq { width: calc(100% - 28px); padding-top: 62px; padding-bottom: 72px; }
  .custom-form-grid, .custom-dimensions, .custom-choice-grid, .custom-track form, .custom-faq > div, .custom-status-grid { grid-template-columns: 1fr; }
  .custom-wide, .custom-track form button, .custom-track form p { grid-column: auto; }
  .custom-choice-grid label { min-height: 96px; }
  .custom-result { padding: 20px; }
  .custom-footer { flex-direction: column; padding: 24px 14px; }
}
