/* ===================== 1. Reset ===================== */
*,
*::before,
*::after { box-sizing: border-box; }

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

body,
h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol {
  margin: 0;
}

ul, ol { padding: 0; list-style: none; }

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

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

a { color: inherit; }

/* ===================== 2. Tokens ===================== */
:root {
  --deep-blue: #102A43;
  --midnight: #0B1B2B;
  --gold: #F2A33A;
  --amber: #FFC857;
  --warm-white: #FFF8ED;
  --fog-blue: #E6EDF5;
  --teal: #2FB8A6;
  --wine: #7A2E3A;
  --indigo: #3B2E6E;
  --ink: #3E4C59;
  --mist: #B8C7D9;

  --radius-lg: 32px;
  --radius-md: 24px;
  --radius-sm: 14px;
  --pill: 999px;

  --shell: 1240px;
  --gutter: clamp(16px, 4vw, 40px);

  --font-sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;

  --shadow-soft: 0 10px 30px rgba(16, 42, 67, 0.08);
  --shadow-lift: 0 18px 42px rgba(16, 42, 67, 0.16);
  --shadow-gold: 0 10px 26px rgba(242, 163, 58, 0.32);
  --ease: cubic-bezier(0.22, 0.7, 0.3, 1);
}

/* ===================== 3. Base typography ===================== */
body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.8;
  font-weight: 400;
  color: var(--ink);
  background-color: var(--warm-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  color: var(--deep-blue);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

p { text-wrap: pretty; }

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 8px;
}

#main-content { scroll-margin-top: 108px; }

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

/* ===================== 4. Skip link ===================== */
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 999;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--pill);
  background: var(--amber);
  color: var(--midnight);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.24s var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

/* ===================== 5. Header frame ===================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--deep-blue);
  color: var(--warm-white);
  border-bottom: 1px solid rgba(184, 199, 217, 0.22);
  box-shadow: 0 14px 34px rgba(11, 27, 43, 0.22);
}

.site-header::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--amber) 45%, var(--teal) 100%);
  pointer-events: none;
}

.site-header__inner {
  position: relative;
  width: min(100% - 2 * var(--gutter), var(--shell));
  margin-inline: auto;
  padding-block: 14px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px clamp(10px, 2vw, 28px);
}

.site-header__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.site-header__logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 5px 10px 5px 5px;
  border-radius: 18px;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s var(--ease);
}

.site-header__logo:hover {
  background: rgba(255, 248, 237, 0.08);
}

.site-header__mark {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: linear-gradient(145deg, var(--gold), var(--amber));
  color: var(--midnight);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), var(--shadow-gold);
}

.site-header__brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.28;
  min-width: 0;
}

.site-header__brand-line {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--warm-white);
  white-space: nowrap;
}

.site-header__brand-sub {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mist);
  white-space: nowrap;
}

.site-header__utility {
  display: none;
  padding-left: 16px;
  border-left: 1px solid rgba(184, 199, 217, 0.3);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: rgba(255, 248, 237, 0.62);
  white-space: nowrap;
}

/* ===================== 6. Navigation ===================== */
.site-nav {
  flex: 1 1 100%;
  background: var(--midnight);
  max-height: 0;
  overflow: hidden;
  visibility: hidden;
  border-radius: var(--radius-md);
  transition: max-height 0.34s var(--ease), visibility 0.34s var(--ease), border-color 0.2s;
}

.site-nav[data-open="true"] {
  max-height: 78vh;
  overflow-y: auto;
  visibility: visible;
  border: 1px solid rgba(184, 199, 217, 0.24);
  box-shadow: 0 26px 48px rgba(11, 27, 43, 0.45);
}

.site-nav__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px;
}

.site-nav__item { min-width: 0; }

.site-nav__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(255, 248, 237, 0.84);
  text-decoration: none;
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
}

.site-nav__link:hover {
  background: rgba(255, 248, 237, 0.1);
  color: var(--warm-white);
}

.site-nav__link[aria-current="page"] {
  background: var(--gold);
  color: var(--midnight);
  font-weight: 700;
  box-shadow: var(--shadow-gold);
}

.site-nav__item--key .site-nav__link {
  color: var(--amber);
  box-shadow: inset 0 0 0 1px rgba(242, 163, 58, 0.5);
}

.site-nav__item--key .site-nav__link[aria-current="page"] {
  color: var(--midnight);
  box-shadow: var(--shadow-gold);
}

