:root {
  --paper: #f4f0e6;
  --paper-strong: #fbf8f0;
  --paper-deep: #e9e1d3;
  --ink: #1a211d;
  --muted: #5f6862;
  --line: rgba(26, 33, 29, 0.22);
  --line-strong: rgba(26, 33, 29, 0.72);
  --green: #103d32;
  --green-deep: #0a2c25;
  --green-soft: #dbe3dc;
  --red: #b63f2d;
  --red-dark: #8f2e22;
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  --page: 1440px;
  --gutter: clamp(24px, 5.2vw, 80px);
  --section-space: clamp(96px, 11vw, 168px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, transparent calc(50% - 0.5px), rgba(26, 33, 29, 0.025) 50%, transparent calc(50% + 0.5px)),
    var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.42;
  background-image:
    linear-gradient(rgba(26, 33, 29, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 33, 29, 0.025) 1px, transparent 1px);
  background-size: 80px 80px;
}

::selection {
  color: var(--paper-strong);
  background: var(--green);
}

a {
  color: inherit;
}

button,
textarea,
input {
  font: inherit;
}

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

img,
svg {
  display: block;
}

.page-shell {
  width: min(var(--page), calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--paper-strong);
  background: var(--green);
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

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

:focus-visible {
  outline: 2px solid var(--focus-ring, var(--red));
  outline-offset: 4px;
}

.skip-link,
.button-primary,
.focus-item-ai,
.practice-feature,
.contact-section {
  --focus-ring: var(--paper-strong);
}

.site-header {
  min-height: 104px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  border-bottom: 1px solid var(--line-strong);
}

.brand {
  display: grid;
  gap: 2px;
  text-decoration: none;
}

.brand-name {
  font-family: var(--serif);
  font-size: clamp(21px, 2vw, 29px);
  font-weight: 700;
  letter-spacing: 0.06em;
}

.brand-meta {
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.28em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3.2vw, 52px);
}

.site-nav a {
  position: relative;
  padding: 12px 0;
  font-size: 14px;
  text-decoration: none;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--red);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 260ms var(--ease);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-button {
  display: none;
  border: 0;
  color: var(--ink);
  background: transparent;
}

.hero {
  min-height: min(870px, calc(100svh - 104px));
  padding: clamp(68px, 8vh, 110px) 0 36px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(430px, 0.92fr);
  grid-template-rows: 1fr auto;
  column-gap: clamp(42px, 5vw, 80px);
  border-bottom: 1px solid var(--line-strong);
}

.hero-copy {
  align-self: center;
  padding-bottom: 36px;
}

.hero-identity {
  width: max-content;
  margin: 0 0 28px;
  padding-left: 34px;
  color: var(--red);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.25em;
  position: relative;
}

.hero-identity::before {
  position: absolute;
  top: 50%;
  left: 0;
  width: 22px;
  height: 1px;
  content: "";
  background: var(--red);
}

