:root {
  --ink: #101928;
  --ink-soft: #192537;
  --paper: #f5f1e9;
  --gold: #cfad66;
  --gold-pale: #ead39d;
  --text: #f9f1e3;
  --muted: rgba(241, 229, 208, 0.72);
  --serif: "Noto Serif SC", "Songti SC", STSong, serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  letter-spacing: 0;
}

button, a { font: inherit; }

button { cursor: pointer; }

.site-header {
  position: absolute;
  z-index: 5;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px max(5.4vw, 32px);
}

.brand {
  color: var(--text);
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-decoration: none;
}

.site-nav { display: flex; align-items: center; gap: 30px; }

.site-nav a {
  color: rgba(249, 241, 227, 0.8);
  font-size: 13px;
  text-decoration: none;
  transition: color 180ms ease;
}

.site-nav a:hover { color: var(--gold-pale); }

.nav-action, .hero-primary, .dialog-button {
  border: 1px solid transparent;
  border-radius: 0;
}

.nav-action {
  padding: 10px 14px;
  border-color: rgba(234, 211, 157, 0.72);
  background: transparent;
  color: var(--gold-pale);
  font-size: 13px;
}

.menu-toggle, .site-menu { display: none; }

.hero {
  position: relative;
  display: grid;
  min-height: min(820px, 100svh);
  overflow: hidden;
  background: var(--ink);
}

.hero::before {
  position: absolute;
  z-index: 2;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 13, 23, 0.98) 0%, rgba(8, 15, 25, 0.91) 28%, rgba(8, 15, 25, 0.48) 46%, rgba(8, 15, 25, 0.04) 71%);
  content: "";
  pointer-events: none;
}

.hero-art {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 64% center;
}

.hero-copy {
  position: relative;
  z-index: 3;
  align-self: center;
  width: min(550px, 40vw);
  margin: 22px 0 0 max(10.4vw, 78px);
  background: transparent;
}

.hero-copy h1 {
  margin: 0;
  color: var(--text);
  font-family: var(--serif);
  font-size: clamp(54px, 5.2vw, 78px);
  font-weight: 500;
  letter-spacing: 0.07em;
  line-height: 1.22;
}

.hero-copy p {
  max-width: 365px;
  margin: 24px 0 30px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.85;
}

.hero-primary {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  min-height: 54px;
  padding: 0 18px;
  background: var(--gold);
  color: var(--ink);
  font-size: 14px;
  transition: background 180ms ease, transform 180ms ease;
}

