:root {
  --ink: #000000;
  --paper: #ffffff;
  --dock: 76px;
  --r: 28px;
  --pad: clamp(16px, 4vw, 52px);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-bottom: calc(var(--dock) + 18px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding-bottom: calc(var(--dock) + 12px);
  background: var(--paper);
  color: var(--ink);
  font-family: 'Figtree', 'Noto Sans', 'Noto Sans SC', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui, sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.72;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: -0.022em;
  font-weight: 700;
}

hr {
  border: 0;
  border-top: 2px solid var(--ink);
  margin: 14px 0 24px;
}

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

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

.top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px 20px;
  padding: 12px var(--pad);
  border-bottom: 2px solid var(--ink);
  background: var(--paper);
}

.mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 4px 10px;
  border: 2px solid var(--ink);
  border-radius: var(--r);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.04em;
  overflow: hidden;
}

.mark img { width: 26px; height: 26px; object-fit: cover; border-radius: 50%; }

.top nav {
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: thin;
}

.top nav p {
  margin: 0;
  display: flex;
  flex-wrap: nowrap;
  gap: 2px 16px;
  justify-content: flex-start;
}

.top nav a {
  display: inline-block;
  padding: 12px 2px;
  font-size: 16px;
  line-height: 1.3;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}

.top nav a:hover { border-bottom-color: var(--ink); }

@media (min-width: 900px) {
  .top nav p { flex-wrap: wrap; justify-content: flex-end; }
  .top { grid-template-columns: auto minmax(0, 1fr); }
}

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-end;
  min-height: 70vh;
  padding: clamp(34px, 7vw, 84px) var(--pad) clamp(26px, 4vw, 52px);
  border-bottom: 2px solid var(--ink);
  overflow: hidden;
  text-align: right;
}

.hero-ghost {
  position: absolute;
  right: -3vw;
  bottom: -2.2vw;
  z-index: 0;
  font-size: clamp(3.4rem, 21vw, 16rem);
  font-weight: 700;
  line-height: 0.8;
  letter-spacing: -0.06em;
  opacity: 0.075;
  white-space: nowrap;
  pointer-events: none;
  will-change: transform;
}

.hero-in {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-top: auto;
}

.hero-h1 {
  font-size: clamp(2rem, 7.2vw, 4.7rem);
  max-width: 15ch;
}

.hero-lede {
  margin: 18px 0 0;
  max-width: 42ch;
  font-size: 16px;
  line-height: 1.65;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 30px;
  padding: clamp(26px, 5vw, 58px) var(--pad);
  align-items: start;
}

@media (min-width: 900px) {
  .layout {
    grid-template-columns: minmax(216px, 258px) minmax(0, 1fr);
    gap: clamp(30px, 5vw, 68px);
  }
}

.rail { min-width: 0; }

@media (min-width: 900px) {
  .rail { position: sticky; top: 22px; }
}

.rail h2 {
  font-size: 13px;
  letter-spacing: 0.34em;
  font-weight: 600;
}

.rail hr { margin: 12px 0 18px; }

.rail ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.rail a {
  display: block;
  padding: 14px 18px;
  font-size: 16px;
  line-height: 1.4;
  border: 1.5px solid var(--ink);
  border-bottom-width: 6px;
  border-radius: var(--r);
  background: var(--paper);
  transition: background 0.18s ease, color 0.18s ease;
}

.rail a:hover,
.rail a:focus-visible {
  background: var(--ink);
  color: var(--paper);
}

main { min-width: 0; }

section { min-width: 0; }

.content { max-width: 74ch; }

.content > div {
  padding-bottom: clamp(28px, 4vw, 48px);
  margin-bottom: clamp(28px, 4vw, 48px);
  border-bottom: 2px solid var(--ink);
  scroll-margin-top: 22px;
  scroll-margin-bottom: calc(var(--dock) + 18px);
}

.content > div:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 8px;
}

.content h2 {
  font-size: clamp(1.5rem, 3.6vw, 2.15rem);
  margin-bottom: 0;
}

.content h2 + hr { margin-top: 12px; }

.content h3 {
  font-size: clamp(1.18rem, 2.4vw, 1.42rem);
  margin: 26px 0 8px;
}

.content p { margin: 0 0 1.05em; }

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

.content > div > p:first-of-type::first-letter {
  float: left;
  font-size: 3.5em;
  line-height: 0.82;
  font-weight: 700;
  margin: 0.06em 0.12em 0 0;
}

