/* Method inherits the portfolio and case-study visual system.
   Keep the page to the same core type hierarchy: display, section, body, utility.
   PP Editorial is reserved for the main identity moments and a few key statements. */

.method-page .method-movements-copy {
  max-width: 50ch;
}

.method-page .method-movements-note {
  margin-bottom: 18px !important;
}

/* Keep the AI section title consistent with every other section title. */
.method-page .method-ai-label {
  font-family: var(--serif) !important;
  font-size: 22px !important;
  font-weight: 200 !important;
  letter-spacing: -0.01em !important;
}

/* ---- Movements accordion ---- */
.method-page .movement-accordion {
  border-top: 1px solid var(--line);
}

.method-page .movement-item {
  border-bottom: 1px solid var(--line);
}

.method-page .movement-item summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: minmax(118px, 0.7fr) minmax(0, 1.3fr) 18px;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
}

.method-page .movement-item summary::-webkit-details-marker {
  display: none;
}

.method-page .movement-item summary::marker {
  content: "";
}

.method-page .movement-item summary:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 4px;
}

.method-page .movement-name,
.method-page .movement-question,
.method-page .movement-toggle {
  transition: transform var(--motion-fast) var(--motion-ease), color var(--motion-fast) var(--motion-ease), opacity var(--motion-fast) var(--motion-ease);
}

.method-page .movement-item summary:hover .movement-name,
.method-page .movement-item[open] summary .movement-name {
  transform: translateX(3px);
}

.method-page .movement-item summary:hover .movement-question {
  color: var(--muted);
}

.method-page .movement-item[open] .movement-toggle {
  transform: rotate(180deg);
}

.method-page .movement-name {
  display: flex;
  align-items: baseline;
  gap: 7px;
  min-width: 0;
}

.method-page .movement-verb {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}

.method-page .movement-term {
  font-size: 11px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--muted);
}

.method-page .movement-question {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--ink);
  max-width: 38ch;
}

.method-page .movement-toggle {
  position: relative;
  width: 14px;
  height: 14px;
  justify-self: end;
}

.method-page .movement-toggle::before,
.method-page .movement-toggle::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 1px;
  background: var(--ink);
  transform: translate(-50%, -50%);
  transition: opacity var(--motion-fast) var(--motion-ease);
}

.method-page .movement-toggle::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.method-page .movement-item[open] .movement-toggle::after {
  opacity: 0;
}

.method-page .movement-panel {
  max-width: 50ch;
  margin-left: calc(35% + 14px);
  padding: 1px 18px 20px 0;
}

.method-page .movement-item[open] .movement-panel {
  animation: method-panel-in 280ms var(--motion-ease) both;
}

@keyframes method-panel-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.method-page .movement-panel p {
  font-size: 13px;
  line-height: 1.72;
  margin-bottom: 12px;
}

.method-page .movement-panel p:last-child {
  margin-bottom: 0;
}

/* ---- Editorial emphasis without introducing another scale ---- */
.method-page .method-statement {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 13px !important;
  font-weight: 400;
  line-height: 1.6 !important;
  max-width: 36ch;
}

.method-page .method-expression {
  margin-top: 18px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 13px !important;
  font-weight: 500;
  line-height: 1.65 !important;
  max-width: 38ch;
}

/* ---- Ways into Method ---- */
.method-page .method-actions {
  margin-top: 20px;
  border-top: 1px solid var(--line);
}

.method-page .method-actions a {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 16px;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.method-page .method-actions a span:first-child,
.method-page .method-actions a span:last-child {
  transition: color var(--motion-fast) var(--motion-ease), transform var(--motion-fast) var(--motion-ease);
}

.method-page .method-actions a span:first-child {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}

.method-page .method-actions a span:last-child {
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
}

.method-page .method-actions a:hover span:first-child,
.method-page .method-actions a:hover span:last-child {
  transform: translateX(3px);
}

.method-page .method-actions a:hover span:last-child {
  color: var(--ink);
}

@media (max-width: 760px) {
  .method-page .movement-item summary {
    grid-template-columns: 1fr 18px;
    gap: 5px 12px;
    padding: 14px 0;
  }

  .method-page .movement-question {
    grid-column: 1 / -1;
    grid-row: 2;
    padding-right: 18px;
  }

  .method-page .movement-toggle {
    grid-column: 2;
    grid-row: 1;
  }

  .method-page .movement-panel {
    max-width: 48ch;
    margin-left: 0;
    padding: 2px 0 20px;
  }

  .method-page .method-actions a {
    grid-template-columns: 1fr;
    gap: 3px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .method-page .movement-name,
  .method-page .movement-question,
  .method-page .movement-toggle,
  .method-page .movement-toggle::before,
  .method-page .movement-toggle::after,
  .method-page .method-actions a span:first-child,
  .method-page .method-actions a span:last-child {
    transition: none;
  }

  .method-page .movement-item[open] .movement-panel {
    animation: none;
  }
}