:root {
  --bg: #e9e0d2;
  --fg: #2f3a2f;
  --muted: #4a5648;
  --secondary: #6f7d5a;
  --line: rgba(47, 58, 47, 0.18);
  --accent: #a65f3f;
  --nav-bg: rgba(233, 224, 210, 0.82);
  --font-display: Georgia, 'Times New Roman', 'Songti SC', 'STSong', serif;
  --font-sans: system-ui, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Consolas, 'Liberation Mono', monospace;
}

body {
  background-color: var(--bg);
  background-image:
    radial-gradient(900px 720px at 82% 18%, rgba(166, 95, 63, 0.09), transparent 62%),
    radial-gradient(760px 640px at 8% 82%, rgba(111, 125, 90, 0.09), transparent 62%);
  color: var(--fg);
  animation: page-in 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

::selection {
  background: var(--accent);
  color: #f5efe5;
}

@keyframes page-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 30px;
  padding: 120px 7vw 70px;
}

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

.eyebrow,
.section-tag {
  margin: 0 0 24px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--secondary);
}

h1 {
  margin: 0 0 28px;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6.1vw, 6.6rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.045em;
}

h1 em {
  font-style: italic;
  color: var(--accent);
  white-space: nowrap;
}

.hero-lead {
  max-width: 530px;
  margin: 0;
  font-size: clamp(14px, 1.2vw, 17px);
  line-height: 2;
  color: var(--muted);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 38px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--secondary);
}

.hero-scene {
  position: relative;
  height: 72vh;
  min-height: 470px;
}

.hero-scene .scene {
  position: absolute;
  inset: 0;
}

.scene-fallback {
  background:
    radial-gradient(circle at 60% 38%, rgba(166, 95, 63, 0.55), transparent 26%),
    radial-gradient(circle at 72% 54%, rgba(111, 125, 90, 0.5), transparent 30%),
    radial-gradient(circle at 44% 64%, rgba(201, 183, 156, 0.7), transparent 22%);
  filter: blur(2px);
}

.scene-note {
  position: absolute;
  right: 0;
  bottom: 0;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.16em;
  color: var(--secondary);
  pointer-events: none;
}

.about {
  display: grid;
  grid-template-columns: 150px 1fr 300px;
  gap: 40px;
  padding: clamp(70px, 10vw, 140px) 7vw;
  border-top: 1px solid var(--line);
}

.about h2 {
  margin: 0 0 24px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.about p {
  max-width: 680px;
  margin: 0 0 14px;
  font-size: 14.5px;
  line-height: 2;
  color: var(--muted);
}

.about-note {
  align-self: end;
  padding-left: 18px;
  border-left: 1px solid var(--line);
  font-family: var(--font-mono);
  color: var(--secondary);
}

.about-note span {
  font-size: 8px;
  letter-spacing: 0.15em;
}

.about-note p {
  margin: 12px 0 0;
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1.9;
  color: var(--secondary);
}

.practice {
  padding: clamp(70px, 9vw, 130px) 7vw;
  border-top: 1px solid var(--line);
}

.practice-head,
.selected-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 16px 30px;
  margin-bottom: 34px;
}

.practice-head h2,
.selected-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.6vw, 3.6rem);
  font-weight: 400;
  letter-spacing: -0.035em;
}

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

.practice-grid article {
  padding: 28px 26px 8px 0;
  border-right: 1px solid var(--line);
}

.practice-grid article + article {
  padding-left: 26px;
}

.practice-grid article:last-child {
  border-right: 0;
}

.practice-no {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.practice-grid h3 {
  margin: 20px 0 12px;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.6vw, 2.6rem);
  font-weight: 400;
}

.practice-grid p {
  max-width: 330px;
  margin: 0;
  font-size: 13px;
  line-height: 1.95;
  color: var(--muted);
}

.selected {
  padding: clamp(70px, 9vw, 130px) 7vw;
  border-top: 1px solid var(--line);
}

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

.selected-row {
  display: grid;
  grid-template-columns: 50px 1fr 1fr 30px;
  gap: 20px;
  align-items: center;
  padding: 24px 4px;
  border-bottom: 1px solid var(--line);
  transition:
    padding 0.3s ease,
    background 0.3s ease;
}

.selected-row:hover,
.selected-row:focus-visible {
  padding-left: 20px;
  background: linear-gradient(90deg, rgba(166, 95, 63, 0.1), transparent 72%);
}

.row-index {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.row-title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2vw, 2rem);
}

.row-note {
  font-size: 12.5px;
  color: var(--secondary);
}

.row-arrow {
  justify-self: end;
  color: var(--secondary);
}

.contact {
  padding: clamp(70px, 10vw, 140px) 7vw;
  background: #2f3a2f;
  color: #efe7d9;
}

.contact .section-tag {
  color: #c9b79c;
}

.contact h2 {
  margin: 20px 0 24px;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.4vw, 5.4rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.contact p {
  margin: 0;
  font-size: 14px;
  color: rgba(239, 231, 217, 0.68);
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 30px;
  margin-top: 34px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  color: rgba(239, 231, 217, 0.6);
}

.contact-links a {
  padding-bottom: 3px;
  border-bottom: 1px solid rgba(239, 231, 217, 0.25);
  transition: color 0.25s ease, border-color 0.25s ease;
}

.contact-links a:hover {
  color: #ffffff;
  border-color: #c9b79c;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  padding: 22px 7vw;
  border-top: 1px solid rgba(239, 231, 217, 0.14);
  background: #2f3a2f;
  color: rgba(239, 231, 217, 0.55);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.13em;
}

.footer a:hover {
  color: #ffffff;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    align-items: start;
    padding-top: 110px;
  }

  .hero-scene {
    height: 54vh;
    min-height: 380px;
  }

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

  .about-note {
    align-self: start;
    padding: 18px 0 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

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

  .practice-grid article {
    padding: 24px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .practice-grid article + article {
    padding-left: 0;
  }

  .practice-grid article:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 640px) {
  .selected-row {
    grid-template-columns: 34px 1fr 24px;
    gap: 14px;
  }

  .row-note {
    display: none;
  }
}