/* ===================== 7. Nav toggle ===================== */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  min-height: 44px;
  padding: 0 16px;
  border-radius: var(--pill);
  border: 1px solid rgba(184, 199, 217, 0.38);
  background: rgba(255, 248, 237, 0.06);
  color: var(--warm-white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  cursor: pointer;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease);
}

.nav-toggle:hover {
  background: rgba(255, 248, 237, 0.14);
  border-color: rgba(242, 163, 58, 0.6);
}

.nav-toggle__bars {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 16px;
}

.nav-toggle__bar {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--amber);
  transition: transform 0.22s var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(3.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  transform: translateY(-3.5px) rotate(-45deg);
}

.nav-toggle__label { line-height: 1; }

/* ===================== 8. Scroll progress ===================== */
.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--amber) 50%, var(--teal) 100%);
  transform: scaleX(var(--progress, 0));
  transform-origin: 0 50%;
  pointer-events: none;
}

/* ===================== 9. Footer ===================== */
.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--deep-blue);
  color: rgba(255, 248, 237, 0.78);
  font-size: 15px;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--amber) 45%, var(--teal) 100%);
  pointer-events: none;
}

.site-footer::after {
  content: "";
  position: absolute;
  top: -180px;
  right: -12%;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(242, 163, 58, 0.22), transparent 66%);
  pointer-events: none;
}

.site-footer__inner {
  position: relative;
  z-index: 1;
  width: min(100% - 2 * var(--gutter), var(--shell));
  margin-inline: auto;
  padding-block: clamp(40px, 6vw, 76px);
  display: grid;
  gap: clamp(28px, 4vw, 56px);
  grid-template-columns: 1fr;
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.site-footer__brand-name {
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--warm-white);
  line-height: 1.2;
}

.site-footer__brand-note {
  font-size: 13px;
  line-height: 1.7;
  letter-spacing: 0.06em;
  color: var(--mist);
  max-width: 30ch;
}

.site-footer__brand-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--pill);
  border: 1px solid rgba(242, 163, 58, 0.55);
  color: var(--amber);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-decoration: none;
  transition: background 0.18s var(--ease), color 0.18s var(--ease), transform 0.18s var(--ease);
}

.site-footer__brand-link:hover {
  background: var(--gold);
  color: var(--midnight);
  transform: translateY(-2px);
}

.site-footer__cols {
  display: grid;
  gap: clamp(22px, 3vw, 36px);
  grid-template-columns: 1fr;
}

.site-footer__col {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.site-footer__col-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}

.site-footer__list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.site-footer__link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 14.5px;
  letter-spacing: 0.03em;
  color: rgba(255, 248, 237, 0.8);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.site-footer__link:hover {
  color: var(--amber);
  border-bottom-color: rgba(255, 200, 87, 0.6);
}

.site-footer__col--contact { gap: 8px; }

.site-footer__contact-line {
  font-size: 13.5px;
  line-height: 1.7;
  letter-spacing: 0.02em;
  color: rgba(255, 248, 237, 0.72);
  overflow-wrap: anywhere;
}

.site-footer__bottom {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(184, 199, 217, 0.18);
}

.site-footer__bottom-inner {
  width: min(100% - 2 * var(--gutter), var(--shell));
  margin-inline: auto;
  padding-block: 20px 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(255, 248, 237, 0.6);
}

.site-footer__icp { margin: 0; }
.site-footer__copy { margin: 0; }

/* ===================== 10. Layout utilities ===================== */
.container {
  width: min(100% - 2 * var(--gutter), var(--shell));
  margin-inline: auto;
}

.section {
  padding-block: clamp(48px, 7vw, 96px);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 66ch;
  margin-bottom: clamp(24px, 3vw, 44px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.display-title {
  font-size: clamp(38px, 7vw, 88px);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--deep-blue);
}

.section-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.15;
}

.lede {
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.85;
  color: var(--ink);
  max-width: 62ch;
}

/* ===================== 11. Breadcrumb ===================== */
.breadcrumb {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink);
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.breadcrumb__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb__item + .breadcrumb__item::before {
  content: "/";
  color: var(--mist);
}

.breadcrumb__link {
  color: var(--deep-blue);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease);
}

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