.hero-primary:hover { background: #e1c47e; transform: translateY(-2px); }
.hero-primary span { font-size: 20px; font-weight: 400; }

.hero-note {
  position: absolute;
  z-index: 3;
  top: 42%;
  right: max(5.4vw, 32px);
  margin: 0;
  padding-left: 13px;
  border-left: 1px solid rgba(234, 211, 157, 0.7);
  color: var(--gold-pale);
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.12em;
  line-height: 1.6;
  writing-mode: vertical-rl;
}

.hero-footnote {
  position: absolute;
  z-index: 3;
  bottom: 38px;
  left: max(10.4vw, 78px);
  margin: 0;
  color: rgba(237, 222, 191, 0.56);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.hero-next {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 90px;
  padding: 0 max(10.4vw, 78px);
  border-top: 1px solid rgba(233, 210, 163, 0.2);
  background: var(--ink);
  color: #f3e7d0;
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: 0.04em;
}

.hero-next span:last-child { color: var(--gold); font-family: var(--sans); }

.section-shell {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(45px, 8vw, 130px);
  padding: clamp(86px, 11vw, 160px) max(10.4vw, 78px);
}

.section-index {
  margin: 0 0 18px;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.16em;
}

.section-heading h2,
.about h2,
.experience h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(36px, 4vw, 61px);
  font-weight: 500;
  line-height: 1.28;
  letter-spacing: 0.055em;
}

.ways { background: var(--paper); color: #1f2936; }
.ways .section-index { color: #93703c; }

.ways-list { border-top: 1px solid rgba(34, 43, 53, 0.23); }

.way-row {
  display: grid;
  grid-template-columns: 75px minmax(0, 1fr);
  gap: 25px;
  padding: 32px 0 31px;
  border-bottom: 1px solid rgba(34, 43, 53, 0.19);
}

.way-number {
  color: #9f7840;
  font-family: var(--serif);
  font-size: 27px;
  line-height: 1;
}

.way-row h3 {
  margin: 0 0 9px;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.way-row p,
.process-list p,
.about-statement p,
.experience-action p {
  margin: 0;
  color: rgba(35, 43, 51, 0.69);
  font-size: 15px;
  line-height: 1.9;
}

.process { background: #47655f; color: #f8f0df; }
.process .section-index { color: #e6cd91; }

.process-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(248, 240, 223, 0.4);
}

.process-list li {
  display: grid;
  grid-template-columns: 68px minmax(145px, 0.7fr) minmax(0, 1.3fr);
  align-items: start;
  gap: 20px;
  padding: 29px 0;
  border-bottom: 1px solid rgba(248, 240, 223, 0.28);
}

.process-list span { color: #e6cd91; font-size: 12px; letter-spacing: 0.1em; }
.process-list strong { font-family: var(--serif); font-size: 21px; font-weight: 500; }
.process-list p { color: rgba(248, 240, 223, 0.72); }

.about { background: #d9d2c2; color: #17212c; align-items: end; }

.about-statement {
  padding-left: clamp(28px, 6vw, 85px);
  border-left: 1px solid rgba(23, 33, 44, 0.38);
}

.about-statement p { max-width: 540px; color: rgba(23, 33, 44, 0.73); font-size: clamp(16px, 1.45vw, 20px); }
.about-statement p + p { margin-top: 22px; color: #785827; font-family: var(--serif); }

.experience { background: var(--ink-soft); color: var(--text); align-items: end; }
.experience-action { justify-self: end; width: min(420px, 100%); }
.experience-action p { margin-bottom: 28px; color: var(--muted); }
.experience-action .hero-primary { width: 100%; }

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 27px max(5.4vw, 32px);
  border-top: 1px solid rgba(234, 211, 157, 0.18);
  background: var(--ink);
}

.site-footer .brand { font-size: 20px; }
.site-footer p { margin: 0; color: rgba(249, 241, 227, 0.48); font-size: 11px; letter-spacing: 0.1em; }
.site-footer div { display: flex; justify-content: flex-end; gap: 20px; }
.site-footer a:not(.brand) { color: rgba(249, 241, 227, 0.68); font-size: 12px; text-decoration: none; }
.site-footer a:not(.brand):hover { color: var(--gold-pale); }

.legal-page {
  min-height: 100svh;
  background: var(--paper);
  color: #1f2936;
}

.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 25px max(7vw, 24px);
  border-bottom: 1px solid rgba(31, 41, 54, 0.16);
}

.legal-header .brand { color: var(--ink); font-size: 23px; }
.legal-header a:not(.brand) { color: #765a30; font-size: 14px; text-decoration: none; }
.legal-content { width: min(760px, calc(100% - 48px)); margin: 0 auto; padding: 78px 0 96px; }
.legal-content h1, .legal-content h2 { font-family: var(--serif); font-weight: 500; }
.legal-content h1 { margin: 0 0 12px; font-size: clamp(37px, 5vw, 56px); }
.legal-content h2 { margin: 43px 0 13px; font-size: 24px; }
.legal-content p, .legal-content li { color: rgba(31, 41, 54, 0.76); font-size: 15px; line-height: 1.95; }
.legal-content ul { padding-left: 1.35em; }
.legal-updated { margin: 0; color: rgba(31, 41, 54, 0.55); font-size: 13px; }

dialog {
  width: min(420px, calc(100vw - 40px));
  padding: 40px;
  border: 1px solid rgba(207, 173, 102, 0.58);
  border-radius: 0;
  background: #121d2c;
  color: var(--text);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.5);
}

dialog::backdrop { background: rgba(2, 5, 10, 0.75); backdrop-filter: blur(4px); }
.dialog-close { position: absolute; top: 14px; right: 16px; border: 0; background: transparent; color: var(--gold-pale); font-size: 25px; }
.dialog-mark { margin: 0 0 20px; color: var(--gold); font-family: var(--serif); font-size: 20px; letter-spacing: 0.14em; }
dialog h2 { margin: 0; font-family: var(--serif); font-size: 28px; font-weight: 500; line-height: 1.4; }
dialog p:not(.dialog-mark) { margin: 16px 0 28px; color: var(--muted); line-height: 1.8; }
.dialog-button { width: 100%; min-height: 48px; background: var(--gold); color: var(--ink); }

button:focus-visible, a:focus-visible { outline: 2px solid #f4d798; outline-offset: 4px; }

@media (max-width: 767px) {
  .site-header {
    padding: calc(env(safe-area-inset-top) + 18px) 22px 18px;
  }

  .brand { font-size: 23px; }
  .site-nav { display: none; }

  .menu-toggle {
    display: grid;
    gap: 4px;
    width: 38px;
    height: 38px;
    place-content: center;
    border: 1px solid rgba(234, 211, 157, 0.72);
    background: rgba(10, 19, 30, 0.18);
  }

  .menu-toggle span { display: block; width: 15px; height: 1px; background: var(--gold-pale); }

  .site-menu {
    position: absolute;
    top: calc(env(safe-area-inset-top) + 72px);
    right: 22px;
    left: 22px;
    display: grid;
    gap: 0;
    border: 1px solid rgba(234, 211, 157, 0.36);
    background: rgba(15, 25, 39, 0.97);
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.35);
  }

  .site-menu[hidden] { display: none; }
  .site-menu a, .site-menu button { padding: 17px; border: 0; border-bottom: 1px solid rgba(234, 211, 157, 0.16); background: transparent; color: var(--text); font-size: 14px; text-align: left; text-decoration: none; }
  .site-menu button { border-bottom: 0; color: var(--gold-pale); }

  .hero {
    display: block;
    min-height: calc(100svh - 77px);
    padding: 0 22px 32px;
  }

  .hero::before {
    background: linear-gradient(180deg, rgba(7, 13, 23, 0.28) 0%, rgba(7, 13, 23, 0.04) 35%, var(--ink) 61%, var(--ink) 100%);
  }

  .hero-art { inset: 0 0 auto; height: 52svh; }
  .hero-art img { object-position: 61% 50%; }

  .hero-copy {
    width: auto;
    margin: 0;
    padding: 0 0 0;
    top: 49svh;
    background: linear-gradient(180deg, transparent 0, var(--ink) 36px);
  }

  .hero-copy h1 { font-size: clamp(37px, 10vw, 46px); line-height: 1.24; }
  .hero-copy p { max-width: 295px; margin: 15px 0 23px; font-size: 13px; }
  .hero-primary { width: 100%; min-height: 53px; padding: 0 17px; }

  .hero-note {
    top: 29svh;
    right: 22px;
    font-size: 10px;
  }

  .hero-footnote {
    bottom: 20px;
    left: 22px;
    font-size: 10px;
  }

  .hero-next { min-height: 77px; padding: 0 22px; font-size: 15px; }

  .section-shell { display: block; padding: 76px 22px; }
  .section-heading { margin-bottom: 48px; }
  .section-index { margin-bottom: 14px; }
  .section-heading h2, .about h2, .experience h2 { font-size: clamp(34px, 9.3vw, 43px); }
  .way-row { grid-template-columns: 50px minmax(0, 1fr); gap: 15px; padding: 26px 0; }
  .way-row h3 { font-size: 23px; }
  .way-row p, .process-list p, .about-statement p, .experience-action p { font-size: 14px; }
  .process-list li { grid-template-columns: 44px 1fr; gap: 13px; padding: 24px 0; }
  .process-list li p { grid-column: 2; }
  .process-list strong { font-size: 20px; }
  .about { padding-bottom: 81px; }
  .about-copy { margin-bottom: 46px; }
  .about-statement { padding-left: 21px; }
  .experience-action { width: 100%; margin-top: 42px; }
  .site-footer { display: block; padding: 34px 22px; }
  .site-footer p { margin: 14px 0 22px; line-height: 1.7; }
  .site-footer div { justify-content: flex-start; gap: 22px; }
  .legal-content { width: min(100% - 44px, 760px); padding: 55px 0 72px; }

  dialog { padding: 35px 26px 28px; }
  dialog h2 { font-size: 25px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}
