:root {
  color-scheme: dark;
  --ink: #12110f;
  --ink-soft: #171512;
  --surface: #1d1a17;
  --surface-raised: #25211c;
  --ivory: #f4eddf;
  --ivory-soft: #ddd3c2;
  --muted: #aaa08f;
  --brass: #b5905a;
  --brass-bright: #d4b77e;
  --sage: #94a28b;
  --copper: #b87657;
  --line: rgba(244, 237, 223, 0.12);
  --line-strong: rgba(181, 144, 90, 0.42);
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC",
    "Hiragino Sans GB", "Segoe UI", sans-serif;
  --serif: "Iowan Old Style", "Baskerville", "Songti SC", "STSong", serif;
  --content: min(1180px, calc(100% - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 85% -10%, rgba(181, 144, 90, 0.12), transparent 30rem),
    var(--ink);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.014) 1px, transparent 1px);
  background-size: 100% 32px;
  content: "";
  pointer-events: none;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--brass-bright);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--ivory);
}

button,
summary,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--brass-bright);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--ivory);
  color: var(--ink);
  transform: translateY(-150%);
}

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

.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(18, 17, 15, 0.86);
  backdrop-filter: blur(20px);
}

.header-inner {
  display: flex;
  width: var(--content);
  min-height: 78px;
  margin: 0 auto;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 11px;
  color: var(--ivory);
  text-decoration: none;
}

.brand img {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(181, 144, 90, 0.28);
  border-radius: 10px;
}

.brand-name {
  display: grid;
  line-height: 1.08;
}

.brand-name strong {
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.brand-name small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.desktop-nav {
  display: flex;
  margin-left: auto;
  align-items: center;
  gap: 22px;
}

.desktop-nav a,
.footer-nav a {
  color: var(--ivory-soft);
  font-size: 13px;
  text-decoration: none;
}

.desktop-nav a:hover,
.desktop-nav a[aria-current="page"] {
  color: var(--brass-bright);
}

.language-link {
  display: inline-flex;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  align-items: center;
  justify-content: center;
}

.mobile-nav {
  display: none;
  margin-left: auto;
}

.mobile-nav summary {
  display: inline-flex;
  min-width: 48px;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  align-items: center;
  justify-content: center;
  color: var(--ivory);
  cursor: pointer;
  list-style: none;
}

.mobile-nav summary::-webkit-details-marker {
  display: none;
}

.mobile-nav summary::before {
  width: 18px;
  height: 12px;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  content: "";
}

.mobile-menu {
  position: absolute;
  top: calc(100% + 1px);
  right: 20px;
  left: 20px;
  display: grid;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #1b1916;
  box-shadow: var(--shadow);
}

.mobile-menu a {
  min-height: 48px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--ivory-soft);
  text-decoration: none;
}

.mobile-menu a:hover,
.mobile-menu a[aria-current="page"] {
  background: rgba(181, 144, 90, 0.12);
  color: var(--brass-bright);
}

.container {
  width: var(--content);
  margin-right: auto;
  margin-left: auto;
}

.hero {
  display: grid;
  min-height: 690px;
  padding: clamp(72px, 10vw, 132px) 0 88px;
  grid-template-columns: minmax(0, 1.06fr) minmax(340px, 0.94fr);
  align-items: center;
  gap: clamp(48px, 8vw, 110px);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--brass-bright);
  font-size: 11px;
  font-weight: 720;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 500;
  text-wrap: balance;
}

