:root{
  --deep:#0B2239;
  --deep-2:#123A5A;
  --deep-3:#16455F;
  --tide:#2D7C8A;
  --gold:#D9A441;
  --gold-soft:#F4E3BC;
  --coral:#C85336;
  --paper:#FBF8F1;
  --warm:#EDE7DC;
  --gray:#7A7166;
  --ink:#1B232B;

  --line:rgba(11,34,57,.16);
  --line-soft:rgba(11,34,57,.09);
  --line-strong:rgba(11,34,57,.34);
  --line-gold:rgba(217,164,65,.55);
  --line-light:rgba(244,227,188,.18);

  --font-head:"HarmonyOS Sans SC","Source Han Sans SC","PingFang SC","Hiragino Sans GB","Microsoft YaHei",system-ui,sans-serif;
  --font-body:"Source Han Serif SC","Songti SC","STSong","Noto Serif SC",Georgia,"Times New Roman",serif;
  --font-mono:"JetBrains Mono","IBM Plex Mono",ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;

  --shell:1180px;
  --gap:clamp(1.2rem,2.4vw,2.2rem);
  --section-y:clamp(2.8rem,6vw,5.4rem);
}

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

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

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

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

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

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

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

table{border-collapse:collapse;width:100%;}

:focus-visible{
  outline:2px solid var(--gold);
  outline-offset:3px;
}

::selection{
  background:var(--gold-soft);
  color:var(--deep);
}

body{
  background:var(--paper);
  color:var(--ink);
  font-family:var(--font-body);
  font-size:17px;
  line-height:1.85;
  letter-spacing:.01em;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  overflow-x:hidden;
}

h1,h2,h3,h4,h5,h6{
  font-family:var(--font-head);
  font-weight:700;
  line-height:1.2;
  letter-spacing:-.015em;
  color:var(--deep);
}

h1{font-size:clamp(2.2rem,5.6vw,4rem);}
h2{font-size:clamp(1.6rem,3.2vw,2.4rem);}
h3{font-size:clamp(1.15rem,1.8vw,1.4rem);}

p{max-width:68ch;}

strong{font-weight:700;color:var(--deep);}

.mono{
  font-family:var(--font-mono);
  font-variant-numeric:tabular-nums;
  letter-spacing:.08em;
}

.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;
}

.container{
  width:min(var(--shell),100% - 2.4rem);
  margin-inline:auto;
}

@media (max-width:560px){
  .container{width:min(var(--shell),100% - 1.6rem);}
}

.section{padding-block:var(--section-y);}

.kicker{
  display:inline-flex;
  align-items:center;
  gap:.7rem;
  font-family:var(--font-mono);
  font-size:.6875rem;
  letter-spacing:.22em;
  text-transform:uppercase;
  color:var(--tide);
}

.kicker::before{
  content:"";
  width:2rem;
  height:1px;
  background:var(--gold);
  flex:0 0 auto;
}

.section-title{
  font-family:var(--font-head);
  font-size:clamp(1.85rem,3.4vw,2.75rem);
  font-weight:700;
  letter-spacing:-.025em;
  line-height:1.18;
  color:var(--deep);
}

.lede{
  font-family:var(--font-body);
  font-size:clamp(1.0625rem,1.3vw,1.1875rem);
  line-height:1.9;
  color:#3A444F;
  max-width:42em;
}

.prose{max-width:70ch;}
.prose > * + *{margin-top:1.05em;}
.prose h2{margin-top:2.2em;font-size:clamp(1.4rem,2.2vw,1.85rem);}
.prose h3{margin-top:1.7em;font-size:1.15rem;letter-spacing:0;}
.prose ul,.prose ol{margin-block:1em;padding-left:1.35em;}
.prose ul{list-style:square;}
.prose ol{list-style:decimal;}
.prose li + li{margin-top:.45em;}
.prose a{
  color:var(--tide);
  border-bottom:1px solid rgba(45,124,138,.4);
  transition:color .25s ease,border-color .25s ease;
}
.prose a:hover{color:var(--deep);border-bottom-color:var(--deep);}
.prose blockquote{
  border-left:2px solid var(--gold);
  padding-left:1.2em;
  color:var(--gray);
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.5rem;
  min-height:2.9rem;
  padding:.62rem 1.5rem;
  font-family:var(--font-head);
  font-size:.9375rem;
  font-weight:600;
  letter-spacing:.04em;
  line-height:1.3;
  border:1px solid transparent;
  border-radius:0;
  text-align:center;
  transition:background .28s ease,color .28s ease,border-color .28s ease;
}

