@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;700;900&display=swap');

:root {
  --paper: #ffffff;
  --fog: #f5f5f5;
  --ink: #1f1f1f;
  --mute: #6d6d6d;
  --line: #e3e3e3;
  --el1: 0 1px 2px rgba(31, 31, 31, .07), 0 0 0 1px rgba(31, 31, 31, .03);
  --el2: 0 6px 16px rgba(31, 31, 31, .09), 0 1px 2px rgba(31, 31, 31, .06);
  --el3: 0 18px 40px rgba(31, 31, 31, .14), 0 4px 10px rgba(31, 31, 31, .07);
  --el4: 0 34px 80px rgba(31, 31, 31, .2), 0 10px 24px rgba(31, 31, 31, .1);
  --rail: 88px;
  --r: 10px;
}

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

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

body {
  margin: 0;
  padding-left: var(--rail);
  background: var(--paper);
  color: var(--ink);
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  font-size: 17px;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }

a { color: inherit; }

.rail {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--rail);
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 0 18px;
  background: rgba(255, 255, 255, .8);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-right: 1px solid var(--line);
  box-shadow: var(--el2);
}

.rail-set {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.rail-link {
  display: block;
  min-height: 44px;
  padding: 14px 6px;
  border-radius: 8px;
  color: var(--ink);
  font-size: 14px;
  letter-spacing: .14em;
  text-decoration: none;
  writing-mode: vertical-rl;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.rail-link:hover,
.rail-link:focus-visible {
  background: var(--fog);
  box-shadow: var(--el1);
  transform: translateY(-2px);
}

.rail-brand {
  margin: auto 0;
  padding: 14px 4px;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: .24em;
  text-decoration: none;
  writing-mode: vertical-rl;
  z-index: 2;
}

.burger {
  margin-top: 16px;
  width: 52px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: var(--r);
  background: var(--ink);
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  letter-spacing: .1em;
  cursor: pointer;
  box-shadow: var(--el3);
  transition: transform .2s ease, box-shadow .2s ease;
}

.burger:hover { transform: translateY(-2px); box-shadow: var(--el4); }

.panel {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 68px 22px;
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}

.panel[data-open="1"] { opacity: 1; visibility: visible; }

.panel-nav { display: flex; flex-direction: column; gap: 2px; }

.panel-link {
  display: flex;
  gap: 16px;
  align-items: baseline;
  padding: 8px 14px;
  border-radius: var(--r);
  font-size: clamp(22px, 4.6vw, 36px);
  font-weight: 900;
  letter-spacing: -.01em;
  text-decoration: none;
  transition: background .2s ease, transform .2s ease;
}

.panel-link:hover { background: var(--fog); transform: translateX(6px); }

.panel-num {
  font-size: 12px;
  font-weight: 700;
  color: var(--mute);
  letter-spacing: .18em;
}

.panel-x {
  position: absolute;
  top: 18px;
  right: 18px;
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: var(--r);
  background: var(--ink);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  letter-spacing: .1em;
  cursor: pointer;
  box-shadow: var(--el3);
}

.stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 0 34px;
  position: relative;
}

.hero {
  grid-column: 1 / -1;
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: flex-end;
  margin-left: calc(-1 * var(--rail));
  padding: 0 0 104px;
  overflow: hidden;
  isolation: isolate;
  border-radius: 0 0 var(--r) 0;
  background: var(--fog);
}

.hero-media {
  position: absolute;
  inset: -12% 0 -12% 0;
  z-index: -3;
  will-change: transform;
}

.hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero--flat .hero-media { display: none; }
.hero--flat { background: linear-gradient(158deg, #ffffff 0%, #f5f5f5 46%, #e4e4e4 100%); }

.hero-veil {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(180deg, rgba(255, 255, 255, .5) 0%, rgba(255, 255, 255, .1) 38%, rgba(31, 31, 31, .66) 100%);
}

.hero-ghost {
  position: absolute;
  right: -1%;
  top: 6%;
  z-index: -1;
  font-size: clamp(90px, 19vw, 230px);
  font-weight: 900;
  line-height: .8;
  letter-spacing: -.05em;
  color: transparent;
  -webkit-text-stroke: 2px rgba(31, 31, 31, .24);
  pointer-events: none;
  will-change: transform;
}

.hero-copy {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 860px;
  padding: 0 32px 0 calc(var(--rail) + 32px);
  color: #fff;
}

.hero-h1 {
  margin: 0 0 14px;
  font-size: clamp(2.1rem, 5.6vw, 4.2rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -.02em;
  text-shadow: 0 14px 44px rgba(31, 31, 31, .45);
}

.hero-sub {
  max-width: 44ch;
  margin: 0 0 22px;
  font-size: clamp(15px, 2vw, 17px);
  line-height: 1.7;
  color: rgba(255, 255, 255, .92);
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  border-radius: var(--r);
  background: #fff;
  color: var(--ink);
  font-weight: 900;
  letter-spacing: .08em;
  text-decoration: none;
  box-shadow: var(--el3);
  transition: transform .2s ease, box-shadow .2s ease;
}

.hero-cta:hover { transform: translateY(-2px); box-shadow: var(--el4); }

.doc {
  grid-column: 1;
  position: relative;
  z-index: 5;
  margin-top: -76px;
  padding-left: 32px;
}

.doc-body {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.doc-body > article {
  position: relative;
  padding: 30px 26px;
  background: var(--paper);
  border-radius: var(--r);
  box-shadow: var(--el3);
  scroll-margin-top: 100px;
}

.doc-body > article:nth-child(even) {
  margin-left: 26px;
  z-index: 2;
  box-shadow: var(--el2);
}

.doc-body > article:nth-child(3n) {
  margin-left: -8px;
  z-index: 3;
}

.doc-body > article:nth-child(4n) { box-shadow: var(--el4); }

.doc-body h2 {
  margin: 0 0 8px;
  font-size: clamp(1.45rem, 3.2vw, 2rem);
  font-weight: 900;
  line-height: 1.22;
  letter-spacing: -.01em;
}

.doc-body hr {
  width: 56px;
  height: 0;
  margin: 0 0 18px;
  border: 0;
  border-top: 3px solid var(--ink);
}

.doc-body h3 {
  margin: 26px 0 8px;
  font-size: 1.14rem;
  font-weight: 700;
  line-height: 1.4;
}

.doc-body p { margin: 0 0 14px; }

.doc-body a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.doc-body ul,
.doc-body ol {
  margin: 0 0 14px;
  padding-left: 1.25em;
}

.doc-body li { margin: 0 0 6px; }

.doc-body strong { font-weight: 900; }

.doc-body blockquote {
  margin: 0 0 16px;
  padding: 14px 18px;
  border-radius: var(--r);
  background: var(--fog);
  box-shadow: var(--el1);
}

.doc-body blockquote p:last-child { margin-bottom: 0; }

.doc-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--r);
  box-shadow: var(--el2);
}

.side {
  grid-column: 2;
  align-self: start;
  position: sticky;
  top: 26px;
  margin-right: 28px;
  padding: 22px 20px;
  border-radius: var(--r);
  background: var(--fog);
  box-shadow: var(--el2);
}

.side-h {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .18em;
}

.side hr {
  width: 40px;
  height: 0;
  margin: 0 0 12px;
  border: 0;
  border-top: 3px solid var(--ink);
}

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

.side-list a {
  display: block;
  min-height: 44px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  color: var(--ink);
  text-decoration: none;
  transition: padding-left .2s ease;
}

.side-list a:hover { padding-left: 6px; }

.side-list li:last-child a { border-bottom: 0; }

.foot {
  margin-top: 74px;
  padding: 44px 28px 26px;
  border-radius: var(--r) var(--r) 0 0;
  background: var(--ink);
  color: #fff;
  box-shadow: var(--el4);
}

.foot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.foot-logo {
  display: inline-block;
  padding: 6px 0;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -.01em;
  text-decoration: none;
}

.foot-about address {
  margin: 4px 0 0;
  font-style: normal;
  font-size: 14px;
  letter-spacing: .12em;
  color: #a8a8a8;
}

.foot-list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.foot-list a,
.foot-nav dd a {
  display: block;
  min-height: 40px;
  padding: 8px 0;
  font-size: 15px;
  color: #fff;
  text-decoration: none;
  transition: color .2s ease, transform .2s ease;
}

.foot-list a:hover,
.foot-nav dd a:hover { color: #cfcfcf; transform: translateX(4px); }

.foot-nav dl { margin: 0; }

.foot-nav dt {
  margin-bottom: 10px;
  font-size: 12px;
  letter-spacing: .22em;
  color: #9d9d9d;
}

.foot-nav dd { margin: 0; }

.foot-copy {
  margin: 34px 0 0;
  text-align: center;
  font-size: 13px;
  letter-spacing: .14em;
  color: #9a9a9a;
}

.doc-body.is-reveal > article {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .55s ease, transform .55s cubic-bezier(.22, .68, 0, 1);
}

.doc-body.is-reveal > article.in {
  opacity: 1;
  transform: none;
}

@media (max-width: 980px) {
  body {
    padding-left: 0;
    padding-top: 62px;
    font-size: 16px;
  }

  .rail {
    inset: 0 0 auto 0;
    width: auto;
    height: 62px;
    flex-direction: row;
    justify-content: space-between;
    padding: 0 14px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .rail-set { display: none; }

  .rail-brand {
    margin: 0;
    padding: 10px 2px;
    font-size: 17px;
    letter-spacing: .14em;
    writing-mode: horizontal-tb;
  }

  .burger {
    margin: 0;
    width: auto;
    padding: 0 18px;
  }

  .stage {
    grid-template-columns: minmax(0, 1fr);
    padding: 0 16px;
  }

  .hero {
    margin: 0 -16px;
    min-height: 64vh;
    padding-bottom: 86px;
    border-radius: 0;
  }

  .hero-copy { padding: 0 18px; }

  .hero-ghost {
    top: 4%;
    font-size: clamp(70px, 25vw, 140px);
  }

  .doc {
    margin-top: -56px;
    padding-left: 0;
  }

  .doc-body > article {
    padding: 22px 18px;
    margin-left: 0 !important;
    scroll-margin-top: 78px;
  }

  .side {
    grid-column: 1;
    position: static;
    margin: 24px 0 0;
  }

  .foot {
    margin-top: 48px;
    padding: 34px 18px 22px;
  }

  .foot-grid { grid-template-columns: 1fr; gap: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .doc-body.is-reveal > article { opacity: 1; transform: none; transition: none; }
  .hero-media, .hero-ghost { transform: none !important; }
}

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