h1 {
  max-width: 850px;
  margin-bottom: 24px;
  font-size: clamp(46px, 7vw, 86px);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(31px, 4.3vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

h3 {
  margin-bottom: 10px;
  font-size: 18px;
  font-weight: 620;
  line-height: 1.35;
}

.lead {
  max-width: 680px;
  color: var(--ivory-soft);
  font-size: clamp(18px, 2.3vw, 23px);
  line-height: 1.55;
}

.hero-note {
  max-width: 620px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.actions {
  display: flex;
  margin-top: 34px;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  align-items: center;
  justify-content: center;
  color: var(--ivory);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.button:hover {
  border-color: var(--line-strong);
  background: rgba(181, 144, 90, 0.08);
  color: var(--ivory);
  transform: translateY(-2px);
}

.button.primary {
  border-color: var(--brass);
  background: var(--brass);
  color: #17130e;
}

.button.primary:hover {
  background: var(--brass-bright);
}

.dial-stage {
  position: relative;
  display: grid;
  width: min(100%, 460px);
  aspect-ratio: 1;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  place-items: center;
  background:
    radial-gradient(circle, rgba(181, 144, 90, 0.14), transparent 47%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.035), transparent 55%);
  box-shadow: var(--shadow), inset 0 0 90px rgba(181, 144, 90, 0.05);
}

.dial-stage::before,
.dial-stage::after {
  position: absolute;
  border: 1px solid var(--line);
  border-radius: inherit;
  content: "";
}

.dial-stage::before {
  inset: 8%;
}

.dial-stage::after {
  inset: 18%;
  border-style: dashed;
  border-color: rgba(181, 144, 90, 0.3);
}

.dial-stage img {
  position: relative;
  z-index: 1;
  width: 48%;
  height: 48%;
  border-radius: 23%;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.45);
}

.dial-label {
  position: absolute;
  z-index: 2;
  bottom: 11%;
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(18, 17, 15, 0.88);
  color: var(--muted);
  font-size: 9px;
  font-weight: 680;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.principles {
  display: grid;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  grid-template-columns: repeat(3, 1fr);
}

.principle {
  min-height: 128px;
  padding: 28px clamp(20px, 4vw, 44px);
}

.principle + .principle {
  border-left: 1px solid var(--line);
}

.principle strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ivory);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.principle span {
  color: var(--muted);
  font-size: 13px;
}

.section {
  padding: clamp(78px, 10vw, 126px) 0;
}

.section.compact {
  padding-top: 64px;
  padding-bottom: 64px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 42px;
}

.section-heading p:last-child {
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 16px;
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  position: relative;
  overflow: hidden;
  min-height: 230px;
  padding: clamp(24px, 3.5vw, 36px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.035), transparent 45%),
    var(--surface);
}

.card::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 74px;
  height: 1px;
  background: var(--brass);
  content: "";
}

.card-index {
  display: inline-grid;
  width: 34px;
  height: 34px;
  margin-bottom: 36px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  place-items: center;
  color: var(--brass-bright);
  font-family: var(--serif);
  font-size: 14px;
}

.card p,
.muted {
  color: var(--muted);
}

.card p:last-child {
  margin-bottom: 0;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: start;
  gap: clamp(42px, 8vw, 104px);
}

.data-stack {
  display: grid;
  gap: 12px;
}

.data-row {
  display: grid;
  min-height: 82px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  grid-template-columns: 36px 1fr;
  align-items: center;
  gap: 14px;
}

.data-row span:first-child {
  color: var(--brass-bright);
  font-family: var(--serif);
  font-size: 18px;
}

.data-row strong {
  display: block;
  margin-bottom: 2px;
  font-size: 14px;
}

.data-row small {
  color: var(--muted);
  font-size: 11px;
}

.notice {
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(181, 144, 90, 0.12), rgba(181, 144, 90, 0.025));
}

.notice h2,
.notice h3 {
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 620;
}

.notice p:last-child {
  margin-bottom: 0;
}

.cta {
  display: flex;
  padding: clamp(32px, 6vw, 64px);
  border: 1px solid var(--line);
  border-radius: 28px;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  background:
    radial-gradient(circle at 90% 0, rgba(181, 144, 90, 0.18), transparent 45%),
    var(--surface);
}

.cta h2 {
  max-width: 720px;
  margin-bottom: 10px;
}

.cta p {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
}

.page-hero {
  padding: clamp(70px, 10vw, 118px) 0 54px;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  max-width: 900px;
  font-size: clamp(44px, 7vw, 76px);
}

.page-hero .lead {
  max-width: 800px;
}

.meta-line {
  display: flex;
  margin-top: 28px;
  flex-wrap: wrap;
  gap: 9px 20px;
  color: var(--muted);
  font-size: 12px;
}

.document-layout {
  display: grid;
  padding: 54px 0 100px;
  grid-template-columns: 230px minmax(0, 760px);
  justify-content: space-between;
  gap: 70px;
}

.document-nav {
  position: sticky;
  top: 112px;
  align-self: start;
}

