/* ============================================================
   LAYER 1 — public landing
   ============================================================ */

.page {
  max-width: var(--measure);
  margin: 0 auto;
  padding: clamp(3.5rem, 9vh, 7rem) 1.5rem 4rem;
}

/* masthead */
.masthead {
  display: flex;
  justify-content: center;
  margin-bottom: clamp(3rem, 9vh, 5.5rem);
}

/* hero thesis */
.hero { text-align: center; }
.hero .eyebrow { display: block; margin-bottom: 1.6rem; }
.hero h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.6rem, 1.8rem + 4.4vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -0.012em;
  margin: 0 0 1.8rem;
  color: var(--bone);
}
.hero .thesis {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.3rem, 1.05rem + 1.1vw, 1.8rem);
  line-height: 1.45;
  color: var(--bone-dim);
  max-width: 34rem;
  margin: 0 auto;
}
.hero .thesis em { color: var(--brass-lit); font-style: italic; }

/* prose blocks */
.prose { margin: clamp(3.5rem, 10vh, 6rem) auto 0; }
.prose p {
  margin: 0 0 1.5rem;
  color: var(--bone);
}
.prose p.lead { color: var(--bone-dim); }

/* the precondition — statement block */
.statement .statement-lead {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.25rem, 1.05rem + 0.85vw, 1.6rem);
  line-height: 1.4;
  color: var(--bone);
  margin-bottom: 1.7rem;
}
.statement .statement-close {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.4rem);
  line-height: 1.4;
  color: var(--brass-lit);
  margin-top: 1.9rem;
}
.section-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--mute);
  margin: 0 0 1.8rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.section-label::before {
  content: '';
  width: 1.6rem; height: 1px; background: var(--brass);
}

/* the signature: AtW diagram */
.diagram-wrap {
  margin: clamp(3rem, 8vh, 5rem) auto;
  display: flex;
  justify-content: center;
}
.atw-diagram { width: 100%; max-width: 34rem; height: auto; }

.atw-diagram .lbl {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  fill: var(--bone-dim);
}
.atw-diagram .lbl-dim { fill: var(--mute-deep); }
.atw-diagram .lbl-brass { fill: var(--brass-lit); }
.atw-diagram .node { fill: var(--void-2); stroke: var(--rule); stroke-width: 1; }
.atw-diagram .node-live { stroke: var(--brass); }
.atw-diagram .node-dim { stroke: var(--mute-deep); }
.atw-diagram .wire { fill: none; stroke: var(--mute-deep); stroke-width: 1; }
.atw-diagram .wire-live {
  stroke: var(--brass);
  stroke-width: 1.4;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  pathLength: 1;
  animation: draw 1.6s 0.4s cubic-bezier(.4,0,.2,1) forwards;
}
.atw-diagram .pulse { fill: var(--brass); opacity: 0; animation: pulse 2.4s 1.8s ease-in-out infinite; }
.atw-diagram .cap {
  font-family: var(--mono); font-size: 6.5px;
  letter-spacing: 0.12em; fill: var(--mute);
}
.atw-diagram .cap-brass { fill: var(--brass); }
.atw-diagram .ztag {
  font-family: var(--mono); font-size: 7.5px;
  letter-spacing: 0.24em; text-transform: uppercase;
}
.atw-diagram .ztag-dim { fill: var(--mute); }
.atw-diagram .ztag-brass { fill: var(--brass-lit); }
.atw-diagram .zcap {
  font-family: var(--mono); font-size: 6px;
  letter-spacing: 0.1em; fill: var(--mute-deep);
}
.atw-diagram .divider {
  fill: none; stroke: var(--mute-deep);
  stroke-width: 1; stroke-dasharray: 2 5;
}
.atw-diagram .strand { fill: none; stroke: var(--brass); stroke-width: 1; opacity: 0.85; }
.atw-diagram .snode { fill: var(--brass); }
.atw-diagram .slbl {
  font-family: var(--mono); font-size: 8px;
  letter-spacing: 0.14em; text-transform: uppercase;
  fill: var(--brass-lit);
}

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pulse { 0%,100%{opacity:0} 50%{opacity:.9} }

.diagram-caption {
  text-align: center;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
  margin-top: 0.5rem;
}

/* capture */
.capture {
  margin: clamp(4rem, 11vh, 7rem) auto 0;
  max-width: 22rem;
  text-align: center;
}
.capture .field { margin-bottom: 1.6rem; }
.capture__msg {
  min-height: 1.2rem;
  margin-top: 1.4rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-lit);
}
.capture__msg.err { color: #b56b6b; }

/* footer */
.foot {
  margin-top: clamp(5rem, 13vh, 8rem);
  padding-top: 2rem;
  border-top: 1px solid var(--rule-soft);
  text-align: center;
}
.foot p {
  font-family: var(--read);
  font-style: italic;
  color: var(--mute);
  font-size: 0.98rem;
  margin: 0 0 1.4rem;
}
.foot .mesh {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mute-deep);
}
.foot .mesh a:hover { color: var(--mute); }

/* load motion */
.rise { opacity: 0; transform: translateY(14px); animation: rise 0.9s cubic-bezier(.2,.7,.2,1) forwards; }
.rise.d1 { animation-delay: 0.05s; }
.rise.d2 { animation-delay: 0.18s; }
.rise.d3 { animation-delay: 0.32s; }
@keyframes rise { to { opacity: 1; transform: none; } }
