@import url('https://fonts.googleapis.com/css2?family=Didact+Gothic&family=Poiret+One&display=swap');

:root {
  --ink: #14172B;
  --ink2: #1B1F38;
  --gold: #C9A227;
  --cream: #F3EDE1;
  --line: rgba(201, 162, 39, 0.34);
  --soft: rgba(201, 162, 39, 0.18);
  --muted: rgba(243, 237, 225, 0.74);
  --r: 10px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Didact Gothic", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.78;
  color: var(--cream);
  background-color: var(--ink);
  background-image:
    radial-gradient(circle at 8% -8%, rgba(201, 162, 39, 0.17), transparent 46%),
    repeating-linear-gradient(115deg, rgba(243, 237, 225, 0.032) 0 1px, transparent 1px 48px);
  background-attachment: fixed;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--cream); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 80;
  padding: 12px 18px;
  background: var(--gold);
  color: var(--ink);
  border-radius: 0 0 var(--r) 0;
}
.skip:focus { left: 6px; top: 6px; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(20, 23, 43, 0.93);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(9px);
}

.nav {
  max-width: 1180px;
  margin: 0 auto;
  padding: 9px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}

.nav-list,
.nav-end {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.nav-list { list-style: none; margin: 0; padding: 0; }

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: 0.06em;
  color: var(--cream);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.pill:hover,
.pill:focus-visible { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.pill--call { border-color: var(--gold); color: var(--gold); }

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 4px 10px;
  font-family: "Poiret One", "Didact Gothic", sans-serif;
  font-size: 1.28rem;
  line-height: 1.2;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-indent: 0.3em;
}
.brand__text { display: inline-block; }

/* ---------- shell ---------- */
.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ---------- hero ---------- */
.hero {
  min-height: 45vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: clamp(14px, 3vw, 26px);
  padding: clamp(26px, 6vw, 54px) 0 18px;
  border-bottom: 1px solid var(--line);
}

.hero__type { max-width: 46ch; text-align: left; }

.hero__title {
  margin: 0;
  font-family: "Poiret One", "Didact Gothic", sans-serif;
  font-weight: 400;
  font-size: clamp(2.3rem, 8.6vw, 4.7rem);
  line-height: 1.04;
  letter-spacing: 0.02em;
  overflow-wrap: anywhere;
  background-image: linear-gradient(104deg, var(--gold) 0%, var(--cream) 46%, var(--gold) 96%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero__title .w { display: inline-block; }
.hero__title .c { display: inline-block; }

.hero__lead {
  margin: 0.65em 0 0;
  max-width: 42ch;
  font-size: 1.02rem;
  color: var(--muted);
}

.hero__fig {
  position: relative;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  background: linear-gradient(160deg, var(--ink2), rgba(20, 23, 43, 0.35));
  will-change: transform;
}
.hero__fig::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 40%;
  background: linear-gradient(90deg, transparent, rgba(201, 162, 39, 0.16), transparent);
  animation: sweep 7s linear infinite;
  pointer-events: none;
}
.hero__img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; }

.hero__plate {
  display: block;
  padding: clamp(20px, 5vw, 40px) 16px;
  font-family: "Poiret One", sans-serif;
  font-size: clamp(1.35rem, 5vw, 2.3rem);
  letter-spacing: 0.45em;
  text-align: center;
  color: rgba(201, 162, 39, 0.55);
}

@keyframes sweep {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(280%); }
}

/* ---------- story ---------- */
.story {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(22px, 4vw, 48px);
  padding: clamp(26px, 5vw, 48px) 0;
}

.story__body {
  min-width: 0;
  counter-reset: sec;
}

.story__body div {
  counter-increment: sec;
  border-top: 1px solid var(--line);
  padding-top: clamp(18px, 3vw, 28px);
  margin: 0 0 clamp(32px, 5vw, 54px);
  scroll-margin-top: 118px;
}
.story__body div:first-child { border-top: 0; padding-top: 0; }

.story__body div::before {
  content: "0" counter(sec);
  display: block;
  margin-bottom: 8px;
  font-family: "Poiret One", sans-serif;
  font-size: 0.86rem;
  letter-spacing: 0.34em;
  color: var(--gold);
  opacity: 0.85;
}

.story__body h2,
.story__body h3 {
  font-family: "Poiret One", "Didact Gothic", sans-serif;
  font-weight: 400;
  color: var(--cream);
  line-height: 1.28;
  letter-spacing: 0.04em;
}
.story__body h2 { font-size: clamp(1.45rem, 3.6vw, 2rem); margin: 0 0 0.7em; }
.story__body h3 { font-size: clamp(1.18rem, 2.8vw, 1.4rem); margin: 1.5em 0 0.5em; }

.story__body h2 > span,
.story__body h3 > span {
  position: relative;
  display: inline-block;
}
.story__body h2 > span::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 2px;
  background-image: linear-gradient(90deg, var(--gold), transparent);
}