.document-nav strong {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.document-nav a {
  display: block;
  padding: 7px 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  text-decoration: none;
}

.document-nav a:hover {
  color: var(--brass-bright);
}

.document article {
  min-width: 0;
}

.document article > section {
  padding: 12px 0 34px;
  scroll-margin-top: 106px;
}

.document article > section + section {
  border-top: 1px solid var(--line);
  padding-top: 38px;
}

.document h2 {
  font-family: var(--sans);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.document h3 {
  margin-top: 28px;
}

.document p,
.document li {
  color: var(--ivory-soft);
}

.document ul,
.document ol {
  padding-left: 1.35rem;
}

.document li + li {
  margin-top: 9px;
}

.table-wrap {
  overflow-x: auto;
  margin: 24px 0;
  border: 1px solid var(--line);
  border-radius: 16px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th,
td {
  min-width: 150px;
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
}

th {
  background: rgba(181, 144, 90, 0.08);
  color: var(--brass-bright);
  font-size: 11px;
  letter-spacing: 0.04em;
}

tr:last-child td {
  border-bottom: 0;
}

.steps {
  display: grid;
  margin: 28px 0;
  padding: 0;
  gap: 12px;
  list-style: none;
  counter-reset: steps;
}

.steps li {
  display: grid;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  grid-template-columns: 34px 1fr;
  gap: 14px;
  counter-increment: steps;
}

.steps li::before {
  display: grid;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  place-items: center;
  color: var(--brass-bright);
  content: counter(steps);
  font-family: var(--serif);
  font-size: 13px;
}

.faq {
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  min-height: 70px;
  padding: 20px 4px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--ivory);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  color: var(--brass-bright);
  content: "+";
  font-size: 22px;
  font-weight: 300;
}

.faq details[open] summary::after {
  content: "−";
}

.faq details > div {
  max-width: 720px;
  padding: 0 36px 22px 4px;
  color: var(--muted);
}

.not-found {
  display: grid;
  width: var(--content);
  min-height: calc(100vh - 260px);
  margin: 0 auto;
  padding: clamp(72px, 12vw, 140px) 0;
  align-items: center;
}

.not-found > div {
  max-width: 760px;
}

.not-found img {
  width: 72px;
  height: 72px;
  margin-bottom: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
}

.not-found h1 {
  font-size: clamp(44px, 8vw, 78px);
}

.site-footer {
  padding: 52px 0 34px;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.12);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 44px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand img {
  width: 40px;
  height: 40px;
  border-radius: 11px;
}

.footer-brand strong {
  display: block;
}

.footer-brand small {
  display: block;
  color: var(--muted);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 22px;
}

.footer-meta {
  display: flex;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  color: var(--muted);
  font-size: 11px;
}

.footer-meta p {
  margin-bottom: 0;
}

.footer-meta a {
  color: var(--muted);
}

.error-page {
  display: grid;
  min-height: calc(100vh - 79px);
  padding: 80px 0;
  place-items: center;
  text-align: center;
}

.error-code {
  margin-bottom: 8px;
  color: var(--brass);
  font-family: var(--serif);
  font-size: clamp(82px, 18vw, 180px);
  line-height: 0.8;
}

.error-page h1 {
  margin-right: auto;
  margin-left: auto;
  font-size: clamp(38px, 7vw, 64px);
}

@media (max-width: 900px) {
  .desktop-nav {
    display: none;
  }

  .mobile-nav {
    display: block;
  }

  .hero {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 760px;
  }

  .dial-stage {
    width: min(82vw, 430px);
  }

  .grid.three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split {
    grid-template-columns: 1fr;
  }

  .document-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .document-nav {
    position: static;
    display: flex;
    overflow-x: auto;
    padding-bottom: 10px;
    gap: 18px;
    scrollbar-width: thin;
  }

  .document-nav strong {
    display: none;
  }

  .document-nav a {
    flex: 0 0 auto;
  }
}

@media (max-width: 660px) {
  :root {
    --content: min(100% - 32px, 1180px);
  }

  .header-inner {
    min-height: 70px;
  }

  .brand-name small {
    display: none;
  }

  .hero {
    padding-top: 66px;
    padding-bottom: 66px;
    gap: 54px;
  }

  .actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .principles {
    grid-template-columns: 1fr;
  }

  .principle {
    min-height: 0;
    padding: 22px 0;
  }

  .principle + .principle {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .grid.three,
  .grid.two {
    grid-template-columns: 1fr;
  }

  .card {
    min-height: 0;
  }

  .card-index {
    margin-bottom: 24px;
  }

  .cta {
    display: block;
  }

  .cta .actions {
    margin-top: 26px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: start;
  }

  .footer-meta {
    display: block;
  }

  .footer-meta p + p {
    margin-top: 8px;
  }
}

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

@media print {
  :root {
    color-scheme: light;
  }

  body {
    background: #fff;
    color: #111;
  }

  body::before,
  .site-header,
  .document-nav,
  .site-footer,
  .actions {
    display: none !important;
  }

  .page-hero,
  .document-layout {
    width: 100%;
    padding: 20px 0;
  }

  .document p,
  .document li,
  .muted {
    color: #222;
  }
}