.btn-primary{background:var(--coral);color:#fff;}
.btn-primary:hover{background:#AE4329;}

.btn-gold{background:var(--gold);color:var(--deep);}
.btn-gold:hover{background:#C4922F;}

.btn-ghost{border-color:var(--line-strong);color:var(--deep);background:transparent;}
.btn-ghost:hover{border-color:var(--deep);background:rgba(11,34,57,.06);}

.btn-on-dark{border-color:rgba(244,227,188,.5);color:var(--gold-soft);}
.btn-on-dark:hover{background:rgba(244,227,188,.12);border-color:var(--gold);color:#fff;}

.breadcrumbs{
  font-family:var(--font-mono);
  font-size:.6875rem;
  letter-spacing:.1em;
  color:var(--gray);
  margin-bottom:1.6rem;
}
.breadcrumbs ol{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;}
.breadcrumbs li + li::before{
  content:"/";
  margin-right:.5rem;
  color:var(--line-strong);
}
.breadcrumbs a{
  color:var(--tide);
  border-bottom:1px solid rgba(45,124,138,.35);
  transition:color .25s ease,border-color .25s ease;
}
.breadcrumbs a:hover{color:var(--deep);border-bottom-color:var(--deep);}
.breadcrumbs [aria-current="page"]{color:var(--deep);}

.grid{display:grid;gap:var(--gap);}
.grid-2{grid-template-columns:1fr;}
@media (min-width:780px){
  .grid-2{grid-template-columns:repeat(2,1fr);}
}

.media-frame{
  position:relative;
  display:block;
  overflow:hidden;
  margin:0;
  border:1px solid var(--line);
  background:
    linear-gradient(150deg,rgba(11,34,57,.10) 0%,rgba(45,124,138,.18) 48%,rgba(217,164,65,.22) 100%),
    var(--warm);
  isolation:isolate;
}

.media-frame::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:0;
  pointer-events:none;
  opacity:.75;
  background-image:
    linear-gradient(to right,rgba(11,34,57,.10) 1px,transparent 1px),
    linear-gradient(to bottom,rgba(11,34,57,.10) 1px,transparent 1px);
  background-size:48px 48px;
}

.media-frame img{
  position:relative;
  z-index:1;
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}

.media-frame svg,
.media-frame picture,
.media-frame video{
  position:relative;
  z-index:1;
  display:block;
  width:100%;
  height:100%;
}

.media-frame--wide{aspect-ratio:16 / 9;}
.media-frame--photo{aspect-ratio:4 / 3;}
.media-frame--square{aspect-ratio:1 / 1;}
.media-frame--tall{aspect-ratio:3 / 4;}

.media-frame figcaption{
  position:absolute;
  left:0;bottom:0;
  z-index:2;
  padding:.45rem .8rem;
  background:rgba(11,34,57,.82);
  color:var(--gold-soft);
  font-family:var(--font-mono);
  font-size:.625rem;
  letter-spacing:.12em;
}

.skip-link{
  position:fixed;
  top:-100px;
  left:.75rem;
  z-index:300;
  padding:.7rem 1.2rem;
  background:var(--gold);
  color:var(--deep);
  font-family:var(--font-head);
  font-size:.875rem;
  font-weight:600;
  letter-spacing:.04em;
  transition:top .2s ease;
}
.skip-link:focus{top:.75rem;}

.site-header{
  position:sticky;
  top:0;
  z-index:100;
  background:linear-gradient(135deg,var(--deep) 0%,var(--deep-2) 58%,var(--deep-3) 100%);
  color:var(--paper);
  border-bottom:1px solid rgba(217,164,65,.45);
  box-shadow:0 14px 34px -28px rgba(11,34,57,.95);
}

.header-shell{
  width:min(var(--shell),100% - 2.4rem);
  margin-inline:auto;
}

.header-top{
  display:flex;
  align-items:center;
  gap:1.4rem;
  padding:.85rem 0 .8rem;
  transition:padding .32s ease;
}

.brand{
  display:flex;
  align-items:center;
  gap:.75rem;
  flex:0 0 auto;
  min-width:0;
}

.brand-mark{
  display:grid;
  place-items:center;
  flex:0 0 auto;
  width:40px;
  height:40px;
  background:var(--gold);
  color:var(--deep);
  font-family:var(--font-head);
  font-size:1.0625rem;
  font-weight:700;
  line-height:1;
  box-shadow:inset 0 0 0 1px rgba(11,34,57,.22);
}

.brand-text{
  display:flex;
  flex-direction:column;
  min-width:0;
  line-height:1.18;
}

.brand-name{
  font-family:var(--font-head);
  font-size:1.0625rem;
  font-weight:700;
  letter-spacing:.02em;
  color:var(--paper);
  white-space:nowrap;
}

.brand-sub{
  display:block;
  max-height:1.4rem;
  overflow:hidden;
  font-family:var(--font-mono);
  font-size:.625rem;
  letter-spacing:.14em;
  color:rgba(244,227,188,.68);
  transition:opacity .26s ease,max-height .26s ease;
}

.version-scale{
  display:flex;
  align-items:center;
  gap:.9rem;
  flex:1 1 auto;
  min-width:0;
  padding:0 .4rem;
}

.version-scale-label{
  flex:0 0 auto;
  font-size:.625rem;
  letter-spacing:.2em;
  color:var(--gold);
  white-space:nowrap;
}

.version-scale-track{
  display:block;
  flex:1 1 auto;
  min-width:40px;
  height:10px;
  border-bottom:1px solid rgba(244,227,188,.5);
  background-image:repeating-linear-gradient(
    90deg,
    rgba(244,227,188,.62) 0 1px,
    transparent 1px 16px
  );
}

.header-utility{
  display:flex;
  align-items:center;
  gap:.7rem;
  margin-left:auto;
  flex:0 0 auto;
}

.utility-link{
  display:inline-flex;
  align-items:center;
  padding:.42rem .9rem;
  border:1px solid rgba(244,227,188,.4);
  color:var(--gold-soft);
  font-family:var(--font-head);
  font-size:.8125rem;
  letter-spacing:.06em;
  transition:background .25s ease,border-color .25s ease,color .25s ease;
}
.utility-link:hover{
  background:rgba(244,227,188,.12);
  border-color:var(--gold);
  color:#fff;
}

.nav-toggle{
  display:none;
  align-items:center;
  gap:.5rem;
  padding:.42rem .7rem;
  border:1px solid rgba(244,227,188,.4);
  color:var(--gold-soft);
  font-family:var(--font-mono);
  font-size:.625rem;
  letter-spacing:.16em;
  line-height:1;
  transition:border-color .25s ease,background .25s ease;
}
.nav-toggle:hover{border-color:var(--gold);background:rgba(244,227,188,.1);}

.nav-toggle-bars{
  display:flex;
  flex-direction:column;
  gap:4px;
  width:16px;
}
.nav-toggle-bars i{
  display:block;
  height:1px;
  background:currentColor;
  transition:transform .25s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:first-child{
  transform:translateY(2.5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:last-child{
  transform:translateY(-2.5px) rotate(-45deg);
}

.site-nav{
  border-top:1px solid rgba(244,227,188,.16);
}

.nav-list{
  display:flex;
  flex-wrap:wrap;
  align-items:stretch;
}

.nav-item{position:relative;}

.nav-link{
  display:block;
  padding:.72rem 1.05rem;
  font-family:var(--font-head);
  font-size:.9375rem;
  letter-spacing:.04em;
  color:rgba(251,248,241,.78);
  border-bottom:2px solid transparent;
  transition:color .25s ease,border-color .25s ease,background .25s ease;
}
.nav-link:hover{
  color:var(--paper);
  background:rgba(244,227,188,.09);
}
.nav-link[aria-current="page"]{
  color:var(--gold);
  border-bottom-color:var(--gold);
}

@media (min-width:900px){
  .nav-list{margin-left:-1.05rem;}
}

.scroll-progress{
  position:absolute;
  left:0;
  bottom:-1px;
  width:100%;
  height:2px;
  transform:scaleX(0);
  transform-origin:0 50%;
  background:linear-gradient(90deg,var(--gold) 0%,var(--coral) 100%);
  pointer-events:none;
}

.site-header.is-condensed .header-top{padding:.42rem 0 .4rem;}
.site-header.is-condensed .brand-sub{opacity:0;max-height:0;}
.site-header.is-condensed .brand-mark{width:34px;height:34px;font-size:.9375rem;}

@media (max-width:899px){
  .version-scale{display:none;}

  .nav-toggle{display:inline-flex;}

  .brand-name{font-size:1rem;}

  .site-nav{
    visibility:hidden;
    max-height:0;
    overflow:hidden;
    opacity:0;
    transition:max-height .38s ease,opacity .28s ease;
  }
  .site-nav[data-open="true"]{
    visibility:visible;
    max-height:28rem;
    opacity:1;
  }

  .nav-list{flex-direction:column;}
  .nav-link{
    padding:.8rem .15rem;
    border-bottom:1px solid rgba(244,227,188,.14);
  }
  .nav-link[aria-current="page"]{
    border-bottom-color:rgba(217,164,65,.55);
    background:rgba(244,227,188,.07);
  }
}

@media (max-width:420px){
  .brand-sub{display:none;}
  .utility-link{padding:.4rem .6rem;font-size:.75rem;}
}

#main-content{scroll-margin-top:9rem;}

.site-footer{
  background:linear-gradient(180deg,var(--deep) 0%,#091B2D 100%);
  color:rgba(251,248,241,.78);
  font-family:var(--font-head);
  font-size:.9375rem;
  line-height:1.7;
}

.footer-scale{
  background:var(--deep-2);
  border-bottom:1px solid var(--line-light);
}

.footer-scale-inner{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:.7rem 1.6rem;
  padding:.9rem 0;
}

.footer-scale-label{
  font-size:.625rem;
  letter-spacing:.2em;
  color:var(--gold);
  white-space:nowrap;
}

.footer-nav-list{
  display:flex;
  flex-wrap:wrap;
  gap:.4rem 1.7rem;
}

.footer-nav-link{
  display:inline-block;
  font-size:.875rem;
  letter-spacing:.03em;
  color:rgba(251,248,241,.82);
  padding-bottom:1px;
  border-bottom:1px solid transparent;
  transition:color .25s ease,border-color .25s ease;
}
.footer-nav-link:hover{
  color:var(--gold);
  border-bottom-color:var(--gold);
}

.footer-grid{
  display:grid;
  gap:2.4rem var(--gap);
  grid-template-columns:1fr;
  padding:3rem 0 2.4rem;
}

@media (min-width:640px){
  .footer-grid{grid-template-columns:1fr 1fr;}
}

@media (min-width:980px){
  .footer-grid{grid-template-columns:1.05fr 1.4fr .85fr;}
}

.footer-brand{
  display:inline-block;
  font-family:var(--font-head);
  font-size:1.25rem;
  font-weight:700;
  letter-spacing:.02em;
  color:var(--paper);
  border-bottom:1px solid transparent;
  transition:border-color .25s ease,color .25s ease;
}
.footer-brand:hover{color:var(--gold-soft);border-bottom-color:var(--gold);}

.footer-brand-note{
  margin-top:.7rem;
  font-family:var(--font-mono);
  font-size:.6875rem;
  letter-spacing:.14em;
  color:rgba(244,227,188,.6);
  max-width:22em;
}

.footer-heading{
  margin-bottom:1.05rem;
  font-family:var(--font-mono);
  font-size:.625rem;
  font-weight:500;
  letter-spacing:.22em;
  text-transform:uppercase;
  color:var(--gold);
}

.footer-contact{display:flex;flex-direction:column;gap:.85rem;}

.footer-contact-item{
  display:flex;
  flex-direction:column;
  gap:.1rem;
}

.contact-label{
  font-size:.625rem;
  letter-spacing:.16em;
  color:rgba(244,227,188,.55);
}

.contact-value{
  font-family:var(--font-head);
  font-size:.9375rem;
  color:var(--paper);
  overflow-wrap:anywhere;
}

.footer-links li + li{margin-top:.6rem;}

.footer-links a{
  display:inline-block;
  font-size:.9375rem;
  color:rgba(251,248,241,.8);
  padding-bottom:1px;
  border-bottom:1px solid transparent;
  transition:color .25s ease,border-color .25s ease;
}
.footer-links a:hover{
  color:var(--gold);
  border-bottom-color:var(--gold);
}

.footer-note-band{
  border-top:1px solid var(--line-light);
  padding:1.15rem 0;
}

.footer-note-band p{
  max-width:74ch;
  font-family:var(--font-body);
  font-size:.8125rem;
  line-height:1.85;
  color:rgba(251,248,241,.62);
}

.footer-bottom{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:.6rem 1.6rem;
  padding:1rem 0 1.9rem;
  border-top:1px solid var(--line-light);
  font-family:var(--font-mono);
  font-size:.6875rem;
  letter-spacing:.1em;
  color:rgba(251,248,241,.55);
}

.footer-bottom-line{color:rgba(244,227,188,.72);}

.footer-legal{
  display:inline-flex;
  flex-wrap:wrap;
  align-items:center;
  gap:.5rem;
}
.footer-legal a{
  color:rgba(251,248,241,.72);
  border-bottom:1px solid transparent;
  transition:color .25s ease,border-color .25s ease;
}
.footer-legal a:hover{color:var(--gold);border-bottom-color:var(--gold);}

.footer-icp{color:rgba(251,248,241,.58);}

.footer-copy{color:rgba(251,248,241,.45);}

[data-reveal]{
  transition:opacity .68s cubic-bezier(.22,.61,.36,1),transform .68s cubic-bezier(.22,.61,.36,1);
  transition-delay:var(--reveal-delay,0ms);
}

.reveal-ready [data-reveal]:not(.is-visible){
  opacity:0;
  transform:translate3d(0,20px,0);
}

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

  *,
  *::before,
  *::after{
    animation-duration:.001ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.001ms !important;
    transition-delay:0ms !important;
  }

  [data-reveal],
  .reveal-ready [data-reveal]:not(.is-visible){
    opacity:1 !important;
    transform:none !important;
    transition:none !important;
  }

  .scroll-progress{display:none;}
}