.story__body p { margin: 0 0 1.1em; max-width: 64ch; }
.story__body ul,
.story__body ol { margin: 0 0 1.2em; padding-left: 1.3em; max-width: 64ch; }
.story__body li { margin-bottom: 0.45em; }
.story__body li::marker { color: var(--gold); }
.story__body a { border-bottom: 1px solid var(--soft); }
.story__body a:hover { border-bottom-color: var(--gold); }

.story__body figure {
  margin: 1.3em 0;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.story__body figure img { width: 100%; border-radius: calc(var(--r) - 1px); }
.story__body figcaption { padding: 8px 12px; font-size: 0.95rem; color: var(--muted); }
.story__body blockquote {
  margin: 1.3em 0;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-left-width: 3px;
  border-radius: var(--r);
  color: var(--muted);
}
.story__body strong { color: var(--cream); }
.story__body table { width: 100%; border-collapse: collapse; font-size: 16px; }
.story__body th,
.story__body td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }

/* ---------- aside ---------- */
.story__side {
  align-self: start;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: rgba(27, 31, 56, 0.62);
  padding: 14px 15px 12px;
}

.side__t {
  margin: 0 0 8px;
  font-family: "Poiret One", sans-serif;
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: 0.26em;
  color: var(--gold);
}
.side__t > span { display: inline-block; }

.side__list { list-style: none; margin: 0 0 10px; padding: 0; }
.side__list a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 4px 2px;
  font-size: 16px;
  color: var(--cream);
  border-bottom: 1px dashed rgba(201, 162, 39, 0.22);
}
.side__list li:last-child a { border-bottom: 0; }
.side__list a:hover { color: var(--gold); }

.side__top {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 16px;
  letter-spacing: 0.12em;
}

/* ---------- footer ---------- */
.foot {
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding: clamp(26px, 5vw, 46px) 16px 16px;
  background-image: linear-gradient(180deg, transparent, rgba(27, 31, 56, 0.8));
}
.foot > * { max-width: 1148px; margin-left: auto; margin-right: auto; }

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--gold);
  border-radius: var(--r);
  padding: clamp(16px, 4vw, 28px);
  background: rgba(201, 162, 39, 0.06);
}
.cta__big {
  margin: 0;
  font-family: "Poiret One", sans-serif;
  font-size: clamp(1.45rem, 5vw, 2.3rem);
  letter-spacing: 0.26em;
  color: var(--gold);
}
.cta__go {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 18px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  font-size: 16px;
  letter-spacing: 0.14em;
  color: var(--gold);
}
.cta__go:hover { background: var(--gold); color: var(--ink); }

.fcols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
  margin-top: clamp(22px, 4vw, 34px);
}
.fcol h3 {
  margin: 0 0 4px;
  font-family: "Poiret One", sans-serif;
  font-weight: 400;
  font-size: 0.86rem;
  letter-spacing: 0.26em;
  color: var(--gold);
}
.fcol h3 > span { display: inline-block; }
.fcol ol { list-style: none; margin: 0; padding: 0; }
.fcol a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 16px;
  color: var(--cream);
}
.fcol a:hover { color: var(--gold); }

.fbottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
  margin-top: clamp(18px, 4vw, 28px);
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.fbrand {
  font-family: "Poiret One", sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.3em;
  color: var(--gold);
}
.fnav ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px;
  margin: 0;
  padding: 0;
}
.fnav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 8px;
  font-size: 16px;
  color: var(--muted);
}
.fnav a:hover { color: var(--gold); }
.copy { margin: 0; font-size: 0.95rem; letter-spacing: 0.08em; color: var(--muted); }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero__title .c {
    opacity: 0;
    transform: translateY(0.55em) rotate(2.5deg);
    transition: opacity 0.55s ease, transform 0.72s cubic-bezier(0.2, 0.75, 0.2, 1);
  }
  .hero__title.go .c {
    opacity: 1;
    transform: none;
    transition-delay: calc(var(--i) * 0.045s);
  }
  .hero__title.go {
    animation: sheen 9s ease-in-out infinite;
  }
  .rv { opacity: 0; transform: translateY(16px); }
  .rv.in {
    opacity: 1;
    transform: none;
    transition: opacity 0.8s ease, transform 0.8s ease;
  }
}

@keyframes sheen {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__fig::before { animation: none; }
}

/* ---------- breakpoints ---------- */
@media (min-width: 760px) {
  .fcols { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 860px) {
  .nav {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 10px 18px;
  }
  .nav-list--l { justify-self: start; }
  .brand { justify-self: center; }
  .nav-end { justify-self: end; margin-left: auto; }
  .nav-list--l { margin-right: auto; }
  .nav { display: grid; grid-template-columns: 1fr auto 1fr; }
  .nav-list--l { margin-right: 0; }
  .nav-list--r { justify-content: flex-end; }
}

@media (min-width: 900px) {
  .story { grid-template-columns: minmax(0, 1fr) 252px; }
  .hero__fig .hero__img { aspect-ratio: 21 / 8; }
}

@media (min-width: 1080px) {
  .hero__type { max-width: 52ch; }
  .story__body p,
  .story__body ul,
  .story__body ol { max-width: 68ch; }
}

button[aria-expanded]{min-width:44px;min-height:44px}