/* ===================== 12. Buttons & tags ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: var(--pill);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease),
    background 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: linear-gradient(140deg, var(--gold), var(--amber));
  color: var(--midnight);
  box-shadow: var(--shadow-gold);
}

.btn--primary:hover { box-shadow: 0 16px 34px rgba(242, 163, 58, 0.42); }

.btn--ghost {
  background: transparent;
  color: var(--deep-blue);
  border-color: var(--mist);
}

.btn--ghost:hover {
  background: var(--fog-blue);
  border-color: var(--deep-blue);
}

.btn--dark {
  background: var(--deep-blue);
  color: var(--warm-white);
  box-shadow: 0 12px 28px rgba(16, 42, 67, 0.28);
}

.btn--dark:hover { background: var(--midnight); }

.btn--teal {
  background: var(--teal);
  color: var(--midnight);
  box-shadow: 0 12px 26px rgba(47, 184, 166, 0.3);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--pill);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(47, 184, 166, 0.14);
  color: #1B7C71;
}

.tag--gold {
  background: rgba(242, 163, 58, 0.18);
  color: #8A5210;
}

.tag--wine {
  background: rgba(122, 46, 58, 0.12);
  color: var(--wine);
}

/* ===================== 13. Cards & panels ===================== */
.card-grid {
  display: grid;
  gap: clamp(16px, 2vw, 26px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

.card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(20px, 2.4vw, 32px);
  border: 1px solid rgba(184, 199, 217, 0.55);
  border-radius: var(--radius-md);
  background: #FFFFFF;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(242, 163, 58, 0.5);
  box-shadow: var(--shadow-lift);
}

.card--tint { background: var(--fog-blue); }

.card--ink {
  background: var(--deep-blue);
  border-color: rgba(184, 199, 217, 0.28);
  color: rgba(255, 248, 237, 0.8);
}

.card--ink .card__title { color: var(--warm-white); }

.card__title {
  font-size: clamp(19px, 2vw, 23px);
  font-weight: 700;
  line-height: 1.35;
  color: var(--deep-blue);
}

.card__text {
  font-size: 15.5px;
  line-height: 1.78;
  margin: 0;
}

.card__action {
  margin-top: auto;
  padding-top: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
}

.panel {
  padding: clamp(20px, 2.6vw, 36px);
  border: 1px solid rgba(184, 199, 217, 0.6);
  border-radius: var(--radius-lg);
  background: #FFFFFF;
  box-shadow: var(--shadow-soft);
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(47, 184, 166, 0.18);
  vertical-align: middle;
}

/* ===================== 14. Image frames ===================== */
.image-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 200, 87, 0.55), transparent 58%),
    linear-gradient(140deg, var(--deep-blue) 0%, var(--indigo) 62%, var(--teal) 100%);
  box-shadow: var(--shadow-soft);
}

.image-frame--wide { aspect-ratio: 21 / 9; }
.image-frame--tall { aspect-ratio: 4 / 5; }

.image-frame > img,
.image-frame > svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===================== 15. Reveal ===================== */
.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  will-change: opacity, transform;
}

.has-js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.55s var(--ease) var(--reveal-delay, 0ms),
    transform 0.55s var(--ease) var(--reveal-delay, 0ms);
}

/* ===================== 16. Breakpoints ===================== */
@media (min-width: 600px) {
  .site-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 901px) {
  .nav-toggle { display: none; }

  .site-header__utility { display: block; }

  .site-nav {
    flex: 0 1 auto;
    margin-left: auto;
    max-height: none;
    overflow: visible;
    visibility: visible;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    border: 0;
  }

  .site-nav[data-open="true"] {
    max-height: none;
    overflow: visible;
    border: 0;
    box-shadow: none;
  }

  .site-nav__list {
    flex-direction: row;
    align-items: center;
    gap: 4px;
    padding: 0;
  }

  .site-nav__link {
    justify-content: center;
    min-height: 44px;
    padding: 0 15px;
    border-radius: var(--pill);
    font-size: 13.5px;
    letter-spacing: 0.05em;
    box-shadow: none;
  }

  .site-nav__item--key .site-nav__link {
    box-shadow: inset 0 0 0 1px rgba(242, 163, 58, 0.5);
  }
}

@media (min-width: 1000px) {
  .site-footer__inner { grid-template-columns: 0.9fr 2fr; align-items: start; }
  .site-footer__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1180px) {
  .site-header__brand-sub { letter-spacing: 0.24em; }
}

@media (max-width: 420px) {
  .site-header__brand-sub { display: none; }
  .site-header__mark { width: 40px; height: 40px; font-size: 18px; }
}

/* ===================== 17. Reduced motion ===================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .has-js [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }

  .card:hover,
  .btn:hover,
  .site-footer__brand-link:hover {
    transform: none;
  }
}