.hero h1 {
  max-width: 820px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(50px, 5.4vw, 86px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.18;
}

.hero h1 em {
  color: var(--red);
  font-family: Georgia, "Times New Roman", serif;
  font-style: normal;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.hero-line {
  white-space: nowrap;
}

.hero-lead {
  max-width: 670px;
  margin: 34px 0 0;
  color: #3f4943;
  font-family: var(--serif);
  font-size: clamp(16px, 1.25vw, 20px);
  line-height: 2;
}

.hero-actions {
  margin-top: 38px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.button {
  min-height: 54px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: color 220ms ease, background 220ms ease, border-color 220ms ease;
}

.button svg,
.contact-email svg,
.contact-actions button svg,
.dialog-close svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.button-primary {
  min-width: 226px;
  color: var(--paper-strong);
  border-color: var(--green);
  background: var(--green);
}

.button-primary:hover {
  border-color: var(--red);
  background: var(--red);
}

.button-quiet:hover {
  color: var(--paper-strong);
  border-color: var(--ink);
  background: var(--ink);
}

.hero-blueprint {
  min-height: 570px;
  align-self: center;
  position: relative;
  isolation: isolate;
}

.hero-blueprint::before,
.hero-blueprint::after {
  position: absolute;
  width: 36px;
  height: 36px;
  content: "";
  border-color: var(--ink);
  opacity: 0.72;
}

.hero-blueprint::before {
  top: 8px;
  left: 8px;
  border-top: 1px solid;
  border-left: 1px solid;
}

.hero-blueprint::after {
  right: 8px;
  bottom: 8px;
  border-right: 1px solid;
  border-bottom: 1px solid;
}

.blueprint-sheet {
  position: absolute;
  border: 1px solid var(--line);
}

.sheet-back {
  inset: 76px 30px 44px 18%;
  background:
    linear-gradient(rgba(26, 33, 29, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 33, 29, 0.055) 1px, transparent 1px),
    rgba(251, 248, 240, 0.44);
  background-size: 34px 34px;
  transform: translate(-34px, -24px);
}

.sheet-front {
  inset: 100px 0 18px 22%;
  background:
    linear-gradient(rgba(244, 240, 230, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 240, 230, 0.07) 1px, transparent 1px),
    var(--green);
  background-size: 42px 42px;
  box-shadow: 20px 24px 0 rgba(16, 61, 50, 0.08);
}

.blueprint-axis {
  position: absolute;
  display: block;
  background: rgba(244, 240, 230, 0.42);
}

.axis-x {
  top: 19%;
  left: -18%;
  width: 126%;
  height: 1px;
}

.axis-y {
  top: -13%;
  bottom: -12%;
  left: 28%;
  width: 1px;
}

.blueprint-node {
  position: absolute;
  width: 10px;
  height: 10px;
  display: block;
  border: 1px solid var(--paper-strong);
  border-radius: 50%;
}

.node-a { top: calc(19% - 5px); left: calc(28% - 5px); }
.node-b { top: calc(19% - 5px); right: -5px; }
.node-c { bottom: -5px; left: calc(28% - 5px); }

.blueprint-interface {
  position: absolute;
  inset: 28% 12% 14% 17%;
  border: 1px solid rgba(244, 240, 230, 0.72);
}

.interface-nav {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 18%;
  display: block;
  border-right: 1px solid rgba(244, 240, 230, 0.5);
}

.interface-nav::before,
.interface-nav::after {
  position: absolute;
  left: 28%;
  width: 42%;
  aspect-ratio: 1;
  content: "";
  border: 1px solid rgba(244, 240, 230, 0.55);
}

.interface-nav::before { top: 15%; }
.interface-nav::after { top: 42%; }

.interface-title,
.interface-line,
.interface-block {
  position: absolute;
  display: block;
  border: 1px solid rgba(244, 240, 230, 0.58);
}

.interface-title { top: 14%; left: 27%; width: 38%; height: 7%; }
.interface-line { left: 27%; height: 1px; border: 0; background: rgba(244, 240, 230, 0.48); }
.line-a { top: 29%; width: 56%; }
.line-b { top: 38%; width: 42%; }
.interface-block { top: 53%; height: 30%; }
.block-a { left: 27%; width: 32%; }
.block-b { right: 9%; width: 22%; }

.blueprint-label {
  position: absolute;
  z-index: 2;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.12em;
}

.blueprint-label::after {
  position: absolute;
  top: 50%;
  height: 1px;
  content: "";
  background: var(--red);
}

.label-layout { top: 30%; right: -2%; }
.label-layout::after { right: calc(100% + 12px); width: 74px; }
.label-flow { top: 56%; left: 0; }
.label-flow::after { left: calc(100% + 12px); width: 88px; }
.label-asset { right: 1%; bottom: 12%; }
.label-asset::after { right: calc(100% + 12px); width: 64px; }

.blueprint-code {
  position: absolute;
  right: 34px;
  bottom: 46px;
  z-index: 2;
  color: rgba(244, 240, 230, 0.68);
  font-size: 9px;
  letter-spacing: 0.24em;
}

.hero-foot {
  grid-column: 1 / -1;
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.28em;
}

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
}

.scroll-cue span {
  color: var(--red);
  font-size: 18px;
}

.section {
  padding-block: var(--section-space);
}

.section-heading {
  margin-bottom: clamp(58px, 7vw, 96px);
  display: grid;
  grid-template-columns: 150px minmax(280px, 0.82fr) minmax(300px, 0.72fr);
  gap: 28px;
  align-items: end;
}

.section-heading > div {
  display: grid;
  gap: 4px;
  align-self: start;
}

.section-number {
  color: var(--red);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 40px;
  line-height: 1;
}

.section-label {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.26em;
}

.section-heading h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(46px, 5.2vw, 78px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.section-heading > p {
  margin: 0;
  padding-bottom: 5px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 1.9;
}

.focus-flow {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr 0.92fr;
  gap: 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.focus-flow::after {
  position: absolute;
  top: -5px;
  right: -1px;
  width: 9px;
  height: 9px;
  content: "";
  border: 1px solid var(--red);
  background: var(--paper);
}

.focus-item {
  min-height: 540px;
  padding: clamp(34px, 3.5vw, 54px);
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
}

.focus-item:last-child {
  border-right: 0;
}

.focus-title-row {
  display: flex;
  gap: 20px;
  align-items: baseline;
}

.focus-title-row > span {
  color: var(--red);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 38px;
}

.focus-item h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(25px, 2.25vw, 36px);
  font-weight: 700;
  line-height: 1.35;
}

.focus-item > p {
  max-width: 400px;
  margin: 28px 0 44px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 2;
}

.focus-diagram {
  min-height: 225px;
  margin-top: auto;
  position: relative;
}

.diagram-layout {
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(rgba(26, 33, 29, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 33, 29, 0.05) 1px, transparent 1px);
  background-size: 24px 24px;
}

.diagram-layout i {
  position: absolute;
  display: block;
  border: 1px solid var(--green);
}

.diagram-layout i:nth-child(1) { inset: 20% 14%; }
.diagram-layout i:nth-child(2) { top: 20%; bottom: 20%; left: 14%; width: 18%; background: var(--green); }
.diagram-layout i:nth-child(3) { top: 31%; left: 40%; width: 42%; height: 1px; border: 0; background: var(--red); }
.diagram-layout i:nth-child(4) { right: 18%; bottom: 27%; width: 26%; height: 25%; }

.diagram-system::before,
.diagram-system::after {
  position: absolute;
  left: 50%;
  content: "";
  transform: translateX(-50%);
}

.diagram-system::before {
  top: 10%;
  width: 68%;
  height: 62%;
  border: 1px dashed var(--line-strong);
  border-radius: 50%;
}

.diagram-system::after {
  top: 40%;
  width: 72%;
  height: 1px;
  background: var(--red);
}

.diagram-system i {
  position: absolute;
  z-index: 1;
  width: 36px;
  height: 36px;
  display: block;
  border: 1px solid var(--green);
  background: var(--paper);
  transform: rotate(45deg);
}

.diagram-system i:nth-child(1) { top: 5%; left: calc(50% - 18px); border-radius: 50%; }
.diagram-system i:nth-child(2) { top: 34%; left: 13%; }
.diagram-system i:nth-child(3) { top: 34%; right: 13%; }
.diagram-system i:nth-child(4) { bottom: 7%; left: calc(50% - 18px); border-radius: 50%; }
.diagram-system i:nth-child(5) { bottom: 8%; right: 18%; width: 10px; height: 10px; background: var(--red); border-color: var(--red); }

.focus-item-ai {
  color: var(--paper-strong);
  background: var(--green);
}

.focus-item-ai .focus-title-row > span {
  color: #ec6a54;
}

.focus-item-ai > p {
  color: rgba(251, 248, 240, 0.72);
}

.diagram-ai {
  border: 1px solid rgba(251, 248, 240, 0.42);
  background:
    linear-gradient(rgba(251, 248, 240, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(251, 248, 240, 0.055) 1px, transparent 1px);
  background-size: 22px 22px;
}

.diagram-ai i {
  position: absolute;
  display: block;
  border: 1px solid rgba(251, 248, 240, 0.62);
  transform: rotate(45deg);
}

.diagram-ai i:nth-child(1) { inset: 22%; }
.diagram-ai i:nth-child(2) { inset: 32%; border-color: #ec6a54; }
.diagram-ai i:nth-child(3) { inset: 42%; }

.boundary-note {
  margin: 22px 0 0;
  padding: 14px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  border-bottom: 1px dashed var(--line);
  font-size: 12px;
}

.boundary-note span {
  color: var(--red);
  font-size: 18px;
}

.practice-section {
  background: rgba(251, 248, 240, 0.58);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.practice-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(330px, 0.72fr);
  gap: clamp(34px, 4.5vw, 70px);
}

.practice-feature {
  min-height: 590px;
  padding: clamp(42px, 5vw, 74px);
  position: relative;
  overflow: hidden;
  color: var(--paper-strong);
  background:
    linear-gradient(rgba(251, 248, 240, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(251, 248, 240, 0.045) 1px, transparent 1px),
    var(--green);
  background-size: 34px 34px;
}

.practice-feature::before,
.practice-feature::after {
  position: absolute;
  width: 30px;
  height: 30px;
  content: "";
  border-color: rgba(251, 248, 240, 0.58);
}

.practice-feature::before {
  top: 18px;
  left: 18px;
  border-top: 1px solid;
  border-left: 1px solid;
}

.practice-feature::after {
  right: 18px;
  bottom: 18px;
  border-right: 1px solid;
  border-bottom: 1px solid;
}

.practice-status {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #f09a86;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.practice-status i {
  width: 10px;
  height: 10px;
  border: 1px solid currentColor;
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(240, 154, 134, 0.14);
}

.practice-feature h3 {
  max-width: 760px;
  margin: 36px 0 24px;
  font-family: var(--serif);
  font-size: clamp(42px, 4.8vw, 72px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.25;
  text-wrap: balance;
}

.practice-feature .keep-together {
  white-space: nowrap;
}

.practice-feature > p {
  max-width: 650px;
  margin: 0;
  color: rgba(251, 248, 240, 0.75);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 2;
}

.button-outline-light {
  margin-top: 42px;
  color: var(--paper-strong);
  border-color: rgba(251, 248, 240, 0.72);
}

.button-outline-light:hover {
  color: var(--green);
  background: var(--paper-strong);
}

.practice-document {
  position: absolute;
  right: 4%;
  bottom: -5%;
  width: 32%;
  aspect-ratio: 0.78;
  border: 1px solid rgba(251, 248, 240, 0.38);
  transform: rotate(-2deg);
  opacity: 0.58;
}

.practice-document::before,
.practice-document::after {
  position: absolute;
  inset: 0;
  content: "";
  border: 1px solid rgba(251, 248, 240, 0.35);
}

.practice-document::before { transform: translate(-18px, 18px); }
.practice-document::after { transform: translate(-36px, 36px); }

.practice-document span {
  position: absolute;
  left: 18%;
  width: 64%;
  height: 1px;
  display: block;
  background: rgba(251, 248, 240, 0.48);
}

.practice-document span:nth-child(1) { top: 22%; width: 38%; }
.practice-document span:nth-child(2) { top: 35%; }
.practice-document span:nth-child(3) { top: 45%; }
.practice-document span:nth-child(4) { top: 55%; width: 48%; }

.practice-index {
  display: grid;
  align-content: stretch;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.practice-index article {
  min-height: 50%;
  padding: clamp(30px, 3vw, 48px) 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-bottom: 1px dashed var(--line);
}

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

.practice-index span {
  color: var(--red);
  font-size: 11px;
  font-weight: 700;
}

.practice-index h3 {
  margin: 18px 0 14px;
  font-family: var(--serif);
  font-size: clamp(25px, 2vw, 33px);
  font-weight: 700;
  line-height: 1.45;
}

.practice-index p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

.section-heading-compact {
  margin-bottom: 60px;
}

.method-section {
  padding-bottom: clamp(84px, 9vw, 132px);
}

.method-rail {
  margin: 0;
  padding: 52px 0 18px;
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line-strong);
}

.method-rail::after {
  position: absolute;
  top: -6px;
  right: -1px;
  width: 11px;
  height: 11px;
  content: "";
  background: var(--red);
  transform: rotate(45deg);
}

.method-rail li {
  min-height: 178px;
  padding: 0 clamp(18px, 2vw, 30px);
  position: relative;
  display: grid;
  align-content: start;
  border-left: 1px dashed var(--line);
}

.method-rail li::before {
  position: absolute;
  top: -58px;
  left: -5px;
  width: 9px;
  height: 9px;
  content: "";
  border: 1px solid var(--green);
  border-radius: 50%;
  background: var(--paper);
}

.method-rail span {
  color: var(--red);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
}

.method-rail strong {
  margin-top: 18px;
  font-family: var(--serif);
  font-size: clamp(20px, 1.8vw, 27px);
  font-weight: 700;
}

.method-rail small {
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.method-summary {
  max-width: 920px;
  margin: 44px auto 0;
  padding: 22px 42px;
  position: relative;
  color: #3f4943;
  border-right: 1px solid var(--red);
  border-left: 1px solid var(--red);
  font-family: var(--serif);
  text-align: center;
}

.notes-section {
  border-top: 1px solid var(--line-strong);
}

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

.notes-list a {
  padding: clamp(30px, 4vw, 54px) 0;
  position: relative;
  display: grid;
  grid-template-columns: 160px minmax(300px, 1.1fr) minmax(260px, 0.75fr) 100px 34px;
  gap: 26px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: color 220ms ease, padding 280ms var(--ease);
}

.notes-list a:hover {
  padding-inline: 18px;
  color: var(--red-dark);
}

.note-type {
  color: var(--red);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.notes-list h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(24px, 2.2vw, 34px);
  font-weight: 700;
  line-height: 1.45;
}

.notes-list p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}

.notes-list time {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.notes-list i {
  color: var(--red);
  font-size: 22px;
  font-style: normal;
}

.elsewhere-section {
  padding-bottom: var(--section-space);
}

.elsewhere-card {
  padding: clamp(44px, 5.4vw, 78px) 0;
  position: relative;
  display: grid;
  grid-template-columns: 150px minmax(360px, 1fr) minmax(260px, 340px);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.elsewhere-card::before,
.elsewhere-card::after {
  position: absolute;
  width: 8px;
  height: 8px;
  content: "";
  border: 1px solid var(--red);
  background: var(--paper);
}

.elsewhere-card::before {
  top: -5px;
  left: 0;
}

.elsewhere-card::after {
  right: 0;
  bottom: -5px;
}

.elsewhere-index {
  align-self: start;
  display: grid;
  gap: 7px;
}

.elsewhere-index span {
  color: var(--red);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 40px;
  line-height: 1;
}

.elsewhere-index small,
.elsewhere-copy > p:first-child {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.24em;
}

.elsewhere-copy > p:first-child {
  margin: 0 0 18px;
  color: var(--red);
}

.elsewhere-copy h2 {
  max-width: 760px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(32px, 3.4vw, 52px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.28;
}

.elsewhere-copy > p:last-child {
  max-width: 760px;
  margin: 22px 0 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.9;
}

.elsewhere-link {
  min-height: 104px;
  padding: 24px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--paper-strong);
  background: var(--green);
  text-decoration: none;
  transition: background 180ms ease, transform 220ms var(--ease);
}

.elsewhere-link:hover {
  background: var(--green-deep);
  transform: translateY(-3px);
}

.elsewhere-link span {
  display: grid;
  gap: 6px;
}

.elsewhere-link strong {
  font-family: var(--serif);
  font-size: 18px;
}

.elsewhere-link small {
  color: rgba(251, 248, 240, 0.66);
  font-size: 9px;
  letter-spacing: 0.1em;
}

.elsewhere-link svg {
  width: 24px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.contact-section {
  color: var(--paper-strong);
  background:
    linear-gradient(rgba(251, 248, 240, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(251, 248, 240, 0.035) 1px, transparent 1px),
    var(--green-deep);
  background-size: 40px 40px;
}

.contact-layout {
  padding-block: clamp(82px, 10vw, 150px);
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(480px, 1fr);
  gap: clamp(58px, 8vw, 130px);
}

.contact-copy {
  align-self: center;
}

.contact-index {
  color: #ec6a54;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.contact-copy h2 {
  max-width: 620px;
  margin: 22px 0 26px;
  font-family: var(--serif);
  font-size: clamp(46px, 5vw, 76px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.2;
}

.contact-copy > p {
  max-width: 620px;
  margin: 0;
  color: rgba(251, 248, 240, 0.7);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 2;
}

.contact-email {
  width: fit-content;
  margin-top: 38px;
  padding-bottom: 7px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid rgba(251, 248, 240, 0.48);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(20px, 2vw, 30px);
  text-decoration: none;
}

.contact-email svg {
  width: 25px;
  color: #ec6a54;
}

.contact-form {
  padding-left: clamp(36px, 4.5vw, 72px);
  border-left: 1px dashed rgba(251, 248, 240, 0.38);
}

.contact-form fieldset {
  margin: 0 0 36px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  border: 0;
}

.contact-form legend,
.message-label {
  margin-bottom: 12px;
  display: block;
  color: rgba(251, 248, 240, 0.68);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.contact-form legend {
  grid-column: 1 / -1;
}

.contact-form label {
  cursor: pointer;
}

.contact-form input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.contact-form fieldset span {
  min-height: 50px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(251, 248, 240, 0.42);
  color: rgba(251, 248, 240, 0.76);
  font-size: 13px;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.contact-form input:checked + span {
  color: var(--paper-strong);
  border-color: var(--red);
  background: var(--red);
}

.contact-form input:focus-visible + span {
  outline: 2px solid var(--paper-strong);
  outline-offset: 3px;
}

.contact-form textarea {
  width: 100%;
  min-height: 170px;
  padding: 20px;
  display: block;
  resize: vertical;
  border: 1px solid rgba(251, 248, 240, 0.52);
  border-radius: 0;
  outline: none;
  color: var(--paper-strong);
  background: rgba(0, 0, 0, 0.08);
  line-height: 1.8;
}

.contact-form textarea::placeholder {
  color: rgba(251, 248, 240, 0.62);
}

.contact-form textarea:focus {
  border-color: #ec6a54;
  box-shadow: 0 0 0 1px #ec6a54;
}

.contact-actions {
  margin-top: 16px;
  display: grid;
  grid-template-columns: auto minmax(220px, 1fr);
  gap: 18px;
  align-items: center;
}

.contact-actions > span {
  color: rgba(251, 248, 240, 0.58);
  font-size: 11px;
}

.contact-actions button {
  min-height: 58px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border: 1px solid var(--red);
  color: var(--paper-strong);
  background: var(--red);
  font-weight: 700;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease;
}

.contact-actions button:hover {
  border-color: var(--red-dark);
  background: var(--red-dark);
}

.form-note,
.form-status {
  margin: 12px 0 0;
  color: rgba(251, 248, 240, 0.58);
  font-size: 11px;
}

.form-status {
  min-height: 1.7em;
  color: #f1a092;
}

.site-footer {
  background: var(--paper-strong);
}

.footer-main {
  min-height: 132px;
  padding-block: 26px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 64px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.footer-brand {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 18px;
  text-decoration: none;
}

.footer-seal {
  width: 48px;
  height: 56px;
  display: grid;
  place-items: center;
  color: var(--red);
  border: 1px solid var(--red);
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.footer-brand > span:last-child {
  display: grid;
  gap: 4px;
}

.footer-brand strong {
  font-family: var(--serif);
  font-size: 20px;
}

.footer-brand small,
.footer-domain {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.22em;
}

.footer-links {
  display: flex;
  gap: 32px;
}

.footer-links a {
  font-size: 13px;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--red);
}

.footer-domain {
  color: var(--ink);
  font-weight: 700;
}

.footer-legal {
  min-height: 78px;
  padding-block: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px 34px;
  color: var(--muted);
  font-size: 12px;
}

.footer-legal a {
  text-decoration: none;
}

.footer-legal a:hover {
  color: var(--red);
  text-decoration: underline;
}

.police-record {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.police-record img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.boundary-dialog {
  width: min(620px, calc(100% - 40px));
  padding: clamp(38px, 5vw, 62px);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background:
    linear-gradient(rgba(26, 33, 29, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 33, 29, 0.035) 1px, transparent 1px),
    var(--paper-strong);
  background-size: 32px 32px;
  box-shadow: 0 24px 90px rgba(10, 44, 37, 0.28);
}

.boundary-dialog::backdrop {
  background: rgba(10, 44, 37, 0.78);
  backdrop-filter: blur(3px);
}

.dialog-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--paper-strong);
  cursor: pointer;
}

.dialog-close:hover {
  color: var(--paper-strong);
  background: var(--red);
}

.dialog-index {
  color: var(--red);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.boundary-dialog h2 {
  margin: 18px 0 20px;
  font-family: var(--serif);
  font-size: 48px;
}

.boundary-dialog p {
  color: var(--muted);
}

.boundary-dialog ul {
  margin: 28px 0 0;
  padding: 24px 0 0;
  display: grid;
  gap: 13px;
  border-top: 1px solid var(--line);
  list-style: none;
}

.boundary-dialog li {
  padding-left: 22px;
  position: relative;
}

.boundary-dialog li::before {
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 7px;
  height: 7px;
  content: "";
  background: var(--red);
}

/* Article and legal pages */
.subpage-header {
  min-height: 88px;
}

.article-page,
.legal-page,
.not-found-page {
  padding-block: clamp(68px, 9vw, 128px);
}

.article-hero,
.legal-hero {
  padding-bottom: clamp(50px, 6vw, 82px);
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 34px;
  border-bottom: 1px solid var(--line-strong);
}

.article-meta,
.legal-meta {
  display: grid;
  align-content: start;
  gap: 8px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.article-meta strong,
.legal-meta strong {
  color: var(--red);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  font-weight: 400;
}

.article-hero h1,
.legal-hero h1,
.not-found-page h1 {
  max-width: 1050px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(46px, 6vw, 82px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.22;
}

.article-hero p,
.legal-hero p {
  max-width: 780px;
  margin: 28px 0 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 2;
}

.article-layout,
.legal-layout {
  margin-top: clamp(58px, 7vw, 96px);
  display: grid;
  grid-template-columns: 250px minmax(0, 820px);
  gap: clamp(52px, 8vw, 120px);
  justify-content: center;
  align-items: start;
}

.article-aside,
.legal-aside {
  position: sticky;
  top: 24px;
  padding: 22px 0 22px 20px;
  border-left: 1px solid var(--red);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.article-aside strong,
.legal-aside strong {
  margin-bottom: 10px;
  display: block;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
}

.article-content h2,
.legal-content h2 {
  margin: 74px 0 22px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-family: var(--serif);
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 700;
  line-height: 1.35;
}

.article-content h2:first-child,
.legal-content h2:first-child {
  margin-top: 0;
}

.article-content h3,
.legal-content h3 {
  margin: 38px 0 14px;
  font-family: var(--serif);
  font-size: 24px;
}

.article-content p,
.legal-content p,
.article-content li,
.legal-content li {
  color: #434d47;
  font-family: var(--serif);
  font-size: 17px;
  line-height: 2.05;
}

.article-content ul,
.legal-content ul {
  padding-left: 1.4em;
}

.article-notice {
  margin-bottom: 46px;
  padding: 22px 26px;
  border: 1px solid var(--line);
  background: rgba(251, 248, 240, 0.6);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}

.article-next {
  margin-top: 70px;
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line-strong);
}

.article-next a,
.back-home {
  color: var(--red-dark);
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.not-found-page {
  min-height: 62vh;
  display: grid;
  align-content: center;
}

.not-found-page p {
  max-width: 620px;
  margin: 26px 0 34px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 18px;
}

@media (max-width: 1120px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr 0.9fr;
  }

  .hero-blueprint {
    min-height: 500px;
  }

  .focus-flow {
    grid-template-columns: 1fr 1fr;
  }

  .focus-item:nth-child(2) {
    border-right: 0;
  }

  .focus-item-ai {
    grid-column: 1 / -1;
    min-height: 470px;
    border-top: 1px solid var(--line);
  }

  .focus-item-ai .focus-diagram {
    width: min(520px, 100%);
  }

  .notes-list a {
    grid-template-columns: 130px 1fr 100px 28px;
  }

  .notes-list p {
    display: none;
  }

  .elsewhere-card {
    grid-template-columns: 110px minmax(0, 1fr);
  }

  .elsewhere-link {
    grid-column: 2;
  }

  .contact-layout {
    grid-template-columns: 1fr 1fr;
    gap: 56px;
  }

  .contact-form fieldset {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  :root {
    --gutter: 30px;
  }

  .site-header {
    min-height: 84px;
    position: relative;
  }

  .menu-button {
    min-height: 44px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
  }

  .menu-button i,
  .menu-button i::after {
    width: 20px;
    height: 1px;
    display: block;
    content: "";
    background: currentColor;
    transition: transform 180ms ease;
  }

  .menu-button i::after {
    transform: translateY(6px);
  }

  .menu-button[aria-expanded="true"] i {
    transform: translateY(3px) rotate(45deg);
  }

  .menu-button[aria-expanded="true"] i::after {
    transform: rotate(-90deg);
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    z-index: 20;
    padding: 18px var(--gutter) 24px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-bottom: 1px solid var(--line-strong);
    background: var(--paper-strong);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  .site-nav a:last-child {
    border-bottom: 0;
  }

  .site-nav a::after {
    display: none;
  }

  .hero {
    padding-top: 72px;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }

  .hero-copy {
    padding-bottom: 56px;
  }

  .hero-blueprint {
    min-height: 560px;
  }

  .axis-x {
    left: -13%;
    width: 116%;
  }

  .hero-foot {
    margin-top: 44px;
  }

  .section-heading {
    grid-template-columns: 100px 1fr;
  }

  .section-heading > p {
    grid-column: 2;
  }

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

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

  .practice-index article {
    min-height: 280px;
    padding: 36px;
    border-right: 1px dashed var(--line);
    border-bottom: 0;
  }

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

  .method-rail {
    padding-top: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 0;
  }

  .method-rail::after {
    display: none;
  }

  .method-rail li {
    min-height: 190px;
    padding: 30px;
    border-top: 1px solid var(--line);
  }

  .method-rail li::before {
    top: -5px;
  }

  .method-rail li:last-child {
    grid-column: 1 / -1;
  }

  .contact-form {
    padding: 44px 0 0;
    border-top: 1px dashed rgba(251, 248, 240, 0.38);
    border-left: 0;
  }

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

  .footer-domain {
    grid-column: 1 / -1;
  }

  .article-layout,
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .article-aside,
  .legal-aside {
    position: static;
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: 20px;
    --section-space: 82px;
  }

  body::before {
    background-size: 48px 48px;
  }

  .site-header {
    min-height: 76px;
  }

  .brand-name {
    font-size: 19px;
  }

  .brand-meta {
    display: none;
  }

  .menu-button span {
    font-size: 13px;
  }

  .hero {
    padding-top: 54px;
  }

  .hero-identity {
    margin-bottom: 20px;
  }

  .hero h1 {
    font-size: clamp(43px, 13vw, 66px);
    line-height: 1.2;
  }

  .hero h1 br:nth-of-type(1) {
    display: none;
  }

  .hero-line {
    white-space: normal;
  }

  .hero-lead {
    margin-top: 26px;
    font-size: 16px;
    line-height: 1.9;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
    justify-content: space-between;
  }

  .hero-blueprint {
    min-height: 410px;
  }

  .sheet-back {
    inset: 50px 16px 38px 10%;
  }

  .sheet-front {
    inset: 78px 0 12px 13%;
  }

  .axis-x {
    left: -13%;
    width: 116%;
  }

  .blueprint-label {
    font-size: 10px;
  }

  .label-layout { right: 0; }
  .label-flow { left: 0; }
  .label-asset { right: 0; }

  .hero-foot {
    padding-top: 18px;
  }

  .hero-foot > span:last-child {
    display: none;
  }

  .section-heading {
    margin-bottom: 48px;
    display: block;
  }

  .section-heading > div {
    margin-bottom: 20px;
    display: flex;
    align-items: baseline;
    gap: 12px;
  }

  .section-number {
    font-size: 30px;
  }

  .section-heading h2 {
    font-size: clamp(43px, 13vw, 62px);
  }

  .section-heading > p {
    margin-top: 20px;
    font-size: 16px;
  }

  .focus-flow {
    grid-template-columns: 1fr;
  }

  .focus-item,
  .focus-item-ai {
    min-height: 450px;
    grid-column: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .focus-item:last-child {
    border-bottom: 0;
  }

  .focus-title-row {
    gap: 14px;
  }

  .focus-title-row > span {
    font-size: 30px;
  }

  .practice-feature {
    min-height: 570px;
    padding: 36px 28px;
  }

  .practice-feature h3 {
    font-size: 40px;
  }

  .practice-feature h3 br,
  .practice-break {
    display: none;
  }

  .practice-feature > p {
    font-size: 15px;
  }

  .practice-document {
    right: 8%;
    width: 46%;
    opacity: 0.35;
  }

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

  .practice-index article {
    min-height: auto;
    padding: 36px 0;
    border-right: 0;
    border-bottom: 1px dashed var(--line);
  }

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

  .method-rail {
    grid-template-columns: 1fr;
  }

  .method-rail li,
  .method-rail li:last-child {
    min-height: auto;
    grid-column: auto;
  }

  .method-summary {
    padding-inline: 18px;
    text-align: left;
  }

  .notes-list a {
    padding: 30px 0;
    grid-template-columns: 1fr 24px;
    gap: 12px;
  }

  .notes-list .note-type,
  .notes-list h3,
  .notes-list time {
    grid-column: 1;
  }

  .notes-list i {
    grid-column: 2;
    grid-row: 1 / 4;
    align-self: center;
  }

  .notes-list a:hover {
    padding-inline: 0;
  }

  .elsewhere-card {
    padding-block: 42px;
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .elsewhere-index {
    display: flex;
    align-items: baseline;
    gap: 12px;
  }

  .elsewhere-index span {
    font-size: 30px;
  }

  .elsewhere-copy h2 {
    font-size: 36px;
  }

  .elsewhere-link {
    min-height: 88px;
    grid-column: auto;
  }

  .contact-layout {
    gap: 50px;
  }

  .contact-copy h2 {
    font-size: 46px;
  }

  .contact-email {
    font-size: 19px;
  }

  .contact-form fieldset {
    grid-template-columns: 1fr 1fr;
  }

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

  .contact-actions > span {
    justify-self: end;
  }

  .footer-main {
    padding-block: 34px;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 28px;
  }

  .footer-links {
    gap: 24px;
  }

  .footer-links a,
  .footer-legal a {
    min-height: 28px;
    display: inline-flex;
    align-items: center;
  }

  .footer-legal {
    padding-block: 28px;
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .article-hero,
  .legal-hero {
    grid-template-columns: 1fr;
  }

  .article-meta,
  .legal-meta {
    display: flex;
    align-items: baseline;
    gap: 14px;
  }

  .article-hero h1,
  .legal-hero h1,
  .not-found-page h1 {
    font-size: 45px;
  }

  .article-next {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