.content blockquote {
  margin: 26px 0;
  padding: 6px 0 6px 22px;
  border-left: 8px solid var(--ink);
  font-size: 1.14em;
  font-weight: 600;
  line-height: 1.5;
}

.content ul,
.content ol {
  margin: 0 0 1.1em;
  padding-left: 1.3em;
}

.content li { margin-bottom: 0.45em; }

.content figure { margin: 26px 0; }

.content figcaption {
  font-size: 14px;
  line-height: 1.5;
  padding-top: 8px;
  border-top: 1px solid var(--ink);
  margin-top: 8px;
}

.content img { width: 100%; border-radius: var(--r); }

@media (min-width: 1080px) {
  .content > div {
    columns: 2;
    column-gap: clamp(28px, 4vw, 56px);
  }
  .content > div > h2,
  .content > div > h3,
  .content > div > hr,
  .content > div > ul,
  .content > div > ol,
  .content > div > blockquote,
  .content > div > figure,
  .content > div > table {
    column-span: all;
  }
  .content > div > p:first-of-type::first-letter {
    font-size: 4em;
  }
}

.foot {
  margin-top: clamp(28px, 5vw, 62px);
  padding: clamp(34px, 6vw, 68px) var(--pad) 22px;
  background: var(--ink);
  color: var(--paper);
  border-top: 2px solid var(--ink);
}

.cta { max-width: 62ch; }

.cta h2 {
  font-size: clamp(1.7rem, 5vw, 3rem);
}

.cta hr { border-top-color: var(--paper); }

.cta-link {
  display: inline-block;
  margin-top: 18px;
  padding: 13px 32px;
  min-height: 44px;
  border: 2px solid var(--paper);
  border-radius: var(--r);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.06em;
  transition: background 0.18s ease, color 0.18s ease;
}

.cta-link:hover,
.cta-link:focus-visible {
  background: var(--paper);
  color: var(--ink);
}

.foot-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  margin-top: clamp(30px, 5vw, 54px);
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.32);
}

@media (min-width: 560px) {
  .foot-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
}

.foot-cols dl { margin: 0; }

.foot-cols dt {
  font-size: 13px;
  letter-spacing: 0.28em;
  opacity: 0.66;
  margin-bottom: 6px;
}

.foot-cols dd { margin: 0; }

.foot-cols a {
  display: inline-block;
  padding: 11px 0;
  font-size: 16px;
  line-height: 1.35;
  border-bottom: 1px solid transparent;
}

.foot-cols a:hover { border-bottom-color: var(--paper); }

.copy {
  margin: 26px 0 0;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.32);
  font-size: 15px;
  letter-spacing: 0.04em;
  opacity: 0.8;
}

.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px var(--pad);
  min-height: var(--dock);
  background: var(--paper);
  border-top: 2px solid var(--ink);
}

.dock-gap { flex: 1 1 auto; }

.dock-mark,
.dock-tel,
.dock-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 0 16px;
  border: 2px solid var(--ink);
  border-radius: var(--r);
  background: var(--paper);
  color: var(--ink);
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  overflow: hidden;
}

.dock-mark { padding: 0 10px; font-size: 17px; }

.dock-mark img { width: 24px; height: 24px; object-fit: cover; border-radius: 50%; }

.dock-btn { background: var(--ink); color: var(--paper); }

.dock-panel {
  position: fixed;
  left: 0;
  right: 0;
  bottom: var(--dock);
  z-index: 59;
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 18px var(--pad) 22px;
  max-height: 62vh;
  overflow-y: auto;
  background: var(--paper);
  border-top: 2px solid var(--ink);
}

.dock.open .dock-panel { display: grid; }

.grp-t {
  margin: 0 0 6px;
  font-size: 13px;
  letter-spacing: 0.3em;
  font-weight: 600;
}

.grp-l {
  margin: 0;
  display: grid;
  gap: 2px;
}

.grp-l a {
  display: block;
  padding: 12px 2px;
  font-size: 16px;
  line-height: 1.35;
  border-bottom: 1px solid rgba(0, 0, 0, 0.16);
}

html.js .content > div {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.62s ease, transform 0.62s ease;
}

html.js .content > div.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .content > div { opacity: 1; transform: none; transition: none; }
  .hero-ghost { transform: none !important; }
  .rail a, .cta-link { transition: none; }
}

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